com.neeve.server.mon
Class SrvMonSysDiskStats

java.lang.Object
  extended by com.neeve.server.mon.SrvMonSysDiskStats
All Implemented Interfaces:
IRogValidatable, ISrvMonSysDiskStats, UtlPool.Item<SrvMonSysDiskStats>, 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=224)
public final class SrvMonSysDiskStats
extends Object
implements com.neeve.xbuf.IXbufDesyncer, UtlPool.Item<SrvMonSysDiskStats>, ISrvMonSysDiskStats

Groups together stats related to the disk available for the XVM.


Nested Class Summary
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).
 
Field Summary
static SrvMonSysDiskStats[] EMPTY_ARRAY
          A preallocated empty array used to avoid garbage when returning empty arrays of this type.
 
Constructor Summary
SrvMonSysDiskStats()
           
SrvMonSysDiskStats(int initialBackingBufferSize)
           
 
Method Summary
 SrvMonSysDiskStats acquire()
           
 void clearContent()
           
 void clearFreeSpace()
          Clears the value of 'freeSpace' Field Description Returns the number of unallocated bytes in the disk or partition.
 void clearRootPath()
          Clears the value of 'rootPath' Field Description The file system root path for the disk or partition.
 void clearTotalSpace()
          Clears the value of 'totalSpace' Field Description The size, in bytes, of the partition or 0L if the root path doesn't correspond to a partition.
 void clearUsableSpace()
          Clears the value of 'usableSpace' Field Description The number of bytes available to the xvm for the disk or partition.
 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)
           
 void desyncFieldBitmask()
           
 void dispose()
           
 PktBuffer getBackingBuffer()
           
static com.neeve.xbuf.XbufDesyncPolicy getDesyncPolicy()
           
 long getFreeSpace()
          Gets the value of 'freeSpace' Field Description Returns the number of unallocated bytes in the disk or partition.
 com.neeve.xbuf.XbufVariableLongField getFreeSpaceField()
           
static int getFreeSpaceFieldId()
          Get the field id for 'freeSpace' This method can be used to set field interests.
 boolean getIsReadOnly()
           
 int getOwnerCount()
           
 UtlPool<SrvMonSysDiskStats> getPool()
          Get a pool item's pool.
 String getRootPath()
          Gets the value of 'rootPath' Field Description The file system root path for the disk or partition.
 com.neeve.xbuf.XbufStringField getRootPathField()
           
static int getRootPathFieldId()
          Get the field id for 'rootPath' This method can be used to set field interests.
<T extends XString>
T
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' Field Description The size, in bytes, of the partition or 0L if the root path doesn't correspond to a partition.
 com.neeve.xbuf.XbufVariableLongField getTotalSpaceField()
           
static int getTotalSpaceFieldId()
          Get the field id for 'totalSpace' This method can be used to set field interests.
 long getUsableSpace()
          Gets the value of 'usableSpace' Field Description The number of bytes available to the xvm for the disk or partition.
 com.neeve.xbuf.XbufVariableLongField getUsableSpaceField()
           
