com.neeve.server.mon
Class SrvMonSysThreadStats

java.lang.Object
  extended by com.neeve.server.mon.SrvMonSysThreadStats
All Implemented Interfaces:
IRogValidatable, ISrvMonSysThreadStats, UtlPool.Item<SrvMonSysThreadStats>, com.neeve.xbuf.IXbufDesyncer

@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=217)
public final class SrvMonSysThreadStats
extends Object
implements com.neeve.xbuf.IXbufDesyncer, UtlPool.Item<SrvMonSysThreadStats>, ISrvMonSysThreadStats

Groups together stats related to the threads in the server's JVM.


Nested Class Summary
static class SrvMonSysThreadStats.Field
          The SrvMonSysThreadStats xbuf field (used internally when this entity is used as a field of another entity).
static class SrvMonSysThreadStats.ListField
          The SrvMonSysThreadStats list field (used internally when this entity is used as an array field of another entity).
 
Field Summary
static SrvMonSysThreadStats[] EMPTY_ARRAY
          A preallocated empty array used to avoid garbage when returning empty arrays of this type.
 
Constructor Summary
SrvMonSysThreadStats()
           
SrvMonSysThreadStats(int initialBackingBufferSize)
           
 
Method Summary
 SrvMonSysThreadStats acquire()
           
 void addIndividualThreadStats(SrvMonSysIndividualThreadStats val)
          Adds the provided value to the list of 'individualThreadStats' values.
 void clearContent()
           
 void clearDaemonThreadCount()
          Clears the value of 'daemonThreadCount' Field Description The number of active daemon threads in the system.
 void clearIndividualThreadStats()
          Clears the value of 'individualThreadStats' Field Description Enumerates individual thread statistics (if enabled / available).
 void clearPeakThreadCount()
          Clears the value of 'peakThreadCount' Field Description The peak number of threads observed in the system.
 void clearThreadCount()
          Clears the value of 'threadCount' Field Description The number of active threads in the system.
 void clearXRogType()
           
 Object clone()
          Creates a clone of this object.
 SrvMonSysThreadStats copy()
          Creates a copy of this SrvMonSysThreadStats.
 void copyInto(SrvMonSysThreadStats copy)
          Copies the contents of this SrvMonSysThreadStats into the target.
static SrvMonSysThreadStats create()
           
static SrvMonSysThreadStats createFrom(byte[] serializedContainer)
           
static SrvMonSysThreadStats createFrom(byte[] serializedContainer, com.neeve.xbuf.XbufDesyncPolicy desyncPolicy)
           
static SrvMonSysThreadStats createFromSerializedXbufContainer(byte[] serializedContainer)
           
static SrvMonSysThreadStats createFromSerializedXbufContainer(byte[] serializedContainer, com.neeve.xbuf.XbufDesyncPolicy desyncPolicy)
           
static com.neeve.xbuf.XbufSchema createSchema()
           
 SrvMonSysThreadStats deserializeFromByteArray(byte[] array)
           
 SrvMonSysThreadStats deserializeFromByteArray(byte[] array, com.neeve.xbuf.XbufDesyncPolicy desyncPolicy)
           
 SrvMonSysThreadStats deserializeFromByteBuffer(ByteBuffer buffer)
           
 SrvMonSysThreadStats deserializeFromByteBuffer(ByteBuffer buffer, com.neeve.xbuf.XbufDesyncPolicy desyncPolicy)
           
 SrvMonSysThreadStats deserializeFromIOElasticBuffer(com.neeve.io.IOElasticBuffer buffer, int offset, int length)
           
 SrvMonSysThreadStats deserializeFromIOElasticBuffer(com.neeve.io.IOElasticBuffer buffer, int offset, int length, com.neeve.xbuf.XbufDesyncPolicy desyncPolicy)
           
 SrvMonSysThreadStats deserializeFromNative(long address, int offset, int length)
           
 SrvMonSysThreadStats deserializeFromNative(long address, int offset, int length, com.neeve.xbuf.XbufDesyncPolicy desyncPolicy)
           
 int desync(PktBuffer buffer, int pos, boolean frameOnly)
           
 void desyncFieldBitmask()
           
 void dispose()
           
 PktBuffer getBackingBuffer()
           
 int getDaemonThreadCount()
          Gets the value of 'daemonThreadCount' Field Description The number of active daemon threads in the system.
 com.neeve.xbuf.XbufVariableIntField getDaemonThreadCountField()
           
