public interface ModelControllerClient extends Closeable
Modifier and Type | Interface and Description |
---|---|
static class |
ModelControllerClient.Factory
Factory methods for creating a
ModelControllerClient . |
Modifier and Type | Method and Description |
---|---|
default ModelNode |
execute(ModelNode operation)
Execute an operation synchronously.
|
default ModelNode |
execute(ModelNode operation,
OperationMessageHandler messageHandler)
Execute an operation synchronously, optionally receiving progress reports.
|
default ModelNode |
execute(Operation operation)
Execute an operation synchronously.
|
default ModelNode |
execute(Operation operation,
OperationMessageHandler messageHandler)
Execute an operation synchronously, optionally receiving progress reports.
|
default org.jboss.threads.AsyncFuture<ModelNode> |
executeAsync(ModelNode operation)
Execute an operation in another thread.
|
default org.jboss.threads.AsyncFuture<ModelNode> |
executeAsync(ModelNode operation,
OperationMessageHandler messageHandler)
Execute an operation in another thread, optionally receiving progress reports.
|
default org.jboss.threads.AsyncFuture<ModelNode> |
executeAsync(Operation operation)
Execute an operation in another thread.
|
org.jboss.threads.AsyncFuture<ModelNode> |
executeAsync(Operation operation,
OperationMessageHandler messageHandler)
Execute an operation in another thread, optionally receiving progress reports.
|
OperationResponse |
executeOperation(Operation operation,
OperationMessageHandler messageHandler)
Execute an operation synchronously, optionally receiving progress reports, with the response
to the operation making available any input streams that the server may associate with the response.
|
org.jboss.threads.AsyncFuture<OperationResponse> |
executeOperationAsync(Operation operation,
OperationMessageHandler messageHandler)
Execute an operation in another thread, optionally receiving progress reports, with the response
to the operation making available any input streams that the server may associate with the response.
|
default ModelNode execute(ModelNode operation) throws IOException
operation
- the operation to executeIOException
- if an I/O error occurs while executing the operationdefault ModelNode execute(Operation operation) throws IOException
OperationAttachments.isAutoCloseStreams()
.operation
- the operation to executeIOException
- if an I/O error occurs while executing the operationdefault ModelNode execute(ModelNode operation, OperationMessageHandler messageHandler) throws IOException
operation
- the operation to executemessageHandler
- the message handler to use for operation progress reporting, or null
for noneIOException
- if an I/O error occurs while executing the operationdefault ModelNode execute(Operation operation, OperationMessageHandler messageHandler) throws IOException
Note that associated input-streams have to be closed by the caller, after the
operation completed OperationAttachments.isAutoCloseStreams()
.
operation
- the operation to executemessageHandler
- the message handler to use for operation progress reporting, or null
for noneIOException
- if an I/O error occurs while executing the operationOperationResponse executeOperation(Operation operation, OperationMessageHandler messageHandler) throws IOException
Note that associated input-streams have to be closed by the caller, after the
operation completed OperationAttachments.isAutoCloseStreams()
.
operation
- the operation to executemessageHandler
- the message handler to use for operation progress reporting, or null
for noneIOException
- if an I/O error occurs while executing the operationdefault org.jboss.threads.AsyncFuture<ModelNode> executeAsync(ModelNode operation)
operation
- the operation to executedefault org.jboss.threads.AsyncFuture<ModelNode> executeAsync(ModelNode operation, OperationMessageHandler messageHandler)
operation
- the operation to executemessageHandler
- the message handler to use for operation progress reporting, or null
for nonedefault org.jboss.threads.AsyncFuture<ModelNode> executeAsync(Operation operation)
Note that associated input-streams have to be closed by the caller, after the
operation completed OperationAttachments.isAutoCloseStreams()
.
operation
- the operation to executeorg.jboss.threads.AsyncFuture<ModelNode> executeAsync(Operation operation, OperationMessageHandler messageHandler)
Note that associated input-streams have to be closed by the caller, after the
operation completed OperationAttachments.isAutoCloseStreams()
.
operation
- the operation to executemessageHandler
- the message handler to use for operation progress reporting, or null
for noneorg.jboss.threads.AsyncFuture<OperationResponse> executeOperationAsync(Operation operation, OperationMessageHandler messageHandler)
Note that associated input-streams have to be closed by the caller, after the
operation completed OperationAttachments.isAutoCloseStreams()
.
operation
- the operation to executemessageHandler
- the message handler to use for operation progress reporting, or null
for noneCopyright © 2021 JBoss by Red Hat. All rights reserved.