public abstract class AbstractModelControllerClient extends Object implements ModelControllerClient, org.jboss.as.protocol.mgmt.ManagementRequestHandlerFactory
ModelControllerClient.Factory| Constructor and Description |
|---|
AbstractModelControllerClient() |
| 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.
|
protected org.jboss.threads.AsyncFuture<OperationResponse> |
executeRequest(org.jboss.as.protocol.mgmt.ManagementRequest<OperationResponse,org.jboss.as.controller.client.impl.AbstractModelControllerClient.OperationExecutionContext> request,
org.jboss.as.controller.client.impl.AbstractModelControllerClient.OperationExecutionContext attachment) |
protected abstract org.jboss.as.protocol.mgmt.ManagementChannelAssociation |
getChannelAssociation()
Get the mgmt channel association.
|
org.jboss.as.protocol.mgmt.ManagementRequestHandler<?,?> |
resolveHandler(org.jboss.as.protocol.mgmt.ManagementRequestHandlerFactory.RequestHandlerChain handlers,
org.jboss.as.protocol.mgmt.ManagementRequestHeader header) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitexecuteAsync, executeAsyncprotected abstract org.jboss.as.protocol.mgmt.ManagementChannelAssociation getChannelAssociation()
throws IOException
IOExceptionpublic ModelNode execute(ModelNode operation) throws IOException
ModelControllerClientexecute in interface ModelControllerClientoperation - the operation to executeIOException - if an I/O error occurs while executing the operationpublic ModelNode execute(Operation operation) throws IOException
ModelControllerClientOperationAttachments.isAutoCloseStreams().execute in interface ModelControllerClientoperation - the operation to executeIOException - if an I/O error occurs while executing the operationpublic ModelNode execute(ModelNode operation, OperationMessageHandler messageHandler) throws IOException
ModelControllerClientexecute 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 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 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 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(ModelNode operation, OperationMessageHandler messageHandler)
ModelControllerClientexecuteAsync in interface ModelControllerClientoperation - 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 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 org.jboss.as.protocol.mgmt.ManagementRequestHandler<?,?> resolveHandler(org.jboss.as.protocol.mgmt.ManagementRequestHandlerFactory.RequestHandlerChain handlers,
org.jboss.as.protocol.mgmt.ManagementRequestHeader header)
resolveHandler in interface org.jboss.as.protocol.mgmt.ManagementRequestHandlerFactoryprotected org.jboss.threads.AsyncFuture<OperationResponse> executeRequest(org.jboss.as.protocol.mgmt.ManagementRequest<OperationResponse,org.jboss.as.controller.client.impl.AbstractModelControllerClient.OperationExecutionContext> request, org.jboss.as.controller.client.impl.AbstractModelControllerClient.OperationExecutionContext attachment) throws IOException
IOExceptionCopyright © 2018 JBoss by Red Hat. All rights reserved.