@Generated(value="com.neeve.adm.AdmXbufGenerator", date="Fri Dec 05 13:32:50 UTC 2025") @AdmGenerated(encoding="Xbuf", compatLevel="4.1.0", admVersion="Unknown Version", date="12/5/25 1:32 PM", buildInfo="nvx-talon-3.16.63 (nvx-codegen-plugin)") @AdmFactoryInfo(factoryClass=SrvMonFactory.class, vfid=32, ofid=32, typeId=224) public final class SrvMonSysDiskStats extends Object implements com.neeve.xbuf.IXbufDesyncer, UtlPool.Item<SrvMonSysDiskStats>, ISrvMonSysDiskStats
| ADM Type | Embedded Entity |
| Factory | SrvMonFactory |
| ADM Field Summary |
|---|
| Field | Type | Id | Description |
|---|---|---|---|
| freeSpace | Long | 19 | Returns the number of unallocated bytes in the disk or partition. |
| rootPath | String | 16 | The file system root path for the disk or partition. |
| totalSpace | Long | 17 | The size, in bytes, of the partition or 0L if the root path doesn't correspond to a partition. |
| usableSpace | Long | 18 | The number of bytes available to the xvm for the disk or partition. |
| Modifier and Type | Class and Description |
|---|---|
static class |
SrvMonSysDiskStats.Field
The SrvMonSysDiskStats xbuf field (used internally when this entity is used as a field of another entity).
|
static class |
SrvMonSysDiskStats.ListField
The SrvMonSysDiskStats list field (used internally when this entity is used as an array field of another entity).
|
| Modifier and Type | Field and Description |
|---|---|
static SrvMonSysDiskStats[] |
EMPTY_ARRAY
A preallocated empty array used to avoid garbage when returning empty arrays of this type.
|
| Constructor and Description |
|---|
SrvMonSysDiskStats() |
SrvMonSysDiskStats(int initialBackingBufferSize) |
| Modifier and Type | Method and Description |
|---|---|
SrvMonSysDiskStats |
acquire() |
void |
clearContent() |
void |
clearFreeSpace()
Clears the value of 'freeSpace'.
|
void |
clearRootPath()
Clears the value of 'rootPath'.
|
void |
clearTotalSpace()
Clears the value of 'totalSpace'.
|
void |
clearUsableSpace()
Clears the value of 'usableSpace'.
|
void |
clearXRogType() |
Object |
clone()
Creates a clone of this object.
|
SrvMonSysDiskStats |
copy()
Creates a copy of this SrvMonSysDiskStats.
|
void |
copyInto(SrvMonSysDiskStats copy)
Copies the contents of this SrvMonSysDiskStats into the target.
|
static SrvMonSysDiskStats |
create() |
static SrvMonSysDiskStats |
createFrom(byte[] serializedContainer) |
static SrvMonSysDiskStats |
createFrom(byte[] serializedContainer,
com.neeve.xbuf.XbufDesyncPolicy desyncPolicy) |
static SrvMonSysDiskStats |
createFromSerializedXbufContainer(byte[] serializedContainer) |
static SrvMonSysDiskStats |
createFromSerializedXbufContainer(byte[] serializedContainer,
com.neeve.xbuf.XbufDesyncPolicy desyncPolicy) |
static com.neeve.xbuf.XbufSchema |
createSchema() |
SrvMonSysDiskStats |
deserializeFromByteArray(byte[] array) |
SrvMonSysDiskStats |
deserializeFromByteArray(byte[] array,
com.neeve.xbuf.XbufDesyncPolicy desyncPolicy) |
SrvMonSysDiskStats |
deserializeFromByteBuffer(ByteBuffer buffer) |
SrvMonSysDiskStats |
deserializeFromByteBuffer(ByteBuffer buffer,
com.neeve.xbuf.XbufDesyncPolicy desyncPolicy) |
SrvMonSysDiskStats |
deserializeFromIOElasticBuffer(com.neeve.io.IOElasticBuffer buffer,
int offset,
int length) |
SrvMonSysDiskStats |
deserializeFromIOElasticBuffer(com.neeve.io.IOElasticBuffer buffer,
int offset,
int length,
com.neeve.xbuf.XbufDesyncPolicy desyncPolicy) |
SrvMonSysDiskStats |
deserializeFromNative(long address,
int offset,
int length) |
SrvMonSysDiskStats |
deserializeFromNative(long address,
int offset,
int length,
com.neeve.xbuf.XbufDesyncPolicy desyncPolicy) |
int |
desync(PktBuffer buffer,
int pos,
boolean frameOnly)
Desync fields from a buffer
|
void |
desyncFieldBitmask() |
void |
dispose() |
PktBuffer |
getBackingBuffer() |
static com.neeve.xbuf.XbufDesyncPolicy |
getDesyncPolicy() |
long |
getFreeSpace()
Gets the value of 'freeSpace'.
|
Long |
getFreeSpaceAsObject()
Gets the value of 'freeSpace'.
|
com.neeve.xbuf.XbufVariableLongField |
getFreeSpaceField() |
static int |
getFreeSpaceFieldId() |
boolean |
getIsReadOnly() |
int |
getOwnerCount() |
UtlPool<SrvMonSysDiskStats> |
getPool()
Get a pool item's pool.
|
String |
getRootPath()
Gets the value of 'rootPath'.
|
com.neeve.xbuf.XbufStringField |
getRootPathField() |
static int |
getRootPathFieldId() |
<T extends XString> |
getRootPathTo(XString.Factory<T> factory)
Copies the value of this String field into a new XString from the given factory.
|
void |
getRootPathTo(XString val)
Copies the value of 'rootPath' into the provided XString.
|
XString |
getRootPathUnsafe()
Gets the raw value of 'rootPath'.
|
int |
getSerializeToNativeLength() |
long |
getTotalSpace()
Gets the value of 'totalSpace'.
|
Long |
getTotalSpaceAsObject()
Gets the value of 'totalSpace'.
|
com.neeve.xbuf.XbufVariableLongField |
getTotalSpaceField() |
static int |
getTotalSpaceFieldId() |
long |
getUsableSpace()
Gets the value of 'usableSpace'.
|
Long |
getUsableSpaceAsObject()
Gets the value of 'usableSpace'.
|
com.neeve.xbuf.XbufVariableLongField |
getUsableSpaceField() |
static int |
getUsableSpaceFieldId() |
void |
getValidationErrors(List<XString> results,
String errorPrefix)
Collects validation errors into the provided list.
|
short |
getXRogType() |
Short |
getXRogTypeAsObject() |
com.neeve.xbuf.XbufVariableShortField |
getXRogTypeField() |
static int |
getXRogTypeFieldId() |
boolean |
hasFreeSpace()
Checks for the presence of 'freeSpace'.
|
boolean |
hasRootPath()
Checks for the presence of 'rootPath'.
|
boolean |
hasTotalSpace()
Checks for the presence of 'totalSpace'.
|
boolean |
hasUsableSpace()
Checks for the presence of 'usableSpace'.
|
boolean |
hasXRogType() |
SrvMonSysDiskStats |
init()
Initialize an item.
|
boolean |
isBufferBacked() |
boolean |
isDirty() |
boolean |
isReferenceCounted() |
boolean |
isValid()
Tests if this object has any validation errors.
|
void |
lendRootPath(XString val)
Lends the value of 'rootPath' to this object.
|
static void |
optimizeFor(int val) |
byte[] |
serializeToByteArray() |
ByteBuffer |
serializeToByteBuffer() |
com.neeve.io.IOBuffer |
serializeToIOBuffer(boolean useNative) |
int |
serializeToNative(long address,
int addressOffset) |
void |
setAsReadOnly() |
static void |
setDesyncPolicy(com.neeve.xbuf.XbufDesyncPolicy val) |
static void |
setFieldInterest(List<Integer> fieldIds) |
void |
setFreeSpace(long val)
Sets the value of 'freeSpace'.
|
void |
setFreeSpaceAsObject(Long val)
Sets the value of 'freeSpace'.
|
void |
setFreeSpaceFrom(com.neeve.xbuf.XbufVariableLongField val) |
SrvMonSysDiskStats |
setPool(UtlPool<SrvMonSysDiskStats> pool)
Set a pool item's pool.
|
void |
setPreserializedFields(PktBuffer buffer) |
void |
setRootPath(String val)
Sets the value of 'rootPath'.
|
void |
setRootPathFrom(long val)
Sets the value of this String field to the given numeric value.
|
void |
setRootPathFrom(com.neeve.xbuf.XbufStringField val) |
void |
setRootPathFrom(XString val)
Copies the provided XString value into this object's 'rootPath'.
|
void |
setTotalSpace(long val)
Sets the value of 'totalSpace'.
|
void |
setTotalSpaceAsObject(Long val)
Sets the value of 'totalSpace'.
|
void |
setTotalSpaceFrom(com.neeve.xbuf.XbufVariableLongField val) |
void |
setUsableSpace(long val)
Sets the value of 'usableSpace'.
|
void |
setUsableSpaceAsObject(Long val)
Sets the value of 'usableSpace'.
|
void |
setUsableSpaceFrom(com.neeve.xbuf.XbufVariableLongField val) |
void |
setXRogType(short val) |
void |
setXRogTypeAsObject(Short val) |
void |
setXRogTypeFrom(com.neeve.xbuf.XbufVariableShortField val) |
void |
sync() |
void |
syncFieldBitmask() |
String |
toString() |
public static final SrvMonSysDiskStats[] EMPTY_ARRAY
public SrvMonSysDiskStats()
public SrvMonSysDiskStats(int initialBackingBufferSize)
public static SrvMonSysDiskStats create()
public static SrvMonSysDiskStats createFromSerializedXbufContainer(byte[] serializedContainer, com.neeve.xbuf.XbufDesyncPolicy desyncPolicy)
public static SrvMonSysDiskStats createFromSerializedXbufContainer(byte[] serializedContainer)
public static SrvMonSysDiskStats createFrom(byte[] serializedContainer, com.neeve.xbuf.XbufDesyncPolicy desyncPolicy)
public static SrvMonSysDiskStats createFrom(byte[] serializedContainer)
public static final void setDesyncPolicy(com.neeve.xbuf.XbufDesyncPolicy val)
public static final com.neeve.xbuf.XbufDesyncPolicy getDesyncPolicy()
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 final void setPreserializedFields(PktBuffer buffer)
public static final int getXRogTypeFieldId()
public final void setXRogType(short val)
public final void setXRogTypeAsObject(Short val)
public final short getXRogType()
public final Short getXRogTypeAsObject()
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 getTotalSpaceFieldId()
public final void setTotalSpace(long val)
ISrvMonSysDiskStatssetTotalSpace in interface ISrvMonSysDiskStatsval - The value to set.public final void setTotalSpaceAsObject(Long val)
ISrvMonSysDiskStatssetTotalSpaceAsObject in interface ISrvMonSysDiskStatsval - The value to set.public final long getTotalSpace()
ISrvMonSysDiskStatsgetTotalSpace in interface ISrvMonSysDiskStatspublic final Long getTotalSpaceAsObject()
ISrvMonSysDiskStatsgetTotalSpaceAsObject in interface ISrvMonSysDiskStatspublic final void setTotalSpaceFrom(com.neeve.xbuf.XbufVariableLongField val)
public final com.neeve.xbuf.XbufVariableLongField getTotalSpaceField()
public final boolean hasTotalSpace()
ISrvMonSysDiskStatshasTotalSpace in interface ISrvMonSysDiskStatsISrvMonSysDiskStats.getTotalSpace()public final void clearTotalSpace()
ISrvMonSysDiskStatsclearTotalSpace in interface ISrvMonSysDiskStatsISrvMonSysDiskStats.setTotalSpace(long)public static final int getUsableSpaceFieldId()
public final void setUsableSpace(long val)
ISrvMonSysDiskStatssetUsableSpace in interface ISrvMonSysDiskStatsval - The value to set.public final void setUsableSpaceAsObject(Long val)
ISrvMonSysDiskStatssetUsableSpaceAsObject in interface ISrvMonSysDiskStatsval - The value to set.public final long getUsableSpace()
ISrvMonSysDiskStatsgetUsableSpace in interface ISrvMonSysDiskStatspublic final Long getUsableSpaceAsObject()
ISrvMonSysDiskStatsgetUsableSpaceAsObject in interface ISrvMonSysDiskStatspublic final void setUsableSpaceFrom(com.neeve.xbuf.XbufVariableLongField val)
public final com.neeve.xbuf.XbufVariableLongField getUsableSpaceField()
public final boolean hasUsableSpace()
ISrvMonSysDiskStatshasUsableSpace in interface ISrvMonSysDiskStatsISrvMonSysDiskStats.getUsableSpace()public final void clearUsableSpace()
ISrvMonSysDiskStatsclearUsableSpace in interface ISrvMonSysDiskStatsISrvMonSysDiskStats.setUsableSpace(long)public static final int getFreeSpaceFieldId()
public final void setFreeSpace(long val)
ISrvMonSysDiskStatssetFreeSpace in interface ISrvMonSysDiskStatsval - The value to set.public final void setFreeSpaceAsObject(Long val)
ISrvMonSysDiskStatssetFreeSpaceAsObject in interface ISrvMonSysDiskStatsval - The value to set.public final long getFreeSpace()
ISrvMonSysDiskStatsgetFreeSpace in interface ISrvMonSysDiskStatspublic final Long getFreeSpaceAsObject()
ISrvMonSysDiskStatsgetFreeSpaceAsObject in interface ISrvMonSysDiskStatspublic final void setFreeSpaceFrom(com.neeve.xbuf.XbufVariableLongField val)
public final com.neeve.xbuf.XbufVariableLongField getFreeSpaceField()
public final boolean hasFreeSpace()
ISrvMonSysDiskStatshasFreeSpace in interface ISrvMonSysDiskStatsISrvMonSysDiskStats.getFreeSpace()public final void clearFreeSpace()
ISrvMonSysDiskStatsclearFreeSpace in interface ISrvMonSysDiskStatsISrvMonSysDiskStats.setFreeSpace(long)public static final int getRootPathFieldId()
public final void setRootPath(String val)
ISrvMonSysDiskStatssetRootPath in interface ISrvMonSysDiskStatsval - The value to set.public final String getRootPath()
ISrvMonSysDiskStatsgetRootPath in interface ISrvMonSysDiskStatspublic final void lendRootPath(XString val)
ISrvMonSysDiskStatsThis method is equivalent to setRootPath except that it allows this object to defer copying the value until this object is next serialized. This means that the caller must not modify or dispose the value being passed in to this method.
Note, also, that unlike lendXXX methods for embedded entities, this method does not attempt to acquire or dispose of the value passed in even if the value is poolable.
lendRootPath in interface ISrvMonSysDiskStatsval - The value to set.public final void setRootPathFrom(long val)
ISrvMonSysDiskStats
NOTE:
This is the same as calling ISrvMonSysDiskStats.setRootPath(String).
with Long.valueOf(val).toString(), except that using this method is a zero garbage
operation for Xbuf encoding.
setRootPathFrom in interface ISrvMonSysDiskStatspublic final <T extends XString> T getRootPathTo(XString.Factory<T> factory)
ISrvMonSysDiskStats
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;
getRootPathTo in interface ISrvMonSysDiskStatsfactory - The factory from which to get the XString to copy into and returnnull.public final void setRootPathFrom(XString val)
ISrvMonSysDiskStats
NOTE:
This is a Zero Garbage operation for XBuf encoded objects. Additionally, this setter
can be more efficient than ISrvMonSysDiskStats.setRootPath(String)
because it avoids encoding the value into a String if the given XString is already encoded.
setRootPathFrom in interface ISrvMonSysDiskStatspublic final void getRootPathTo(XString val)
ISrvMonSysDiskStats
NOTE:
This is a Zero Garbage operation for XBuf encoded objects. Additionally, this getter
can be more efficient than ISrvMonSysDiskStats.getRootPath() bec
because it can avoid decoding the value into an String.
getRootPathTo in interface ISrvMonSysDiskStatsISrvMonSysDiskStats.getRootPath()public final XString getRootPathUnsafe()
ISrvMonSysDiskStats
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.
getRootPathUnsafe in interface ISrvMonSysDiskStatsISrvMonSysDiskStats.getRootPath()public final void setRootPathFrom(com.neeve.xbuf.XbufStringField val)
public final com.neeve.xbuf.XbufStringField getRootPathField()
public final boolean hasRootPath()
ISrvMonSysDiskStatshasRootPath in interface ISrvMonSysDiskStatsISrvMonSysDiskStats.getRootPath()public final void clearRootPath()
ISrvMonSysDiskStatsclearRootPath in interface ISrvMonSysDiskStatsISrvMonSysDiskStats.setRootPath(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 SrvMonSysDiskStats deserializeFromIOElasticBuffer(com.neeve.io.IOElasticBuffer buffer, int offset, int length, com.neeve.xbuf.XbufDesyncPolicy desyncPolicy)
public final SrvMonSysDiskStats deserializeFromIOElasticBuffer(com.neeve.io.IOElasticBuffer buffer, int offset, int length)
public final SrvMonSysDiskStats deserializeFromByteArray(byte[] array, com.neeve.xbuf.XbufDesyncPolicy desyncPolicy)
public final SrvMonSysDiskStats deserializeFromByteArray(byte[] array)
public final SrvMonSysDiskStats deserializeFromByteBuffer(ByteBuffer buffer, com.neeve.xbuf.XbufDesyncPolicy desyncPolicy)
public final SrvMonSysDiskStats deserializeFromByteBuffer(ByteBuffer buffer)
public final SrvMonSysDiskStats deserializeFromNative(long address, int offset, int length, com.neeve.xbuf.XbufDesyncPolicy desyncPolicy)
public final SrvMonSysDiskStats deserializeFromNative(long address, int offset, int length)
public final void sync()
public final int desync(PktBuffer buffer, int pos, boolean frameOnly)
com.neeve.xbuf.IXbufDesyncerdesync in interface com.neeve.xbuf.IXbufDesyncerbuffer - The buffer to desync frompos - The position in the container's backing buffer to desync
fromframeOnly - Whether to frame the field on the underlying buffer.
See XbufField.desync(PktBuffer, int, boolean) for more
informationpublic final SrvMonSysDiskStats init()
UtlPool.ItemThis 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<SrvMonSysDiskStats>public final SrvMonSysDiskStats setPool(UtlPool<SrvMonSysDiskStats> pool)
UtlPool.ItemThis 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<SrvMonSysDiskStats>public final UtlPool<SrvMonSysDiskStats> getPool()
UtlPool.Item
This method should return the pool set using UtlPool.Item.setPool(com.neeve.util.UtlPool<T>)
getPool in interface UtlPool.Item<SrvMonSysDiskStats>UtlPool.Item.setPool(com.neeve.util.UtlPool<T>)public final boolean isReferenceCounted()
public final SrvMonSysDiskStats acquire()
public final int getOwnerCount()
public final void dispose()
public final Object clone()
This method differs from the copy() method in that:
public final SrvMonSysDiskStats 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 SrvMonSysDiskStats's embedded entity fields.
The returned copy will be writeable even if this SrvMonSysDiskStats is read only.
public final void copyInto(SrvMonSysDiskStats 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 SrvMonSysDiskStats's embedded entity fields.
The returned copy will be writeable even if this SrvMonSysDiskStats is read only.
copy - The target into which to copy.public final boolean isValid()
IRogValidatableisValid in interface IRogValidatablepublic final void getValidationErrors(List<XString> results, String errorPrefix)
IRogValidatablegetValidationErrors in interface IRogValidatableresults - 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.Copyright © 2019 Neeve Research, LLC. All Rights Reserved.