Package org.jboss.as.controller.client
Class Operation.Factory
java.lang.Object
org.jboss.as.controller.client.Operation.Factory
- Enclosing interface:
- Operation
Factory methods for creating
Operations-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic OperationCreate a simple operation with no stream attachments.static Operationcreate(ModelNode operation, List<InputStream> attachments) Create a simple operation with stream attachments.static Operationcreate(ModelNode operation, List<InputStream> attachments, boolean autoCloseStreams) Create an operation using the given streams and beauto-close streamssetting.
-
Constructor Details
-
Factory
public Factory()
-
-
Method Details
-
create
Create a simple operation with no stream attachments.- Parameters:
operation- the DMR operation. Cannot benull- Returns:
- the operation. Will not be
null
-
create
Create a simple operation with stream attachments. The streams will not beautomatically closedwhen operation execution is completed.- Parameters:
operation- the DMR operation. Cannot benullattachments- the stream attachments. Cannot benull- 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 beauto-close streamssetting.- Parameters:
operation- the DMR operation. Cannot benullattachments- the stream attachments. Cannot benullautoCloseStreams-trueif the attached streams should be automatically closed when operation execution completes- Returns:
- the operation. Will not be
null
-