static int getDaemonThreadCountFieldId()
          Get the field id for 'daemonThreadCount' This method can be used to set field interests.
static com.neeve.xbuf.XbufDesyncPolicy getDesyncPolicy()
           
 SrvMonSysIndividualThreadStats[] getIndividualThreadStats()
          Gets the value of 'individualThreadStats' If the field is not set this method will return null.
 SrvMonSysIndividualThreadStats[] getIndividualThreadStatsEmptyIfNull()
          Gets the value of 'individualThreadStats' or an empty array if the value is null or not set.
static int getIndividualThreadStatsFieldId()
          Get the field id for 'individualThreadStats' This method can be used to set field interests.
 XIterator<SrvMonSysIndividualThreadStats> getIndividualThreadStatsIterator()
          Gets the value of 'individualThreadStats' as iterator of values.
 boolean getIsReadOnly()
           
 int getOwnerCount()
           
 int getPeakThreadCount()
          Gets the value of 'peakThreadCount' Field Description The peak number of threads observed in the system.
 com.neeve.xbuf.XbufVariableIntField getPeakThreadCountField()
           
static int getPeakThreadCountFieldId()
          Get the field id for 'peakThreadCount' This method can be used to set field interests.
 UtlPool<SrvMonSysThreadStats> getPool()
          Get a pool item's pool.
 int getSerializeToNativeLength()
           
 int getThreadCount()
          Gets the value of 'threadCount' Field Description The number of active threads in the system.
 com.neeve.xbuf.XbufVariableIntField getThreadCountField()
           
static int getThreadCountFieldId()
          Get the field id for 'threadCount' This method can be used to set field interests.
 void getValidationErrors(List<XString> results, String errorPrefix)
          Collects validation errors into the provided list.
 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 hasDaemonThreadCount()
          Checks for the presence of 'daemonThreadCount' Field Description The number of active daemon threads in the system.
 boolean hasPeakThreadCount()
          Checks for the presence of 'peakThreadCount' Field Description The peak number of threads observed in the system.
 boolean hasThreadCount()
          Checks for the presence of 'threadCount' Field Description The number of active threads in the system.
 boolean hasXRogType()
           
 SrvMonSysThreadStats init()
          Initialize an item.
 boolean isBufferBacked()
           
 boolean isDirty()
           
 boolean isReferenceCounted()
           
 boolean isValid()
          Tests if this object has any validation errors.
 void lendIndividualThreadStats(SrvMonSysIndividualThreadStats val)
          Adds the provided value to the list of 'individualThreadStats' values and acquires a reference to it.
 void lendIndividualThreadStats(SrvMonSysIndividualThreadStats[] val)
          Lends the value of 'individualThreadStats' Field Description Enumerates individual thread statistics (if enabled / available).
 void lendIndividualThreadStatsFrom(XIterator<SrvMonSysIndividualThreadStats> val)
          Sets the value of 'individualThreadStats' by lending the values from the provided iterator.
static void optimizeFor(int val)
           
 byte[] serializeToByteArray()
           
 ByteBuffer serializeToByteBuffer()
           
 com.neeve.io.IOBuffer serializeToIOBuffer(boolean useNative)
           
 int serializeToNative(long address, int addressOffset)
           
 void setAsReadOnly()
           
 void setDaemonThreadCount(int val)
          Sets the value of 'daemonThreadCount' Field Description The number of active daemon threads in the system.
 void setDaemonThreadCountFrom(com.neeve.xbuf.XbufVariableIntField val)
           
