Package org.jboss.as.controller.client
Class Operation.Factory
- java.lang.Object
-
- org.jboss.as.controller.client.Operation.Factory
-
-
Constructor Summary
Constructors Constructor Description Factory()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Operationcreate(org.jboss.dmr.ModelNode operation)Create a simple operation with no stream attachments.static Operationcreate(org.jboss.dmr.ModelNode operation, List<InputStream> attachments)Create a simple operation with stream attachments.static Operationcreate(org.jboss.dmr.ModelNode operation, List<InputStream> attachments, boolean autoCloseStreams)Create an operation using the given streams and beauto-close streamssetting.
-
-
-
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 benull- 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 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(org.jboss.dmr.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
-
-