|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.neeve.server.mon.cnc.SrvMonOptionDescription
@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=SrvMonCncFactory.class, vfid=36, ofid=36, typeId=302) public final class SrvMonOptionDescription
Descripes a command option
Nested Class Summary | |
---|---|
static class |
SrvMonOptionDescription.Field
The SrvMonOptionDescription xbuf field (used internally when this entity is used as a field of another entity). |
static class |
SrvMonOptionDescription.ListField
The SrvMonOptionDescription list field (used internally when this entity is used as an array field of another entity). |
Field Summary | |
---|---|
static SrvMonOptionDescription[] |
EMPTY_ARRAY
A preallocated empty array used to avoid garbage when returning empty arrays of this type. |
Constructor Summary | |
---|---|
SrvMonOptionDescription()
|
|
SrvMonOptionDescription(int initialBackingBufferSize)
|
Method Summary | ||
---|---|---|
SrvMonOptionDescription |
acquire()
|
|
void |
addValidValues(String val)
Adds the provided value to the list of 'validValues' values. |
|
void |
clearContent()
|
|
void |
clearDefaultValue()
Clears the value of 'defaultValue' Field Description The default value for an option when not specified ... or not set if no default |
|
void |
clearDescription()
Clears the value of 'description' Field Description The command description |
|
void |
clearDisplayName()
Clears the value of 'displayName' Field Description The display name for the argument If a display name is not provided then the name should be used by tools. |
|
void |
clearLongForm()
Clears the value of 'longForm' Field Description The long form of the command. e.g. |
|
void |
clearRequired()
Clears the value of 'required' Field Description Whether or not the option is required |
|
void |
clearShortForm()
Clears the value of 'shortForm' Field Description The short form of the command. e.g. |
|
void |
clearType()
Clears the value of 'type' Field Description Describes the type of the argument |
|
void |
clearValidValues()
Clears the value of 'validValues' Field Description When set restricts the set of valid values for the command |
|
void |
clearXRogType()
|
|
Object |
clone()
Creates a clone of this object. |
|
SrvMonOptionDescription |
copy()
Creates a copy of this SrvMonOptionDescription. |
|
void |
copyInto(SrvMonOptionDescription copy)
Copies the contents of this SrvMonOptionDescription into the target. |
|
static SrvMonOptionDescription |
create()
|
|
static SrvMonOptionDescription |
createFrom(byte[] serializedContainer)
|
|
static SrvMonOptionDescription |
createFrom(byte[] serializedContainer,
com.neeve.xbuf.XbufDesyncPolicy desyncPolicy)
|
|
static SrvMonOptionDescription |
createFromSerializedXbufContainer(byte[] serializedContainer)
|
|
static SrvMonOptionDescription |
createFromSerializedXbufContainer(byte[] serializedContainer,
com.neeve.xbuf.XbufDesyncPolicy desyncPolicy)
|
|
static com.neeve.xbuf.XbufSchema |
createSchema()
|
|
static com.neeve.xbuf.XbufRepeatedStringFieldBuffer |
createValidValuesFieldBuffer(int initialBufferLength,
boolean isNative)
Returns a wrapped buffer that can be used for doing an efficient bulk copy from an XIterator returned for this field. |
|
SrvMonOptionDescription |
deserializeFromByteArray(byte[] array)
|
|
SrvMonOptionDescription |
deserializeFromByteArray(byte[] array,
com.neeve.xbuf.XbufDesyncPolicy desyncPolicy)
|
|
SrvMonOptionDescription |
deserializeFromByteBuffer(ByteBuffer buffer)
|
|
SrvMonOptionDescription |
deserializeFromByteBuffer(ByteBuffer buffer,
com.neeve.xbuf.XbufDesyncPolicy desyncPolicy)
|
|
SrvMonOptionDescription |
deserializeFromIOElasticBuffer(com.neeve.io.IOElasticBuffer buffer,
int offset,
int length)
|
|
SrvMonOptionDescription |
deserializeFromIOElasticBuffer(com.neeve.io.IOElasticBuffer buffer,
int offset,
int length,
com.neeve.xbuf.XbufDesyncPolicy desyncPolicy)
|
|
SrvMonOptionDescription |
deserializeFromNative(long address,
int offset,
int length)
|
|
SrvMonOptionDescription |
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()
|
|
String |
getDefaultValue()
Gets the value of 'defaultValue' Field Description The default value for an option when not specified ... or not set if no default |
|
com.neeve.xbuf.XbufStringField |
getDefaultValueField()
|
|
static int |
getDefaultValueFieldId()
Get the field id for 'defaultValue' This method can be used to set field interests. |
|
|
getDefaultValueTo(XString.Factory<T> factory)
Copies the value of this String field into a new XString from the given factory. |
|
void |
getDefaultValueTo(XString val)
Copies the value of 'defaultValue' into the provided XString. |
|
XString |
getDefaultValueUnsafe()
Gets the raw value of 'defaultValue'. |
|
String |
getDescription()
Gets the value of 'description' Field Description The command description |
|
com.neeve.xbuf.XbufStringField |
getDescriptionField()
|
|
static int |
getDescriptionFieldId()
Get the field id for 'description' This method can be used to set field interests. |
|
|
getDescriptionTo(XString.Factory<T> factory)
Copies the value of this String field into a new XString from the given factory. |
|
void |
getDescriptionTo(XString val)
Copies the value of 'description' into the provided XString. |
|
XString |
getDescriptionUnsafe()
Gets the raw value of 'description'. |
|
static com.neeve.xbuf.XbufDesyncPolicy |
getDesyncPolicy()
|
|
String |
getDisplayName()
Gets the value of 'displayName' Field Description The display name for the argument If a display name is not provided then the name should be used by tools. |
|
com.neeve.xbuf.XbufStringField |
getDisplayNameField()
|
|
static int |
getDisplayNameFieldId()
Get the field id for 'displayName' This method can be used to set field interests. |
|
|
getDisplayNameTo(XString.Factory<T> factory)
Copies the value of this String field into a new XString from the given factory. |
|
void |
getDisplayNameTo(XString val)
Copies the value of 'displayName' into the provided XString. |
|
XString |
getDisplayNameUnsafe()
Gets the raw value of 'displayName'. |
|
boolean |
getIsReadOnly()
|
|
String |
getLongForm()
Gets the value of 'longForm' Field Description The long form of the command. e.g. |
|
com.neeve.xbuf.XbufStringField |
getLongFormField()
|
|
static int |
getLongFormFieldId()
Get the field id for 'longForm' This method can be used to set field interests. |
|
|
getLongFormTo(XString.Factory<T> factory)
Copies the value of this String field into a new XString from the given factory. |
|
void |
getLongFormTo(XString val)
Copies the value of 'longForm' into the provided XString. |
|
XString |
getLongFormUnsafe()
Gets the raw value of 'longForm'. |
|
int |
getOwnerCount()
|
|
UtlPool<SrvMonOptionDescription> |
getPool()
Get a pool item's pool. |
|
boolean |
getRequired()
Gets the value of 'required' Field Description Whether or not the option is required |
|
com.neeve.xbuf.XbufVariableBooleanField |
getRequiredField()
|
|
static int |
getRequiredFieldId()
Get the field id for 'required' This method can be used to set field interests. |
|
int |
getSerializeToNativeLength()
|
|
char |
getShortForm()
Gets the value of 'shortForm' Field Description The short form of the command. e.g. |
|
com.neeve.xbuf.XbufVariableCharField |
getShortFormField()
|
|
static int |
getShortFormFieldId()
Get the field id for 'shortForm' This method can be used to set field interests. |
|
SrvMonOptionType |
getType()
Gets the value of 'type' Field Description Describes the type of the argument |
|
com.neeve.xbuf.XbufVariableEnumField<SrvMonOptionType> |
getTypeField()
|
|
static int |
getTypeFieldId()
Get the field id for 'type' This method can be used to set field interests. |
|
void |
getValidationErrors(List<XString> results,
String errorPrefix)
Collects validation errors into the provided list. |
|
String[] |
getValidValues()
Gets the value of 'validValues' If the field is not set this method will return null . |
|
String[] |
getValidValuesEmptyIfNull()
Gets the value of 'validValues' or an empty array if the value is null or not set. |
|
static int |
getValidValuesFieldId()
Get the field id for 'validValues' This method can be used to set field interests. |
|
XStringIterator |
getValidValuesIterator()
Gets the value of 'validValues' as iterator of values. |
|
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 |
hasDefaultValue()
Checks for the presence of 'defaultValue' Field Description The default value for an option when not specified ... or not set if no default |
|
boolean |
hasDescription()
Checks for the presence of 'description' Field Description The command description |
|
boolean |
hasDisplayName()
Checks for the presence of 'displayName' Field Description The display name for the argument If a display name is not provided then the name should be used by tools. |
|
boolean |
hasLongForm()
Checks for the presence of 'longForm' Field Description The long form of the command. e.g. |
|
boolean |
hasRequired()
Checks for the presence of 'required' Field Description Whether or not the option is required |
|
boolean |
hasShortForm()
Checks for the presence of 'shortForm' Field Description The short form of the command. e.g. |
|
boolean |
hasType()
Checks for the presence of 'type' Field Description Describes the type of the argument |
|
boolean |
hasXRogType()
|
|
SrvMonOptionDescription |
init()
Initialize an item. |
|
boolean |
isBufferBacked()
|
|
boolean |
isDirty()
|
|
boolean |
isReferenceCounted()
|
|
boolean |
isValid()
Tests if this object has any validation errors. |
|
void |
lendDefaultValue(XString val)
Sets the value of 'defaultValue' Field Description The default value for an option when not specified ... or not set if no default |
|
void |
lendDescription(XString val)
Sets the value of 'description' Field Description The command description |
|
void |
lendDisplayName(XString val)
Sets the value of 'displayName' Field Description The display name for the argument If a display name is not provided then the name should be used by tools. |
|
void |
lendLongForm(XString val)
Sets the value of 'longForm' Field Description The long form of the command. e.g. |
|
static void |
optimizeFor(int val)
|
|
byte[] |
serializeToByteArray()
|
|
ByteBuffer |
serializeToByteBuffer()
|
|
com.neeve.io.IOBuffer |
serializeToIOBuffer(boolean useNative)
|
|
int |
serializeToNative(long address,
int addressOffset)
|
|
void |
setAsReadOnly()
|
|
void |
setDefaultValue(String val)
Sets the value of 'defaultValue' Field Description The default value for an option when not specified ... or not set if no default |
|
void |
setDefaultValueFrom(long val)
Sets the value of this String field to the given numeric value. |
|
void |
setDefaultValueFrom(com.neeve.xbuf.XbufStringField val)
|
|
void |
setDefaultValueFrom(XString val)
Copies the provided XString value into this object's 'defaultValue'. |
|
void |
setDescription(String val)
Sets the value of 'description' Field Description The command description |
|
void |
setDescriptionFrom(long val)
Sets the value of this String field to the given numeric value. |
|
void |
setDescriptionFrom(com.neeve.xbuf.XbufStringField val)
|
|
void |
setDescriptionFrom(XString val)
Copies the provided XString value into this object's 'description'. |
|
static void |
setDesyncPolicy(com.neeve.xbuf.XbufDesyncPolicy val)
|
|
void |
setDisplayName(String val)
Sets the value of 'displayName' Field Description The display name for the argument If a display name is not provided then the name should be used by tools. |
|
void |
setDisplayNameFrom(long val)
Sets the value of this String field to the given numeric value. |
|
void |
setDisplayNameFrom(com.neeve.xbuf.XbufStringField val)
|
|
void |
setDisplayNameFrom(XString val)
Copies the provided XString value into this object's 'displayName'. |
|
static void |
setFieldInterest(List<Integer> fieldIds)
|
|
void |
setLongForm(String val)
Sets the value of 'longForm' Field Description The long form of the command. e.g. |
|
void |
setLongFormFrom(long val)
Sets the value of this String field to the given numeric value. |
|
void |
setLongFormFrom(com.neeve.xbuf.XbufStringField val)
|
|
void |
setLongFormFrom(XString val)
Copies the provided XString value into this object's 'longForm'. |
|
SrvMonOptionDescription |
setPool(UtlPool<SrvMonOptionDescription> pool)
Set a pool item's pool. |
|
void |
setRequired(boolean val)
Sets the value of 'required' Field Description Whether or not the option is required |
|
void |
setRequiredFrom(com.neeve.xbuf.XbufVariableBooleanField val)
|
|
void |
setShortForm(char val)
Sets the value of 'shortForm' Field Description The short form of the command. e.g. |
|
void |
setShortFormFrom(com.neeve.xbuf.XbufVariableCharField val)
|
|
void |
setType(SrvMonOptionType val)
Sets the value of 'type' Field Description Describes the type of the argument |
|
void |
setTypeFrom(com.neeve.xbuf.XbufVariableEnumField<SrvMonOptionType> val)
|
|
void |
setValidValues(String[] val)
Sets the value of 'validValues' Field Description When set restricts the set of valid values for the command |
|
void |
setValidValuesFrom(XIterator<String> val)
Sets the value of 'validValues' using the values from the provided iterator. |
|
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 |
---|
public static final SrvMonOptionDescription[] EMPTY_ARRAY
Constructor Detail |
---|
public SrvMonOptionDescription()
public SrvMonOptionDescription(int initialBackingBufferSize)
Method Detail |
---|
public static SrvMonOptionDescription create()
public static SrvMonOptionDescription createFromSerializedXbufContainer(byte[] serializedContainer, com.neeve.xbuf.XbufDesyncPolicy desyncPolicy)
public static SrvMonOptionDescription createFromSerializedXbufContainer(byte[] serializedContainer)
public static SrvMonOptionDescription createFrom(byte[] serializedContainer, com.neeve.xbuf.XbufDesyncPolicy desyncPolicy)
public static SrvMonOptionDescription createFrom(byte[] serializedContainer)
public static final void setDesyncPolicy(com.neeve.xbuf.XbufDesyncPolicy val)
public static final com.neeve.xbuf.XbufDesyncPolicy getDesyncPolicy()
public static final void setFieldInterest(List<Integer> fieldIds)
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 static final int getXRogTypeFieldId()
This method can be used to set field interests.
getXRogType()
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 getShortFormFieldId()
This method can be used to set field interests.
getShortForm()
public final void setShortForm(char val)
ISrvMonOptionDescription
setShortForm
in interface ISrvMonOptionDescription
val
- The value to set.public final char getShortForm()
ISrvMonOptionDescription
getShortForm
in interface ISrvMonOptionDescription
public final void setShortFormFrom(com.neeve.xbuf.XbufVariableCharField val)
public final com.neeve.xbuf.XbufVariableCharField getShortFormField()
public final boolean hasShortForm()
ISrvMonOptionDescription
hasShortForm
in interface ISrvMonOptionDescription
ISrvMonOptionDescription.getShortForm()
public final void clearShortForm()
ISrvMonOptionDescription
clearShortForm
in interface ISrvMonOptionDescription
ISrvMonOptionDescription.setShortForm(char)
public static final int getRequiredFieldId()
This method can be used to set field interests.
getRequired()
public final void setRequired(boolean val)
ISrvMonOptionDescription
setRequired
in interface ISrvMonOptionDescription
val
- The value to set.public final boolean getRequired()
ISrvMonOptionDescription
getRequired
in interface ISrvMonOptionDescription
public final void setRequiredFrom(com.neeve.xbuf.XbufVariableBooleanField val)
public final com.neeve.xbuf.XbufVariableBooleanField getRequiredField()
public final boolean hasRequired()
ISrvMonOptionDescription
hasRequired
in interface ISrvMonOptionDescription
ISrvMonOptionDescription.getRequired()
public final void clearRequired()
ISrvMonOptionDescription
clearRequired
in interface ISrvMonOptionDescription
ISrvMonOptionDescription.setRequired(boolean)
public static final int getTypeFieldId()
This method can be used to set field interests.
getType()
public final void setType(SrvMonOptionType val)
ISrvMonOptionDescription
setType
in interface ISrvMonOptionDescription
val
- The value to set.public final void setTypeFrom(com.neeve.xbuf.XbufVariableEnumField<SrvMonOptionType> val)
public final com.neeve.xbuf.XbufVariableEnumField<SrvMonOptionType> getTypeField()
public final SrvMonOptionType getType()
ISrvMonOptionDescription
getType
in interface ISrvMonOptionDescription
public final boolean hasType()
ISrvMonOptionDescription
hasType
in interface ISrvMonOptionDescription
ISrvMonOptionDescription.getType()
public final void clearType()
ISrvMonOptionDescription
clearType
in interface ISrvMonOptionDescription
ISrvMonOptionDescription.setType(SrvMonOptionType)
public static final int getLongFormFieldId()
This method can be used to set field interests.
getLongForm()
public final void setLongForm(String val)
ISrvMonOptionDescription
setLongForm
in interface ISrvMonOptionDescription
val
- The value to set.public final String getLongForm()
ISrvMonOptionDescription
getLongForm
in interface ISrvMonOptionDescription
public final void lendLongForm(XString val)
ISrvMonOptionDescription
lendLongForm
in interface ISrvMonOptionDescription
val
- The value to set.public final void setLongFormFrom(long val)
ISrvMonOptionDescription
NOTE:
This is the same as calling ISrvMonOptionDescription.setLongForm(String)
.
with Long.valueOf(val).toString(), except that using this method is a zero garbage
operation for Xbuf encoding.
setLongFormFrom
in interface ISrvMonOptionDescription
public final <T extends XString> T getLongFormTo(XString.Factory<T> factory)
ISrvMonOptionDescription
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;
getLongFormTo
in interface ISrvMonOptionDescription
factory
- The factory from which to get the XString to copy into and return
null
.public final void setLongFormFrom(XString val)
ISrvMonOptionDescription
NOTE:
This is a Zero Garbage operation for XBuf encoded objects. Additionally, this setter
can be more efficient than ISrvMonOptionDescription.setLongForm(String)
because it avoids encoding the value into a String
if the given XString
is already encoded.
setLongFormFrom
in interface ISrvMonOptionDescription
public final void getLongFormTo(XString val)
ISrvMonOptionDescription
NOTE:
This is a Zero Garbage operation for XBuf encoded objects. Additionally, this getter
can be more efficient than ISrvMonOptionDescription.getLongForm()
bec
because it can avoid decoding the value into an String
.
getLongFormTo
in interface ISrvMonOptionDescription
ISrvMonOptionDescription.getLongForm()
public final XString getLongFormUnsafe()
ISrvMonOptionDescription
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.
getLongFormUnsafe
in interface ISrvMonOptionDescription
ISrvMonOptionDescription.getLongForm()
public final void setLongFormFrom(com.neeve.xbuf.XbufStringField val)
public final com.neeve.xbuf.XbufStringField getLongFormField()
public final boolean hasLongForm()
ISrvMonOptionDescription
hasLongForm
in interface ISrvMonOptionDescription
ISrvMonOptionDescription.getLongForm()
public final void clearLongForm()
ISrvMonOptionDescription
clearLongForm
in interface ISrvMonOptionDescription
ISrvMonOptionDescription.setLongForm(String)
public static final int getDefaultValueFieldId()
This method can be used to set field interests.
getDefaultValue()
public final void setDefaultValue(String val)
ISrvMonOptionDescription
setDefaultValue
in interface ISrvMonOptionDescription
val
- The value to set.public final String getDefaultValue()
ISrvMonOptionDescription
getDefaultValue
in interface ISrvMonOptionDescription
public final void lendDefaultValue(XString val)
ISrvMonOptionDescription
lendDefaultValue
in interface ISrvMonOptionDescription
val
- The value to set.public final void setDefaultValueFrom(long val)
ISrvMonOptionDescription
NOTE:
This is the same as calling ISrvMonOptionDescription.setDefaultValue(String)
.
with Long.valueOf(val).toString(), except that using this method is a zero garbage
operation for Xbuf encoding.
setDefaultValueFrom
in interface ISrvMonOptionDescription
public final <T extends XString> T getDefaultValueTo(XString.Factory<T> factory)
ISrvMonOptionDescription
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;
getDefaultValueTo
in interface ISrvMonOptionDescription
factory
- The factory from which to get the XString to copy into and return
null
.public final void setDefaultValueFrom(XString val)
ISrvMonOptionDescription
NOTE:
This is a Zero Garbage operation for XBuf encoded objects. Additionally, this setter
can be more efficient than ISrvMonOptionDescription.setDefaultValue(String)
because it avoids encoding the value into a String
if the given XString
is already encoded.
setDefaultValueFrom
in interface ISrvMonOptionDescription
public final void getDefaultValueTo(XString val)
ISrvMonOptionDescription
NOTE:
This is a Zero Garbage operation for XBuf encoded objects. Additionally, this getter
can be more efficient than ISrvMonOptionDescription.getDefaultValue()
bec
because it can avoid decoding the value into an String
.
getDefaultValueTo
in interface ISrvMonOptionDescription
ISrvMonOptionDescription.getDefaultValue()
public final XString getDefaultValueUnsafe()
ISrvMonOptionDescription
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.
getDefaultValueUnsafe
in interface ISrvMonOptionDescription
ISrvMonOptionDescription.getDefaultValue()
public final void setDefaultValueFrom(com.neeve.xbuf.XbufStringField val)
public final com.neeve.xbuf.XbufStringField getDefaultValueField()
public final boolean hasDefaultValue()
ISrvMonOptionDescription
hasDefaultValue
in interface ISrvMonOptionDescription
ISrvMonOptionDescription.getDefaultValue()
public final void clearDefaultValue()
ISrvMonOptionDescription
clearDefaultValue
in interface ISrvMonOptionDescription
ISrvMonOptionDescription.setDefaultValue(String)
public static final int getValidValuesFieldId()
This method can be used to set field interests.
getValidValues()
public static final com.neeve.xbuf.XbufRepeatedStringFieldBuffer createValidValuesFieldBuffer(int initialBufferLength, boolean isNative)
For example the following would result in a bulk transfer from this message
XbufRepeatedStringFieldBuffer preallocated = SrvMonOptionDescription.createValidValuesFieldBuffer(1024, true); // The following would then result in a buffer copy without any iteration: preallocated.setValue(inboundMessage.getValidValuesIterator()); // The preallocated bulk copied values can then be transfered to an outbound message: outboundMessage.setValidValues.setValueFrom(preallocated);
Bulk transfer from the backing buffer may only possible between two fields with the same id (protobuf tag) because the bulk transfered bytes are in protobuf wire format which for most repeated fields encode the field's tag for each element.
initialBufferLength
- the initial size of the underlying backing buffer.isNative
- Whether the backing buffer should be a native or heap buffer.public final void setValidValues(String[] val)
ISrvMonOptionDescription
setValidValues
in interface ISrvMonOptionDescription
val
- The value to set.public final void setValidValuesFrom(XIterator<String> val)
ISrvMonOptionDescription
This method will call XIterator.toFirst()
before and after setting the values, meaning
that all values from the iterator will be set and the iterator will be reset on return.
This method is zero garbage for Xbuf generated classes, and this method is optimized such that calling this with an iterator from another 'validValues' accessor can copy the values without iteration.
NOTE:
Passing a null
or empty iterator has the same affect as calling ISrvMonOptionDescription.setValidValues(String[])
with
a value of null
.
setValidValuesFrom
in interface ISrvMonOptionDescription
val
- the values to set.public final void addValidValues(String val)
ISrvMonOptionDescription
This method is zero garbage for Xbuf generated classes, and this method is optimized such that calling this with an iterator from another 'validValues' accessor can copy the values without iteration.
For objects generated with json encoding, or transactional state entities, using this method is currently efficient than doing a bulk set. For xbuf generated messages however, this method is optimized to directly serialize to an encoded backing buffer.
addValidValues
in interface ISrvMonOptionDescription
val
- the value to add.public final String[] getValidValues()
ISrvMonOptionDescription
If the field is not set this method will return null
.
getValidValues
in interface ISrvMonOptionDescription
null
.public final String[] getValidValuesEmptyIfNull()
ISrvMonOptionDescription
null
or not set.
getValidValuesEmptyIfNull
in interface ISrvMonOptionDescription
null
if not set.ISrvMonOptionDescription.getValidValues()
public final XStringIterator getValidValuesIterator()
ISrvMonOptionDescription
This method will always return a non null iterator value. The returned iterator is not threadsafe, and the caller may not hold on to it beyond the pooling lifespan of this object. Depending on the implementation, the same iterator instance may be returned by this object on each call to avoid garbage. Each time this method is called the iterator is reset by calling its toFirst() method. Callers should therefore be especially careful about calling this method while iterating on the iterator returned by this method.
This method is zero garbage for Xbuf generated classes, and this method is optimized such that
passing the returned iterator to another object's setXXX(com.neeve.lang.XStringIterator)
method
can perform a direct copy of the underlying values without iteration.
getValidValuesIterator
in interface ISrvMonOptionDescription
public final void clearValidValues()
ISrvMonOptionDescription
clearValidValues
in interface ISrvMonOptionDescription
ISrvMonOptionDescription.setValidValues(String[])
public static final int getDescriptionFieldId()
This method can be used to set field interests.
getDescription()
public final void setDescription(String val)
ISrvMonOptionDescription
setDescription
in interface ISrvMonOptionDescription
val
- The value to set.public final String getDescription()
ISrvMonOptionDescription
getDescription
in interface ISrvMonOptionDescription
public final void lendDescription(XString val)
ISrvMonOptionDescription
lendDescription
in interface ISrvMonOptionDescription
val
- The value to set.public final void setDescriptionFrom(long val)
ISrvMonOptionDescription
NOTE:
This is the same as calling ISrvMonOptionDescription.setDescription(String)
.
with Long.valueOf(val).toString(), except that using this method is a zero garbage
operation for Xbuf encoding.
setDescriptionFrom
in interface ISrvMonOptionDescription
public final <T extends XString> T getDescriptionTo(XString.Factory<T> factory)
ISrvMonOptionDescription
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;
getDescriptionTo
in interface ISrvMonOptionDescription
factory
- The factory from which to get the XString to copy into and return
null
.public final void setDescriptionFrom(XString val)
ISrvMonOptionDescription
NOTE:
This is a Zero Garbage operation for XBuf encoded objects. Additionally, this setter
can be more efficient than ISrvMonOptionDescription.setDescription(String)
because it avoids encoding the value into a String
if the given XString
is already encoded.
setDescriptionFrom
in interface ISrvMonOptionDescription
public final void getDescriptionTo(XString val)
ISrvMonOptionDescription
NOTE:
This is a Zero Garbage operation for XBuf encoded objects. Additionally, this getter
can be more efficient than ISrvMonOptionDescription.getDescription()
bec
because it can avoid decoding the value into an String
.
getDescriptionTo
in interface ISrvMonOptionDescription
ISrvMonOptionDescription.getDescription()
public final XString getDescriptionUnsafe()
ISrvMonOptionDescription
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.
getDescriptionUnsafe
in interface ISrvMonOptionDescription
ISrvMonOptionDescription.getDescription()
public final void setDescriptionFrom(com.neeve.xbuf.XbufStringField val)
public final com.neeve.xbuf.XbufStringField getDescriptionField()
public final boolean hasDescription()
ISrvMonOptionDescription
hasDescription
in interface ISrvMonOptionDescription
ISrvMonOptionDescription.getDescription()
public final void clearDescription()
ISrvMonOptionDescription
clearDescription
in interface ISrvMonOptionDescription
ISrvMonOptionDescription.setDescription(String)
public static final int getDisplayNameFieldId()
This method can be used to set field interests.
getDisplayName()
public final void setDisplayName(String val)
ISrvMonOptionDescription
If a display name is not provided then the name should be used by tools. The display name is for display purposes only and cannot be used to invoke a command.
setDisplayName
in interface ISrvMonOptionDescription
val
- The value to set.public final String getDisplayName()
ISrvMonOptionDescription
If a display name is not provided then the name should be used by tools. The display name is for display purposes only and cannot be used to invoke a command.
getDisplayName
in interface ISrvMonOptionDescription
public final void lendDisplayName(XString val)
ISrvMonOptionDescription
If a display name is not provided then the name should be used by tools. The display name is for display purposes only and cannot be used to invoke a command.
lendDisplayName
in interface ISrvMonOptionDescription
val
- The value to set.public final void setDisplayNameFrom(long val)
ISrvMonOptionDescription
If a display name is not provided then the name should be used by tools. The display name is for display purposes only and cannot be used to invoke a command.
NOTE:
This is the same as calling ISrvMonOptionDescription.setDisplayName(String)
.
with Long.valueOf(val).toString(), except that using this method is a zero garbage
operation for Xbuf encoding.
setDisplayNameFrom
in interface ISrvMonOptionDescription
public final <T extends XString> T getDisplayNameTo(XString.Factory<T> factory)
ISrvMonOptionDescription
If a display name is not provided then the name should be used by tools. The display name is for display purposes only and cannot be used to invoke a command.
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;
getDisplayNameTo
in interface ISrvMonOptionDescription
factory
- The factory from which to get the XString to copy into and return
null
.public final void setDisplayNameFrom(XString val)
ISrvMonOptionDescription
If a display name is not provided then the name should be used by tools. The display name is for display purposes only and cannot be used to invoke a command.
NOTE:
This is a Zero Garbage operation for XBuf encoded objects. Additionally, this setter
can be more efficient than ISrvMonOptionDescription.setDisplayName(String)
because it avoids encoding the value into a String
if the given XString
is already encoded.
setDisplayNameFrom
in interface ISrvMonOptionDescription
public final void getDisplayNameTo(XString val)
ISrvMonOptionDescription
If a display name is not provided then the name should be used by tools. The display name is for display purposes only and cannot be used to invoke a command.
NOTE:
This is a Zero Garbage operation for XBuf encoded objects. Additionally, this getter
can be more efficient than ISrvMonOptionDescription.getDisplayName()
bec
because it can avoid decoding the value into an String
.
getDisplayNameTo
in interface ISrvMonOptionDescription
ISrvMonOptionDescription.getDisplayName()
public final XString getDisplayNameUnsafe()
ISrvMonOptionDescription
If a display name is not provided then the name should be used by tools. The display name is for display purposes only and cannot be used to invoke a command.
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.
getDisplayNameUnsafe
in interface ISrvMonOptionDescription
ISrvMonOptionDescription.getDisplayName()
public final void setDisplayNameFrom(com.neeve.xbuf.XbufStringField val)
public final com.neeve.xbuf.XbufStringField getDisplayNameField()
public final boolean hasDisplayName()
ISrvMonOptionDescription
If a display name is not provided then the name should be used by tools. The display name is for display purposes only and cannot be used to invoke a command.
hasDisplayName
in interface ISrvMonOptionDescription
ISrvMonOptionDescription.getDisplayName()
public final void clearDisplayName()
ISrvMonOptionDescription
If a display name is not provided then the name should be used by tools. The display name is for display purposes only and cannot be used to invoke a command.
clearDisplayName
in interface ISrvMonOptionDescription
ISrvMonOptionDescription.setDisplayName(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 SrvMonOptionDescription deserializeFromIOElasticBuffer(com.neeve.io.IOElasticBuffer buffer, int offset, int length, com.neeve.xbuf.XbufDesyncPolicy desyncPolicy)
public final SrvMonOptionDescription deserializeFromIOElasticBuffer(com.neeve.io.IOElasticBuffer buffer, int offset, int length)
public final SrvMonOptionDescription deserializeFromByteArray(byte[] array, com.neeve.xbuf.XbufDesyncPolicy desyncPolicy)
public final SrvMonOptionDescription deserializeFromByteArray(byte[] array)
public final SrvMonOptionDescription deserializeFromByteBuffer(ByteBuffer buffer, com.neeve.xbuf.XbufDesyncPolicy desyncPolicy)
public final SrvMonOptionDescription deserializeFromByteBuffer(ByteBuffer buffer)
public final SrvMonOptionDescription deserializeFromNative(long address, int offset, int length, com.neeve.xbuf.XbufDesyncPolicy desyncPolicy)
public final SrvMonOptionDescription deserializeFromNative(long address, int offset, int length)
public final void sync()
public final int desync(PktBuffer buffer, int pos, boolean frameOnly)
desync
in interface com.neeve.xbuf.IXbufDesyncer
public final SrvMonOptionDescription 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<SrvMonOptionDescription>
public final SrvMonOptionDescription setPool(UtlPool<SrvMonOptionDescription> 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<SrvMonOptionDescription>
public final UtlPool<SrvMonOptionDescription> getPool()
UtlPool.Item
This method should return the pool set using UtlPool.Item.setPool(com.neeve.util.UtlPool
getPool
in interface UtlPool.Item<SrvMonOptionDescription>
UtlPool.Item.setPool(com.neeve.util.UtlPool)
public final boolean isReferenceCounted()
public final SrvMonOptionDescription acquire()
public final int getOwnerCount()
public final void dispose()
public final Object clone()
This method differs from the copy()
method in that:
clone
in class Object
public final SrvMonOptionDescription 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 SrvMonOptionDescription's embedded entity fields.
The returned copy will be writeable even if this SrvMonOptionDescription is read only.
public final void copyInto(SrvMonOptionDescription 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 SrvMonOptionDescription's embedded entity fields.
The returned copy will be writeable even if this SrvMonOptionDescription 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.public final String toString()
toString
in class Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |