@Generated(value="com.neeve.adm.AdmXbufGenerator", date="Thu May 07 15:37:32 EDT 2020") @AdmGenerated(encoding="Xbuf", 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)") @AdmFactoryInfo(factoryClass=SrvMonCncFactory.class, vfid=36, ofid=36, typeId=305) public final class SrvMonTrace extends Object implements com.neeve.xbuf.IXbufDesyncer, UtlPool.Item<SrvMonTrace>, ISrvMonTrace
ADM Type | Embedded Entity |
Factory | SrvMonCncFactory |
ADM Field Summary |
---|
Field | Type | Id | Description |
---|---|---|---|
hostAddress | String | 24 | The host address (if available). |
hostName | String | 25 | The host name (if available). |
level | SrvMonTraceLevel |
18 | The trace level (if available). |
processId | String | 22 | The process id (if available). |
threadId | Long | 20 | The thread id (if available). |
timestamp | Long | 21 | The timestamp (if available). |
trace | String | 16 | The trace output. |
tracerName | String | 19 | The tracer name (if available). |
xvmName | String | 23 | The XVM name (if available). |
Modifier and Type | Class and Description |
---|---|
static class |
SrvMonTrace.Field
The SrvMonTrace xbuf field (used internally when this entity is used as a field of another entity).
|
static class |
SrvMonTrace.ListField
The SrvMonTrace list field (used internally when this entity is used as an array field of another entity).
|
Modifier and Type | Field and Description |
---|---|
static SrvMonTrace[] |
EMPTY_ARRAY
A preallocated empty array used to avoid garbage when returning empty arrays of this type.
|
Constructor and Description |
---|
SrvMonTrace() |
SrvMonTrace(int initialBackingBufferSize) |
Modifier and Type | Method and Description |
---|---|
SrvMonTrace |
acquire() |
void |
clearContent() |
void |
clearHostAddress()
Clears the value of 'hostAddress'.
|
void |
clearHostName()
Clears the value of 'hostName'.
|
void |
clearLevel()
Clears the value of 'level'.
|
void |
clearProcessId()
Clears the value of 'processId'.
|
void |
clearThreadId()
Clears the value of 'threadId'.
|
void |
clearTimestamp()
Clears the value of 'timestamp'.
|
void |
clearTrace()
Clears the value of 'trace'.
|
void |
clearTracerName()
Clears the value of 'tracerName'.
|
void |
clearXRogType() |
void |
clearXvmName()
Clears the value of 'xvmName'.
|
Object |
clone()
Creates a clone of this object.
|
SrvMonTrace |
copy()
Creates a copy of this SrvMonTrace.
|
void |
copyInto(SrvMonTrace copy)
Copies the contents of this SrvMonTrace into the target.
|
static SrvMonTrace |
create() |
static SrvMonTrace |
createFrom(byte[] serializedContainer) |
static SrvMonTrace |
createFrom(byte[] serializedContainer,
com.neeve.xbuf.XbufDesyncPolicy desyncPolicy) |
static SrvMonTrace |
createFromSerializedXbufContainer(byte[] serializedContainer) |
static SrvMonTrace |
createFromSerializedXbufContainer(byte[] serializedContainer,
com.neeve.xbuf.XbufDesyncPolicy desyncPolicy) |
static com.neeve.xbuf.XbufSchema |
createSchema() |
SrvMonTrace |
deserializeFromByteArray(byte[] array) |
SrvMonTrace |
deserializeFromByteArray(byte[] array,
com.neeve.xbuf.XbufDesyncPolicy desyncPolicy) |
SrvMonTrace |
deserializeFromByteBuffer(ByteBuffer buffer) |
SrvMonTrace |
deserializeFromByteBuffer(ByteBuffer buffer,
com.neeve.xbuf.XbufDesyncPolicy desyncPolicy) |
SrvMonTrace |
deserializeFromIOElasticBuffer(com.neeve.io.IOElasticBuffer buffer,
int offset,
int length) |
SrvMonTrace |
deserializeFromIOElasticBuffer(com.neeve.io.IOElasticBuffer buffer,
int offset,
int length,
com.neeve.xbuf.XbufDesyncPolicy desyncPolicy) |
SrvMonTrace |
deserializeFromNative(long address,
int offset,
int length) |
SrvMonTrace |
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() |
String |
getHostAddress()
Gets the value of 'hostAddress'.
|
com.neeve.xbuf.XbufStringField |
getHostAddressField() |
static int |
getHostAddressFieldId() |
<T extends XString> |
getHostAddressTo(XString.Factory<T> factory)
Copies the value of this String field into a new XString from the given factory.
|
void |
getHostAddressTo(XString val)
Copies the value of 'hostAddress' into the provided XString.
|
XString |
getHostAddressUnsafe()
Gets the raw value of 'hostAddress'.
|
String |
getHostName()
Gets the value of 'hostName'.
|
com.neeve.xbuf.XbufStringField |
getHostNameField() |
static int |
getHostNameFieldId() |
<T extends XString> |
getHostNameTo(XString.Factory<T> factory)
Copies the value of this String field into a new XString from the given factory.
|
void |
getHostNameTo(XString val)
Copies the value of 'hostName' into the provided XString.
|
XString |
getHostNameUnsafe()
Gets the raw value of 'hostName'.
|
boolean |
getIsReadOnly() |
SrvMonTraceLevel |
getLevel()
Gets the value of 'level'.
|
com.neeve.xbuf.XbufVariableEnumField<SrvMonTraceLevel> |
getLevelField() |
static int |
getLevelFieldId() |
int |
getOwnerCount() |
UtlPool<SrvMonTrace> |
getPool()
Get a pool item's pool.
|
String |
getProcessId()
Gets the value of 'processId'.
|
com.neeve.xbuf.XbufStringField |
getProcessIdField() |
static int |
getProcessIdFieldId() |
<T extends XString> |
getProcessIdTo(XString.Factory<T> factory)
Copies the value of this String field into a new XString from the given factory.
|
void |
getProcessIdTo(XString val)
Copies the value of 'processId' into the provided XString.
|
XString |
getProcessIdUnsafe()
Gets the raw value of 'processId'.
|
int |
getSerializeToNativeLength() |
long |
getThreadId()
Gets the value of 'threadId'.
|
com.neeve.xbuf.XbufVariableLongField |
getThreadIdField() |
static int |
getThreadIdFieldId() |
long |
getTimestamp()
Gets the value of 'timestamp'.
|
com.neeve.xbuf.XbufVariableLongField |
getTimestampField() |
static int |
getTimestampFieldId() |
String |
getTrace()
Gets the value of 'trace'.
|
com.neeve.xbuf.XbufStringField |
getTraceField() |
static int |
getTraceFieldId() |
String |
getTracerName()
Gets the value of 'tracerName'.
|
com.neeve.xbuf.XbufStringField |
getTracerNameField() |
static int |
getTracerNameFieldId() |
<T extends XString> |
getTracerNameTo(XString.Factory<T> factory)
Copies the value of this String field into a new XString from the given factory.
|
void |
getTracerNameTo(XString val)
Copies the value of 'tracerName' into the provided XString.
|
XString |
getTracerNameUnsafe()
Gets the raw value of 'tracerName'.
|
<T extends XString> |
getTraceTo(XString.Factory<T> factory)
Copies the value of this String field into a new XString from the given factory.
|
void |
getTraceTo(XString val)
Copies the value of 'trace' into the provided XString.
|
XString |
getTraceUnsafe()
Gets the raw value of 'trace'.
|
void |
getValidationErrors(List<XString> results,
String errorPrefix)
Collects validation errors into the provided list.
|
short |
getXRogType() |
com.neeve.xbuf.XbufVariableShortField |
getXRogTypeField() |
static int |
getXRogTypeFieldId() |
String |
getXvmName()
Gets the value of 'xvmName'.
|
com.neeve.xbuf.XbufStringField |
getXvmNameField() |
static int |
getXvmNameFieldId() |
<T extends XString> |
getXvmNameTo(XString.Factory<T> factory)
Copies the value of this String field into a new XString from the given factory.
|
void |
getXvmNameTo(XString val)
Copies the value of 'xvmName' into the provided XString.
|
XString |
getXvmNameUnsafe()
Gets the raw value of 'xvmName'.
|
boolean |
hasHostAddress()
Checks for the presence of 'hostAddress'.
|
boolean |
hasHostName()
Checks for the presence of 'hostName'.
|
boolean |
hasLevel()
Checks for the presence of 'level'.
|
boolean |
hasProcessId()
Checks for the presence of 'processId'.
|
boolean |
hasThreadId()
Checks for the presence of 'threadId'.
|
boolean |
hasTimestamp()
Checks for the presence of 'timestamp'.
|
boolean |
hasTrace()
Checks for the presence of 'trace'.
|
boolean |
hasTracerName()
Checks for the presence of 'tracerName'.
|
boolean |
hasXRogType() |
boolean |
hasXvmName()
Checks for the presence of 'xvmName'.
|
SrvMonTrace |
init()
Initialize an item.
|
boolean |
isBufferBacked() |
boolean |
isDirty() |
boolean |
isReferenceCounted() |
boolean |
isValid()
Tests if this object has any validation errors.
|
void |
lendHostAddress(XString val)
Lends the value of 'hostAddress' to this object.
|
void |
lendHostName(XString val)
Lends the value of 'hostName' to this object.
|
void |
lendProcessId(XString val)
Lends the value of 'processId' to this object.
|
void |
lendTrace(XString val)
Lends the value of 'trace' to this object.
|
void |
lendTracerName(XString val)
Lends the value of 'tracerName' to this object.
|
void |
lendXvmName(XString val)
Lends the value of 'xvmName' 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 |
setHostAddress(String val)
Sets the value of 'hostAddress'.
|
void |
setHostAddressFrom(long val)
Sets the value of this String field to the given numeric value.
|
void |
setHostAddressFrom(com.neeve.xbuf.XbufStringField val) |
void |
setHostAddressFrom(XString val)
Copies the provided XString value into this object's 'hostAddress'.
|
void |
setHostName(String val)
Sets the value of 'hostName'.
|
void |
setHostNameFrom(long val)
Sets the value of this String field to the given numeric value.
|
void |
setHostNameFrom(com.neeve.xbuf.XbufStringField val) |
void |
setHostNameFrom(XString val)
Copies the provided XString value into this object's 'hostName'.
|
void |
setLevel(SrvMonTraceLevel val)
Sets the value of 'level'.
|
void |
setLevelFrom(com.neeve.xbuf.XbufVariableEnumField<SrvMonTraceLevel> val) |
SrvMonTrace |
setPool(UtlPool<SrvMonTrace> pool)
Set a pool item's pool.
|
void |
setPreserializedFields(PktBuffer buffer) |
void |
setProcessId(String val)
Sets the value of 'processId'.
|
void |
setProcessIdFrom(long val)
Sets the value of this String field to the given numeric value.
|
void |
setProcessIdFrom(com.neeve.xbuf.XbufStringField val) |
void |
setProcessIdFrom(XString val)
Copies the provided XString value into this object's 'processId'.
|
void |
setThreadId(long val)
Sets the value of 'threadId'.
|
void |
setThreadIdFrom(com.neeve.xbuf.XbufVariableLongField val) |
void |
setTimestamp(long val)
Sets the value of 'timestamp'.
|
void |
setTimestampFrom(com.neeve.xbuf.XbufVariableLongField val) |
void |
setTrace(String val)
Sets the value of 'trace'.
|
void |
setTraceFrom(long val)
Sets the value of this String field to the given numeric value.
|
void |
setTraceFrom(com.neeve.xbuf.XbufStringField val) |
void |
setTraceFrom(XString val)
Copies the provided XString value into this object's 'trace'.
|
void |
setTracerName(String val)
Sets the value of 'tracerName'.
|
void |
setTracerNameFrom(long val)
Sets the value of this String field to the given numeric value.
|
void |
setTracerNameFrom(com.neeve.xbuf.XbufStringField val) |
void |
setTracerNameFrom(XString val)
Copies the provided XString value into this object's 'tracerName'.
|
void |
setXRogType(short val) |
void |
setXRogTypeFrom(com.neeve.xbuf.XbufVariableShortField val) |
void |
setXvmName(String val)
Sets the value of 'xvmName'.
|
void |
setXvmNameFrom(long val)
Sets the value of this String field to the given numeric value.
|
void |
setXvmNameFrom(com.neeve.xbuf.XbufStringField val) |
void |
setXvmNameFrom(XString val)
Copies the provided XString value into this object's 'xvmName'.
|
void |
sync() |
void |
syncFieldBitmask() |
String |
toString() |
public static final SrvMonTrace[] EMPTY_ARRAY
public SrvMonTrace()
public SrvMonTrace(int initialBackingBufferSize)
public static SrvMonTrace create()
public static SrvMonTrace createFromSerializedXbufContainer(byte[] serializedContainer, com.neeve.xbuf.XbufDesyncPolicy desyncPolicy)
public static SrvMonTrace createFromSerializedXbufContainer(byte[] serializedContainer)
public static SrvMonTrace createFrom(byte[] serializedContainer, com.neeve.xbuf.XbufDesyncPolicy desyncPolicy)
public static SrvMonTrace 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 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 getLevelFieldId()
public final void setLevel(SrvMonTraceLevel val)
ISrvMonTrace
setLevel
in interface ISrvMonTrace
val
- The value to set.public final void setLevelFrom(com.neeve.xbuf.XbufVariableEnumField<SrvMonTraceLevel> val)
public final com.neeve.xbuf.XbufVariableEnumField<SrvMonTraceLevel> getLevelField()
public final SrvMonTraceLevel getLevel()
ISrvMonTrace
getLevel
in interface ISrvMonTrace
public final boolean hasLevel()
ISrvMonTrace
hasLevel
in interface ISrvMonTrace
ISrvMonTrace.getLevel()
public final void clearLevel()
ISrvMonTrace
clearLevel
in interface ISrvMonTrace
ISrvMonTrace.setLevel(SrvMonTraceLevel)
public static final int getThreadIdFieldId()
public final void setThreadId(long val)
ISrvMonTrace
setThreadId
in interface ISrvMonTrace
val
- The value to set.public final long getThreadId()
ISrvMonTrace
getThreadId
in interface ISrvMonTrace
public final void setThreadIdFrom(com.neeve.xbuf.XbufVariableLongField val)
public final com.neeve.xbuf.XbufVariableLongField getThreadIdField()
public final boolean hasThreadId()
ISrvMonTrace
hasThreadId
in interface ISrvMonTrace
ISrvMonTrace.getThreadId()
public final void clearThreadId()
ISrvMonTrace
clearThreadId
in interface ISrvMonTrace
ISrvMonTrace.setThreadId(long)
public static final int getTimestampFieldId()
public final void setTimestamp(long val)
ISrvMonTrace
setTimestamp
in interface ISrvMonTrace
val
- The value to set.public final long getTimestamp()
ISrvMonTrace
getTimestamp
in interface ISrvMonTrace
public final void setTimestampFrom(com.neeve.xbuf.XbufVariableLongField val)
public final com.neeve.xbuf.XbufVariableLongField getTimestampField()
public final boolean hasTimestamp()
ISrvMonTrace
hasTimestamp
in interface ISrvMonTrace
ISrvMonTrace.getTimestamp()
public final void clearTimestamp()
ISrvMonTrace
clearTimestamp
in interface ISrvMonTrace
ISrvMonTrace.setTimestamp(long)
public static final int getTraceFieldId()
public final void setTrace(String val)
ISrvMonTrace
setTrace
in interface ISrvMonTrace
val
- The value to set.public final String getTrace()
ISrvMonTrace
getTrace
in interface ISrvMonTrace
public final void lendTrace(XString val)
ISrvMonTrace
This method is equivalent to setTrace 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.
lendTrace
in interface ISrvMonTrace
val
- The value to set.public final void setTraceFrom(long val)
ISrvMonTrace
NOTE:
This is the same as calling ISrvMonTrace.setTrace(String)
.
with Long.valueOf(val).toString(), except that using this method is a zero garbage
operation for Xbuf encoding.
setTraceFrom
in interface ISrvMonTrace
public final <T extends XString> T getTraceTo(XString.Factory<T> factory)
ISrvMonTrace
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;
getTraceTo
in interface ISrvMonTrace
factory
- The factory from which to get the XString to copy into and returnnull
.public final void setTraceFrom(XString val)
ISrvMonTrace
NOTE:
This is a Zero Garbage operation for XBuf encoded objects. Additionally, this setter
can be more efficient than ISrvMonTrace.setTrace(String)
because it avoids encoding the value into a String
if the given XString
is already encoded.
setTraceFrom
in interface ISrvMonTrace
public final void getTraceTo(XString val)
ISrvMonTrace
NOTE:
This is a Zero Garbage operation for XBuf encoded objects. Additionally, this getter
can be more efficient than ISrvMonTrace.getTrace()
bec
because it can avoid decoding the value into an String
.
getTraceTo
in interface ISrvMonTrace
ISrvMonTrace.getTrace()
public final XString getTraceUnsafe()
ISrvMonTrace
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.
getTraceUnsafe
in interface ISrvMonTrace
ISrvMonTrace.getTrace()
public final void setTraceFrom(com.neeve.xbuf.XbufStringField val)
public final com.neeve.xbuf.XbufStringField getTraceField()
public final boolean hasTrace()
ISrvMonTrace
hasTrace
in interface ISrvMonTrace
ISrvMonTrace.getTrace()
public final void clearTrace()
ISrvMonTrace
clearTrace
in interface ISrvMonTrace
ISrvMonTrace.setTrace(String)
public static final int getTracerNameFieldId()
public final void setTracerName(String val)
ISrvMonTrace
setTracerName
in interface ISrvMonTrace
val
- The value to set.public final String getTracerName()
ISrvMonTrace
getTracerName
in interface ISrvMonTrace
public final void lendTracerName(XString val)
ISrvMonTrace
This method is equivalent to setTracerName 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.
lendTracerName
in interface ISrvMonTrace
val
- The value to set.public final void setTracerNameFrom(long val)
ISrvMonTrace
NOTE:
This is the same as calling ISrvMonTrace.setTracerName(String)
.
with Long.valueOf(val).toString(), except that using this method is a zero garbage
operation for Xbuf encoding.
setTracerNameFrom
in interface ISrvMonTrace
public final <T extends XString> T getTracerNameTo(XString.Factory<T> factory)
ISrvMonTrace
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;
getTracerNameTo
in interface ISrvMonTrace
factory
- The factory from which to get the XString to copy into and returnnull
.public final void setTracerNameFrom(XString val)
ISrvMonTrace
NOTE:
This is a Zero Garbage operation for XBuf encoded objects. Additionally, this setter
can be more efficient than ISrvMonTrace.setTracerName(String)
because it avoids encoding the value into a String
if the given XString
is already encoded.
setTracerNameFrom
in interface ISrvMonTrace
public final void getTracerNameTo(XString val)
ISrvMonTrace
NOTE:
This is a Zero Garbage operation for XBuf encoded objects. Additionally, this getter
can be more efficient than ISrvMonTrace.getTracerName()
bec
because it can avoid decoding the value into an String
.
getTracerNameTo
in interface ISrvMonTrace
ISrvMonTrace.getTracerName()
public final XString getTracerNameUnsafe()
ISrvMonTrace
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.
getTracerNameUnsafe
in interface ISrvMonTrace
ISrvMonTrace.getTracerName()
public final void setTracerNameFrom(com.neeve.xbuf.XbufStringField val)
public final com.neeve.xbuf.XbufStringField getTracerNameField()
public final boolean hasTracerName()
ISrvMonTrace
hasTracerName
in interface ISrvMonTrace
ISrvMonTrace.getTracerName()
public final void clearTracerName()
ISrvMonTrace
clearTracerName
in interface ISrvMonTrace
ISrvMonTrace.setTracerName(String)
public static final int getProcessIdFieldId()
public final void setProcessId(String val)
ISrvMonTrace
setProcessId
in interface ISrvMonTrace
val
- The value to set.public final String getProcessId()
ISrvMonTrace
getProcessId
in interface ISrvMonTrace
public final void lendProcessId(XString val)
ISrvMonTrace
This method is equivalent to setProcessId 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.
lendProcessId
in interface ISrvMonTrace
val
- The value to set.public final void setProcessIdFrom(long val)
ISrvMonTrace
NOTE:
This is the same as calling ISrvMonTrace.setProcessId(String)
.
with Long.valueOf(val).toString(), except that using this method is a zero garbage
operation for Xbuf encoding.
setProcessIdFrom
in interface ISrvMonTrace
public final <T extends XString> T getProcessIdTo(XString.Factory<T> factory)
ISrvMonTrace
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;
getProcessIdTo
in interface ISrvMonTrace
factory
- The factory from which to get the XString to copy into and returnnull
.public final void setProcessIdFrom(XString val)
ISrvMonTrace
NOTE:
This is a Zero Garbage operation for XBuf encoded objects. Additionally, this setter
can be more efficient than ISrvMonTrace.setProcessId(String)
because it avoids encoding the value into a String
if the given XString
is already encoded.
setProcessIdFrom
in interface ISrvMonTrace
public final void getProcessIdTo(XString val)
ISrvMonTrace
NOTE:
This is a Zero Garbage operation for XBuf encoded objects. Additionally, this getter
can be more efficient than ISrvMonTrace.getProcessId()
bec
because it can avoid decoding the value into an String
.
getProcessIdTo
in interface ISrvMonTrace
ISrvMonTrace.getProcessId()
public final XString getProcessIdUnsafe()
ISrvMonTrace
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.
getProcessIdUnsafe
in interface ISrvMonTrace
ISrvMonTrace.getProcessId()
public final void setProcessIdFrom(com.neeve.xbuf.XbufStringField val)
public final com.neeve.xbuf.XbufStringField getProcessIdField()
public final boolean hasProcessId()
ISrvMonTrace
hasProcessId
in interface ISrvMonTrace
ISrvMonTrace.getProcessId()
public final void clearProcessId()
ISrvMonTrace
clearProcessId
in interface ISrvMonTrace
ISrvMonTrace.setProcessId(String)
public static final int getXvmNameFieldId()
public final void setXvmName(String val)
ISrvMonTrace
setXvmName
in interface ISrvMonTrace
val
- The value to set.public final String getXvmName()
ISrvMonTrace
getXvmName
in interface ISrvMonTrace
public final void lendXvmName(XString val)
ISrvMonTrace
This method is equivalent to setXvmName 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.
lendXvmName
in interface ISrvMonTrace
val
- The value to set.public final void setXvmNameFrom(long val)
ISrvMonTrace
NOTE:
This is the same as calling ISrvMonTrace.setXvmName(String)
.
with Long.valueOf(val).toString(), except that using this method is a zero garbage
operation for Xbuf encoding.
setXvmNameFrom
in interface ISrvMonTrace
public final <T extends XString> T getXvmNameTo(XString.Factory<T> factory)
ISrvMonTrace
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;
getXvmNameTo
in interface ISrvMonTrace
factory
- The factory from which to get the XString to copy into and returnnull
.public final void setXvmNameFrom(XString val)
ISrvMonTrace
NOTE:
This is a Zero Garbage operation for XBuf encoded objects. Additionally, this setter
can be more efficient than ISrvMonTrace.setXvmName(String)
because it avoids encoding the value into a String
if the given XString
is already encoded.
setXvmNameFrom
in interface ISrvMonTrace
public final void getXvmNameTo(XString val)
ISrvMonTrace
NOTE:
This is a Zero Garbage operation for XBuf encoded objects. Additionally, this getter
can be more efficient than ISrvMonTrace.getXvmName()
bec
because it can avoid decoding the value into an String
.
getXvmNameTo
in interface ISrvMonTrace
ISrvMonTrace.getXvmName()
public final XString getXvmNameUnsafe()
ISrvMonTrace
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.
getXvmNameUnsafe
in interface ISrvMonTrace
ISrvMonTrace.getXvmName()
public final void setXvmNameFrom(com.neeve.xbuf.XbufStringField val)
public final com.neeve.xbuf.XbufStringField getXvmNameField()
public final boolean hasXvmName()
ISrvMonTrace
hasXvmName
in interface ISrvMonTrace
ISrvMonTrace.getXvmName()
public final void clearXvmName()
ISrvMonTrace
clearXvmName
in interface ISrvMonTrace
ISrvMonTrace.setXvmName(String)
public static final int getHostAddressFieldId()
public final void setHostAddress(String val)
ISrvMonTrace
setHostAddress
in interface ISrvMonTrace
val
- The value to set.public final String getHostAddress()
ISrvMonTrace
getHostAddress
in interface ISrvMonTrace
public final void lendHostAddress(XString val)
ISrvMonTrace
This method is equivalent to setHostAddress 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.
lendHostAddress
in interface ISrvMonTrace
val
- The value to set.public final void setHostAddressFrom(long val)
ISrvMonTrace
NOTE:
This is the same as calling ISrvMonTrace.setHostAddress(String)
.
with Long.valueOf(val).toString(), except that using this method is a zero garbage
operation for Xbuf encoding.
setHostAddressFrom
in interface ISrvMonTrace
public final <T extends XString> T getHostAddressTo(XString.Factory<T> factory)
ISrvMonTrace
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;
getHostAddressTo
in interface ISrvMonTrace
factory
- The factory from which to get the XString to copy into and returnnull
.public final void setHostAddressFrom(XString val)
ISrvMonTrace
NOTE:
This is a Zero Garbage operation for XBuf encoded objects. Additionally, this setter
can be more efficient than ISrvMonTrace.setHostAddress(String)
because it avoids encoding the value into a String
if the given XString
is already encoded.
setHostAddressFrom
in interface ISrvMonTrace
public final void getHostAddressTo(XString val)
ISrvMonTrace
NOTE:
This is a Zero Garbage operation for XBuf encoded objects. Additionally, this getter
can be more efficient than ISrvMonTrace.getHostAddress()
bec
because it can avoid decoding the value into an String
.
getHostAddressTo
in interface ISrvMonTrace
ISrvMonTrace.getHostAddress()
public final XString getHostAddressUnsafe()
ISrvMonTrace
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.
getHostAddressUnsafe
in interface ISrvMonTrace
ISrvMonTrace.getHostAddress()
public final void setHostAddressFrom(com.neeve.xbuf.XbufStringField val)
public final com.neeve.xbuf.XbufStringField getHostAddressField()
public final boolean hasHostAddress()
ISrvMonTrace
hasHostAddress
in interface ISrvMonTrace
ISrvMonTrace.getHostAddress()
public final void clearHostAddress()
ISrvMonTrace
clearHostAddress
in interface ISrvMonTrace
ISrvMonTrace.setHostAddress(String)
public static final int getHostNameFieldId()
public final void setHostName(String val)
ISrvMonTrace
setHostName
in interface ISrvMonTrace
val
- The value to set.public final String getHostName()
ISrvMonTrace
getHostName
in interface ISrvMonTrace
public final void lendHostName(XString val)
ISrvMonTrace
This method is equivalent to setHostName 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.
lendHostName
in interface ISrvMonTrace
val
- The value to set.public final void setHostNameFrom(long val)
ISrvMonTrace
NOTE:
This is the same as calling ISrvMonTrace.setHostName(String)
.
with Long.valueOf(val).toString(), except that using this method is a zero garbage
operation for Xbuf encoding.
setHostNameFrom
in interface ISrvMonTrace
public final <T extends XString> T getHostNameTo(XString.Factory<T> factory)
ISrvMonTrace
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;
getHostNameTo
in interface ISrvMonTrace
factory
- The factory from which to get the XString to copy into and returnnull
.public final void setHostNameFrom(XString val)
ISrvMonTrace
NOTE:
This is a Zero Garbage operation for XBuf encoded objects. Additionally, this setter
can be more efficient than ISrvMonTrace.setHostName(String)
because it avoids encoding the value into a String
if the given XString
is already encoded.
setHostNameFrom
in interface ISrvMonTrace
public final void getHostNameTo(XString val)
ISrvMonTrace
NOTE:
This is a Zero Garbage operation for XBuf encoded objects. Additionally, this getter
can be more efficient than ISrvMonTrace.getHostName()
bec
because it can avoid decoding the value into an String
.
getHostNameTo
in interface ISrvMonTrace
ISrvMonTrace.getHostName()
public final XString getHostNameUnsafe()
ISrvMonTrace
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.
getHostNameUnsafe
in interface ISrvMonTrace
ISrvMonTrace.getHostName()
public final void setHostNameFrom(com.neeve.xbuf.XbufStringField val)
public final com.neeve.xbuf.XbufStringField getHostNameField()
public final boolean hasHostName()
ISrvMonTrace
hasHostName
in interface ISrvMonTrace
ISrvMonTrace.getHostName()
public final void clearHostName()
ISrvMonTrace
clearHostName
in interface ISrvMonTrace
ISrvMonTrace.setHostName(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 SrvMonTrace deserializeFromIOElasticBuffer(com.neeve.io.IOElasticBuffer buffer, int offset, int length, com.neeve.xbuf.XbufDesyncPolicy desyncPolicy)
public final SrvMonTrace deserializeFromIOElasticBuffer(com.neeve.io.IOElasticBuffer buffer, int offset, int length)
public final SrvMonTrace deserializeFromByteArray(byte[] array, com.neeve.xbuf.XbufDesyncPolicy desyncPolicy)
public final SrvMonTrace deserializeFromByteArray(byte[] array)
public final SrvMonTrace deserializeFromByteBuffer(ByteBuffer buffer, com.neeve.xbuf.XbufDesyncPolicy desyncPolicy)
public final SrvMonTrace deserializeFromByteBuffer(ByteBuffer buffer)
public final SrvMonTrace deserializeFromNative(long address, int offset, int length, com.neeve.xbuf.XbufDesyncPolicy desyncPolicy)
public final SrvMonTrace deserializeFromNative(long address, int offset, int length)
public final void sync()
public final int desync(PktBuffer buffer, int pos, boolean frameOnly)
com.neeve.xbuf.IXbufDesyncer
desync
in interface com.neeve.xbuf.IXbufDesyncer
buffer
- 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 SrvMonTrace 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<SrvMonTrace>
public final SrvMonTrace setPool(UtlPool<SrvMonTrace> 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<SrvMonTrace>
public final UtlPool<SrvMonTrace> getPool()
UtlPool.Item
This method should return the pool set using UtlPool.Item.setPool(com.neeve.util.UtlPool<T>)
getPool
in interface UtlPool.Item<SrvMonTrace>
UtlPool.Item.setPool(com.neeve.util.UtlPool<T>)
public final boolean isReferenceCounted()
public final SrvMonTrace acquire()
public final int getOwnerCount()
public final void dispose()
public final Object clone()
This method differs from the copy()
method in that:
public final SrvMonTrace 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 SrvMonTrace's embedded entity fields.
The returned copy will be writeable even if this SrvMonTrace is read only.
public final void copyInto(SrvMonTrace 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 SrvMonTrace's embedded entity fields.
The returned copy will be writeable even if this SrvMonTrace 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.Copyright © 2019 Neeve Research, LLC. All Rights Reserved.