|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
@Generated(value="com.neeve.adm.AdmGenerator", date="Wed Mar 28 10:54:31 EDT 2018") @AdmGenerated(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)") public interface ISrvMonInvokeCommandRequest
Instructs the server to inoke a command.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface com.neeve.rog.IRogNode |
---|
IRogNode.PoolingListener |
Nested classes/interfaces inherited from interface com.neeve.ods.IStoreObject |
---|
IStoreObject.EncodingType |
Method Summary | ||
---|---|---|
void |
addParameters(String val)
Adds the provided value to the list of 'parameters' values. |
|
void |
clearCommandName()
Clears the value of 'commandName' Field Description The name of the command to invoke |
|
void |
clearParameters()
Clears the value of 'parameters' Field Description The list of options and arguments for the command For example when invoking MyApp doSend --rate 20 --count 1000 true the parameters would look like: --rate 20 --count 1000 true |
|
void |
clearTarget()
Clears the value of 'target' Field Description The target (e.g. app) on which to invoke the command |
|
SrvMonInvokeCommandRequest |
copy()
Creates a copy of this SrvMonInvokeCommandRequest. |
|
void |
copyInto(SrvMonInvokeCommandRequest target)
Copies the contents of this SrvMonInvokeCommandRequest into the target. |
|
String |
getCommandName()
Gets the value of 'commandName' Field Description The name of the command to invoke |
|
|
getCommandNameTo(XString.Factory<T> factory)
Copies the value of this String field into a new XString from the given factory. |
|
void |
getCommandNameTo(XString val)
Copies the value of 'commandName' into the provided XString. |
|
XString |
getCommandNameUnsafe()
Gets the raw value of 'commandName'. |
|
String[] |
getParameters()
Gets the value of 'parameters' If the field is not set this method will return null . |
|
String[] |
getParametersEmptyIfNull()
Gets the value of 'parameters' or an empty array if the value is null or not set. |
|
XStringIterator |
getParametersIterator()
Gets the value of 'parameters' as iterator of values. |
|
String |
getTarget()
Gets the value of 'target' Field Description The target (e.g. app) on which to invoke the command |
|
|
getTargetTo(XString.Factory<T> factory)
Copies the value of this String field into a new XString from the given factory. |
|
void |
getTargetTo(XString val)
Copies the value of 'target' into the provided XString. |
|
XString |
getTargetUnsafe()
Gets the raw value of 'target'. |
|
boolean |
hasCommandName()
Checks for the presence of 'commandName' Field Description The name of the command to invoke |
|
boolean |
hasTarget()
Checks for the presence of 'target' Field Description The target (e.g. app) on which to invoke the command |
|
void |
lendCommandName(XString val)
Sets the value of 'commandName' Field Description The name of the command to invoke |
|
void |
lendTarget(XString val)
Sets the value of 'target' Field Description The target (e.g. app) on which to invoke the command |
|
void |
setCommandName(String val)
Sets the value of 'commandName' Field Description The name of the command to invoke |
|
void |
setCommandNameFrom(long val)
Sets the value of this String field to the given numeric value. |
|
void |
setCommandNameFrom(XString val)
Copies the provided XString value into this object's 'commandName'. |
|
void |
setParameters(String[] val)
Sets the value of 'parameters' Field Description The list of options and arguments for the command For example when invoking MyApp doSend --rate 20 --count 1000 true the parameters would look like: --rate 20 --count 1000 true |
|
void |
setParametersFrom(XIterator<String> val)
Sets the value of 'parameters' using the values from the provided iterator. |
|
void |
setTarget(String val)
Sets the value of 'target' Field Description The target (e.g. app) on which to invoke the command |
|
void |
setTargetFrom(long val)
Sets the value of this String field to the given numeric value. |
|
void |
setTargetFrom(XString val)
Copies the provided XString value into this object's 'target'. |
Methods inherited from interface com.neeve.ods.IStoreObject |
---|
acquire, deserialize, deserializeMetadata, deserializeMetadata, ensureId, getBinding, getCheckpointVersion, getContentEncodingType, getId, getOfid, getOwnershipCount, getSerializedMetadataLength, getStableTransactionId, getTransactionId, serialize, serializeMetadata, setBinding, setCheckpointVersion, setFieldValue, setId, setStableTransactionId, setTransactionId |
Methods inherited from interface com.neeve.sma.MapMessageView |
---|
getMessageReflector |
Methods inherited from interface com.neeve.rog.IRogValidatable |
---|
getValidationErrors, isValid |
Method Detail |
---|
void setTarget(String val)
val
- The value to set.String getTarget()
void lendTarget(XString val)
val
- The value to set.void setTargetFrom(long val)
NOTE:
This is the same as calling setTarget(String)
.
with Long.valueOf(val).toString(), except that using this method is a zero garbage
operation for Xbuf encoding.
<T extends XString> T getTargetTo(XString.Factory<T> factory)
If the value of this field is not null
this method creates an XString from
the provided Factory, copies this field's value into the type, and returns the new
XString.);
This is a zero garbage operation if the provided factory is backed by a pool and the pool; has available instances;
factory
- The factory from which to get the XString to copy into and return
null
.
NullPointerException
- if the provided factory is nullvoid setTargetFrom(XString val)
NOTE:
This is a Zero Garbage operation for XBuf encoded objects. Additionally, this setter
can be more efficient than setTarget(String)
because it avoids encoding the value into a String
if the given XString
is already encoded.
void getTargetTo(XString val)
NOTE:
This is a Zero Garbage operation for XBuf encoded objects. Additionally, this getter
can be more efficient than getTarget()
bec
because it can avoid decoding the value into an String
.
getTarget()
XString getTargetUnsafe()
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.
getTarget()
void clearTarget()
setTarget(String)
boolean hasTarget()
getTarget()
void setCommandName(String val)
val
- The value to set.String getCommandName()
void lendCommandName(XString val)
val
- The value to set.void setCommandNameFrom(long val)
NOTE:
This is the same as calling setCommandName(String)
.
with Long.valueOf(val).toString(), except that using this method is a zero garbage
operation for Xbuf encoding.
<T extends XString> T getCommandNameTo(XString.Factory<T> factory)
If the value of this field is not null
this method creates an XString from
the provided Factory, copies this field's value into the type, and returns the new
XString.);
This is a zero garbage operation if the provided factory is backed by a pool and the pool; has available instances;
factory
- The factory from which to get the XString to copy into and return
null
.
NullPointerException
- if the provided factory is nullvoid setCommandNameFrom(XString val)
NOTE:
This is a Zero Garbage operation for XBuf encoded objects. Additionally, this setter
can be more efficient than setCommandName(String)
because it avoids encoding the value into a String
if the given XString
is already encoded.
void getCommandNameTo(XString val)
NOTE:
This is a Zero Garbage operation for XBuf encoded objects. Additionally, this getter
can be more efficient than getCommandName()
bec
because it can avoid decoding the value into an String
.
getCommandName()
XString getCommandNameUnsafe()
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.
getCommandName()
void clearCommandName()
setCommandName(String)
boolean hasCommandName()
getCommandName()
void setParameters(String[] val)
For example when invoking MyApp doSend --rate 20 --count 1000 true the parameters would look like:
val
- The value to set.void setParametersFrom(XIterator<String> val)
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 'parameters' accessor can copy the values without iteration.
For example when invoking MyApp doSend --rate 20 --count 1000 true the parameters would look like:
NOTE:
Passing a null
or empty iterator has the same affect as calling setParameters(String[])
with
a value of null
.
val
- the values to set.void addParameters(String val)
This method is zero garbage for Xbuf generated classes, and this method is optimized such that calling this with an iterator from another 'parameters' 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.
For example when invoking MyApp doSend --rate 20 --count 1000 true the parameters would look like:
val
- the value to add.XStringIterator getParametersIterator()
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.
For example when invoking MyApp doSend --rate 20 --count 1000 true the parameters would look like:
String[] getParameters()
If the field is not set this method will return null
.
For example when invoking MyApp doSend --rate 20 --count 1000 true the parameters would look like:
null
.String[] getParametersEmptyIfNull()
null
or not set.
For example when invoking MyApp doSend --rate 20 --count 1000 true the parameters would look like:
null
if not set.getParameters()
void clearParameters()
For example when invoking MyApp doSend --rate 20 --count 1000 true the parameters would look like:
setParameters(String[])
SrvMonInvokeCommandRequest 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 SrvMonInvokeCommandRequest's embedded entity fields.
The returned copy will be writeable even if this SrvMonInvokeCommandRequest is read only.
No metadata is copied except as documented IRogCopyableNode
.
See IRogCopyableNode
for more detailed information on the semantics of this method.
copy
in interface CopyableMessageView<ISrvMonInvokeCommandRequest>
copy
in interface IRogCopyableNode<ISrvMonInvokeCommandRequest>
IRogCopyableNode
,
CopyableMessageView
void copyInto(SrvMonInvokeCommandRequest target)
The copy clears the target's contents and copies primitive, enum and embedded entity fields into the provided copy. Each embedded entity field is cloned so that modifications made to the copy's embedded entity fields do not affect this SrvMonInvokeCommandRequest's embedded entity fields.
The returned copy will be writeable even if this SrvMonInvokeCommandRequest is read only.
No metadata is copied except as documented IRogCopyableNode
.
See IRogCopyableNode
for more detailed information on the semantics of this method.
target
- The target to copy into which must not be null or read only.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |