Package org.jboss.as.protocol.mgmt
Interface ManagementChannelAssociation
-
- All Known Implementing Classes:
ManagementChannelHandler
public interface ManagementChannelAssociationAssociates a remotingChannelto a management client.- Author:
- Emanuel Muckenhuber
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <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.AttachmentsgetAttachments()Get the attachments object that can be used to share state between users of this object.org.jboss.remoting3.ChannelgetChannel()Get 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 Detail
-
executeRequest
<T,A> ActiveOperation<T,A> executeRequest(ManagementRequest<T,A> request, A attachment) throws IOException
Execute 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
-
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 typeA- the attachment type- Parameters:
request- the requestattachment- the attachmentcallback- the completion listener- Returns:
- the created active operation
- Throws:
IOException
-
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 typeA- the attachment type- Parameters:
operationId- the operation-id of the existing active operationrequest- the request- Returns:
- the future result
- Throws:
IOException
-
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 typeA- the attachment type- Parameters:
operation- the active operationrequest- the request- Returns:
- the future result
- Throws:
IOException
-
initializeOperation
<T,A> ActiveOperation<T,A> initializeOperation(A attachment, ActiveOperation.CompletedCallback<T> callback) throws IOException
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
- Throws:
IOException
-
getChannel
org.jboss.remoting3.Channel getChannel() throws IOExceptionGet the underlying remoting channel associated with this context.- Returns:
- the channel
- Throws:
IOException
-
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
-
-