public abstract class InstanceProfilingEvent extends ProfilingEvent
This class is not thread-safe.
| Constructor and Description |
|---|
InstanceProfilingEvent()
Default constructor for serialization/deserialization.
|
InstanceProfilingEvent(int profilingInterval,
int ioWaitCPU,
int idleCPU,
int userCPU,
int systemCPU,
int hardIrqCPU,
int softIrqCPU,
long totalMemory,
long freeMemory,
long bufferedMemory,
long cachedMemory,
long cachedSwapMemory,
long receivedBytes,
long transmittedBytes,
JobID jobID,
long timestamp,
long profilingTimestamp)
Constructs a new instance profiling event.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
long |
getBufferedMemory()
Returns the amount of memory, in bytes, used for file buffers.
|
long |
getCachedMemory()
Returns the amount of memory, in bytes, used as cache memory.
|
long |
getCachedSwapMemory()
Returns the amount of swap, in bytes, used as cache memory.
|
long |
getFreeMemory()
Returns the amount of free memory of the corresponding instance.
|
int |
getHardIrqCPU()
Returns the percentage of time the CPU(s) spent in state HARD_IRQ during the profiling interval.
|
int |
getIdleCPU()
Returns the percentage of time the CPU(s) spent in state IDLE during the profiling interval.
|
int |
getIOWaitCPU()
Returns the percentage of time the CPU(s) spent in state IOWAIT during the profiling interval.
|
int |
getProfilingInterval()
Returns the interval of time this profiling event covers in milliseconds.
|
long |
getReceivedBytes()
Returns the number of bytes received via network during the profiling interval.
|
int |
getSoftIrqCPU()
Returns the percentage of time the CPU(s) spent in state SOFT_IRQ during the profiling interval.
|
int |
getSystemCPU()
Returns the percentage of time the CPU(s) spent in state SYSTEM during the profiling interval.
|
long |
getTotalMemory()
Returns the total amount of memory of the corresponding instance.
|
long |
getTransmittedBytes()
Returns the number of bytes transmitted via network during the profiling interval.
|
int |
getUserCPU()
Returns the percentage of time the CPU(s) spent in state USER during the profiling interval.
|
int |
hashCode() |
void |
read(DataInputView in) |
void |
write(DataOutputView out) |
getJobID, getProfilingTimestampgetSequenceNumber, getTimestamp, timestampToStringpublic InstanceProfilingEvent(int profilingInterval,
int ioWaitCPU,
int idleCPU,
int userCPU,
int systemCPU,
int hardIrqCPU,
int softIrqCPU,
long totalMemory,
long freeMemory,
long bufferedMemory,
long cachedMemory,
long cachedSwapMemory,
long receivedBytes,
long transmittedBytes,
JobID jobID,
long timestamp,
long profilingTimestamp)
profilingInterval - the interval of time this profiling event covers in millisecondsioWaitCPU - the percentage of time the CPU(s) spent in state IOWAIT during the profiling intervalidleCPU - the percentage of time the CPU(s) spent in state IDLE during the profiling intervaluserCPU - the percentage of time the CPU(s) spent in state USER during the profiling intervalsystemCPU - the percentage of time the CPU(s) spent in state SYSTEM during the profiling intervalhardIrqCPU - the percentage of time the CPU(s) spent in state HARD_IRQ during the profiling intervalsoftIrqCPU - the percentage of time the CPU(s) spent in state SOFT_IRQ during the profiling intervaltotalMemory - the total amount of this instance's main memory in bytesfreeMemory - the free amount of this instance's main memory in bytesbufferedMemory - the amount of main memory the instance uses for file bufferscachedMemory - the amount of main memory the instance uses as cache memorycachedSwapMemory - The amount of main memory the instance uses for cached swapsreceivedBytes - the number of bytes received via network during the profiling intervaltransmittedBytes - the number of bytes transmitted via network during the profiling intervaljobID - the ID of this job this profiling event belongs totimestamp - the time stamp of this profiling event's creationprofilingTimestamp - the time stamp relative to the beginning of the job's executionpublic InstanceProfilingEvent()
public final int getProfilingInterval()
public final long getTotalMemory()
public final long getFreeMemory()
public final long getBufferedMemory()
public final long getCachedMemory()
public final long getCachedSwapMemory()
public final int getUserCPU()
public final int getSystemCPU()
public final int getIdleCPU()
public final int getIOWaitCPU()
public final int getHardIrqCPU()
public final int getSoftIrqCPU()
public final long getReceivedBytes()
public final long getTransmittedBytes()
public void read(DataInputView in) throws IOException
read in interface IOReadableWritableread in class ProfilingEventIOExceptionpublic void write(DataOutputView out) throws IOException
write in interface IOReadableWritablewrite in class ProfilingEventIOExceptionpublic boolean equals(Object obj)
equals in class ProfilingEventpublic int hashCode()
hashCode in class ProfilingEventCopyright © 2014 The Apache Software Foundation. All rights reserved.