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.
|
org.jboss.threads.AsyncFuture<ModelNode> |
executeAsync(Operation operation,
OperationMessageHandler messageHandler)
Execute an operation.
|
protected org.jboss.threads.AsyncFuture<ModelNode> |
executeRequest(org.jboss.as.protocol.mgmt.ManagementRequest<ModelNode,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) |
protected abstract org.jboss.as.protocol.mgmt.ManagementChannelAssociation getChannelAssociation() throws IOException
IOException
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
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 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
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.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.ManagementRequestHandlerFactory
protected org.jboss.threads.AsyncFuture<ModelNode> executeRequest(org.jboss.as.protocol.mgmt.ManagementRequest<ModelNode,org.jboss.as.controller.client.impl.AbstractModelControllerClient.OperationExecutionContext> request, org.jboss.as.controller.client.impl.AbstractModelControllerClient.OperationExecutionContext attachment) throws IOException
IOException
Copyright © 2014 JBoss by Red Hat. All Rights Reserved.