| Constructor and Description |
|---|
Factory() |
| Modifier and Type | Method and Description |
|---|---|
static Operation |
create(ModelNode operation)
Create a simple operation with no stream attachments.
|
static Operation |
create(ModelNode operation,
List<InputStream> attachments)
Create a simple operation with stream attachments.
|
static Operation |
create(ModelNode operation,
List<InputStream> attachments,
boolean autoCloseStreams)
Create an operation using the given streams and be
auto-close streams
setting. |
public static Operation create(ModelNode operation)
operation - the DMR operation. Cannot be nullnullpublic static Operation create(ModelNode operation, List<InputStream> attachments)
automatically closed
when operation execution is completed.operation - the DMR operation. Cannot be nullattachments - the stream attachments. Cannot be nullnullpublic static Operation create(ModelNode operation, List<InputStream> attachments, boolean autoCloseStreams)
auto-close streams
setting.operation - the DMR operation. Cannot be nullattachments - the stream attachments. Cannot be nullautoCloseStreams - true if the attached streams should be automatically closed when
operation execution completesnullCopyright © 2018 JBoss by Red Hat. All rights reserved.