static void setDesyncPolicy(com.neeve.xbuf.XbufDesyncPolicy val)
           
static void setFieldInterest(List<Integer> fieldIds)
           
 void setIndividualThreadStats(SrvMonSysIndividualThreadStats[] val)
          Sets the value of 'individualThreadStats' Field Description Enumerates individual thread statistics (if enabled / available).
 void setIndividualThreadStatsFrom(XIterator<SrvMonSysIndividualThreadStats> val)
          Sets the value of 'individualThreadStats' using the values from the provided iterator.
 void setPeakThreadCount(int val)
          Sets the value of 'peakThreadCount' Field Description The peak number of threads observed in the system.
 void setPeakThreadCountFrom(com.neeve.xbuf.XbufVariableIntField val)
           
 SrvMonSysThreadStats setPool(UtlPool<SrvMonSysThreadStats> pool)
          Set a pool item's pool.
 void setThreadCount(int val)
          Sets the value of 'threadCount' Field Description The number of active threads in the system.
 void setThreadCountFrom(com.neeve.xbuf.XbufVariableIntField val)
           
 void setXRogType(short val)
           
 void setXRogTypeFrom(com.neeve.xbuf.XbufVariableShortField val)
           
 void sync()
           
 void syncFieldBitmask()
           
 SrvMonSysIndividualThreadStats[] takeIndividualThreadStats()
          Takes the value of 'individualThreadStats' Field Description Enumerates individual thread statistics (if enabled / available).
 String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

EMPTY_ARRAY

public static final SrvMonSysThreadStats[] EMPTY_ARRAY
A preallocated empty array used to avoid garbage when returning empty arrays of this type.

Constructor Detail

SrvMonSysThreadStats

public SrvMonSysThreadStats()

SrvMonSysThreadStats

public SrvMonSysThreadStats(int initialBackingBufferSize)
Method Detail

create

public static SrvMonSysThreadStats create()

createFromSerializedXbufContainer

public static SrvMonSysThreadStats createFromSerializedXbufContainer(byte[] serializedContainer,
                                                                     com.neeve.xbuf.XbufDesyncPolicy desyncPolicy)

createFromSerializedXbufContainer

public static SrvMonSysThreadStats createFromSerializedXbufContainer(byte[] serializedContainer)

createFrom

public static SrvMonSysThreadStats createFrom(byte[] serializedContainer,
                                              com.neeve.xbuf.XbufDesyncPolicy desyncPolicy)

createFrom

public static SrvMonSysThreadStats createFrom(byte[] serializedContainer)

setDesyncPolicy

public static final void setDesyncPolicy(com.neeve.xbuf.XbufDesyncPolicy val)

getDesyncPolicy

public static final com.neeve.xbuf.XbufDesyncPolicy getDesyncPolicy()

setFieldInterest

public static final void setFieldInterest(List<Integer> fieldIds)

clearContent

public final void clearContent()

syncFieldBitmask

public final void syncFieldBitmask()

desyncFieldBitmask

public final void desyncFieldBitmask()

getBackingBuffer

public final PktBuffer getBackingBuffer()

optimizeFor

public static final void optimizeFor(int val)

setAsReadOnly

public final void setAsReadOnly()

getIsReadOnly

public final boolean getIsReadOnly()

getXRogTypeFieldId

public static final int getXRogTypeFieldId()
Get the field id for 'xRogType'

This method can be used to set field interests.

See Also:
getXRogType()

setXRogType

public final void setXRogType(short val)

getXRogType

public final short getXRogType()

setXRogTypeFrom

public final void setXRogTypeFrom(com.neeve.xbuf.XbufVariableShortField val)

getXRogTypeField

public final com.neeve.xbuf.XbufVariableShortField getXRogTypeField()

hasXRogType

public final boolean hasXRogType()

clearXRogType

public final void clearXRogType()

getThreadCountFieldId

