Package org.jboss.as.cli.operation
Interface OperationRequestBuilder
-
- All Known Implementing Classes:
DefaultOperationRequestBuilder
public interface OperationRequestBuilder- Author:
- Alexey Loubyansky
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddNode(String type, String name)The address is specified as a path to the target node.voidaddNodeName(String name)This method assumes there is a non-empty prefix which ends on a node type.voidaddNodeType(String type)This method is supposed to be invoked from applying the prefix with ends on a node type.voidaddProperty(String name, String value)Adds an argument.org.jboss.dmr.ModelNodebuildRequest()Builds the operation request based on the collected operation name, address and arguments.voidsetOperationName(String name)Sets the name operation to be invoked.
-
-
-
Method Detail
-
setOperationName
void setOperationName(String name)
Sets the name operation to be invoked.- Parameters:
name- the name of the operation to invoke.
-
addNode
void addNode(String type, String name)
The address is specified as a path to the target node. Each element of the path is a node and is identified by its type and name.- Parameters:
type- the type of the nodename- the name of the node
-
addNodeType
void addNodeType(String type)
This method is supposed to be invoked from applying the prefix with ends on a node type.- Parameters:
type- the type of the node.
-
addNodeName
void addNodeName(String name)
This method assumes there is a non-empty prefix which ends on a node type. Otherwise, this method will result in an exception.- Parameters:
name- the name of the node for the type specified by the prefix.
-
addProperty
void addProperty(String name, String value)
Adds an argument.- Parameters:
name- the name of the argumentvalue- the value of the argument
-
buildRequest
org.jboss.dmr.ModelNode buildRequest() throws OperationFormatExceptionBuilds the operation request based on the collected operation name, address and arguments.- Returns:
- an instance of ModelNode representing the operation request
- Throws:
OperationFormatException
-
-