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 Details

    • ManagementClientChannelStrategy

      public ManagementClientChannelStrategy()
  • Method Details

    • getChannel

      public abstract org.jboss.remoting3.Channel getChannel() throws IOException
      Get 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 configuration
      handler - the ManagementMessageHandler
      cbHandler - a callback handler
      saslOptions - the sasl options
      sslContext - the ssl context
      closeHandler - 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 configuration
      receiver - the channel receiver
      closeHandler - the close handler
      Returns:
      the management client channel strategy