public static final int getThreadCountFieldId()
Get the field id for 'threadCount'

This method can be used to set field interests.

See Also:
getThreadCount()

setThreadCount

public final void setThreadCount(int val)
Description copied from interface: ISrvMonSysThreadStats
Sets the value of 'threadCount'

Field Description

The number of active threads in the system.

Specified by:
setThreadCount in interface ISrvMonSysThreadStats
Parameters:
val - The value to set.

getThreadCount

public final int getThreadCount()
Description copied from interface: ISrvMonSysThreadStats
Gets the value of 'threadCount'

Field Description

The number of active threads in the system.

Specified by:
getThreadCount in interface ISrvMonSysThreadStats
Returns:
The number of active threads in the system.

setThreadCountFrom

public final void setThreadCountFrom(com.neeve.xbuf.XbufVariableIntField val)

getThreadCountField

public final com.neeve.xbuf.XbufVariableIntField getThreadCountField()

hasThreadCount

public final boolean hasThreadCount()
Description copied from interface: ISrvMonSysThreadStats
Checks for the presence of 'threadCount'

Field Description

The number of active threads in the system.

Specified by:
hasThreadCount in interface ISrvMonSysThreadStats
See Also:
ISrvMonSysThreadStats.getThreadCount()

clearThreadCount

public final void clearThreadCount()
Description copied from interface: ISrvMonSysThreadStats
Clears the value of 'threadCount'

Field Description

The number of active threads in the system.

Specified by:
clearThreadCount in interface ISrvMonSysThreadStats
See Also:
ISrvMonSysThreadStats.setThreadCount(int)

getDaemonThreadCountFieldId

public static final int getDaemonThreadCountFieldId()
Get the field id for 'daemonThreadCount'

This method can be used to set field interests.

See Also:
getDaemonThreadCount()

setDaemonThreadCount

public final void setDaemonThreadCount(int val)
Description copied from interface: ISrvMonSysThreadStats
Sets the value of 'daemonThreadCount'

Field Description

The number of active daemon threads in the system.

Specified by:
setDaemonThreadCount in interface ISrvMonSysThreadStats
Parameters:
val - The value to set.

getDaemonThreadCount

public final int getDaemonThreadCount()
Description copied from interface: ISrvMonSysThreadStats
Gets the value of 'daemonThreadCount'

Field Description

The number of active daemon threads in the system.

Specified by:
getDaemonThreadCount in interface ISrvMonSysThreadStats
Returns:
The number of active daemon threads in the system.

setDaemonThreadCountFrom

public final void setDaemonThreadCountFrom(com.neeve.xbuf.XbufVariableIntField val)

getDaemonThreadCountField

public final com.neeve.xbuf.XbufVariableIntField getDaemonThreadCountField()

hasDaemonThreadCount

public final boolean hasDaemonThreadCount()
Description copied from interface: ISrvMonSysThreadStats
Checks for the presence of 'daemonThreadCount'

Field Description

The number of active daemon threads in the system.

Specified by:
hasDaemonThreadCount in interface ISrvMonSysThreadStats
See Also:
ISrvMonSysThreadStats.getDaemonThreadCount()

clearDaemonThreadCount

public final void clearDaemonThreadCount()
Description copied from interface: ISrvMonSysThreadStats
Clears the value of 'daemonThreadCount'

Field Description

The number of active daemon threads in the system.

Specified by:
clearDaemonThreadCount in interface ISrvMonSysThreadStats
See Also:
ISrvMonSysThreadStats.setDaemonThreadCount(int)

getPeakThreadCountFieldId

public static final int getPeakThreadCountFieldId()
Get the field id for 'peakThreadCount'

This method can be used to set field interests.

See Also:
getPeakThreadCount()

setPeakThreadCount

public final void setPeakThreadCount(int val)
Description copied from interface: ISrvMonSysThreadStats
Sets the value of 'peakThreadCount'

Field Description

The peak number of threads observed in the system.

