|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.neeve.server.mon.SrvMonPoolStats
@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=210) public final class SrvMonPoolStats
Holds stats for a pool
To keep heartbeat size under control, stats for a given pool are only included in a heartbeat if their have been pool misses in the last collection interval. Otherwise pool stats may be emitted periodically even without misses based on other criteria as well.
Nested Class Summary | |
---|---|
static class |
SrvMonPoolStats.Field
The SrvMonPoolStats xbuf field (used internally when this entity is used as a field of another entity). |
static class |
SrvMonPoolStats.ListField
The SrvMonPoolStats list field (used internally when this entity is used as an array field of another entity). |
Field Summary | |
---|---|
static SrvMonPoolStats[] |
EMPTY_ARRAY
A preallocated empty array used to avoid garbage when returning empty arrays of this type. |
Constructor Summary | |
---|---|
SrvMonPoolStats()
|
|
SrvMonPoolStats(int initialBackingBufferSize)
|
Method Summary | ||
---|---|---|
SrvMonPoolStats |
acquire()
|
|
void |
clearCapacity()
Clears the value of 'capacity' Field Description The current number of slots in the pool to hold elements that are not in use. |
|
void |
clearContent()
|
|
void |
clearDetachedWashes()
Clears the value of 'detachedWashes' Field Description The number of elements initialized by the detached pool washer thread. |
|
void |
clearEvicts()
Clears the value of 'evicts' Field Description The number of elements that have been evicted from the pool because the pool doesn't have capcity. |
|
void |
clearGets()
Clears the value of 'gets' Field Description The number of times an element has been requested from the pool. |
|
void |
clearGrowths()
Clears the value of 'growths' Field Description The number of times the pool capacity has been increased to accomodate free elements. |
|
void |
clearHits()
Clears the value of 'hits' Field Description The number of times an element has been requested from the pool without needing to allocate a new object. |
|
void |
clearKey()
Clears the value of 'key' Field Description The name of the pool. |
|
void |
clearMisses()
Clears the value of 'misses' Field Description The number of times an element has been requested from the pool which required allocating a new object. |
|
void |
clearPreallocated()
Clears the value of 'preallocated' Field Description The number of elements initially preallocated in the pool. |
|
void |
clearPuts()
Clears the value of 'puts' Field Description The number of times an element has been put (returned) to the pool. |
|
void |
clearSize()
Clears the value of 'size' Field Description The number of elements currently available in the pool to satisfy gets. |
|
void |
clearXRogType()
|
|
Object |
clone()
Creates a clone of this object. |
|
SrvMonPoolStats |
copy()
Creates a copy of this SrvMonPoolStats. |
|
void |
copyInto(SrvMonPoolStats copy)
Copies the contents of this SrvMonPoolStats into the target. |
|
static SrvMonPoolStats |
create()
|
|
static SrvMonPoolStats |
createFrom(byte[] serializedContainer)
|
|
static SrvMonPoolStats |
createFrom(byte[] serializedContainer,
com.neeve.xbuf.XbufDesyncPolicy desyncPolicy)
|
|
static SrvMonPoolStats |
createFromSerializedXbufContainer(byte[] serializedContainer)
|
|
static SrvMonPoolStats |
createFromSerializedXbufContainer(byte[] serializedContainer,
com.neeve.xbuf.XbufDesyncPolicy desyncPolicy)
|
|
static com.neeve.xbuf.XbufSchema |
createSchema()
|
|
SrvMonPoolStats |
deserializeFromByteArray(byte[] array)
|
|
SrvMonPoolStats |
deserializeFromByteArray(byte[] array,
com.neeve.xbuf.XbufDesyncPolicy desyncPolicy)
|
|
SrvMonPoolStats |
deserializeFromByteBuffer(ByteBuffer buffer)
|
|
SrvMonPoolStats |
deserializeFromByteBuffer(ByteBuffer buffer,
com.neeve.xbuf.XbufDesyncPolicy desyncPolicy)
|
|
SrvMonPoolStats |
deserializeFromIOElasticBuffer(com.neeve.io.IOElasticBuffer buffer,
int offset,
int length)
|
|
SrvMonPoolStats |
deserializeFromIOElasticBuffer(com.neeve.io.IOElasticBuffer buffer,
int offset,
int length,
com.neeve.xbuf.XbufDesyncPolicy desyncPolicy)
|
|
SrvMonPoolStats |
deserializeFromNative(long address,
int offset,
int length)
|
|
SrvMonPoolStats |
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 |
getCapacity()
Gets the value of 'capacity' Field Description The current number of slots in the pool to hold elements that are not in use. |
|
com.neeve.xbuf.XbufVariableIntField |
getCapacityField()
|
|
static int |
getCapacityFieldId()
Get the field id for 'capacity' This method can be used to set field interests. |
|
static com.neeve.xbuf.XbufDesyncPolicy |
getDesyncPolicy()
|
|
long |
getDetachedWashes()
Gets the value of 'detachedWashes' Field Description The number of elements initialized by the detached pool washer thread. |
|
com.neeve.xbuf.XbufVariableLongField |
getDetachedWashesField()
|
|
static int |
getDetachedWashesFieldId()
Get the field id for 'detachedWashes' This method can be used to set field interests. |
|
long |
getEvicts()
Gets the value of 'evicts' Field Description The number of elements that have been evicted from the pool because the pool doesn't have capcity. |
|
com.neeve.xbuf.XbufVariableLongField |
getEvictsField()
|
|
static int |
getEvictsFieldId()
Get the field id for 'evicts' This method can be used to set field interests. |
|
long |
getGets()
Gets the value of 'gets' Field Description The number of times an element has been requested from the pool. |
|
com.neeve.xbuf.XbufVariableLongField |
getGetsField()
|
|
static int |
getGetsFieldId()
Get the field id for 'gets' This method can be used to set field interests. |
|
long |
getGrowths()
Gets the value of 'growths' Field Description The number of times the pool capacity has been increased to accomodate free elements. |
|
com.neeve.xbuf.XbufVariableLongField |
getGrowthsField()
|
|
static int |
getGrowthsFieldId()
Get the field id for 'growths' This method can be used to set field interests. |
|
long |
getHits()
Gets the value of 'hits' Field Description The number of times an element has been requested from the pool without needing to allocate a new object. |
|
com.neeve.xbuf.XbufVariableLongField |
getHitsField()
|
|
static int |
getHitsFieldId()
Get the field id for 'hits' This method can be used to set field interests. |
|
boolean |
getIsReadOnly()
|
|
String |
getKey()
Gets the value of 'key' Field Description The name of the pool. |
|
com.neeve.xbuf.XbufStringField |
getKeyField()
|
|
static int |
getKeyFieldId()
Get the field id for 'key' This method can be used to set field interests. |
|
|
getKeyTo(XString.Factory<T> factory)
Copies the value of this String field into a new XString from the given factory. |
|
void |
getKeyTo(XString val)
Copies the value of 'key' into the provided XString. |
|
XString |
getKeyUnsafe()
Gets the raw value of 'key'. |
|
long |
getMisses()
Gets the value of 'misses' Field Description The number of times an element has been requested from the pool which required allocating a new object. |
|
com.neeve.xbuf.XbufVariableLongField |
getMissesField()
|
|
static int |
getMissesFieldId()
Get the field id for 'misses' This method can be used to set field interests. |
|
int |
getOwnerCount()
|
|
UtlPool<SrvMonPoolStats> |
getPool()
Get a pool item's pool. |
|
int |
getPreallocated()
Gets the value of 'preallocated' Field Description The number of elements initially preallocated in the pool. |
|
com.neeve.xbuf.XbufVariableIntField |
getPreallocatedField()
|
|
static int |
getPreallocatedFieldId()
Get the field id for 'preallocated' This method can be used to set field interests. |
|
long |
getPuts()
Gets the value of 'puts' Field Description The number of times an element has been put (returned) to the pool. |
|
com.neeve.xbuf.XbufVariableLongField |
getPutsField()
|
|
static int |
getPutsFieldId()
Get the field id for 'puts' This method can be used to set field interests. |
|
int |
getSerializeToNativeLength()
|
|
int |
getSize()
Gets the value of 'size' Field Description The number of elements currently available in the pool to satisfy gets. |
|
com.neeve.xbuf.XbufVariableIntField |
getSizeField()
|
|
static int |
getSizeFieldId()
Get the field id for 'size' 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 |
hasCapacity()
Checks for the presence of 'capacity' Field Description The current number of slots in the pool to hold elements that are not in use. |
|
boolean |
hasDetachedWashes()
Checks for the presence of 'detachedWashes' Field Description The number of elements initialized by the detached pool washer thread. |
|
boolean |
hasEvicts()
Checks for the presence of 'evicts' Field Description The number of elements that have been evicted from the pool because the pool doesn't have capcity. |
|
boolean |
hasGets()
Checks for the presence of 'gets' Field Description The number of times an element has been requested from the pool. |
|
boolean |
hasGrowths()
Checks for the presence of 'growths' Field Description The number of times the pool capacity has been increased to accomodate free elements. |
|
boolean |
hasHits()
Checks for the presence of 'hits' Field Description The number of times an element has been requested from the pool without needing to allocate a new object. |
|
boolean |
hasKey()
Checks for the presence of 'key' Field Description The name of the pool. |
|
boolean |
hasMisses()
Checks for the presence of 'misses' Field Description The number of times an element has been requested from the pool which required allocating a new object. |
|
boolean |
hasPreallocated()
Checks for the presence of 'preallocated' Field Description The number of elements initially preallocated in the pool. |
|
boolean |
hasPuts()
Checks for the presence of 'puts' Field Description The number of times an element has been put (returned) to the pool. |
|
boolean |
hasSize()
Checks for the presence of 'size' Field Description The number of elements currently available in the pool to satisfy gets. |
|
boolean |
hasXRogType()
|
|
SrvMonPoolStats |
init()
Initialize an item. |
|
boolean |
isBufferBacked()
|
|
boolean |
isDirty()
|
|
boolean |
isReferenceCounted()
|
|
boolean |
isValid()
Tests if this object has any validation errors. |
|
void |
lendKey(XString val)
Sets the value of 'key' Field Description The name of the pool. |
|
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 |
setCapacity(int val)
Sets the value of 'capacity' Field Description The current number of slots in the pool to hold elements that are not in use. |
|
void |
setCapacityFrom(com.neeve.xbuf.XbufVariableIntField val)
|
|
static void |
setDesyncPolicy(com.neeve.xbuf.XbufDesyncPolicy val)
|
|
void |
setDetachedWashes(long val)
Sets the value of 'detachedWashes' Field Description The number of elements initialized by the detached pool washer thread. |
|
void |
setDetachedWashesFrom(com.neeve.xbuf.XbufVariableLongField val)
|
|
void |
setEvicts(long val)
Sets the value of 'evicts' Field Description The number of elements that have been evicted from the pool because the pool doesn't have capcity. |
|
void |
setEvictsFrom(com.neeve.xbuf.XbufVariableLongField val)
|
|
static void |
setFieldInterest(List<Integer> fieldIds)
|
|
void |
setGets(long val)
Sets the value of 'gets' Field Description The number of times an element has been requested from the pool. |
|
void |
setGetsFrom(com.neeve.xbuf.XbufVariableLongField val)
|
|
void |
setGrowths(long val)
Sets the value of 'growths' Field Description The number of times the pool capacity has been increased to accomodate free elements. |
|
void |
setGrowthsFrom(com.neeve.xbuf.XbufVariableLongField val)
|
|
void |
setHits(long val)
Sets the value of 'hits' Field Description The number of times an element has been requested from the pool without needing to allocate a new object. |
|
void |
setHitsFrom(com.neeve.xbuf.XbufVariableLongField val)
|
|
void |
setKey(String val)
Sets the value of 'key' Field Description The name of the pool. |
|
void |
setKeyFrom(long val)
Sets the value of this String field to the given numeric value. |
|
void |
setKeyFrom(com.neeve.xbuf.XbufStringField val)
|
|
void |
setKeyFrom(XString val)
Copies the provided XString value into this object's 'key'. |
|
void |
setMisses(long val)
Sets the value of 'misses' Field Description The number of times an element has been requested from the pool which required allocating a new object. |
|
void |
setMissesFrom(com.neeve.xbuf.XbufVariableLongField val)
|
|
SrvMonPoolStats |
setPool(UtlPool<SrvMonPoolStats> pool)
Set a pool item's pool. |
|
void |
setPreallocated(int val)
Sets the value of 'preallocated' Field Description The number of elements initially preallocated in the pool. |
|
void |
setPreallocatedFrom(com.neeve.xbuf.XbufVariableIntField val)
|
|
void |
setPuts(long val)
Sets the value of 'puts' Field Description The number of times an element has been put (returned) to the pool. |
|
void |
setPutsFrom(com.neeve.xbuf.XbufVariableLongField val)
|
|
void |
setSize(int val)
Sets the value of 'size' Field Description The number of elements currently available in the pool to satisfy gets. |
|
void |
setSizeFrom(com.neeve.xbuf.XbufVariableIntField 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 SrvMonPoolStats[] EMPTY_ARRAY
Constructor Detail |
---|
public SrvMonPoolStats()
public SrvMonPoolStats(int initialBackingBufferSize)
Method Detail |
---|
public static SrvMonPoolStats create()
public static SrvMonPoolStats createFromSerializedXbufContainer(byte[] serializedContainer, com.neeve.xbuf.XbufDesyncPolicy desyncPolicy)
public static SrvMonPoolStats createFromSerializedXbufContainer(byte[] serializedContainer)
public static SrvMonPoolStats createFrom(byte[] serializedContainer, com.neeve.xbuf.XbufDesyncPolicy desyncPolicy)
public static SrvMonPoolStats 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 getPutsFieldId()
This method can be used to set field interests.
getPuts()
public final void setPuts(long val)
ISrvMonPoolStats
setPuts
in interface ISrvMonPoolStats
val
- The value to set.public final long getPuts()
ISrvMonPoolStats
getPuts
in interface ISrvMonPoolStats
public final void setPutsFrom(com.neeve.xbuf.XbufVariableLongField val)
public final com.neeve.xbuf.XbufVariableLongField getPutsField()
public final boolean hasPuts()
ISrvMonPoolStats
hasPuts
in interface ISrvMonPoolStats
ISrvMonPoolStats.getPuts()
public final void clearPuts()
ISrvMonPoolStats
clearPuts
in interface ISrvMonPoolStats
ISrvMonPoolStats.setPuts(long)
public static final int getGetsFieldId()
This method can be used to set field interests.
getGets()
public final void setGets(long val)
ISrvMonPoolStats
setGets
in interface ISrvMonPoolStats
val
- The value to set.public final long getGets()
ISrvMonPoolStats
getGets
in interface ISrvMonPoolStats
public final void setGetsFrom(com.neeve.xbuf.XbufVariableLongField val)
public final com.neeve.xbuf.XbufVariableLongField getGetsField()
public final boolean hasGets()
ISrvMonPoolStats
hasGets
in interface ISrvMonPoolStats
ISrvMonPoolStats.getGets()
public final void clearGets()
ISrvMonPoolStats
clearGets
in interface ISrvMonPoolStats
ISrvMonPoolStats.setGets(long)
public static final int getHitsFieldId()
This method can be used to set field interests.
getHits()
public final void setHits(long val)
ISrvMonPoolStats
setHits
in interface ISrvMonPoolStats
val
- The value to set.public final long getHits()
ISrvMonPoolStats
getHits
in interface ISrvMonPoolStats
public final void setHitsFrom(com.neeve.xbuf.XbufVariableLongField val)
public final com.neeve.xbuf.XbufVariableLongField getHitsField()
public final boolean hasHits()
ISrvMonPoolStats
hasHits
in interface ISrvMonPoolStats
ISrvMonPoolStats.getHits()
public final void clearHits()
ISrvMonPoolStats
clearHits
in interface ISrvMonPoolStats
ISrvMonPoolStats.setHits(long)
public static final int getMissesFieldId()
This method can be used to set field interests.
getMisses()
public final void setMisses(long val)
ISrvMonPoolStats
setMisses
in interface ISrvMonPoolStats
val
- The value to set.public final long getMisses()
ISrvMonPoolStats
getMisses
in interface ISrvMonPoolStats
public final void setMissesFrom(com.neeve.xbuf.XbufVariableLongField val)
public final com.neeve.xbuf.XbufVariableLongField getMissesField()
public final boolean hasMisses()
ISrvMonPoolStats
hasMisses
in interface ISrvMonPoolStats
ISrvMonPoolStats.getMisses()
public final void clearMisses()
ISrvMonPoolStats
clearMisses
in interface ISrvMonPoolStats
ISrvMonPoolStats.setMisses(long)
public static final int getGrowthsFieldId()
This method can be used to set field interests.
getGrowths()
public final void setGrowths(long val)
ISrvMonPoolStats
setGrowths
in interface ISrvMonPoolStats
val
- The value to set.public final long getGrowths()
ISrvMonPoolStats
getGrowths
in interface ISrvMonPoolStats
public final void setGrowthsFrom(com.neeve.xbuf.XbufVariableLongField val)
public final com.neeve.xbuf.XbufVariableLongField getGrowthsField()
public final boolean hasGrowths()
ISrvMonPoolStats
hasGrowths
in interface ISrvMonPoolStats
ISrvMonPoolStats.getGrowths()
public final void clearGrowths()
ISrvMonPoolStats
clearGrowths
in interface ISrvMonPoolStats
ISrvMonPoolStats.setGrowths(long)
public static final int getEvictsFieldId()
This method can be used to set field interests.
getEvicts()
public final void setEvicts(long val)
ISrvMonPoolStats
setEvicts
in interface ISrvMonPoolStats
val
- The value to set.public final long getEvicts()
ISrvMonPoolStats
getEvicts
in interface ISrvMonPoolStats
public final void setEvictsFrom(com.neeve.xbuf.XbufVariableLongField val)
public final com.neeve.xbuf.XbufVariableLongField getEvictsField()
public final boolean hasEvicts()
ISrvMonPoolStats
hasEvicts
in interface ISrvMonPoolStats
ISrvMonPoolStats.getEvicts()
public final void clearEvicts()
ISrvMonPoolStats
clearEvicts
in interface ISrvMonPoolStats
ISrvMonPoolStats.setEvicts(long)
public static final int getDetachedWashesFieldId()
This method can be used to set field interests.
getDetachedWashes()
public final void setDetachedWashes(long val)
ISrvMonPoolStats
setDetachedWashes
in interface ISrvMonPoolStats
val
- The value to set.public final long getDetachedWashes()
ISrvMonPoolStats
getDetachedWashes
in interface ISrvMonPoolStats
public final void setDetachedWashesFrom(com.neeve.xbuf.XbufVariableLongField val)
public final com.neeve.xbuf.XbufVariableLongField getDetachedWashesField()
public final boolean hasDetachedWashes()
ISrvMonPoolStats
hasDetachedWashes
in interface ISrvMonPoolStats
ISrvMonPoolStats.getDetachedWashes()
public final void clearDetachedWashes()
ISrvMonPoolStats
clearDetachedWashes
in interface ISrvMonPoolStats
ISrvMonPoolStats.setDetachedWashes(long)
public static final int getSizeFieldId()
This method can be used to set field interests.
getSize()
public final void setSize(int val)
ISrvMonPoolStats
Note that a value of 0 does not necessarily indicate that there is a pooling issue: a healthy pool in which elements are continuously being recycled will have a size of zero frequently while the elements have been checked out by the thread using them.
setSize
in interface ISrvMonPoolStats
val
- The value to set.public final int getSize()
ISrvMonPoolStats
Note that a value of 0 does not necessarily indicate that there is a pooling issue: a healthy pool in which elements are continuously being recycled will have a size of zero frequently while the elements have been checked out by the thread using them.
getSize
in interface ISrvMonPoolStats
public final void setSizeFrom(com.neeve.xbuf.XbufVariableIntField val)
public final com.neeve.xbuf.XbufVariableIntField getSizeField()
public final boolean hasSize()
ISrvMonPoolStats
Note that a value of 0 does not necessarily indicate that there is a pooling issue: a healthy pool in which elements are continuously being recycled will have a size of zero frequently while the elements have been checked out by the thread using them.
hasSize
in interface ISrvMonPoolStats
ISrvMonPoolStats.getSize()
public final void clearSize()
ISrvMonPoolStats
Note that a value of 0 does not necessarily indicate that there is a pooling issue: a healthy pool in which elements are continuously being recycled will have a size of zero frequently while the elements have been checked out by the thread using them.
clearSize
in interface ISrvMonPoolStats
ISrvMonPoolStats.setSize(int)
public static final int getCapacityFieldId()
This method can be used to set field interests.
getCapacity()
public final void setCapacity(int val)
ISrvMonPoolStats
setCapacity
in interface ISrvMonPoolStats
val
- The value to set.public final int getCapacity()
ISrvMonPoolStats
getCapacity
in interface ISrvMonPoolStats
public final void setCapacityFrom(com.neeve.xbuf.XbufVariableIntField val)
public final com.neeve.xbuf.XbufVariableIntField getCapacityField()
public final boolean hasCapacity()
ISrvMonPoolStats
hasCapacity
in interface ISrvMonPoolStats
ISrvMonPoolStats.getCapacity()
public final void clearCapacity()
ISrvMonPoolStats
clearCapacity
in interface ISrvMonPoolStats
ISrvMonPoolStats.setCapacity(int)
public static final int getPreallocatedFieldId()
This method can be used to set field interests.
getPreallocated()
public final void setPreallocated(int val)
ISrvMonPoolStats
setPreallocated
in interface ISrvMonPoolStats
val
- The value to set.public final int getPreallocated()
ISrvMonPoolStats
getPreallocated
in interface ISrvMonPoolStats
public final void setPreallocatedFrom(com.neeve.xbuf.XbufVariableIntField val)
public final com.neeve.xbuf.XbufVariableIntField getPreallocatedField()
public final boolean hasPreallocated()
ISrvMonPoolStats
hasPreallocated
in interface ISrvMonPoolStats
ISrvMonPoolStats.getPreallocated()
public final void clearPreallocated()
ISrvMonPoolStats
clearPreallocated
in interface ISrvMonPoolStats
ISrvMonPoolStats.setPreallocated(int)
public static final int getKeyFieldId()
This method can be used to set field interests.
getKey()
public final void setKey(String val)
ISrvMonPoolStats
setKey
in interface ISrvMonPoolStats
val
- The value to set.public final String getKey()
ISrvMonPoolStats
getKey
in interface ISrvMonPoolStats
public final void lendKey(XString val)
ISrvMonPoolStats
lendKey
in interface ISrvMonPoolStats
val
- The value to set.public final void setKeyFrom(long val)
ISrvMonPoolStats
NOTE:
This is the same as calling ISrvMonPoolStats.setKey(String)
.
with Long.valueOf(val).toString(), except that using this method is a zero garbage
operation for Xbuf encoding.
setKeyFrom
in interface ISrvMonPoolStats
public final <T extends XString> T getKeyTo(XString.Factory<T> factory)
ISrvMonPoolStats
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;
getKeyTo
in interface ISrvMonPoolStats
factory
- The factory from which to get the XString to copy into and return
null
.public final void setKeyFrom(XString val)
ISrvMonPoolStats
NOTE:
This is a Zero Garbage operation for XBuf encoded objects. Additionally, this setter
can be more efficient than ISrvMonPoolStats.setKey(String)
because it avoids encoding the value into a String
if the given XString
is already encoded.
setKeyFrom
in interface ISrvMonPoolStats
public final void getKeyTo(XString val)
ISrvMonPoolStats
NOTE:
This is a Zero Garbage operation for XBuf encoded objects. Additionally, this getter
can be more efficient than ISrvMonPoolStats.getKey()
bec
because it can avoid decoding the value into an String
.
getKeyTo
in interface ISrvMonPoolStats
ISrvMonPoolStats.getKey()
public final XString getKeyUnsafe()
ISrvMonPoolStats
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.
getKeyUnsafe
in interface ISrvMonPoolStats
ISrvMonPoolStats.getKey()
public final void setKeyFrom(com.neeve.xbuf.XbufStringField val)
public final com.neeve.xbuf.XbufStringField getKeyField()
public final boolean hasKey()
ISrvMonPoolStats
hasKey
in interface ISrvMonPoolStats
ISrvMonPoolStats.getKey()
public final void clearKey()
ISrvMonPoolStats
clearKey
in interface ISrvMonPoolStats
ISrvMonPoolStats.setKey(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 SrvMonPoolStats deserializeFromIOElasticBuffer(com.neeve.io.IOElasticBuffer buffer, int offset, int length, com.neeve.xbuf.XbufDesyncPolicy desyncPolicy)
public final SrvMonPoolStats deserializeFromIOElasticBuffer(com.neeve.io.IOElasticBuffer buffer, int offset, int length)
public final SrvMonPoolStats deserializeFromByteArray(byte[] array, com.neeve.xbuf.XbufDesyncPolicy desyncPolicy)
public final SrvMonPoolStats deserializeFromByteArray(byte[] array)
public final SrvMonPoolStats deserializeFromByteBuffer(ByteBuffer buffer, com.neeve.xbuf.XbufDesyncPolicy desyncPolicy)
public final SrvMonPoolStats deserializeFromByteBuffer(ByteBuffer buffer)
public final SrvMonPoolStats deserializeFromNative(long address, int offset, int length, com.neeve.xbuf.XbufDesyncPolicy desyncPolicy)
public final SrvMonPoolStats 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 SrvMonPoolStats 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<SrvMonPoolStats>
public final SrvMonPoolStats setPool(UtlPool<SrvMonPoolStats> 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<SrvMonPoolStats>
public final UtlPool<SrvMonPoolStats> getPool()
UtlPool.Item
This method should return the pool set using UtlPool.Item.setPool(com.neeve.util.UtlPool
getPool
in interface UtlPool.Item<SrvMonPoolStats>
UtlPool.Item.setPool(com.neeve.util.UtlPool)
public final boolean isReferenceCounted()
public final SrvMonPoolStats 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 SrvMonPoolStats 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 SrvMonPoolStats's embedded entity fields.
The returned copy will be writeable even if this SrvMonPoolStats is read only.
public final void copyInto(SrvMonPoolStats 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 SrvMonPoolStats's embedded entity fields.
The returned copy will be writeable even if this SrvMonPoolStats 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 |