|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.neeve.server.mon.SrvMonSysIndividualThreadStats
@Generated(value="com.neeve.adm.AdmXbufGenerator", date="Wed Mar 28 10:54:31 EDT 2018") @AdmGenerated(encoding="Xbuf", compatLevel="3.8.0", admVersion="nvx-adm v3.7.265 (build 0)", date="3/28/18 10:54 AM", buildInfo="nvx-talon-3.7.265 (nvx-codegen-plugin)") @AdmFactoryInfo(factoryClass=SrvMonFactory.class, vfid=32, ofid=32, typeId=218) public final class SrvMonSysIndividualThreadStats
Holds statistics for an individual thread.
Nested Class Summary | |
---|---|
static class |
SrvMonSysIndividualThreadStats.Field
The SrvMonSysIndividualThreadStats xbuf field (used internally when this entity is used as a field of another entity). |
static class |
SrvMonSysIndividualThreadStats.ListField
The SrvMonSysIndividualThreadStats list field (used internally when this entity is used as an array field of another entity). |
Field Summary | |
---|---|
static SrvMonSysIndividualThreadStats[] |
EMPTY_ARRAY
A preallocated empty array used to avoid garbage when returning empty arrays of this type. |
Constructor Summary | |
---|---|
SrvMonSysIndividualThreadStats()
|
|
SrvMonSysIndividualThreadStats(int initialBackingBufferSize)
|
Method Summary | ||
---|---|---|
SrvMonSysIndividualThreadStats |
acquire()
|
|
void |
clearAffinity()
Clears the value of 'affinity' Field Description Affinitization details for the thread (if affinitized). |
|
void |
clearCollectTime()
Clears the value of 'collectTime' Field Description The time in nanoseconds just after cpu times were collected. |
|
void |
clearContent()
|
|
void |
clearCpuTime()
Clears the value of 'cpuTime' Field Description The cpu time used by the thread (in nanoseconds). |
|
void |
clearId()
Clears the value of 'id' Field Description The thread's id. |
|
void |
clearName()
Clears the value of 'name' Field Description The thread's name. |
|
void |
clearState()
Clears the value of 'state' Field Description The thread's state at the time of the heartbeat. |
|
void |
clearUsrTime()
Clears the value of 'usrTime' Field Description The cpu time user time used by the thread (in nanoseconds). |
|
void |
clearWaitCount()
Clears the value of 'waitCount' Field Description The times the thread was recorded as waiting Certain platform threads track time spent waiting for events to occur such as I/O spin loops or disruptor wait calls that don't reflect actual work being done. |
|
void |
clearWaitTime()
Clears the value of 'waitTime' Field Description The time in nanoseconds spent waiting for events Certain platform threads track time spent waiting for events to occur such as I/O spin loops or disruptor wait calls that don't reflect actual work being done. |
|
void |
clearXRogType()
|
|
Object |
clone()
Creates a clone of this object. |
|
SrvMonSysIndividualThreadStats |
copy()
Creates a copy of this SrvMonSysIndividualThreadStats. |
|
void |
copyInto(SrvMonSysIndividualThreadStats copy)
Copies the contents of this SrvMonSysIndividualThreadStats into the target. |
|
static SrvMonSysIndividualThreadStats |
create()
|
|
static SrvMonSysIndividualThreadStats |
createFrom(byte[] serializedContainer)
|
|
static SrvMonSysIndividualThreadStats |
createFrom(byte[] serializedContainer,
com.neeve.xbuf.XbufDesyncPolicy desyncPolicy)
|
|
static SrvMonSysIndividualThreadStats |
createFromSerializedXbufContainer(byte[] serializedContainer)
|
|
static SrvMonSysIndividualThreadStats |
createFromSerializedXbufContainer(byte[] serializedContainer,
com.neeve.xbuf.XbufDesyncPolicy desyncPolicy)
|
|
static com.neeve.xbuf.XbufSchema |
createSchema()
|
|
SrvMonSysIndividualThreadStats |
deserializeFromByteArray(byte[] array)
|
|
SrvMonSysIndividualThreadStats |
deserializeFromByteArray(byte[] array,
com.neeve.xbuf.XbufDesyncPolicy desyncPolicy)
|
|
SrvMonSysIndividualThreadStats |
deserializeFromByteBuffer(ByteBuffer buffer)
|
|
SrvMonSysIndividualThreadStats |
deserializeFromByteBuffer(ByteBuffer buffer,
com.neeve.xbuf.XbufDesyncPolicy desyncPolicy)
|
|
SrvMonSysIndividualThreadStats |
deserializeFromIOElasticBuffer(com.neeve.io.IOElasticBuffer buffer,
int offset,
int length)
|
|
SrvMonSysIndividualThreadStats |
deserializeFromIOElasticBuffer(com.neeve.io.IOElasticBuffer buffer,
int offset,
int length,
com.neeve.xbuf.XbufDesyncPolicy desyncPolicy)
|
|
SrvMonSysIndividualThreadStats |
deserializeFromNative(long address,
int offset,
int length)
|
|
SrvMonSysIndividualThreadStats |
deserializeFromNative(long address,
int offset,
int length,
com.neeve.xbuf.XbufDesyncPolicy desyncPolicy)
|
|
int |
desync(PktBuffer buffer,
int pos,
boolean frameOnly)
|
|
void |
desyncFieldBitmask()
|
|
void |
dispose()
|
|
String |
getAffinity()
Gets the value of 'affinity' Field Description Affinitization details for the thread (if affinitized). |
|
com.neeve.xbuf.XbufStringField |
getAffinityField()
|
|
static int |
getAffinityFieldId()
Get the field id for 'affinity' This method can be used to set field interests. |
|
|
getAffinityTo(XString.Factory<T> factory)
Copies the value of this String field into a new XString from the given factory. |
|
void |
getAffinityTo(XString val)
Copies the value of 'affinity' into the provided XString. |
|
XString |
getAffinityUnsafe()
Gets the raw value of 'affinity'. |
|
PktBuffer |
getBackingBuffer()
|
|
long |
getCollectTime()
Gets the value of 'collectTime' Field Description The time in nanoseconds just after cpu times were collected. |
|
com.neeve.xbuf.XbufVariableLongField |
getCollectTimeField()
|
|
static int |
getCollectTimeFieldId()
Get the field id for 'collectTime' This method can be used to set field interests. |
|
long |
getCpuTime()
Gets the value of 'cpuTime' Field Description The cpu time used by the thread (in nanoseconds). |
|
com.neeve.xbuf.XbufVariableLongField |
getCpuTimeField()
|
|
static int |
getCpuTimeFieldId()
Get the field id for 'cpuTime' This method can be used to set field interests. |
|
static com.neeve.xbuf.XbufDesyncPolicy |
getDesyncPolicy()
|
|
long |
getId()
Gets the value of 'id' Field Description The thread's id. |
|
com.neeve.xbuf.XbufVariableLongField |
getIdField()
|
|
static int |
getIdFieldId()
Get the field id for 'id' This method can be used to set field interests. |
|
boolean |
getIsReadOnly()
|
|
String |
getName()
Gets the value of 'name' Field Description The thread's name. |
|
com.neeve.xbuf.XbufStringField |
getNameField()
|
|
static int |
getNameFieldId()
Get the field id for 'name' This method can be used to set field interests. |
|
|
getNameTo(XString.Factory<T> factory)
Copies the value of this String field into a new XString from the given factory. |
|
void |
getNameTo(XString val)
Copies the value of 'name' into the provided XString. |
|
XString |
getNameUnsafe()
Gets the raw value of 'name'. |
|
int |
getOwnerCount()
|
|
UtlPool<SrvMonSysIndividualThreadStats> |
getPool()
Get a pool item's pool. |
|
int |
getSerializeToNativeLength()
|
|
String |
getState()
Gets the value of 'state' Field Description The thread's state at the time of the heartbeat. |
|
com.neeve.xbuf.XbufStringField |
getStateField()
|
|
static int |
getStateFieldId()
Get the field id for 'state' This method can be used to set field interests. |
|
|
getStateTo(XString.Factory<T> factory)
Copies the value of this String field into a new XString from the given factory. |
|
void |
getStateTo(XString val)
Copies the value of 'state' into the provided XString. |
|
XString |
getStateUnsafe()
Gets the raw value of 'state'. |
|
long |
getUsrTime()
Gets the value of 'usrTime' Field Description The cpu time user time used by the thread (in nanoseconds). |
|
com.neeve.xbuf.XbufVariableLongField |
getUsrTimeField()
|
|
static int |
getUsrTimeFieldId()
Get the field id for 'usrTime' This method can be used to set field interests. |
|
void |
getValidationErrors(List<XString> results,
String errorPrefix)
Collects validation errors into the provided list. |
|
long |
getWaitCount()
Gets the value of 'waitCount' Field Description The times the thread was recorded as waiting Certain platform threads track time spent waiting for events to occur such as I/O spin loops or disruptor wait calls that don't reflect actual work being done. |
|
com.neeve.xbuf.XbufVariableLongField |
getWaitCountField()
|
|
static int |
getWaitCountFieldId()
Get the field id for 'waitCount' This method can be used to set field interests. |
|
long |
getWaitTime()
Gets the value of 'waitTime' Field Description The time in nanoseconds spent waiting for events Certain platform threads track time spent waiting for events to occur such as I/O spin loops or disruptor wait calls that don't reflect actual work being done. |
|
com.neeve.xbuf.XbufVariableLongField |
getWaitTimeField()
|
|
static int |
getWaitTimeFieldId()
Get the field id for 'waitTime' This method can be used to set field interests. |
|
short |
getXRogType()
|
|
com.neeve.xbuf.XbufVariableShortField |
getXRogTypeField()
|
|
static int |
getXRogTypeFieldId()
Get the field id for 'xRogType' This method can be used to set field interests. |
|
boolean |
hasAffinity()
Checks for the presence of 'affinity' Field Description Affinitization details for the thread (if affinitized). |
|
boolean |
hasCollectTime()
Checks for the presence of 'collectTime' Field Description The time in nanoseconds just after cpu times were collected. |
|
boolean |
hasCpuTime()
Checks for the presence of 'cpuTime' Field Description The cpu time used by the thread (in nanoseconds). |
|
boolean |
hasId()
Checks for the presence of 'id' Field Description The thread's id. |
|
boolean |
hasName()
Checks for the presence of 'name' Field Description The thread's name. |
|
boolean |
hasState()
Checks for the presence of 'state' Field Description The thread's state at the time of the heartbeat. |
|
boolean |
hasUsrTime()
Checks for the presence of 'usrTime' Field Description The cpu time user time used by the thread (in nanoseconds). |
|
boolean |
hasWaitCount()
Checks for the presence of 'waitCount' Field Description The times the thread was recorded as waiting Certain platform threads track time spent waiting for events to occur such as I/O spin loops or disruptor wait calls that don't reflect actual work being done. |
|
boolean |
hasWaitTime()
Checks for the presence of 'waitTime' Field Description The time in nanoseconds spent waiting for events Certain platform threads track time spent waiting for events to occur such as I/O spin loops or disruptor wait calls that don't reflect actual work being done. |
|
boolean |
hasXRogType()
|
|
SrvMonSysIndividualThreadStats |
init()
Initialize an item. |
|
boolean |
isBufferBacked()
|
|
boolean |
isDirty()
|
|
boolean |
isReferenceCounted()
|
|
boolean |
isValid()
Tests if this object has any validation errors. |
|
void |
lendAffinity(XString val)
Sets the value of 'affinity' Field Description Affinitization details for the thread (if affinitized). |
|
void |
lendName(XString val)
Sets the value of 'name' Field Description The thread's name. |
|
void |
lendState(XString val)
Sets the value of 'state' Field Description The thread's state at the time of the heartbeat. |
|
static void |
optimizeFor(int val)
|
|
byte[] |
serializeToByteArray()
|
|
ByteBuffer |
serializeToByteBuffer()
|
|
com.neeve.io.IOBuffer |
serializeToIOBuffer(boolean useNative)
|
|
int |
serializeToNative(long address,
int addressOffset)
|
|
void |
setAffinity(String val)
Sets the value of 'affinity' Field Description Affinitization details for the thread (if affinitized). |
|
void |
setAffinityFrom(long val)
Sets the value of this String field to the given numeric value. |
|
void |
setAffinityFrom(com.neeve.xbuf.XbufStringField val)
|
|
void |
setAffinityFrom(XString val)
Copies the provided XString value into this object's 'affinity'. |
|
void |
setAsReadOnly()
|
|
void |
setCollectTime(long val)
Sets the value of 'collectTime' Field Description The time in nanoseconds just after cpu times were collected. |
|
void |
setCollectTimeFrom(com.neeve.xbuf.XbufVariableLongField val)
|
|
void |
setCpuTime(long val)
Sets the value of 'cpuTime' Field Description The cpu time used by the thread (in nanoseconds). |
|
void |
setCpuTimeFrom(com.neeve.xbuf.XbufVariableLongField val)
|
|
static void |
setDesyncPolicy(com.neeve.xbuf.XbufDesyncPolicy val)
|
|
static void |
setFieldInterest(List<Integer> fieldIds)
|
|
void |
setId(long val)
Sets the value of 'id' Field Description The thread's id. |
|
void |
setIdFrom(com.neeve.xbuf.XbufVariableLongField val)
|
|
void |
setName(String val)
Sets the value of 'name' Field Description The thread's name. |
|
void |
setNameFrom(long val)
Sets the value of this String field to the given numeric value. |
|
void |
setNameFrom(com.neeve.xbuf.XbufStringField val)
|
|
void |
setNameFrom(XString val)
Copies the provided XString value into this object's 'name'. |
|
SrvMonSysIndividualThreadStats |
setPool(UtlPool<SrvMonSysIndividualThreadStats> pool)
Set a pool item's pool. |
|
void |
setState(String val)
Sets the value of 'state' Field Description The thread's state at the time of the heartbeat. |
|
void |
setStateFrom(long val)
Sets the value of this String field to the given numeric value. |
|
void |
setStateFrom(com.neeve.xbuf.XbufStringField val)
|
|
void |
setStateFrom(XString val)
Copies the provided XString value into this object's 'state'. |
|
void |
setUsrTime(long val)
Sets the value of 'usrTime' Field Description The cpu time user time used by the thread (in nanoseconds). |
|
void |
setUsrTimeFrom(com.neeve.xbuf.XbufVariableLongField val)
|
|
void |
setWaitCount(long val)
Sets the value of 'waitCount' Field Description The times the thread was recorded as waiting Certain platform threads track time spent waiting for events to occur such as I/O spin loops or disruptor wait calls that don't reflect actual work being done. |
|
void |
setWaitCountFrom(com.neeve.xbuf.XbufVariableLongField val)
|
|
void |
setWaitTime(long val)
Sets the value of 'waitTime' Field Description The time in nanoseconds spent waiting for events Certain platform threads track time spent waiting for events to occur such as I/O spin loops or disruptor wait calls that don't reflect actual work being done. |
|
void |
setWaitTimeFrom(com.neeve.xbuf.XbufVariableLongField val)
|
|
void |
setXRogType(short val)
|
|
void |
setXRogTypeFrom(com.neeve.xbuf.XbufVariableShortField val)
|
|
void |
sync()
|
|
void |
syncFieldBitmask()
|
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final SrvMonSysIndividualThreadStats[] EMPTY_ARRAY
Constructor Detail |
---|
public SrvMonSysIndividualThreadStats()
public SrvMonSysIndividualThreadStats(int initialBackingBufferSize)
Method Detail |
---|
public static SrvMonSysIndividualThreadStats create()
public static SrvMonSysIndividualThreadStats createFromSerializedXbufContainer(byte[] serializedContainer, com.neeve.xbuf.XbufDesyncPolicy desyncPolicy)
public static SrvMonSysIndividualThreadStats createFromSerializedXbufContainer(byte[] serializedContainer)
public static SrvMonSysIndividualThreadStats createFrom(byte[] serializedContainer, com.neeve.xbuf.XbufDesyncPolicy desyncPolicy)
public static SrvMonSysIndividualThreadStats createFrom(byte[] serializedContainer)
public static final void setDesyncPolicy(com.neeve.xbuf.XbufDesyncPolicy val)
public static final com.neeve.xbuf.XbufDesyncPolicy getDesyncPolicy()
public static final void setFieldInterest(List<Integer> fieldIds)
public final void clearContent()
public final void syncFieldBitmask()
public final void desyncFieldBitmask()
public final PktBuffer getBackingBuffer()
public static final void optimizeFor(int val)
public final void setAsReadOnly()
public final boolean getIsReadOnly()
public static final int getXRogTypeFieldId()
This method can be used to set field interests.
getXRogType()
public final void setXRogType(short val)
public final short getXRogType()
public final void setXRogTypeFrom(com.neeve.xbuf.XbufVariableShortField val)
public final com.neeve.xbuf.XbufVariableShortField getXRogTypeField()
public final boolean hasXRogType()
public final void clearXRogType()
public static final int getIdFieldId()
This method can be used to set field interests.
getId()
public final void setId(long val)
ISrvMonSysIndividualThreadStats
setId
in interface ISrvMonSysIndividualThreadStats
val
- The value to set.public final long getId()
ISrvMonSysIndividualThreadStats
getId
in interface ISrvMonSysIndividualThreadStats
public final void setIdFrom(com.neeve.xbuf.XbufVariableLongField val)
public final com.neeve.xbuf.XbufVariableLongField getIdField()
public final boolean hasId()
ISrvMonSysIndividualThreadStats
hasId
in interface ISrvMonSysIndividualThreadStats
ISrvMonSysIndividualThreadStats.getId()
public final void clearId()
ISrvMonSysIndividualThreadStats
clearId
in interface ISrvMonSysIndividualThreadStats
ISrvMonSysIndividualThreadStats.setId(long)
public static final int getCpuTimeFieldId()
This method can be used to set field interests.
getCpuTime()
public final void setCpuTime(long val)
ISrvMonSysIndividualThreadStats
setCpuTime
in interface ISrvMonSysIndividualThreadStats
val
- The value to set.public final long getCpuTime()
ISrvMonSysIndividualThreadStats
getCpuTime
in interface ISrvMonSysIndividualThreadStats
public final void setCpuTimeFrom(com.neeve.xbuf.XbufVariableLongField val)
public final com.neeve.xbuf.XbufVariableLongField getCpuTimeField()
public final boolean hasCpuTime()
ISrvMonSysIndividualThreadStats
hasCpuTime
in interface ISrvMonSysIndividualThreadStats
ISrvMonSysIndividualThreadStats.getCpuTime()
public final void clearCpuTime()
ISrvMonSysIndividualThreadStats
clearCpuTime
in interface ISrvMonSysIndividualThreadStats
ISrvMonSysIndividualThreadStats.setCpuTime(long)
public static final int getUsrTimeFieldId()
This method can be used to set field interests.
getUsrTime()
public final void setUsrTime(long val)
ISrvMonSysIndividualThreadStats
setUsrTime
in interface ISrvMonSysIndividualThreadStats
val
- The value to set.public final long getUsrTime()
ISrvMonSysIndividualThreadStats
getUsrTime
in interface ISrvMonSysIndividualThreadStats
public final void setUsrTimeFrom(com.neeve.xbuf.XbufVariableLongField val)
public final com.neeve.xbuf.XbufVariableLongField getUsrTimeField()
public final boolean hasUsrTime()
ISrvMonSysIndividualThreadStats
hasUsrTime
in interface ISrvMonSysIndividualThreadStats
ISrvMonSysIndividualThreadStats.getUsrTime()
public final void clearUsrTime()
ISrvMonSysIndividualThreadStats
clearUsrTime
in interface ISrvMonSysIndividualThreadStats
ISrvMonSysIndividualThreadStats.setUsrTime(long)
public static final int getCollectTimeFieldId()
This method can be used to set field interests.
getCollectTime()
public final void setCollectTime(long val)
ISrvMonSysIndividualThreadStats
The collect time can be used to determine the elapsed time between 2 samples for the thread to determine the amount of time that the thread was active.
setCollectTime
in interface ISrvMonSysIndividualThreadStats
val
- The value to set.public final long getCollectTime()
ISrvMonSysIndividualThreadStats
The collect time can be used to determine the elapsed time between 2 samples for the thread to determine the amount of time that the thread was active.
getCollectTime
in interface ISrvMonSysIndividualThreadStats
public final void setCollectTimeFrom(com.neeve.xbuf.XbufVariableLongField val)
public final com.neeve.xbuf.XbufVariableLongField getCollectTimeField()
public final boolean hasCollectTime()
ISrvMonSysIndividualThreadStats
The collect time can be used to determine the elapsed time between 2 samples for the thread to determine the amount of time that the thread was active.
hasCollectTime
in interface ISrvMonSysIndividualThreadStats
ISrvMonSysIndividualThreadStats.getCollectTime()
public final void clearCollectTime()
ISrvMonSysIndividualThreadStats
The collect time can be used to determine the elapsed time between 2 samples for the thread to determine the amount of time that the thread was active.
clearCollectTime
in interface ISrvMonSysIndividualThreadStats
ISrvMonSysIndividualThreadStats.setCollectTime(long)
public static final int getWaitTimeFieldId()
This method can be used to set field interests.
getWaitTime()
public final void setWaitTime(long val)
ISrvMonSysIndividualThreadStats
Certain platform threads track time spent waiting for events to occur such as I/O spin loops or disruptor wait calls that don't reflect actual work being done. Especially for threads that wait using busy spinning, the counter can be used to determine the amount of cpu time that was not used for active processing.
Note that this stat only reflects the time spent upon exiting a wait condition. If the thread is still in a waiting state at the time this statistic is collected that time will not be reflected.
setWaitTime
in interface ISrvMonSysIndividualThreadStats
val
- The value to set.public final long getWaitTime()
ISrvMonSysIndividualThreadStats
Certain platform threads track time spent waiting for events to occur such as I/O spin loops or disruptor wait calls that don't reflect actual work being done. Especially for threads that wait using busy spinning, the counter can be used to determine the amount of cpu time that was not used for active processing.
Note that this stat only reflects the time spent upon exiting a wait condition. If the thread is still in a waiting state at the time this statistic is collected that time will not be reflected.
getWaitTime
in interface ISrvMonSysIndividualThreadStats
public final void setWaitTimeFrom(com.neeve.xbuf.XbufVariableLongField val)
public final com.neeve.xbuf.XbufVariableLongField getWaitTimeField()
public final boolean hasWaitTime()
ISrvMonSysIndividualThreadStats
Certain platform threads track time spent waiting for events to occur such as I/O spin loops or disruptor wait calls that don't reflect actual work being done. Especially for threads that wait using busy spinning, the counter can be used to determine the amount of cpu time that was not used for active processing.
Note that this stat only reflects the time spent upon exiting a wait condition. If the thread is still in a waiting state at the time this statistic is collected that time will not be reflected.
hasWaitTime
in interface ISrvMonSysIndividualThreadStats
ISrvMonSysIndividualThreadStats.getWaitTime()
public final void clearWaitTime()
ISrvMonSysIndividualThreadStats
Certain platform threads track time spent waiting for events to occur such as I/O spin loops or disruptor wait calls that don't reflect actual work being done. Especially for threads that wait using busy spinning, the counter can be used to determine the amount of cpu time that was not used for active processing.
Note that this stat only reflects the time spent upon exiting a wait condition. If the thread is still in a waiting state at the time this statistic is collected that time will not be reflected.
clearWaitTime
in interface ISrvMonSysIndividualThreadStats
ISrvMonSysIndividualThreadStats.setWaitTime(long)
public static final int getWaitCountFieldId()
This method can be used to set field interests.
getWaitCount()
public final void setWaitCount(long val)
ISrvMonSysIndividualThreadStats
Certain platform threads track time spent waiting for events to occur such as I/O spin loops or disruptor wait calls that don't reflect actual work being done. This counter records the number of times the thread entered a waiting state.
setWaitCount
in interface ISrvMonSysIndividualThreadStats
val
- The value to set.public final long getWaitCount()
ISrvMonSysIndividualThreadStats
Certain platform threads track time spent waiting for events to occur such as I/O spin loops or disruptor wait calls that don't reflect actual work being done. This counter records the number of times the thread entered a waiting state.
getWaitCount
in interface ISrvMonSysIndividualThreadStats
public final void setWaitCountFrom(com.neeve.xbuf.XbufVariableLongField val)
public final com.neeve.xbuf.XbufVariableLongField getWaitCountField()
public final boolean hasWaitCount()
ISrvMonSysIndividualThreadStats
Certain platform threads track time spent waiting for events to occur such as I/O spin loops or disruptor wait calls that don't reflect actual work being done. This counter records the number of times the thread entered a waiting state.
hasWaitCount
in interface ISrvMonSysIndividualThreadStats
ISrvMonSysIndividualThreadStats.getWaitCount()
public final void clearWaitCount()
ISrvMonSysIndividualThreadStats
Certain platform threads track time spent waiting for events to occur such as I/O spin loops or disruptor wait calls that don't reflect actual work being done. This counter records the number of times the thread entered a waiting state.
clearWaitCount
in interface ISrvMonSysIndividualThreadStats
ISrvMonSysIndividualThreadStats.setWaitCount(long)
public static final int getNameFieldId()
This method can be used to set field interests.
getName()
public final void setName(String val)
ISrvMonSysIndividualThreadStats
For performance reasons the thread name may be cached by the server so it is not always guaranteed that the returned value will reflect the most recent thread name if its name has been changed.
setName
in interface ISrvMonSysIndividualThreadStats
val
- The value to set.public final String getName()
ISrvMonSysIndividualThreadStats
For performance reasons the thread name may be cached by the server so it is not always guaranteed that the returned value will reflect the most recent thread name if its name has been changed.
getName
in interface ISrvMonSysIndividualThreadStats
public final void lendName(XString val)
ISrvMonSysIndividualThreadStats
For performance reasons the thread name may be cached by the server so it is not always guaranteed that the returned value will reflect the most recent thread name if its name has been changed.
lendName
in interface ISrvMonSysIndividualThreadStats
val
- The value to set.public final void setNameFrom(long val)
ISrvMonSysIndividualThreadStats
For performance reasons the thread name may be cached by the server so it is not always guaranteed that the returned value will reflect the most recent thread name if its name has been changed.
NOTE:
This is the same as calling ISrvMonSysIndividualThreadStats.setName(String)
.
with Long.valueOf(val).toString(), except that using this method is a zero garbage
operation for Xbuf encoding.
setNameFrom
in interface ISrvMonSysIndividualThreadStats
public final <T extends XString> T getNameTo(XString.Factory<T> factory)
ISrvMonSysIndividualThreadStats
For performance reasons the thread name may be cached by the server so it is not always guaranteed that the returned value will reflect the most recent thread name if its name has been changed.
If the value of this field is not null
this method creates an XString from
the provided Factory, copies this field's value into the type, and returns the new
XString.);
This is a zero garbage operation if the provided factory is backed by a pool and the pool; has available instances;
getNameTo
in interface ISrvMonSysIndividualThreadStats
factory
- The factory from which to get the XString to copy into and return
null
.public final void setNameFrom(XString val)
ISrvMonSysIndividualThreadStats
For performance reasons the thread name may be cached by the server so it is not always guaranteed that the returned value will reflect the most recent thread name if its name has been changed.
NOTE:
This is a Zero Garbage operation for XBuf encoded objects. Additionally, this setter
can be more efficient than ISrvMonSysIndividualThreadStats.setName(String)
because it avoids encoding the value into a String
if the given XString
is already encoded.
setNameFrom
in interface ISrvMonSysIndividualThreadStats
public final void getNameTo(XString val)
ISrvMonSysIndividualThreadStats
For performance reasons the thread name may be cached by the server so it is not always guaranteed that the returned value will reflect the most recent thread name if its name has been changed.
NOTE:
This is a Zero Garbage operation for XBuf encoded objects. Additionally, this getter
can be more efficient than ISrvMonSysIndividualThreadStats.getName()
bec
because it can avoid decoding the value into an String
.
getNameTo
in interface ISrvMonSysIndividualThreadStats
ISrvMonSysIndividualThreadStats.getName()
public final XString getNameUnsafe()
ISrvMonSysIndividualThreadStats
For performance reasons the thread name may be cached by the server so it is not always guaranteed that the returned value will reflect the most recent thread name if its name has been changed.
NOTE:
This method retrieves the raw value backed by this object's buffer. This is a useful operation
when copying this field value to another object because it avoids copying the data into an intermediate
XString and instead allows direct byte transfer from the raw value to the target object.
However, this accessor is inherently unsafe because the buffer backing this object can be changed which would consequently invalidate the XString returned by this method. Consequently, the caller must not retain the returned raw value beyond the scope of this object's lifespan and access to the raw value follows the same threading rules as access to this object.
Additionally, the caller must not in any way mutate or modify the returned value as doing so could corrupt this object's backing buffer.
getNameUnsafe
in interface ISrvMonSysIndividualThreadStats
ISrvMonSysIndividualThreadStats.getName()
public final void setNameFrom(com.neeve.xbuf.XbufStringField val)
public final com.neeve.xbuf.XbufStringField getNameField()
public final boolean hasName()
ISrvMonSysIndividualThreadStats
For performance reasons the thread name may be cached by the server so it is not always guaranteed that the returned value will reflect the most recent thread name if its name has been changed.
hasName
in interface ISrvMonSysIndividualThreadStats
ISrvMonSysIndividualThreadStats.getName()
public final void clearName()
ISrvMonSysIndividualThreadStats
For performance reasons the thread name may be cached by the server so it is not always guaranteed that the returned value will reflect the most recent thread name if its name has been changed.
clearName
in interface ISrvMonSysIndividualThreadStats
ISrvMonSysIndividualThreadStats.setName(String)
public static final int getStateFieldId()
This method can be used to set field interests.
getState()
public final void setState(String val)
ISrvMonSysIndividualThreadStats
setState
in interface ISrvMonSysIndividualThreadStats
val
- The value to set.public final String getState()
ISrvMonSysIndividualThreadStats
getState
in interface ISrvMonSysIndividualThreadStats
public final void lendState(XString val)
ISrvMonSysIndividualThreadStats
lendState
in interface ISrvMonSysIndividualThreadStats
val
- The value to set.public final void setStateFrom(long val)
ISrvMonSysIndividualThreadStats
NOTE:
This is the same as calling ISrvMonSysIndividualThreadStats.setState(String)
.
with Long.valueOf(val).toString(), except that using this method is a zero garbage
operation for Xbuf encoding.
setStateFrom
in interface ISrvMonSysIndividualThreadStats
public final <T extends XString> T getStateTo(XString.Factory<T> factory)
ISrvMonSysIndividualThreadStats
If the value of this field is not null
this method creates an XString from
the provided Factory, copies this field's value into the type, and returns the new
XString.);
This is a zero garbage operation if the provided factory is backed by a pool and the pool; has available instances;
getStateTo
in interface ISrvMonSysIndividualThreadStats
factory
- The factory from which to get the XString to copy into and return
null
.public final void setStateFrom(XString val)
ISrvMonSysIndividualThreadStats
NOTE:
This is a Zero Garbage operation for XBuf encoded objects. Additionally, this setter
can be more efficient than ISrvMonSysIndividualThreadStats.setState(String)
because it avoids encoding the value into a String
if the given XString
is already encoded.
setStateFrom
in interface ISrvMonSysIndividualThreadStats
public final void getStateTo(XString val)
ISrvMonSysIndividualThreadStats
NOTE:
This is a Zero Garbage operation for XBuf encoded objects. Additionally, this getter
can be more efficient than ISrvMonSysIndividualThreadStats.getState()
bec
because it can avoid decoding the value into an String
.
getStateTo
in interface ISrvMonSysIndividualThreadStats
ISrvMonSysIndividualThreadStats.getState()
public final XString getStateUnsafe()
ISrvMonSysIndividualThreadStats
NOTE:
This method retrieves the raw value backed by this object's buffer. This is a useful operation
when copying this field value to another object because it avoids copying the data into an intermediate
XString and instead allows direct byte transfer from the raw value to the target object.
However, this accessor is inherently unsafe because the buffer backing this object can be changed which would consequently invalidate the XString returned by this method. Consequently, the caller must not retain the returned raw value beyond the scope of this object's lifespan and access to the raw value follows the same threading rules as access to this object.
Additionally, the caller must not in any way mutate or modify the returned value as doing so could corrupt this object's backing buffer.
getStateUnsafe
in interface ISrvMonSysIndividualThreadStats
ISrvMonSysIndividualThreadStats.getState()
public final void setStateFrom(com.neeve.xbuf.XbufStringField val)
public final com.neeve.xbuf.XbufStringField getStateField()
public final boolean hasState()
ISrvMonSysIndividualThreadStats
hasState
in interface ISrvMonSysIndividualThreadStats
ISrvMonSysIndividualThreadStats.getState()
public final void clearState()
ISrvMonSysIndividualThreadStats
clearState
in interface ISrvMonSysIndividualThreadStats
ISrvMonSysIndividualThreadStats.setState(String)
public static final int getAffinityFieldId()
This method can be used to set field interests.
getAffinity()
public final void setAffinity(String val)
ISrvMonSysIndividualThreadStats
setAffinity
in interface ISrvMonSysIndividualThreadStats
val
- The value to set.public final String getAffinity()
ISrvMonSysIndividualThreadStats
getAffinity
in interface ISrvMonSysIndividualThreadStats
public final void lendAffinity(XString val)
ISrvMonSysIndividualThreadStats
lendAffinity
in interface ISrvMonSysIndividualThreadStats
val
- The value to set.public final void setAffinityFrom(long val)
ISrvMonSysIndividualThreadStats
NOTE:
This is the same as calling ISrvMonSysIndividualThreadStats.setAffinity(String)
.
with Long.valueOf(val).toString(), except that using this method is a zero garbage
operation for Xbuf encoding.
setAffinityFrom
in interface ISrvMonSysIndividualThreadStats
public final <T extends XString> T getAffinityTo(XString.Factory<T> factory)
ISrvMonSysIndividualThreadStats
If the value of this field is not null
this method creates an XString from
the provided Factory, copies this field's value into the type, and returns the new
XString.);
This is a zero garbage operation if the provided factory is backed by a pool and the pool; has available instances;
getAffinityTo
in interface ISrvMonSysIndividualThreadStats
factory
- The factory from which to get the XString to copy into and return
null
.public final void setAffinityFrom(XString val)
ISrvMonSysIndividualThreadStats
NOTE:
This is a Zero Garbage operation for XBuf encoded objects. Additionally, this setter
can be more efficient than ISrvMonSysIndividualThreadStats.setAffinity(String)
because it avoids encoding the value into a String
if the given XString
is already encoded.
setAffinityFrom
in interface ISrvMonSysIndividualThreadStats
public final void getAffinityTo(XString val)
ISrvMonSysIndividualThreadStats
NOTE:
This is a Zero Garbage operation for XBuf encoded objects. Additionally, this getter
can be more efficient than ISrvMonSysIndividualThreadStats.getAffinity()
bec
because it can avoid decoding the value into an String
.
getAffinityTo
in interface ISrvMonSysIndividualThreadStats
ISrvMonSysIndividualThreadStats.getAffinity()
public final XString getAffinityUnsafe()
ISrvMonSysIndividualThreadStats
NOTE:
This method retrieves the raw value backed by this object's buffer. This is a useful operation
when copying this field value to another object because it avoids copying the data into an intermediate
XString and instead allows direct byte transfer from the raw value to the target object.
However, this accessor is inherently unsafe because the buffer backing this object can be changed which would consequently invalidate the XString returned by this method. Consequently, the caller must not retain the returned raw value beyond the scope of this object's lifespan and access to the raw value follows the same threading rules as access to this object.
Additionally, the caller must not in any way mutate or modify the returned value as doing so could corrupt this object's backing buffer.
getAffinityUnsafe
in interface ISrvMonSysIndividualThreadStats
ISrvMonSysIndividualThreadStats.getAffinity()
public final void setAffinityFrom(com.neeve.xbuf.XbufStringField val)
public final com.neeve.xbuf.XbufStringField getAffinityField()
public final boolean hasAffinity()
ISrvMonSysIndividualThreadStats
hasAffinity
in interface ISrvMonSysIndividualThreadStats
ISrvMonSysIndividualThreadStats.getAffinity()
public final void clearAffinity()
ISrvMonSysIndividualThreadStats
clearAffinity
in interface ISrvMonSysIndividualThreadStats
ISrvMonSysIndividualThreadStats.setAffinity(String)
public final boolean isDirty()
public static final com.neeve.xbuf.XbufSchema createSchema()
public final byte[] serializeToByteArray()
public final ByteBuffer serializeToByteBuffer()
public final com.neeve.io.IOBuffer serializeToIOBuffer(boolean useNative)
public final boolean isBufferBacked()
public final int getSerializeToNativeLength()
public final int serializeToNative(long address, int addressOffset)
public final SrvMonSysIndividualThreadStats deserializeFromIOElasticBuffer(com.neeve.io.IOElasticBuffer buffer, int offset, int length, com.neeve.xbuf.XbufDesyncPolicy desyncPolicy)
public final SrvMonSysIndividualThreadStats deserializeFromIOElasticBuffer(com.neeve.io.IOElasticBuffer buffer, int offset, int length)
public final SrvMonSysIndividualThreadStats deserializeFromByteArray(byte[] array, com.neeve.xbuf.XbufDesyncPolicy desyncPolicy)
public final SrvMonSysIndividualThreadStats deserializeFromByteArray(byte[] array)
public final SrvMonSysIndividualThreadStats deserializeFromByteBuffer(ByteBuffer buffer, com.neeve.xbuf.XbufDesyncPolicy desyncPolicy)
public final SrvMonSysIndividualThreadStats deserializeFromByteBuffer(ByteBuffer buffer)
public final SrvMonSysIndividualThreadStats deserializeFromNative(long address, int offset, int length, com.neeve.xbuf.XbufDesyncPolicy desyncPolicy)
public final SrvMonSysIndividualThreadStats deserializeFromNative(long address, int offset, int length)
public final void sync()
public final int desync(PktBuffer buffer, int pos, boolean frameOnly)
desync
in interface com.neeve.xbuf.IXbufDesyncer
public final SrvMonSysIndividualThreadStats init()
UtlPool.Item
This method is invoked by an item pool very time an item is put into the pool. The method should wipe the contents of the item so as to present a fresh instance of the item to the caller when retrieved from the pool.
init
in interface UtlPool.Item<SrvMonSysIndividualThreadStats>
public final SrvMonSysIndividualThreadStats setPool(UtlPool<SrvMonSysIndividualThreadStats> pool)
UtlPool.Item
This method is invoked by an item pool at the time an item is added to the pool. The intent is to record the item's source pool in the item so it can be disposed back into the pool when the user is done working with it.
setPool
in interface UtlPool.Item<SrvMonSysIndividualThreadStats>
public final UtlPool<SrvMonSysIndividualThreadStats> getPool()
UtlPool.Item
This method should return the pool set using UtlPool.Item.setPool(com.neeve.util.UtlPool
getPool
in interface UtlPool.Item<SrvMonSysIndividualThreadStats>
UtlPool.Item.setPool(com.neeve.util.UtlPool)
public final boolean isReferenceCounted()
public final SrvMonSysIndividualThreadStats acquire()
public final int getOwnerCount()
public final void dispose()
public final Object clone()
This method differs from the copy()
method in that:
clone
in class Object
public final SrvMonSysIndividualThreadStats copy()
The copy copies primitive, enum and embedded entity fields into the returned copy. Each embedded entity field is cloned so that modifications made to the copy's embedded entity fields do not affect this SrvMonSysIndividualThreadStats's embedded entity fields.
The returned copy will be writeable even if this SrvMonSysIndividualThreadStats is read only.
public final void copyInto(SrvMonSysIndividualThreadStats copy)
The copy clears the target's contents and copies primitive, enum and embedded entity fields into the provided copy. Each embedded entity field is cloned so that modifications made to the copy's embedded entity fields do not affect this SrvMonSysIndividualThreadStats's embedded entity fields.
The returned copy will be writeable even if this SrvMonSysIndividualThreadStats is read only.
copy
- The target into which to copy.public final boolean isValid()
IRogValidatable
isValid
in interface IRogValidatable
public final void getValidationErrors(List<XString> results, String errorPrefix)
IRogValidatable
getValidationErrors
in interface IRogValidatable
results
- A results list into which validation errors will be collected.errorPrefix
- The bean path prefix to use when identifying invalid fields or null if validating a top level entity.public final String toString()
toString
in class Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |