Package org.jboss.as.protocol.mgmt
Interface ManagementChannelAssociation
- All Known Implementing Classes:
ManagementChannelHandler
public interface ManagementChannelAssociation
Associates a remoting
Channel to a management client.- Author:
- Emanuel Muckenhuber
-
Method Summary
Modifier and TypeMethodDescription<T,A> org.jboss.threads.AsyncFuture<T> executeRequest(Integer operationId, ManagementRequest<T, A> request) Execute a request based on an existing active operation.<T,A> org.jboss.threads.AsyncFuture<T> executeRequest(ActiveOperation<T, A> operation, ManagementRequest<T, A> request) Execute a request based on an existing active operation.<T,A> ActiveOperation<T, A> executeRequest(ManagementRequest<T, A> request, A attachment) Execute a management request.<T,A> ActiveOperation<T, A> executeRequest(ManagementRequest<T, A> request, A attachment, ActiveOperation.CompletedCallback<T> callback) Execute a management request.org.jboss.remoting3.AttachmentsGet the attachments object that can be used to share state between users of this object.org.jboss.remoting3.ChannelGet the underlying remoting channel associated with this context.<T,A> ActiveOperation<T, A> initializeOperation(A attachment, ActiveOperation.CompletedCallback<T> callback) Initialize a newActiveOperation, for subsequent use withexecuteRequest(ActiveOperation, ManagementRequest).
-
Method Details
-
executeRequest
<T,A> ActiveOperation<T,A> executeRequest(ManagementRequest<T, A> request, A attachment) throws IOExceptionExecute a management request.- Type Parameters:
T- the result typeA- the attachment type- Parameters:
request- the requestattachment- 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 IOExceptionExecute a management request.- Type Parameters:
T- the result typeA- the attachment type- Parameters:
request- the requestattachment- the attachmentcallback- 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 IOExceptionExecute a request based on an existing active operation.- Type Parameters:
T- the request typeA- the attachment type- Parameters:
operationId- the operation-id of the existing active operationrequest- 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, throws IOExceptionA> request) Execute a request based on an existing active operation.- Type Parameters:
T- the result typeA- the attachment type- Parameters:
operation- the active operationrequest- 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 newActiveOperation, for subsequent use withexecuteRequest(ActiveOperation, ManagementRequest).- Type Parameters:
T- the result typeA- the attachment type- Parameters:
attachment- the attachmentcallback- the completion listener- Returns:
- the created active operation
-
getChannel
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
-