Specified by:
setPeakThreadCount in interface ISrvMonSysThreadStats
Parameters:
val - The value to set.

getPeakThreadCount

public final int getPeakThreadCount()
Description copied from interface: ISrvMonSysThreadStats
Gets the value of 'peakThreadCount'

Field Description

The peak number of threads observed in the system.

Specified by:
getPeakThreadCount in interface ISrvMonSysThreadStats
Returns:
The peak number of threads observed in the system.

setPeakThreadCountFrom

public final void setPeakThreadCountFrom(com.neeve.xbuf.XbufVariableIntField val)

getPeakThreadCountField

public final com.neeve.xbuf.XbufVariableIntField getPeakThreadCountField()

hasPeakThreadCount

public final boolean hasPeakThreadCount()
Description copied from interface: ISrvMonSysThreadStats
Checks for the presence of 'peakThreadCount'

Field Description

The peak number of threads observed in the system.

Specified by:
hasPeakThreadCount in interface ISrvMonSysThreadStats
See Also:
ISrvMonSysThreadStats.getPeakThreadCount()

clearPeakThreadCount

public final void clearPeakThreadCount()
Description copied from interface: ISrvMonSysThreadStats
Clears the value of 'peakThreadCount'

Field Description

The peak number of threads observed in the system.

Specified by:
clearPeakThreadCount in interface ISrvMonSysThreadStats
See Also:
ISrvMonSysThreadStats.setPeakThreadCount(int)

getIndividualThreadStatsFieldId

public static final int getIndividualThreadStatsFieldId()
Get the field id for 'individualThreadStats'

This method can be used to set field interests.

See Also:
getIndividualThreadStats()

setIndividualThreadStats

public final void setIndividualThreadStats(SrvMonSysIndividualThreadStats[] val)
Description copied from interface: ISrvMonSysThreadStats
Sets the value of 'individualThreadStats'

Field Description

Enumerates individual thread statistics (if enabled / available).

Specified by:
setIndividualThreadStats in interface ISrvMonSysThreadStats
Parameters:
val - The value to set.

setIndividualThreadStatsFrom

public final void setIndividualThreadStatsFrom(XIterator<SrvMonSysIndividualThreadStats> val)
Description copied from interface: ISrvMonSysThreadStats
Sets the value of 'individualThreadStats' using the values from the provided iterator.

This method will call XIterator.toFirst() before and after setting the values, meaning that all values from the iterator will be set and the iterator will be reset on return.

This method is zero garbage for Xbuf generated classes, and this method is optimized such that calling this with an iterator from another 'individualThreadStats' accessor can copy the values without iteration.

Field Description

Enumerates individual thread statistics (if enabled / available).

NOTE:
Passing a null or empty list has the same affect as calling ISrvMonSysThreadStats.setIndividualThreadStats(SrvMonSysIndividualThreadStats[]) with a value of null.

Specified by:
setIndividualThreadStatsFrom in interface ISrvMonSysThreadStats
Parameters:
val - the values to set.

lendIndividualThreadStatsFrom

public final void lendIndividualThreadStatsFrom(XIterator<SrvMonSysIndividualThreadStats> val)
Description copied from interface: ISrvMonSysThreadStats
Sets the value of 'individualThreadStats' by lending the values from the provided iterator.

This method will call XIterator.toFirst() before and after setting the values, meaning that all values from the iterator will be set and the iterator will be reset on return.

This method will acquire references to each non null value in the provided iterator making it suitable for cases where the values come from another message that may be disposed.

This method is zero garbage for Xbuf generated classes, and this method is optimized such that calling this with an iterator from another 'individualThreadStats' accessor can copy the values without iteration.

Field Description

Enumerates individual thread statistics (if enabled / available).

NOTE:
Passing a null or empty list has the same affect as calling ISrvMonSysThreadStats.setIndividualThreadStats(SrvMonSysIndividualThreadStats[]) with a value of null.

