Class Operation.Factory

  • Enclosing interface:
    Operation

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

      • Factory

        public Factory()
    • Method Detail

      • create

        public static Operation create​(org.jboss.dmr.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​(org.jboss.dmr.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​(org.jboss.dmr.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