Package org.jboss.as.controller.client
Interface ModelControllerClient
-
- All Superinterfaces:
AutoCloseable,Closeable
- All Known Subinterfaces:
DomainClient
- All Known Implementing Classes:
AbstractModelControllerClient,ContextualModelControllerClient,DelegatingModelControllerClient,DomainClientImpl,ExistingChannelModelControllerClient,RemotingModelControllerClient
public interface ModelControllerClient extends Closeable
A client for an application server management model controller.- Author:
- David M. Lloyd, Kabir Khan, Brian Stansberry (c) 2011 Red Hat Inc.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classModelControllerClient.FactoryFactory methods for creating aModelControllerClient.
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default org.jboss.dmr.ModelNodeexecute(Operation operation)Execute an operation synchronously.default org.jboss.dmr.ModelNodeexecute(Operation operation, OperationMessageHandler messageHandler)Execute an operation synchronously, optionally receiving progress reports.default org.jboss.dmr.ModelNodeexecute(org.jboss.dmr.ModelNode operation)Execute an operation synchronously.default org.jboss.dmr.ModelNodeexecute(org.jboss.dmr.ModelNode operation, OperationMessageHandler messageHandler)Execute an operation synchronously, optionally receiving progress reports.default org.jboss.threads.AsyncFuture<org.jboss.dmr.ModelNode>executeAsync(Operation operation)Execute an operation in another thread.org.jboss.threads.AsyncFuture<org.jboss.dmr.ModelNode>executeAsync(Operation operation, OperationMessageHandler messageHandler)Execute an operation in another thread, optionally receiving progress reports.default org.jboss.threads.AsyncFuture<org.jboss.dmr.ModelNode>executeAsync(org.jboss.dmr.ModelNode operation)Execute an operation in another thread.default 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.OperationResponseexecuteOperation(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.
-
-
-
Method Detail
-
execute
default org.jboss.dmr.ModelNode execute(org.jboss.dmr.ModelNode operation) throws IOExceptionExecute an operation synchronously.- Parameters:
operation- the operation to execute- Returns:
- the result of the operation
- Throws:
IOException- if an I/O error occurs while executing the operation
-
execute
default org.jboss.dmr.ModelNode execute(Operation operation) throws IOException
Execute an operation synchronously. Note that associated input-streams have to be closed by the caller, after the operation completedOperationAttachments.isAutoCloseStreams().- Parameters:
operation- the operation to execute- Returns:
- the result of the operation
- Throws:
IOException- if an I/O error occurs while executing the operation
-
execute
default org.jboss.dmr.ModelNode execute(org.jboss.dmr.ModelNode operation, OperationMessageHandler messageHandler) throws IOExceptionExecute an operation synchronously, optionally receiving progress reports.- Parameters:
operation- the operation to executemessageHandler- the message handler to use for operation progress reporting, ornullfor none- Returns:
- the result of the operation
- Throws:
IOException- if an I/O error occurs while executing the operation
-
execute
default org.jboss.dmr.ModelNode execute(Operation operation, OperationMessageHandler messageHandler) throws IOException
Execute an operation synchronously, optionally receiving progress reports.Note that associated input-streams have to be closed by the caller, after the operation completed
OperationAttachments.isAutoCloseStreams().- Parameters:
operation- the operation to executemessageHandler- the message handler to use for operation progress reporting, ornullfor none- Returns:
- the result of the operation
- Throws:
IOException- if an I/O error occurs while executing the operation
-
executeOperation
OperationResponse executeOperation(Operation operation, OperationMessageHandler messageHandler) throws IOException
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.Note that associated input-streams have to be closed by the caller, after the operation completed
OperationAttachments.isAutoCloseStreams().- Parameters:
operation- the operation to executemessageHandler- the message handler to use for operation progress reporting, ornullfor none- Returns:
- the result of the operation
- Throws:
IOException- if an I/O error occurs while executing the operation
-
executeAsync
default org.jboss.threads.AsyncFuture<org.jboss.dmr.ModelNode> executeAsync(org.jboss.dmr.ModelNode operation)
Execute an operation in another thread.- Parameters:
operation- the operation to execute- Returns:
- the future result of the operation
-
executeAsync
default 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.- Parameters:
operation- the operation to executemessageHandler- the message handler to use for operation progress reporting, ornullfor none- Returns:
- the future result of the operation
-
executeAsync
default org.jboss.threads.AsyncFuture<org.jboss.dmr.ModelNode> executeAsync(Operation operation)
Execute an operation in another thread.Note that associated input-streams have to be closed by the caller, after the operation completed
OperationAttachments.isAutoCloseStreams().- Parameters:
operation- the operation to execute- Returns:
- the future result of the operation
-
executeAsync
org.jboss.threads.AsyncFuture<org.jboss.dmr.ModelNode> executeAsync(Operation operation, OperationMessageHandler messageHandler)
Execute an operation in another thread, optionally receiving progress reports.Note that associated input-streams have to be closed by the caller, after the operation completed
OperationAttachments.isAutoCloseStreams().- Parameters:
operation- the operation to executemessageHandler- the message handler to use for operation progress reporting, ornullfor none- Returns:
- the future result of the operation
-
executeOperationAsync
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.Note that associated input-streams have to be closed by the caller, after the operation completed
OperationAttachments.isAutoCloseStreams().- Parameters:
operation- the operation to executemessageHandler- the message handler to use for operation progress reporting, ornullfor none- Returns:
- the future result of the operation
-
-