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 null
null
public static Operation create(ModelNode operation, List<InputStream> attachments)
automatically closed
when operation execution is completed.operation
- the DMR operation. Cannot be null
attachments
- the stream attachments. Cannot be null
null
public static Operation create(ModelNode operation, List<InputStream> attachments, boolean autoCloseStreams)
auto-close streams
setting.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 completesnull
Copyright © 2021 JBoss by Red Hat. All rights reserved.