Class Operation.Factory

java.lang.Object
org.jboss.as.controller.client.Operation.Factory
Enclosing interface:
Operation

public static class Operation.Factory extends Object
Factory methods for creating Operations
  • Constructor Details

    • Factory

      public Factory()
  • Method Details

    • create

      public static Operation create(ModelNode operation)
      Create a simple operation with no stream attachments.
      Parameters:
      operation - the DMR operation. Cannot be null
      Returns:
      the operation. Will not be null
    • create

      public static Operation create(ModelNode operation, List<InputStream> attachments)
      Create a simple operation with stream attachments. The streams will not be automatically closed when operation execution is completed.
      Parameters:
      operation - the DMR operation. Cannot be null
      attachments - the stream attachments. Cannot be null
      Returns:
      the operation. Will not be null
    • create

      public static Operation create(ModelNode operation, List<InputStream> attachments, boolean autoCloseStreams)
      Create an operation using the given streams and be auto-close streams setting.
      Parameters:
      operation - the DMR operation. Cannot be null
      attachments - the stream attachments. Cannot be null
      autoCloseStreams - true if the attached streams should be automatically closed when operation execution completes
      Returns:
      the operation. Will not be null