public class MeterData extends SystemData
SystemData with start, stop, failure and path information for an operation measured by Meter.| Modifier and Type | Field and Description |
|---|---|
protected String |
category
Name of the category that the operation being measured belongs to.
|
protected Map<String,String> |
context
Additional meta data describing the job.
|
protected long |
createTime
Timestamp when the operation was created/scheduled (nanoseconds).
|
protected long |
currentIteration
How many iterations were run by the operation.
|
protected String |
description
An arbitrary short, human readable message to describe the operation being measured.
|
static char |
DETAILED_MESSAGE_PREFIX |
static String |
EVENT_CATEGORY |
static String |
EVENT_NAME |
static String |
EVENT_PARENT |
protected long |
expectedIterations
How many iterations were expected by the operation.
|
protected String |
failMessage
For failed execution, an optional message that caused the failure.
|
protected String |
failPath
For failed execution, the string that identifies the failure caused.
|
protected String |
okPath
For successful execution, the string that identifies the execution path.
|
protected String |
operation
Name of the operation.
|
protected String |
parent
If the Meter was created as a child for another Meter, references category name, operation name and position of these other Meter.
|
static String |
PROP_CONTEXT |
static String |
PROP_CREATE_TIME |
static String |
PROP_DESCRIPTION |
static String |
PROP_EXPECTED_ITERATION |
static String |
PROP_FAIL_ID |
static String |
PROP_ITERATION |
static String |
PROP_LIMIT_TIME |
static String |
PROP_PATH_ID |
static String |
PROP_REJECT_ID |
static String |
PROP_START_TIME |
static String |
PROP_STOP_TIME |
protected String |
rejectPath
For rejected execution, the string that identifies the rejection cause.
|
protected long |
startTime
Timestamp when the operation started execution (nanoseconds).
|
protected long |
stopTime
Timestamp when the operation finished execution (either success, rejection or failure) (nanoseconds).
|
protected long |
timeLimit
Time limit considered reasonable for successful execution of the operation (nanoseconds).
|
classLoading_loaded, classLoading_total, classLoading_unloaded, compilationTime, garbageCollector_count, garbageCollector_time, heap_commited, heap_max, heap_used, nonHeap_commited, nonHeap_max, nonHeap_used, objectPendingFinalizationCount, PROP_CLASS_LOADING, PROP_COMPILATION_TIME, PROP_FINALIZATION_COUNT, PROP_GARBAGE_COLLECTOR, PROP_HEAP, PROP_MEMORY, PROP_NON_HEAP, PROP_SYSTEM_LOAD, runtime_maxMemory, runtime_totalMemory, runtime_usedMemory, systemLoadEVENT_POSITION, EVENT_TIME, position, SESSION_UUID, sessionUuid, time| Modifier | Constructor and Description |
|---|---|
|
MeterData() |
|
MeterData(String uuid) |
|
MeterData(String sessionUuid,
long position,
long time,
long heap_commited,
long heap_max,
long heap_used,
long nonHeap_commited,
long nonHeap_max,
long nonHeap_used,
long objectPendingFinalizationCount,
long classLoading_loaded,
long classLoading_total,
long classLoading_unloaded,
long compilationTime,
long garbageCollector_count,
long garbageCollector_time,
long runtime_usedMemory,
long runtime_maxMemory,
long runtime_totalMemory,
double systemLoad,
String category,
String operation,
String parent,
String description,
long createTime,
long startTime,
long stopTime,
long timeLimit,
long currentIteration,
long expectedIterations,
String okPath,
String rejectPath,
String failPath,
String failMessage,
Map<String,String> context) |
protected |
MeterData(String uuid,
long position,
String category,
String operation,
String parent) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
collectRuntimeStatus() |
boolean |
equals(Object o) |
Map<String,String> |
getContext() |
long |
getExecutionTime() |
String |
getFullID() |
double |
getIterationsPerSecond() |
String |
getPath() |
long |
getWaitingTime() |
int |
hashCode() |
boolean |
isFail() |
boolean |
isOK() |
boolean |
isReject() |
boolean |
isSlow() |
boolean |
isStarted() |
boolean |
isStopped() |
StringBuilder |
readableStringBuilder(StringBuilder builder)
Writes a concise, human readable string representation of the event into
the supplied StringBuilder.
|
protected void |
resetImpl()
Subclasses shall provide an implementation that resets its specific
properties to their constructor initial value.
|
void |
writeJson5Impl(StringBuilder sb) |
collectManagedBeanStatus, collectPlatformStatus, readJson5encodedMessage, json5Message, readableMessage, reset, writeJson5public static final char DETAILED_MESSAGE_PREFIX
protected String category
protected String operation
protected String parent
protected String description
protected long createTime
protected long startTime
protected long stopTime
protected long timeLimit
protected long currentIteration
protected long expectedIterations
protected String okPath
rejectPath and failPath. Set only when
operation finishes with success and a path was given.protected String rejectPath
protected String failPath
okPath and rejectPath. Set only when operation finishes with failure.protected String failMessage
failPath.public static final String PROP_DESCRIPTION
public static final String PROP_PATH_ID
public static final String PROP_REJECT_ID
public static final String PROP_FAIL_ID
public static final String PROP_CREATE_TIME
public static final String PROP_START_TIME
public static final String PROP_STOP_TIME
public static final String PROP_ITERATION
public static final String PROP_EXPECTED_ITERATION
public static final String PROP_LIMIT_TIME
public static final String PROP_CONTEXT
public static final String EVENT_CATEGORY
public static final String EVENT_NAME
public static final String EVENT_PARENT
public MeterData()
public MeterData(String uuid)
protected MeterData(String uuid, long position, String category, String operation, String parent)
public MeterData(String sessionUuid, long position, long time, long heap_commited, long heap_max, long heap_used, long nonHeap_commited, long nonHeap_max, long nonHeap_used, long objectPendingFinalizationCount, long classLoading_loaded, long classLoading_total, long classLoading_unloaded, long compilationTime, long garbageCollector_count, long garbageCollector_time, long runtime_usedMemory, long runtime_maxMemory, long runtime_totalMemory, double systemLoad, String category, String operation, String parent, String description, long createTime, long startTime, long stopTime, long timeLimit, long currentIteration, long expectedIterations, String okPath, String rejectPath, String failPath, String failMessage, Map<String,String> context)
public String getFullID()
public boolean isStarted()
public boolean isStopped()
public boolean isOK()
public boolean isReject()
public boolean isFail()
public boolean isSlow()
public String getPath()
public long getExecutionTime()
public long getWaitingTime()
public double getIterationsPerSecond()
protected void resetImpl()
EventDataresetImpl in class SystemDataprotected void collectRuntimeStatus()
collectRuntimeStatus in class SystemDatapublic StringBuilder readableStringBuilder(StringBuilder builder)
EventDatareadableStringBuilder in class EventDatabuilder - The StringBuilder that receives the string representationpublic void writeJson5Impl(StringBuilder sb)
writeJson5Impl in class SystemDataCopyright © 2010–2025. All rights reserved.