Class ExistingChannelModelControllerClient
- java.lang.Object
-
- org.jboss.as.controller.client.impl.AbstractModelControllerClient
-
- org.jboss.as.controller.client.impl.ExistingChannelModelControllerClient
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
,ModelControllerClient
,org.jboss.as.protocol.mgmt.ManagementRequestHandlerFactory
public class ExistingChannelModelControllerClient extends AbstractModelControllerClient
- Version:
- $Revision: 1.1 $
- Author:
- Kabir Khan
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.jboss.as.protocol.mgmt.ManagementRequestHandlerFactory
org.jboss.as.protocol.mgmt.ManagementRequestHandlerFactory.RequestHandlerChain
-
Nested classes/interfaces inherited from interface org.jboss.as.controller.client.ModelControllerClient
ModelControllerClient.Factory
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
ExistingChannelModelControllerClient(org.jboss.as.protocol.mgmt.ManagementChannelHandler handler)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
static ModelControllerClient
createAndAdd(org.jboss.as.protocol.mgmt.ManagementChannelHandler handler)
Create and add model controller handler to an existing management channel handler.static ModelControllerClient
createReceiving(Channel channel, ExecutorService executorService)
Create a model controller client which is exclusively receiving messages on an existing channel.protected org.jboss.as.protocol.mgmt.ManagementChannelAssociation
getChannelAssociation()
Get the mgmt channel association.-
Methods inherited from class org.jboss.as.controller.client.impl.AbstractModelControllerClient
execute, execute, execute, execute, executeAsync, executeAsync, executeOperation, executeOperationAsync, executeRequest, resolveHandler
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.jboss.as.controller.client.ModelControllerClient
executeAsync, executeAsync
-
-
-
-
Method Detail
-
getChannelAssociation
protected org.jboss.as.protocol.mgmt.ManagementChannelAssociation getChannelAssociation() throws IOException
Description copied from class:AbstractModelControllerClient
Get the mgmt channel association.- Specified by:
getChannelAssociation
in classAbstractModelControllerClient
- Returns:
- the channel association
- Throws:
IOException
-
close
public void close() throws IOException
- Throws:
IOException
-
createAndAdd
public static ModelControllerClient createAndAdd(org.jboss.as.protocol.mgmt.ManagementChannelHandler handler)
Create and add model controller handler to an existing management channel handler.- Parameters:
handler
- the channel handler- Returns:
- the created client
-
createReceiving
public static ModelControllerClient createReceiving(Channel channel, ExecutorService executorService)
Create a model controller client which is exclusively receiving messages on an existing channel.- Parameters:
channel
- the channelexecutorService
- an executor- Returns:
- the created client
-
-