public class MeterData extends SystemData
SystemData
with start, stop, failure and flow information measured by Meter.Modifier and Type | Field and Description |
---|---|
protected java.util.Map<java.lang.String,java.lang.String> |
context
Additional meta data describing the job.
|
protected long |
createTime
When the job was created/scheduled.
|
protected java.lang.String |
description
An arbitrary short, human readable message to describe the task being measured.
|
static char |
DETAILED_MESSAGE_PREFIX |
protected long |
expectedIterations
How many iteration were expected by the operation.
|
protected java.lang.String |
failClass
For failure result, the exception class that caused the failure.
|
protected java.lang.String |
failMessage
For failure result, the exception message that caused the failure.
|
protected long |
iteration
How many iterations were run by the operation.
|
protected java.lang.String |
pathId
For successful execution, the string token that identifies the execution pathId.
|
protected static java.lang.String |
PROP_CONTEXT |
protected static java.lang.String |
PROP_CREATE_TIME |
protected static java.lang.String |
PROP_DESCRIPTION |
protected static java.lang.String |
PROP_EXPECTED_ITERATION |
protected static java.lang.String |
PROP_FAIL_ID |
protected static java.lang.String |
PROP_ITERATION |
protected static java.lang.String |
PROP_LIMIT_TIME |
protected static java.lang.String |
PROP_PATH_ID |
protected static java.lang.String |
PROP_REJECT_ID |
protected static java.lang.String |
PROP_START_TIME |
protected static java.lang.String |
PROP_STOP_TIME |
protected static java.lang.String |
PROP_THREAD |
protected java.lang.String |
rejectId
For rejected execution, the string token that identifies the rejection cause.
|
protected long |
startTime
When the job started execution.
|
protected long |
stopTime
When the job finished execution.
|
protected long |
timeLimitNanoseconds
Time considered reasonable for successful execution.
|
classLoading_loaded, classLoading_total, classLoading_unloaded, compilationTime, garbageCollector_count, garbageCollector_time, heap_commited, heap_max, heap_used, nonHeap_commited, nonHeap_max, nonHeap_used, objectPendingFinalizationCount, runtime_maxMemory, runtime_totalMemory, runtime_usedMemory, systemLoad
EVENT_CATEGORY, EVENT_NAME, EVENT_POSITION, eventCategory, eventName, eventPosition, SESSION_UUID, sessionUuid, time
Constructor and Description |
---|
MeterData() |
Modifier and Type | Method and Description |
---|---|
java.util.Map<java.lang.String,java.lang.String> |
getContext() |
long |
getCreateTime() |
long |
getCurrentIteration() |
java.lang.String |
getDescription() |
java.lang.String |
getExceptionClass() |
java.lang.String |
getExceptionMessage() |
long |
getExecutionTime() |
long |
getExpectedIterations() |
double |
getIterationsPerSecond() |
java.lang.String |
getPathId() |
java.lang.String |
getRejectId() |
long |
getStartTime() |
long |
getStopTime() |
long |
getTimeLimitNanoseconds() |
long |
getWaitingTime() |
protected boolean |
isCompletelyEqualsImpl(EventData obj)
Subclasses shall provide an implementation that compares its specific
properties to the respective properties of the other instance given as
argument.
|
boolean |
isFail() |
boolean |
isOK() |
boolean |
isReject() |
boolean |
isSlow() |
boolean |
isStarted() |
boolean |
isStopped() |
boolean |
read(java.lang.String message) |
java.lang.StringBuilder |
readableString(java.lang.StringBuilder buffer)
Writes a concise, human readable string representation of the event into
the supplied StringBuilder.
|
java.lang.String |
readableWrite() |
protected boolean |
readPropertyImpl(EventReader r,
java.lang.String propertyName)
Subclasses shall provide an implementation that reads its specific
properties from the encoded string representation.
|
protected void |
resetImpl()
Subclasses shall provide an implementation that resets its specific
properties to their constructor initial value.
|
java.lang.String |
write() |
void |
writePropertiesImpl(EventWriter w)
Subclasses shall provide an implementation that appends its specific
properties to the encoded string representation.
|
collectManagedBeanStatus, collectPlatformStatus, collectRuntimeStatus
equals, getEventCategory, getEventName, getEventPosition, getFullID, getSessionUuid, getTime, hashCode, isCompletelyEqualsTo, isSameAs, read, reset, toString, write
public static final char DETAILED_MESSAGE_PREFIX
protected java.lang.String description
protected java.lang.String pathId
protected java.lang.String rejectId
protected long createTime
protected long startTime
protected long stopTime
protected long iteration
protected long expectedIterations
protected java.lang.String failClass
protected java.lang.String failMessage
protected long timeLimitNanoseconds
protected java.util.Map<java.lang.String,java.lang.String> context
protected static final java.lang.String PROP_DESCRIPTION
protected static final java.lang.String PROP_PATH_ID
protected static final java.lang.String PROP_REJECT_ID
protected static final java.lang.String PROP_FAIL_ID
protected static final java.lang.String PROP_CREATE_TIME
protected static final java.lang.String PROP_START_TIME
protected static final java.lang.String PROP_STOP_TIME
protected static final java.lang.String PROP_ITERATION
protected static final java.lang.String PROP_EXPECTED_ITERATION
protected static final java.lang.String PROP_LIMIT_TIME
protected static final java.lang.String PROP_THREAD
protected static final java.lang.String PROP_CONTEXT
public java.lang.String getDescription()
public java.lang.String getPathId()
public java.lang.String getRejectId()
public long getCreateTime()
public long getStartTime()
public long getStopTime()
public long getCurrentIteration()
public long getExpectedIterations()
public java.lang.String getExceptionClass()
public java.lang.String getExceptionMessage()
public boolean isStarted()
public boolean isStopped()
public boolean isOK()
public boolean isReject()
public boolean isFail()
public long getTimeLimitNanoseconds()
public java.util.Map<java.lang.String,java.lang.String> getContext()
protected void resetImpl()
EventData
resetImpl
in class SystemData
protected boolean isCompletelyEqualsImpl(EventData obj)
EventData
isCompletelyEqualsImpl
in class SystemData
obj
- the other EventData instance been compared to.public java.lang.StringBuilder readableString(java.lang.StringBuilder buffer)
EventData
readableString
in class EventData
buffer
- The StringBuilder that receives the string representationpublic boolean isSlow()
public long getExecutionTime()
public long getWaitingTime()
public double getIterationsPerSecond()
public void writePropertiesImpl(EventWriter w)
EventData
writePropertiesImpl
in class SystemData
w
- The EventWriter that encodes the properties.protected boolean readPropertyImpl(EventReader r, java.lang.String propertyName) throws java.io.IOException
EventData
readPropertyImpl
in class SystemData
r
- The EventReader that is parsing the message. Use this parser to
retrieve the property value.propertyName
- The property key.java.io.IOException
- the EventReader failed to parse the encoded property
value.public final boolean read(java.lang.String message)
public final java.lang.String write()
public final java.lang.String readableWrite()