Specified by:
lendIndividualThreadStatsFrom in interface ISrvMonSysThreadStats
Parameters:
val - the values to set.

lendIndividualThreadStats

public final void lendIndividualThreadStats(SrvMonSysIndividualThreadStats[] val)
Description copied from interface: ISrvMonSysThreadStats
Lends the value of 'individualThreadStats'

Field Description

Enumerates individual thread statistics (if enabled / available).

NOTE:
It is illegal to hold onto an entity 'set' on a message post the disposal of the container message. This is true even if a reference to the entity is explicitly 'acquired' by the application via acquire().

To hold onto the reference of an entity beyond the lifecycle of its container message, an application must own a reference to the entity (via, for example, 'taking' the entity off an inbound message) and then 'lend' the entity to the message for sending. The act of 'lending' an entity to a message implies that the application continues to own the entity even though the message is holding a reference to it for the duration of the send.

Specified by:
lendIndividualThreadStats in interface ISrvMonSysThreadStats
Parameters:
val - the value to 'lend' to lend.

addIndividualThreadStats

public final void addIndividualThreadStats(SrvMonSysIndividualThreadStats val)
Description copied from interface: ISrvMonSysThreadStats
Adds the provided value to the list of 'individualThreadStats' values.

This method is zero garbage for Xbuf generated classes, and this method is optimized such that calling this with an iterator from another 'individualThreadStats' accessor can copy the values without iteration.

For objects generated with json encoding, or transactional state entities, using this method is currently efficient than doing a bulk set. For xbuf generated messages however, this method is optimized to directly serialize to an encoded backing buffer.

Field Description

Enumerates individual thread statistics (if enabled / available).

Specified by:
addIndividualThreadStats in interface ISrvMonSysThreadStats
Parameters:
val - the value to add.

lendIndividualThreadStats

public final void lendIndividualThreadStats(SrvMonSysIndividualThreadStats val)
Description copied from interface: ISrvMonSysThreadStats
Adds the provided value to the list of 'individualThreadStats' values and acquires a reference to it.

Lending of an added value is useful in cases where a field is being added from a source message to provide dispose of the source value when the source message is disposed.

This method is zero garbage for Xbuf generated classes, and this method is optimized such that calling this with an iterator from another 'individualThreadStats' accessor can copy the values without iteration.

For objects generated with json encoding, or transactional state entities, using this method is currently efficient than doing a bulk set. For xbuf generated messages however, this method is optimized to directly serialize to an encoded backing buffer.

Field Description

Enumerates individual thread statistics (if enabled / available).

Specified by:
lendIndividualThreadStats in interface ISrvMonSysThreadStats
Parameters:
val - the value to add.

getIndividualThreadStats

public final SrvMonSysIndividualThreadStats[] getIndividualThreadStats()
Description copied from interface: ISrvMonSysThreadStats
Gets the value of 'individualThreadStats'

If the field is not set this method will return null.

Field Description

Enumerates individual thread statistics (if enabled / available).

Specified by:
getIndividualThreadStats in interface ISrvMonSysThreadStats
Returns:
Enumerates individual thread statistics (if enabled / available). If the field is not set this method will return null.

getIndividualThreadStatsEmptyIfNull

public final SrvMonSysIndividualThreadStats[] getIndividualThreadStatsEmptyIfNull()
Description copied from interface: ISrvMonSysThreadStats
Gets the value of 'individualThreadStats' or an empty array if the value is null or not set.

Field Description

Enumerates individual thread statistics (if enabled / available).

Specified by:
getIndividualThreadStatsEmptyIfNull in interface ISrvMonSysThreadStats
Returns:
Enumerates individual thread statistics (if enabled / available). or an empty array if null if not set.
See Also:
ISrvMonSysThreadStats.getIndividualThreadStats()

getIndividualThreadStatsIterator

public final XIterator<SrvMonSysIndividualThreadStats> getIndividualThreadStatsIterator()
Description copied from interface: ISrvMonSysThreadStats
Gets the value of 'individualThreadStats' as iterator of values.

