public final class ContextualModelControllerClient extends Object implements ModelControllerClient
ModelControllerClient.Factory| Constructor and Description |
|---|
ContextualModelControllerClient(ModelControllerClient delegate,
org.wildfly.common.context.Contextual<?> context)
Creates a client which uses the supplied context.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitexecute, execute, execute, execute, executeAsync, executeAsync, executeAsyncpublic ContextualModelControllerClient(ModelControllerClient delegate, org.wildfly.common.context.Contextual<?> context)
delegate - the delegate clientcontext - the context used to execute operationspublic OperationResponse executeOperation(Operation operation, OperationMessageHandler messageHandler) throws IOException
ModelControllerClient
Note that associated input-streams have to be closed by the caller, after the
operation completed OperationAttachments.isAutoCloseStreams().
executeOperation in interface ModelControllerClientoperation - 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 operationpublic org.jboss.threads.AsyncFuture<ModelNode> executeAsync(Operation operation, OperationMessageHandler messageHandler)
ModelControllerClient
Note that associated input-streams have to be closed by the caller, after the
operation completed OperationAttachments.isAutoCloseStreams().
executeAsync in interface ModelControllerClientoperation - the operation to executemessageHandler - the message handler to use for operation progress reporting, or null for nonepublic org.jboss.threads.AsyncFuture<OperationResponse> executeOperationAsync(Operation operation, OperationMessageHandler messageHandler)
ModelControllerClient
Note that associated input-streams have to be closed by the caller, after the
operation completed OperationAttachments.isAutoCloseStreams().
executeOperationAsync in interface ModelControllerClientoperation - the operation to executemessageHandler - the message handler to use for operation progress reporting, or null for nonepublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionCopyright © 2018 JBoss by Red Hat. All rights reserved.