@Generated(value="com.neeve.adm.AdmGenerator", date="Thu May 07 15:37:32 EDT 2020") @AdmGenerated(compatLevel="4.0.0", admVersion="nvx-rumi-adm v3.14 (build 29)", date="5/7/20 3:37 PM", buildInfo="nvx-talon-3.14.19 (nvx-codegen-plugin)") public interface ISrvMonSysDiskStats extends IRogValidatable
ADM Type | Embedded Entity |
Factory | SrvMonFactory |
ADM Field Summary |
---|
Field | Type | Id | Description |
---|---|---|---|
freeSpace | Long | 4 | Returns the number of unallocated bytes in the disk or partition. |
rootPath | String | 1 | The file system root path for the disk or partition. |
totalSpace | Long | 2 | The size, in bytes, of the partition or 0L if the root path doesn't correspond to a partition. |
usableSpace | Long | 3 | The number of bytes available to the xvm for the disk or partition. |
Modifier and Type | Method and Description |
---|---|
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'.
|
long |
getFreeSpace()
Gets the value of 'freeSpace'.
|
String |
getRootPath()
Gets the value of 'rootPath'.
|
<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'.
|
long |
getTotalSpace()
Gets the value of 'totalSpace'.
|
long |
getUsableSpace()
Gets the value of 'usableSpace'.
|
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'.
|
void |
lendRootPath(XString val)
Lends the value of 'rootPath' to this object.
|
void |
setFreeSpace(long val)
Sets the value of 'freeSpace'.
|
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(XString val)
Copies the provided XString value into this object's 'rootPath'.
|
void |
setTotalSpace(long val)
Sets the value of 'totalSpace'.
|
void |
setUsableSpace(long val)
Sets the value of 'usableSpace'.
|
getValidationErrors, isValid
void setTotalSpace(long val)
val
- The value to set.long getTotalSpace()
void clearTotalSpace()
setTotalSpace(long)
boolean hasTotalSpace()
getTotalSpace()
void setUsableSpace(long val)
val
- The value to set.long getUsableSpace()
void clearUsableSpace()
setUsableSpace(long)
boolean hasUsableSpace()
getUsableSpace()
void setFreeSpace(long val)
val
- The value to set.long getFreeSpace()
void clearFreeSpace()
setFreeSpace(long)
boolean hasFreeSpace()
getFreeSpace()
void setRootPath(String val)
val
- The value to set.String getRootPath()
void lendRootPath(XString val)
This 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.
val
- The value to set.IllegalArgumentException
- If the value is mutable.void setRootPathFrom(long val)
NOTE:
This is the same as calling setRootPath(String)
.
with Long.valueOf(val).toString(), except that using this method is a zero garbage
operation for Xbuf encoding.
<T extends XString> T getRootPathTo(XString.Factory<T> factory)
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;
factory
- The factory from which to get the XString to copy into and returnnull
.NullPointerException
- if the provided factory is nullvoid setRootPathFrom(XString val)
NOTE:
This is a Zero Garbage operation for XBuf encoded objects. Additionally, this setter
can be more efficient than setRootPath(String)
because it avoids encoding the value into a String
if the given XString
is already encoded.
void getRootPathTo(XString val)
NOTE:
This is a Zero Garbage operation for XBuf encoded objects. Additionally, this getter
can be more efficient than getRootPath()
bec
because it can avoid decoding the value into an String
.
getRootPath()
XString getRootPathUnsafe()
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.
getRootPath()
void clearRootPath()
setRootPath(String)
boolean hasRootPath()
getRootPath()
Copyright © 2019 Neeve Research, LLC. All Rights Reserved.