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
public abstract class ManagementClientChannelStrategy extends Object implements Closeable
Strategy management clients can use for controlling the lifecycle of the channel.- Author:
- Kabir Khan, Emanuel Muckenhuber
-
-
Constructor Summary
Constructors Constructor Description ManagementClientChannelStrategy()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static ManagementClientChannelStrategycreate(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-strategystatic ManagementClientChannelStrategycreate(ProtocolConnectionConfiguration configuration, org.jboss.remoting3.Channel.Receiver receiver, org.jboss.remoting3.CloseHandler<org.jboss.remoting3.Channel> closeHandler)Create a new establishing management client channel-strategystatic ManagementClientChannelStrategycreate(org.jboss.remoting3.Channel channel)Create a new client channel strategy.abstract org.jboss.remoting3.ChannelgetChannel()Get the channel.
-
-
-
Method Detail
-
getChannel
public abstract org.jboss.remoting3.Channel getChannel() throws IOExceptionGet the channel.- Returns:
- the channel
- Throws:
IOException- if an IO problem occurs getting the channel
-
create
public static ManagementClientChannelStrategy create(org.jboss.remoting3.Channel channel)
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
-
-