static int getUsableSpaceFieldId()
          Get the field id for 'usableSpace' 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 hasFreeSpace()
          Checks for the presence of 'freeSpace' Field Description Returns the number of unallocated bytes in the disk or partition.
 boolean hasRootPath()
          Checks for the presence of 'rootPath' Field Description The file system root path for the disk or partition.
 boolean hasTotalSpace()
          Checks for the presence of 'totalSpace' Field Description The size, in bytes, of the partition or 0L if the root path doesn't correspond to a partition.
 boolean hasUsableSpace()
          Checks for the presence of 'usableSpace' Field Description The number of bytes available to the xvm for the disk or partition.
 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)
          Sets the value of 'rootPath' Field Description The file system root path for the disk or partition.
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' Field Description Returns the number of unallocated bytes in the disk or partition.
 void setFreeSpaceFrom(com.neeve.xbuf.XbufVariableLongField val)
           
 SrvMonSysDiskStats setPool(UtlPool<SrvMonSysDiskStats> pool)
          Set a pool item's pool.
 void setRootPath(String val)
          Sets the value of 'rootPath' Field Description The file system root path for the disk or partition.
 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' Field Description The size, in bytes, of the partition or 0L if the root path doesn't correspond to a partition.
 void setTotalSpaceFrom(com.neeve.xbuf.XbufVariableLongField val)
           
 void setUsableSpace(long val)
          Sets the value of 'usableSpace' Field Description The number of bytes available to the xvm for the disk or partition.
 void setUsableSpaceFrom(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

EMPTY_ARRAY

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

Constructor Detail

SrvMonSysDiskStats

public SrvMonSysDiskStats()

SrvMonSysDiskStats

public SrvMonSysDiskStats(int initialBackingBufferSize)
Method Detail

create

public static SrvMonSysDiskStats create()

createFromSerializedXbufContainer

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

createFromSerializedXbufContainer

public static SrvMonSysDiskStats createFromSerializedXbufContainer(byte[] serializedContainer)

createFrom

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

createFrom

public static SrvMonSysDiskStats 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()

getTotalSpaceFieldId

public static final int getTotalSpaceFieldId()
Get the field id for 'totalSpace'

This method can be used to set field interests.

See Also:
getTotalSpace()

setTotalSpace

public final void setTotalSpace(long val)
Description copied from interface: ISrvMonSysDiskStats
Sets the value of 'totalSpace'

Field Description

The size, in bytes, of the partition or 0L if the root path doesn't correspond to a partition.

Specified by:
setTotalSpace in interface ISrvMonSysDiskStats
Parameters:
val - The value to set.

getTotalSpace

public final long getTotalSpace()
Description copied from interface: ISrvMonSysDiskStats
Gets the value of 'totalSpace'

Field Description

The size, in bytes, of the partition or 0L if the root path doesn't correspond to a partition.

Specified by:
getTotalSpace in interface ISrvMonSysDiskStats
Returns:
The size, in bytes, of the partition or 0L if the root path doesn't correspond to a partition.

setTotalSpaceFrom

public final void setTotalSpaceFrom(com.neeve.xbuf.XbufVariableLongField val)

getTotalSpaceField

public final com.neeve.xbuf.XbufVariableLongField getTotalSpaceField()

hasTotalSpace

public final boolean hasTotalSpace()
Description copied from interface: ISrvMonSysDiskStats
Checks for the presence of 'totalSpace'

Field Description

The size, in bytes, of the partition or 0L if the root path doesn't correspond to a partition.

Specified by:
hasTotalSpace in interface ISrvMonSysDiskStats
See Also:
ISrvMonSysDiskStats.getTotalSpace()

clearTotalSpace

public final void clearTotalSpace()
Description copied from interface: ISrvMonSysDiskStats
Clears the value of 'totalSpace'

Field Description

The size, in bytes, of the partition or 0L if the root path doesn't correspond to a partition.

Specified by:
clearTotalSpace in interface ISrvMonSysDiskStats
See Also:
ISrvMonSysDiskStats.setTotalSpace(long)

getUsableSpaceFieldId

public static final int getUsableSpaceFieldId()
Get the field id for 'usableSpace'

This method can be used to set field interests.

See Also:
getUsableSpace()

setUsableSpace

public final void setUsableSpace(long val)
Description copied from interface: ISrvMonSysDiskStats
Sets the value of 'usableSpace'

Field Description

The number of bytes available to the xvm for the disk or partition.

Specified by:
setUsableSpace in interface ISrvMonSysDiskStats
Parameters:
val - The value to set.

getUsableSpace

public final long getUsableSpace()
Description copied from interface: ISrvMonSysDiskStats
Gets the value of 'usableSpace'

Field Description

The number of bytes available to the xvm for the disk or partition.

Specified by:
getUsableSpace in interface ISrvMonSysDiskStats
Returns:
The number of bytes available to the xvm for the disk or partition.

setUsableSpaceFrom

public final void setUsableSpaceFrom(com.neeve.xbuf.XbufVariableLongField val)

getUsableSpaceField

public final com.neeve.xbuf.XbufVariableLongField getUsableSpaceField()

hasUsableSpace

public final boolean hasUsableSpace()
Description copied from interface: ISrvMonSysDiskStats
Checks for the presence of 'usableSpace'

Field Description

The number of bytes available to the xvm for the disk or partition.

Specified by:
hasUsableSpace in interface ISrvMonSysDiskStats
See Also:
ISrvMonSysDiskStats.getUsableSpace()

clearUsableSpace

public final void clearUsableSpace()
Description copied from interface: ISrvMonSysDiskStats
Clears the value of 'usableSpace'

Field Description

The number of bytes available to the xvm for the disk or partition.

Specified by:
clearUsableSpace in interface ISrvMonSysDiskStats
See Also:
ISrvMonSysDiskStats.setUsableSpace(long)

getFreeSpaceFieldId

public static final int getFreeSpaceFieldId()
Get the field id for 'freeSpace'

This method can be used to set field interests.

See Also:
getFreeSpace()

setFreeSpace

public final void setFreeSpace(long val)
Description copied from interface: ISrvMonSysDiskStats
Sets the value of 'freeSpace'

Field Description

Returns the number of unallocated bytes in the disk or partition.

Specified by:
setFreeSpace in interface ISrvMonSysDiskStats
Parameters:
val - The value to set.

getFreeSpace

public final long getFreeSpace()
Description copied from interface: ISrvMonSysDiskStats
Gets the value of 'freeSpace'

Field Description

Returns the number of unallocated bytes in the disk or partition.

Specified by:
getFreeSpace in interface ISrvMonSysDiskStats
Returns:
Returns the number of unallocated bytes in the disk or partition.

setFreeSpaceFrom

public final void setFreeSpaceFrom(com.neeve.xbuf.XbufVariableLongField val)

getFreeSpaceField

public final com.neeve.xbuf.XbufVariableLongField getFreeSpaceField()

hasFreeSpace

public final boolean hasFreeSpace()
Description copied from interface: ISrvMonSysDiskStats
Checks for the presence of 'freeSpace'

Field Description

Returns the number of unallocated bytes in the disk or partition.

Specified by:
hasFreeSpace in interface ISrvMonSysDiskStats
See Also:
ISrvMonSysDiskStats.getFreeSpace()

clearFreeSpace

public final void clearFreeSpace()
Description copied from interface: ISrvMonSysDiskStats
Clears the value of 'freeSpace'

Field Description

Returns the number of unallocated bytes in the disk or partition.

Specified by:
clearFreeSpace in interface ISrvMonSysDiskStats
See Also:
ISrvMonSysDiskStats.setFreeSpace(long)

getRootPathFieldId

public static final int getRootPathFieldId()
Get the field id for 'rootPath'

This method can be used to set field interests.

See Also:
getRootPath()

setRootPath

public final void setRootPath(String val)
Description copied from interface: ISrvMonSysDiskStats
Sets the value of 'rootPath'

Field Description

The file system root path for the disk or partition.

Specified by:
setRootPath in interface ISrvMonSysDiskStats
Parameters:
val - The value to set.

getRootPath

public final String getRootPath()
Description copied from interface: ISrvMonSysDiskStats
Gets the value of 'rootPath'

Field Description

The file system root path for the disk or partition.

Specified by:
getRootPath in interface ISrvMonSysDiskStats
Returns:
The file system root path for the disk or partition.

lendRootPath

public final void lendRootPath(XString val)
Description copied from interface: ISrvMonSysDiskStats
Sets the value of 'rootPath'

Field Description

The file system root path for the disk or partition.

Specified by:
lendRootPath in interface ISrvMonSysDiskStats
Parameters:
val - The value to set.

setRootPathFrom

public final void setRootPathFrom(long val)
Description copied from interface: ISrvMonSysDiskStats
Sets the value of this String field to the given numeric value.

Field Description

The file system root path for the disk or partition.

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.

Specified by:
setRootPathFrom in interface ISrvMonSysDiskStats

getRootPathTo

public final <T extends XString> T getRootPathTo(XString.Factory<T> factory)
Description copied from interface: ISrvMonSysDiskStats
Copies the value of this String field into a new XString from the given factory.

Field Description

The file system root path for the disk or partition.

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;

Specified by:
getRootPathTo in interface ISrvMonSysDiskStats
Parameters:
factory - The factory from which to get the XString to copy into and return
Returns:
a new XString from the provided factory if this field is set or null.

setRootPathFrom

public final void setRootPathFrom(XString val)
Description copied from interface: ISrvMonSysDiskStats
Copies the provided XString value into this object's 'rootPath'.

Field Description

The file system root path for the disk or partition.

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.

Specified by:
setRootPathFrom in interface ISrvMonSysDiskStats

getRootPathTo

public final void getRootPathTo(XString val)
Description copied from interface: ISrvMonSysDiskStats
Copies the value of 'rootPath' into the provided XString.

Field Description

The file system root path for the disk or partition.

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.

Specified by:
getRootPathTo in interface ISrvMonSysDiskStats
See Also:
ISrvMonSysDiskStats.getRootPath()

getRootPathUnsafe

public final XString getRootPathUnsafe()
Description copied from interface: ISrvMonSysDiskStats
Gets the raw value of 'rootPath'.

Field Description

The file system root path for the disk or partition.

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.

Specified by:
getRootPathUnsafe in interface ISrvMonSysDiskStats
Returns:
the field's raw value
See Also:
ISrvMonSysDiskStats.getRootPath()

setRootPathFrom

public final void setRootPathFrom(com.neeve.xbuf.XbufStringField val)

getRootPathField

public final com.neeve.xbuf.XbufStringField getRootPathField()

hasRootPath

public final boolean hasRootPath()
Description copied from interface: ISrvMonSysDiskStats
Checks for the presence of 'rootPath'

Field Description

The file system root path for the disk or partition.

Specified by:
hasRootPath in interface ISrvMonSysDiskStats
See Also:
ISrvMonSysDiskStats.getRootPath()

clearRootPath

public final void clearRootPath()
Description copied from interface: ISrvMonSysDiskStats
Clears the value of 'rootPath'

Field Description

The file system root path for the disk or partition.

Specified by:
clearRootPath in interface ISrvMonSysDiskStats
See Also:
ISrvMonSysDiskStats.setRootPath(String)

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 SrvMonSysDiskStats deserializeFromIOElasticBuffer(com.neeve.io.IOElasticBuffer buffer,
                                                               int offset,
                                                               int length,
                                                               com.neeve.xbuf.XbufDesyncPolicy desyncPolicy)

deserializeFromIOElasticBuffer

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

deserializeFromByteArray

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

deserializeFromByteArray

public final SrvMonSysDiskStats deserializeFromByteArray(byte[] array)

deserializeFromByteBuffer

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

deserializeFromByteBuffer

public final SrvMonSysDiskStats deserializeFromByteBuffer(ByteBuffer buffer)

deserializeFromNative

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

deserializeFromNative

public final SrvMonSysDiskStats 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 SrvMonSysDiskStats 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<SrvMonSysDiskStats>
Returns:
Return 'this' object for method invocation chaining.

setPool

public final SrvMonSysDiskStats setPool(UtlPool<SrvMonSysDiskStats> 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<SrvMonSysDiskStats>
Returns:
Return 'this' object for method invocation chaining.

getPool

public final UtlPool<SrvMonSysDiskStats> 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<SrvMonSysDiskStats>
Returns:
the pool set using UtlPool.Item.setPool(com.neeve.util.UtlPool)

isReferenceCounted

public final boolean isReferenceCounted()

acquire

public final SrvMonSysDiskStats 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 SrvMonSysDiskStats copy()
Creates a copy of this SrvMonSysDiskStats.

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.

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(SrvMonSysDiskStats copy)
Copies the contents of this SrvMonSysDiskStats 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 SrvMonSysDiskStats's embedded entity fields.

The returned copy will be writeable even if this SrvMonSysDiskStats 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.