Package org.jboss.hal.dmr
Class Operation
- java.lang.Object
-
- org.jboss.hal.dmr.ModelNode
-
- org.jboss.hal.dmr.Operation
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classOperation.BuilderA builder for operations.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringasCli()ResourceAddressgetAddress()ModelNodegetHeader()StringgetName()ModelNodegetParameter()Set<String>getRoles()booleanhasParameter()OperationrunAs(Set<String> runAs)StringtoString()Get a human-readable string representation of this model node, formatted nicely (possibly on multiple lines).-
Methods inherited from class org.jboss.hal.dmr.ModelNode
add, add, add, add, add, add, add, add, add, add, add, add, add, add, add, add, add, add, add, addEmptyList, addEmptyObject, addExpression, as, asBigDecimal, asBigInteger, asBoolean, asBoolean, asBytes, asDouble, asDouble, asInt, asInt, asList, asLong, asLong, asObject, asProperty, asPropertyList, asString, asType, clear, clone, equals, equals, fromBase64, get, get, get, getFailureDescription, getType, has, has, hasDefined, hasDefined, hashCode, isDefined, isFailure, keys, protect, remove, require, require, resolve, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, setEmptyList, setEmptyObject, setExpression, setExpression, toBase64String, toJSONString, toJSONString, writeExternal
-
-
-
-
Constructor Detail
-
Operation
public Operation(ModelNode modelNode)
-
-
Method Detail
-
getName
public String getName()
- Returns:
- the name of the operation
-
getAddress
public ResourceAddress getAddress()
- Returns:
- the address of the operation
-
getParameter
public ModelNode getParameter()
- Returns:
- the parameters of the operation
-
getHeader
public ModelNode getHeader()
- Returns:
- the header of the operation
-
hasParameter
public boolean hasParameter()
-
toString
public String toString()
Description copied from class:ModelNodeGet a human-readable string representation of this model node, formatted nicely (possibly on multiple lines).
-
asCli
public String asCli()
- Returns:
- the string representation of the operation as used in the CLI
-
-