|
JBoss AS7 Deployment Plugin 7.9.Final | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.as.controller.client.helpers.Operations
org.jboss.as.plugin.common.ServerOperations
public class ServerOperations
A helper for creating operations.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.jboss.as.controller.client.helpers.Operations |
---|
org.jboss.as.controller.client.helpers.Operations.CompositeOperationBuilder |
Field Summary | |
---|---|
static String |
ENABLE
|
static String |
LAUNCH_TYPE
|
static String |
PROFILE
|
static String |
READ_CHILDREN_NAMES
|
static String |
READ_RESOURCE
|
static String |
RELOAD
|
static String |
SERVER_STATE
|
static String |
SHUTDOWN
|
Constructor Summary | |
---|---|
ServerOperations()
|
Method Summary | |
---|---|
static org.jboss.dmr.ModelNode |
createAddress(String key,
String name)
|
static org.jboss.dmr.ModelNode |
createListDeploymentsOperation()
Creates an operation to list the deployments. |
static org.jboss.dmr.ModelNode |
createOperation(String operation,
org.jboss.dmr.ModelNode address,
boolean recursive)
Creates an operation. |
static org.jboss.dmr.ModelNode |
createReadAttributeOperation(String attributeName)
Creates an operation to read the attribute represented by the attributeName parameter. |
static org.jboss.dmr.ModelNode |
createRemoveOperation(org.jboss.dmr.ModelNode address,
boolean recursive)
Creates a remove operation. |
static org.jboss.dmr.Property |
getChildAddress(org.jboss.dmr.ModelNode address)
Finds the last entry of the address list and returns it as a property. |
static String |
getFailureDescriptionAsString(org.jboss.dmr.ModelNode result)
Parses the result and returns the failure description. |
static org.jboss.dmr.ModelNode |
getParentAddress(org.jboss.dmr.ModelNode address)
Finds the parent address, everything before the last address part. |
static String |
readResultAsString(org.jboss.dmr.ModelNode result)
Reads the result of an operation and returns the result as a string. |
Methods inherited from class org.jboss.as.controller.client.helpers.Operations |
---|
createAddOperation, createCompositeOperation, createOperation, createOperation, createReadAttributeOperation, createReadResourceOperation, createReadResourceOperation, createRemoveOperation, createUndefineAttributeOperation, createWriteAttributeOperation, createWriteAttributeOperation, createWriteAttributeOperation, createWriteAttributeOperation, createWriteAttributeOperation, getFailureDescription, getOperationAddress, getOperationName, isSuccessfulOutcome, readResult |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String ENABLE
public static final String LAUNCH_TYPE
public static final String PROFILE
public static final String READ_CHILDREN_NAMES
public static final String READ_RESOURCE
public static final String RELOAD
public static final String SERVER_STATE
public static final String SHUTDOWN
Constructor Detail |
---|
public ServerOperations()
Method Detail |
---|
public static String getFailureDescriptionAsString(org.jboss.dmr.ModelNode result)
result
- the result of executing an operation
public static org.jboss.dmr.ModelNode createListDeploymentsOperation()
public static org.jboss.dmr.ModelNode createRemoveOperation(org.jboss.dmr.ModelNode address, boolean recursive)
address
- the address for the operationrecursive
- true
if the remove should be recursive, otherwise false
public static org.jboss.dmr.ModelNode createReadAttributeOperation(String attributeName)
attributeName
parameter.
attributeName
- the name of the parameter to read
public static org.jboss.dmr.ModelNode createAddress(String key, String name)
public static org.jboss.dmr.ModelNode createOperation(String operation, org.jboss.dmr.ModelNode address, boolean recursive)
operation
- the operation nameaddress
- the address for the operationrecursive
- whether the operation is recursive or not
IllegalArgumentException
- if the address is not of type ModelType.LIST
public static org.jboss.dmr.Property getChildAddress(org.jboss.dmr.ModelNode address)
address
- the address to get the last part of
IllegalArgumentException
- if the address is not of type ModelType.LIST
or is emptypublic static org.jboss.dmr.ModelNode getParentAddress(org.jboss.dmr.ModelNode address)
address
- the address to get the parent
IllegalArgumentException
- if the address is not of type ModelType.LIST
or is emptypublic static String readResultAsString(org.jboss.dmr.ModelNode result)
ClientConstants.RESULT
attribute and empty string is returned.
result
- the result of executing an operation
|
JBoss AS7 Deployment Plugin 7.9.Final | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |