Class Operations.CompositeOperationBuilder
java.lang.Object
org.jboss.as.controller.client.OperationBuilder
org.jboss.as.controller.client.helpers.Operations.CompositeOperationBuilder
- Enclosing class:
- Operations
A builder for building composite operations.
- Author:
- James R. Perkins
-
Method Summary
Modifier and TypeMethodDescriptionaddFileAsAttachment(File file) Associate a file with the operation.Associate an input stream with the operation.Adds a new operation to the composite operation.create()Creates a new builder.create(boolean autoCloseStreams) Creates a new builder.Methods inherited from class org.jboss.as.controller.client.OperationBuilder
addFileAsAttachment, build, create, create, getInputStreamCount, setAutoCloseStreams
-
Method Details
-
create
Creates a new builder.- Returns:
- a new builder
-
create
Creates a new builder.- Parameters:
autoCloseStreams- whether streams should be automatically closed- Returns:
- a new builder
-
addStep
Adds a new operation to the composite operation. Note that subsequent calls after abuildinvocation will result the operation being appended to and could result in unexpected behaviour.- Parameters:
op- the operation to add- Returns:
- the current builder
-
addFileAsAttachment
Description copied from class:OperationBuilderAssociate a file with the operation. This will create aFileInputStreamand add it as attachment.- Overrides:
addFileAsAttachmentin classOperationBuilder- Parameters:
file- the file- Returns:
- the operation builder
-
addInputStream
Description copied from class:OperationBuilderAssociate an input stream with the operation. Closing the input stream is the responsibility of the caller.- Overrides:
addInputStreamin classOperationBuilder- Parameters:
in- the input stream. Cannot benull- Returns:
- a builder than can be used to continue building the operation
-