This method will always return a non null iterator value. The returned iterator is not threadsafe, and the caller may not hold on to it beyond the pooling lifespan of this object. Depending on the implementation, the same iterator instance may be returned by this object on each call to avoid garbage. Each time this method is called the iterator is reset by calling its toFirst() method. Callers should therefore be especially careful about calling this method while iterating on the iterator returned by this method.

The elements returned by this iterator are owned by and pooled along with this object. The caller. must call acquire() on each returned object that this object intends to keep beyond the lifespan. of this object (unless the element is lent to another object in which that object will acquire it then).

This method is zero garbage for Xbuf generated classes, and this method is optimized such that passing the returned iterator to another object's setXXX(XIterator method can perform a direct copy of the underlying values without iteration.

Field Description

Enumerates individual thread statistics (if enabled / available).

Specified by:
getIndividualThreadStatsIterator in interface ISrvMonSysThreadStats
Returns:
An iterator containing this field values.

takeIndividualThreadStats

public final SrvMonSysIndividualThreadStats[] takeIndividualThreadStats()
Description copied from interface: ISrvMonSysThreadStats
Takes the value of 'individualThreadStats'

Field Description

Enumerates individual thread statistics (if enabled / available).

NOTE:
A nested entity reference returned by ISrvMonSysThreadStats.getIndividualThreadStats() is only valid until the entity is disposed i.e. the act of getting an entity does not transfer ownership of the entity to the application A message disposes of its reference to its contained entities when it is disposed itself.

An AEP engine disposes a message on return from its message handler. Therefore, applications working with AEP engines that wish to hold onto a nested entity reference post return from its containing message's handler must either acquire a reference to the container message or 'take' the nested entity itself from the container message. The act of 'taking' an entity differs from 'getting' an entity in that 'take' does what is necessary to ensure that the entity contents are not cleared and the entity not disposed when the message itself is disposed. For a taken entity to be disposed, the application must explicitly dispose it when done working with it.

Specified by:
takeIndividualThreadStats in interface ISrvMonSysThreadStats
Returns:
a 'taken' reference to the field or null if the field is not set.

clearIndividualThreadStats

public final void clearIndividualThreadStats()
Description copied from interface: ISrvMonSysThreadStats
Clears the value of 'individualThreadStats'

Field Description

Enumerates individual thread statistics (if enabled / available).

Specified by:
clearIndividualThreadStats in interface ISrvMonSysThreadStats
See Also:
ISrvMonSysThreadStats.setIndividualThreadStats(SrvMonSysIndividualThreadStats[])

isDirty

public final boolean isDirty()

createSchema

public static final com.neeve.xbuf.XbufSchema createSchema()

serializeToByteArray

public final byte[] serializeToByteArray()

serializeToByteBuffer

public final ByteBuffer serializeToByteBuffer()

serializeToIOBuffer

public final com.neeve.io.IOBuffer serializeToIOBuffer(boolean useNative)

isBufferBacked

public final boolean isBufferBacked()

getSerializeToNativeLength

public final int getSerializeToNativeLength()

serializeToNative

public final int serializeToNative(long address,
                                   int addressOffset)

deserializeFromIOElasticBuffer

public final SrvMonSysThreadStats deserializeFromIOElasticBuffer(com.neeve.io.IOElasticBuffer buffer,
                                                                 int offset,
                                                                 int length,
                                                                 com.neeve.xbuf.XbufDesyncPolicy desyncPolicy)

deserializeFromIOElasticBuffer

public final SrvMonSysThreadStats deserializeFromIOElasticBuffer(com.neeve.io.IOElasticBuffer buffer,
                                                                 int offset,
                                                                 int length)

deserializeFromByteArray

public final SrvMonSysThreadStats deserializeFromByteArray(byte[] array,
                                                           com.neeve.xbuf.XbufDesyncPolicy desyncPolicy)

