Interface ManagementChannelAssociation

All Known Implementing Classes:
ManagementChannelHandler

public interface ManagementChannelAssociation
Associates a remoting Channel to a management client.
Author:
Emanuel Muckenhuber
  • Method Details

    • executeRequest

      <T, A> ActiveOperation<T,A> executeRequest(ManagementRequest<T,A> request, A attachment) throws IOException
      Execute a management request.
      Type Parameters:
      T - the result type
      A - the attachment type
      Parameters:
      request - the request
      attachment - the attachment
      Returns:
      the created active operation
      Throws:
      IOException - if a problem occurs executing the request
    • executeRequest

      <T, A> ActiveOperation<T,A> executeRequest(ManagementRequest<T,A> request, A attachment, ActiveOperation.CompletedCallback<T> callback) throws IOException
      Execute a management request.
      Type Parameters:
      T - the result type
      A - the attachment type
      Parameters:
      request - the request
      attachment - the attachment
      callback - the completion listener
      Returns:
      the created active operation
      Throws:
      IOException - if a problem occurs executing the request
    • executeRequest

      <T, A> org.jboss.threads.AsyncFuture<T> executeRequest(Integer operationId, ManagementRequest<T,A> request) throws IOException
      Execute a request based on an existing active operation.
      Type Parameters:
      T - the request type
      A - the attachment type
      Parameters:
      operationId - the operation-id of the existing active operation
      request - the request
      Returns:
      the future result
      Throws:
      IOException - if a problem occurs executing the request
    • executeRequest

      <T, A> org.jboss.threads.AsyncFuture<T> executeRequest(ActiveOperation<T,A> operation, ManagementRequest<T,A> request) throws IOException
      Execute a request based on an existing active operation.
      Type Parameters:
      T - the result type
      A - the attachment type
      Parameters:
      operation - the active operation
      request - the request
      Returns:
      the future result
      Throws:
      IOException - if a problem occurs executing the request
    • initializeOperation

      <T, A> ActiveOperation<T,A> initializeOperation(A attachment, ActiveOperation.CompletedCallback<T> callback)
      Initialize a new ActiveOperation, for subsequent use with executeRequest(ActiveOperation, ManagementRequest).
      Type Parameters:
      T - the result type
      A - the attachment type
      Parameters:
      attachment - the attachment
      callback - the completion listener
      Returns:
      the created active operation
    • getChannel

      org.jboss.remoting3.Channel getChannel() throws IOException
      Get the underlying remoting channel associated with this context.
      Returns:
      the channel
      Throws:
      IOException - if a problem occurs obtaining the channel
    • getAttachments

      org.jboss.remoting3.Attachments getAttachments()
      Get the attachments object that can be used to share state between users of this object.
      Returns:
      the attachments