Interface OperationRequestBuilder

    • 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 node
        name - 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 argument
        value - the value of the argument
      • buildRequest

        org.jboss.dmr.ModelNode buildRequest()
                                      throws OperationFormatException
        Builds the operation request based on the collected operation name, address and arguments.
        Returns:
        an instance of ModelNode representing the operation request
        Throws:
        OperationFormatException