@Generated(value="com.neeve.adm.AdmJsonGenerator", date="Fri Dec 05 11:53:59 EST 2025") @AdmGenerated(encoding="Json", compatLevel="4.1.0", admVersion="Unknown Version", date="12/5/25 11:53 AM", buildInfo="nvx-eagle-2.9-SNAPSHOT Json Encoding") @AdmFactoryInfo(factoryClass=MessageFactory.class, vfid=132, ofid=132, typeId=1008) public final class AgentInfo extends Object implements IAgentInfo
| ADM Type | Embedded Entity |
| Factory | MessageFactory |
| ADM Field Summary |
|---|
| Field | Type | Id | Description |
|---|---|---|---|
| applicationName | String | 32737 | No doc provided. |
| applicationPartition | Integer | 32736 | No doc provided. |
| pid | String | 32735 | No doc provided. |
| startTime | Date | 32734 | No doc provided. |
| Modifier and Type | Field and Description |
|---|---|
static AgentInfo[] |
EMPTY_ARRAY
A preallocated empty array used to avoid garbage when returning empty arrays of this type.
|
| Constructor and Description |
|---|
AgentInfo() |
| Modifier and Type | Method and Description |
|---|---|
AgentInfo |
acquire() |
void |
clearApplicationName()
Clears the value of 'applicationName'.
|
void |
clearApplicationPartition()
Clears the value of 'applicationPartition'.
|
void |
clearContent() |
void |
clearPid()
Clears the value of 'pid'.
|
void |
clearStartTime()
Clears the value of 'startTime'.
|
Object |
clone()
Creates a clone of this object.
|
AgentInfo |
copy() |
void |
copyInto(AgentInfo copy) |
static AgentInfo |
create() |
static AgentInfo |
createFrom(byte[] serializedJson) |
static AgentInfo |
createFromJson(String json) |
static AgentInfo |
createFromSerializedJson(byte[] serializedJson) |
static AgentInfo |
createFromSerializedJson(ByteBuffer serializedJson) |
AgentInfo |
deserializeFromByteArray(byte[] array) |
AgentInfo |
deserializeFromByteBuffer(ByteBuffer buffer) |
AgentInfo |
deserializeFromNative(long address,
int addressOffset,
int length) |
void |
dispose() |
String |
getApplicationName()
Gets the value of 'applicationName'.
|
static int |
getApplicationNameFieldId() |
<T extends XString> |
getApplicationNameTo(XString.Factory<T> factory)
Copies the value of this String field into a new XString from the given factory.
|
void |
getApplicationNameTo(XString val)
Copies the value of 'applicationName' into the provided XString.
|
XString |
getApplicationNameUnsafe()
Gets the raw value of 'applicationName'.
|
int |
getApplicationPartition()
Gets the value of 'applicationPartition'.
|
Integer |
getApplicationPartitionAsObject()
Gets the value of 'applicationPartition'.
|
static int |
getApplicationPartitionFieldId() |
boolean |
getIsReadOnly() |
int |
getOwnerCount() |
String |
getPid()
Gets the value of 'pid'.
|
static int |
getPidFieldId() |
<T extends XString> |
getPidTo(XString.Factory<T> factory)
Copies the value of this String field into a new XString from the given factory.
|
void |
getPidTo(XString val)
Copies the value of 'pid' into the provided XString.
|
XString |
getPidUnsafe()
Gets the raw value of 'pid'.
|
int |
getSerializeToNativeLength() |
Date |
getStartTime()
Gets the value of 'startTime'.
|
Instant |
getStartTimeAsInstant()
Retrieves the date as a java.time.Instant object.
|
long |
getStartTimeAsTimestamp()
Retrieves the date as a timestamp (a zero garbage operation for XBuf encoding).
|
Long |
getStartTimeAsTimestampObject()
Retrieves the date as a timestamp object (autobox long).
|
static int |
getStartTimeFieldId() |
void |
getValidationErrors(List<XString> results,
String errorPrefix) |
boolean |
hasApplicationName()
Checks for the presence of 'applicationName'.
|
boolean |
hasApplicationPartition()
Checks for the presence of 'applicationPartition'.
|
boolean |
hasPid()
Checks for the presence of 'pid'.
|
boolean |
hasStartTime()
Checks for the presence of 'startTime'.
|
boolean |
isBufferBacked() |
boolean |
isReferenceCounted() |
boolean |
isValid() |
void |
lendApplicationName(XString val)
Lends the value of 'applicationName' to this object.
|
void |
lendPid(XString val)
Lends the value of 'pid' to this object.
|
byte[] |
serializeToByteArray() |
ByteBuffer |
serializeToByteBuffer() |
int |
serializeToNative(long address,
int addressOffset) |
void |
setApplicationName(String val)
Sets the value of 'applicationName'.
|
void |
setApplicationNameFrom(long val)
Sets the value of this String field to the given numeric value.
|
void |
setApplicationNameFrom(XString val)
Copies the provided XString value into this object's 'applicationName'.
|
void |
setApplicationPartition(int val)
Sets the value of 'applicationPartition'.
|
void |
setApplicationPartitionAsObject(Integer val)
Sets the value of 'applicationPartition'.
|
void |
setAsReadOnly() |
void |
setPid(String val)
Sets the value of 'pid'.
|
void |
setPidFrom(long val)
Sets the value of this String field to the given numeric value.
|
void |
setPidFrom(XString val)
Copies the provided XString value into this object's 'pid'.
|
void |
setStartTime(Date val)
Sets the value of 'startTime'.
|
void |
setStartTimeAsInstant(Instant val)
Sets the date value as a java.time.Instant.
|
void |
setStartTimeAsTimestamp(long val)
Sets the date value as a timestamp.
|
String |
toString() |
public static final AgentInfo[] EMPTY_ARRAY
public static AgentInfo create()
public static AgentInfo createFromSerializedJson(ByteBuffer serializedJson)
public static AgentInfo createFromSerializedJson(byte[] serializedJson)
public static AgentInfo createFrom(byte[] serializedJson)
public final void clearContent()
public final void setAsReadOnly()
public final boolean getIsReadOnly()
public static final int getApplicationPartitionFieldId()
public final void setApplicationPartition(int val)
IAgentInfosetApplicationPartition in interface IAgentInfoval - The value to set.public final void setApplicationPartitionAsObject(Integer val)
IAgentInfosetApplicationPartitionAsObject in interface IAgentInfoval - The value to set.public final int getApplicationPartition()
IAgentInfogetApplicationPartition in interface IAgentInfopublic final Integer getApplicationPartitionAsObject()
IAgentInfogetApplicationPartitionAsObject in interface IAgentInfopublic final void clearApplicationPartition()
IAgentInfoclearApplicationPartition in interface IAgentInfoIAgentInfo.setApplicationPartition(int)public final boolean hasApplicationPartition()
IAgentInfohasApplicationPartition in interface IAgentInfoIAgentInfo.getApplicationPartition()public static final int getStartTimeFieldId()
public final void setStartTime(Date val)
IAgentInfosetStartTime in interface IAgentInfoval - The value to set.public final Date getStartTime()
IAgentInfogetStartTime in interface IAgentInfopublic final void setStartTimeAsTimestamp(long val)
IAgentInfosetStartTimeAsTimestamp in interface IAgentInfoval - The date value in milliseconds from the epochpublic final long getStartTimeAsTimestamp()
IAgentInfo
NOTE:
Note that a return value of -1 could also indicate 1 millisecond before the epoch.
In cases where a such an ambiguity is a practical concern, IAgentInfo.hasStartTime()
should be called.
getStartTimeAsTimestamp in interface IAgentInfopublic final Long getStartTimeAsTimestampObject()
IAgentInfogetStartTimeAsTimestampObject in interface IAgentInfopublic final void setStartTimeAsInstant(Instant val)
IAgentInfosetStartTimeAsInstant in interface IAgentInfoval - The instant valuepublic final Instant getStartTimeAsInstant()
IAgentInfogetStartTimeAsInstant in interface IAgentInfopublic final void clearStartTime()
IAgentInfoclearStartTime in interface IAgentInfoIAgentInfo.setStartTime(Date)public final boolean hasStartTime()
IAgentInfohasStartTime in interface IAgentInfoIAgentInfo.getStartTime()public static final int getApplicationNameFieldId()
public final void setApplicationName(String val)
IAgentInfosetApplicationName in interface IAgentInfoval - The value to set.public final String getApplicationName()
IAgentInfogetApplicationName in interface IAgentInfopublic final void lendApplicationName(XString val)
IAgentInfoThis method is equivalent to setApplicationName 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.
lendApplicationName in interface IAgentInfoval - The value to set.public final void setApplicationNameFrom(long val)
IAgentInfo
NOTE:
This is the same as calling IAgentInfo.setApplicationName(String).
with Long.valueOf(val).toString(), except that using this method is a zero garbage
operation for Xbuf encoding.
setApplicationNameFrom in interface IAgentInfopublic final <T extends XString> T getApplicationNameTo(XString.Factory<T> factory)
IAgentInfo
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;
getApplicationNameTo in interface IAgentInfofactory - The factory from which to get the XString to copy into and returnnull.public final void setApplicationNameFrom(XString val)
IAgentInfo
NOTE:
This is a Zero Garbage operation for XBuf encoded objects. Additionally, this setter
can be more efficient than IAgentInfo.setApplicationName(String)
because it avoids encoding the value into a String if the given XString is already encoded.
setApplicationNameFrom in interface IAgentInfopublic final void getApplicationNameTo(XString val)
IAgentInfo
NOTE:
This is a Zero Garbage operation for XBuf encoded objects. Additionally, this getter
can be more efficient than IAgentInfo.getApplicationName() bec
because it can avoid decoding the value into an String.
getApplicationNameTo in interface IAgentInfoIAgentInfo.getApplicationName()public final XString getApplicationNameUnsafe()
IAgentInfo
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.
getApplicationNameUnsafe in interface IAgentInfoIAgentInfo.getApplicationName()public final void clearApplicationName()
IAgentInfoclearApplicationName in interface IAgentInfoIAgentInfo.setApplicationName(String)public final boolean hasApplicationName()
IAgentInfohasApplicationName in interface IAgentInfoIAgentInfo.getApplicationName()public static final int getPidFieldId()
public final void setPid(String val)
IAgentInfosetPid in interface IAgentInfoval - The value to set.public final String getPid()
IAgentInfogetPid in interface IAgentInfopublic final void lendPid(XString val)
IAgentInfoThis method is equivalent to setPid 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.
lendPid in interface IAgentInfoval - The value to set.public final void setPidFrom(long val)
IAgentInfo
NOTE:
This is the same as calling IAgentInfo.setPid(String).
with Long.valueOf(val).toString(), except that using this method is a zero garbage
operation for Xbuf encoding.
setPidFrom in interface IAgentInfopublic final <T extends XString> T getPidTo(XString.Factory<T> factory)
IAgentInfo
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;
getPidTo in interface IAgentInfofactory - The factory from which to get the XString to copy into and returnnull.public final void setPidFrom(XString val)
IAgentInfo
NOTE:
This is a Zero Garbage operation for XBuf encoded objects. Additionally, this setter
can be more efficient than IAgentInfo.setPid(String)
because it avoids encoding the value into a String if the given XString is already encoded.
setPidFrom in interface IAgentInfopublic final void getPidTo(XString val)
IAgentInfo
NOTE:
This is a Zero Garbage operation for XBuf encoded objects. Additionally, this getter
can be more efficient than IAgentInfo.getPid() bec
because it can avoid decoding the value into an String.
getPidTo in interface IAgentInfoIAgentInfo.getPid()public final XString getPidUnsafe()
IAgentInfo
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.
getPidUnsafe in interface IAgentInfoIAgentInfo.getPid()public final void clearPid()
IAgentInfoclearPid in interface IAgentInfoIAgentInfo.setPid(String)public final boolean hasPid()
IAgentInfohasPid in interface IAgentInfoIAgentInfo.getPid()public final byte[] serializeToByteArray()
public final ByteBuffer serializeToByteBuffer()
public final boolean isBufferBacked()
public final int getSerializeToNativeLength()
public final int serializeToNative(long address,
int addressOffset)
public final AgentInfo deserializeFromByteArray(byte[] array)
public final AgentInfo deserializeFromByteBuffer(ByteBuffer buffer)
public final AgentInfo deserializeFromNative(long address, int addressOffset, int length)
public final boolean isReferenceCounted()
public final AgentInfo acquire()
public final int getOwnerCount()
public final void dispose()
public final Object clone()
This method differs from the copy() method in that:
public final AgentInfo copy()
public final void copyInto(AgentInfo copy)
public final boolean isValid()
isValid in interface IRogValidatablepublic final void getValidationErrors(List<XString> results, String errorPrefix)
getValidationErrors in interface IRogValidatableCopyright © 2016 Neeve Research, LLC. All Rights Reserved.