public class DelegatingModelControllerClient extends Object implements ModelControllerClient
ModelControllerClient
calls.Modifier and Type | Class and Description |
---|---|
static interface |
DelegatingModelControllerClient.DelegateProvider
Provides a delegate for use by the
DelegatingModelControllerClient |
ModelControllerClient.Factory
Constructor and Description |
---|
DelegatingModelControllerClient(DelegatingModelControllerClient.DelegateProvider provider) |
DelegatingModelControllerClient(ModelControllerClient delegate) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
executeAsync, executeAsync
public DelegatingModelControllerClient(ModelControllerClient delegate)
public DelegatingModelControllerClient(DelegatingModelControllerClient.DelegateProvider provider)
public ModelNode execute(ModelNode operation) throws IOException
ModelControllerClient
execute
in interface ModelControllerClient
operation
- the operation to executeIOException
- if an I/O error occurs while executing the operationpublic ModelNode execute(Operation operation) throws IOException
ModelControllerClient
OperationAttachments.isAutoCloseStreams()
.execute
in interface ModelControllerClient
operation
- the operation to executeIOException
- if an I/O error occurs while executing the operationpublic ModelNode execute(ModelNode operation, OperationMessageHandler messageHandler) throws IOException
ModelControllerClient
execute
in interface ModelControllerClient
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 operationpublic ModelNode execute(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()
.
execute
in interface ModelControllerClient
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 operationpublic 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 ModelControllerClient
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 operationpublic org.jboss.threads.AsyncFuture<ModelNode> executeAsync(ModelNode operation, OperationMessageHandler messageHandler)
ModelControllerClient
executeAsync
in interface ModelControllerClient
operation
- the operation to executemessageHandler
- the message handler to use for operation progress reporting, or null
for nonepublic 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 ModelControllerClient
operation
- 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 ModelControllerClient
operation
- the operation to executemessageHandler
- the message handler to use for operation progress reporting, or null
for nonepublic void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
IOException
Copyright © 2021 JBoss by Red Hat. All rights reserved.