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.
  • Method Details

    • execute

      default ModelNode execute(ModelNode operation) throws IOException
      Execute 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 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 completed OperationAttachments.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 ModelNode execute(ModelNode operation, OperationMessageHandler messageHandler) throws IOException
      Execute an operation synchronously, optionally receiving progress reports.
      Parameters:
      operation - the operation to execute
      messageHandler - the message handler to use for operation progress reporting, or null for none
      Returns:
      the result of the operation
      Throws:
      IOException - if an I/O error occurs while executing the operation
    • execute

      default 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 execute
      messageHandler - the message handler to use for operation progress reporting, or null for 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 execute
      messageHandler - the message handler to use for operation progress reporting, or null for 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<ModelNode> executeAsync(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<ModelNode> executeAsync(ModelNode operation, OperationMessageHandler messageHandler)
      Execute an operation in another thread, optionally receiving progress reports.
      Parameters:
      operation - the operation to execute
      messageHandler - the message handler to use for operation progress reporting, or null for none
      Returns:
      the future result of the operation
    • executeAsync

      default org.jboss.threads.AsyncFuture<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<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 execute
      messageHandler - the message handler to use for operation progress reporting, or null for 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 execute
      messageHandler - the message handler to use for operation progress reporting, or null for none
      Returns:
      the future result of the operation