public class BaseEventStats extends java.lang.Object implements EventStats
Modifier and Type | Field and Description |
---|---|
protected long |
durationMs |
protected java.lang.String |
jvmId |
protected java.lang.String |
machineId |
protected long |
startTime |
protected long |
threadId |
Constructor and Description |
---|
BaseEventStats(long startTime,
long durationMs) |
BaseEventStats(java.lang.String machineId,
java.lang.String jvmId,
long threadId,
long startTime,
long durationMs) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
asString(java.lang.String delimiter)
Get a String representation of the EventStats.
|
long |
getDurationMs() |
java.lang.String |
getJvmID() |
java.lang.String |
getMachineID() |
long |
getStartTime() |
java.lang.String |
getStringHeader(java.lang.String delimiter)
Get a header line for exporting the EventStats object, for use with
EventStats.asString(String) |
long |
getThreadID() |
protected final java.lang.String machineId
protected final java.lang.String jvmId
protected final long threadId
protected final long startTime
protected final long durationMs
public BaseEventStats(long startTime, long durationMs)
public BaseEventStats(java.lang.String machineId, java.lang.String jvmId, long threadId, long startTime, long durationMs)
public java.lang.String getMachineID()
getMachineID
in interface EventStats
public java.lang.String getJvmID()
getJvmID
in interface EventStats
public long getThreadID()
getThreadID
in interface EventStats
public long getStartTime()
getStartTime
in interface EventStats
public long getDurationMs()
getDurationMs
in interface EventStats
public java.lang.String asString(java.lang.String delimiter)
EventStats
asString
in interface EventStats
delimiter
- Delimiter to use for the datapublic java.lang.String getStringHeader(java.lang.String delimiter)
EventStats
EventStats.asString(String)
getStringHeader
in interface EventStats
delimiter
- Delimiter to use for the header