public abstract class AbstractModelControllerClient extends Object implements ModelControllerClient, ManagementRequestHandlerFactory
ModelControllerClient.Factory
ManagementRequestHandlerFactory.RequestHandlerChain
Constructor and Description |
---|
AbstractModelControllerClient() |
Modifier and Type | Method and Description |
---|---|
org.jboss.dmr.ModelNode |
execute(org.jboss.dmr.ModelNode operation)
Execute an operation synchronously.
|
org.jboss.dmr.ModelNode |
execute(org.jboss.dmr.ModelNode operation,
OperationMessageHandler messageHandler)
Execute an operation synchronously, optionally receiving progress reports.
|
org.jboss.dmr.ModelNode |
execute(Operation operation)
Execute an operation synchronously.
|
org.jboss.dmr.ModelNode |
execute(Operation operation,
OperationMessageHandler messageHandler)
Execute an operation synchronously, optionally receiving progress reports.
|
org.jboss.threads.AsyncFuture<org.jboss.dmr.ModelNode> |
executeAsync(org.jboss.dmr.ModelNode operation,
OperationMessageHandler messageHandler)
Execute an operation in another thread, optionally receiving progress reports.
|
org.jboss.threads.AsyncFuture<org.jboss.dmr.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(ManagementRequest<OperationResponse,org.jboss.as.controller.client.impl.AbstractModelControllerClient.OperationExecutionContext> request,
org.jboss.as.controller.client.impl.AbstractModelControllerClient.OperationExecutionContext attachment) |
protected abstract ManagementChannelAssociation |
getChannelAssociation()
Get the mgmt channel association.
|
ManagementRequestHandler<?,?> |
resolveHandler(ManagementRequestHandlerFactory.RequestHandlerChain handlers,
ManagementRequestHeader header)
Try to resolve the request handler for the give header.
|
protected abstract ManagementChannelAssociation getChannelAssociation() throws IOException
IOException
public org.jboss.dmr.ModelNode execute(org.jboss.dmr.ModelNode operation) throws IOException
ModelControllerClient
execute
in interface ModelControllerClient
operation
- the operation to executeIOException
- if an I/O error occurs while executing the operationpublic org.jboss.dmr.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 org.jboss.dmr.ModelNode execute(org.jboss.dmr.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 org.jboss.dmr.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<org.jboss.dmr.ModelNode> executeAsync(org.jboss.dmr.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<org.jboss.dmr.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 ManagementRequestHandler<?,?> resolveHandler(ManagementRequestHandlerFactory.RequestHandlerChain handlers, ManagementRequestHeader header)
ManagementRequestHandlerFactory
resolveHandler
in interface ManagementRequestHandlerFactory
handlers
- the handlers chainheader
- the request headerprotected org.jboss.threads.AsyncFuture<OperationResponse> executeRequest(ManagementRequest<OperationResponse,org.jboss.as.controller.client.impl.AbstractModelControllerClient.OperationExecutionContext> request, org.jboss.as.controller.client.impl.AbstractModelControllerClient.OperationExecutionContext attachment) throws IOException
IOException
Copyright © 2023 JBoss by Red Hat. All rights reserved.