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 |
---|---|
ModelNode |
execute(ModelNode operation)
Execute an operation synchronously.
|
ModelNode |
execute(ModelNode operation,
OperationMessageHandler messageHandler)
Execute an operation synchronously, optionally receiving progress reports.
|
ModelNode |
execute(Operation operation)
Execute an operation synchronously.
|
ModelNode |
execute(Operation operation,
OperationMessageHandler messageHandler)
Execute an operation synchronously, optionally receiving progress reports.
|
org.jboss.threads.AsyncFuture<ModelNode> |
executeAsync(ModelNode operation,
OperationMessageHandler messageHandler)
Execute an operation in another thread, optionally receiving progress reports.
|
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.
|
ModelNode execute(ModelNode operation) throws IOException
operation
- the operation to executeIOException
- if an I/O error occurs while executing the operationModelNode execute(Operation operation) throws IOException
OperationAttachments.isAutoCloseStreams()
.operation
- the operation to executeIOException
- if an I/O error occurs while executing the operationModelNode 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 operationModelNode 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 operationorg.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 noneorg.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 © 2018 JBoss by Red Hat. All rights reserved.