deserializeFromByteArray

public final SrvMonSysThreadStats deserializeFromByteArray(byte[] array)

deserializeFromByteBuffer

public final SrvMonSysThreadStats deserializeFromByteBuffer(ByteBuffer buffer,
                                                            com.neeve.xbuf.XbufDesyncPolicy desyncPolicy)

deserializeFromByteBuffer

public final SrvMonSysThreadStats deserializeFromByteBuffer(ByteBuffer buffer)

deserializeFromNative

public final SrvMonSysThreadStats deserializeFromNative(long address,
                                                        int offset,
                                                        int length,
                                                        com.neeve.xbuf.XbufDesyncPolicy desyncPolicy)

deserializeFromNative

public final SrvMonSysThreadStats deserializeFromNative(long address,
                                                        int offset,
                                                        int length)

sync

public final void sync()

desync

public final int desync(PktBuffer buffer,
                        int pos,
                        boolean frameOnly)
Specified by:
desync in interface com.neeve.xbuf.IXbufDesyncer

init

public final SrvMonSysThreadStats init()
Description copied from interface: UtlPool.Item
Initialize an 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.

Specified by:
init in interface UtlPool.Item<SrvMonSysThreadStats>
Returns:
Return 'this' object for method invocation chaining.

setPool

public final SrvMonSysThreadStats setPool(UtlPool<SrvMonSysThreadStats> pool)
Description copied from interface: UtlPool.Item
Set a pool item's pool.

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.

Specified by:
setPool in interface UtlPool.Item<SrvMonSysThreadStats>
Returns:
Return 'this' object for method invocation chaining.

getPool

public final UtlPool<SrvMonSysThreadStats> getPool()
Description copied from interface: UtlPool.Item
Get a pool item's pool.

This method should return the pool set using UtlPool.Item.setPool(com.neeve.util.UtlPool)

Specified by:
getPool in interface UtlPool.Item<SrvMonSysThreadStats>
Returns:
the pool set using UtlPool.Item.setPool(com.neeve.util.UtlPool)

isReferenceCounted

public final boolean isReferenceCounted()

acquire

public final SrvMonSysThreadStats acquire()

getOwnerCount

public final int getOwnerCount()

dispose

public final void dispose()

clone

public final Object clone()
Creates a clone of this object.

This method differs from the copy() method in that:

Overrides:
clone in class Object

copy

public final SrvMonSysThreadStats copy()
Creates a copy of this SrvMonSysThreadStats.

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 SrvMonSysThreadStats's embedded entity fields.

The returned copy will be writeable even if this SrvMonSysThreadStats is read only.

Xbuf Pass-through Fields

When backed by a buffer, this operation copies the underlying buffer which means that if the message was deserialized from with unrecognized fields, such fields will be preserved in the copy as well.

Returns:
The copied entity.

copyInto

public final void copyInto(SrvMonSysThreadStats copy)
Copies the contents of this SrvMonSysThreadStats into the target.

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 SrvMonSysThreadStats's embedded entity fields.

The returned copy will be writeable even if this SrvMonSysThreadStats is read only.

Xbuf Pass-through Fields

When backed by a buffer, this operation copies the underlying buffer which means that if the message was deserialized from with unrecognized fields, such fields will be preserved in the copy as well.

Parameters:
copy - The target into which to copy.

isValid

public final boolean isValid()
Description copied from interface: IRogValidatable
Tests if this object has any validation errors.

Specified by:
isValid in interface IRogValidatable

getValidationErrors

public final void getValidationErrors(List<XString> results,
                                      String errorPrefix)
Description copied from interface: IRogValidatable
Collects validation errors into the provided list. It is illegal for the caller to hold onto the List of XStrings beyond the lifespace of this object.

Specified by:
getValidationErrors in interface IRogValidatable
Parameters:
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.

toString

public final String toString()
Overrides:
toString in class Object


Copyright © 2016 Neeve Research, LLC. All Rights Reserved.