Package org.jboss.as.protocol.mgmt
Class ManagementClientChannelStrategy
java.lang.Object
org.jboss.as.protocol.mgmt.ManagementClientChannelStrategy
- All Implemented Interfaces:
Closeable,AutoCloseable
- Direct Known Subclasses:
FutureManagementChannel
Strategy management clients can use for controlling the lifecycle of the channel.
- Author:
- Kabir Khan, Emanuel Muckenhuber
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreate(ProtocolConnectionConfiguration baseConfig, ManagementMessageHandler handler, CallbackHandler cbHandler, Map<String, String> saslOptions, SSLContext sslContext, org.jboss.remoting3.CloseHandler<org.jboss.remoting3.Channel> closeHandler) Create a new establishing management client channel-strategycreate(ProtocolConnectionConfiguration configuration, org.jboss.remoting3.Channel.Receiver receiver, org.jboss.remoting3.CloseHandler<org.jboss.remoting3.Channel> closeHandler) Create a new establishing management client channel-strategycreate(org.jboss.remoting3.Channel channel) Create a new client channel strategy.abstract org.jboss.remoting3.ChannelGet the channel.
-
Constructor Details
-
ManagementClientChannelStrategy
public ManagementClientChannelStrategy()
-
-
Method Details
-
getChannel
Get the channel.- Returns:
- the channel
- Throws:
IOException- if an IO problem occurs getting the channel
-
create
Create a new client channel strategy.- Parameters:
channel- the existing channel- Returns:
- the management client channel strategy
-
create
public static ManagementClientChannelStrategy create(ProtocolConnectionConfiguration baseConfig, ManagementMessageHandler handler, CallbackHandler cbHandler, Map<String, String> saslOptions, SSLContext sslContext, org.jboss.remoting3.CloseHandler<org.jboss.remoting3.Channel> closeHandler) Create a new establishing management client channel-strategy- Parameters:
baseConfig- the base connection configurationhandler- theManagementMessageHandlercbHandler- a callback handlersaslOptions- the sasl optionssslContext- the ssl contextcloseHandler- a close handler- Returns:
- the management client channel strategy
-
create
public static ManagementClientChannelStrategy create(ProtocolConnectionConfiguration configuration, org.jboss.remoting3.Channel.Receiver receiver, org.jboss.remoting3.CloseHandler<org.jboss.remoting3.Channel> closeHandler) Create a new establishing management client channel-strategy- Parameters:
configuration- the connection configurationreceiver- the channel receivercloseHandler- the close handler- Returns:
- the management client channel strategy
-