Class AbstractServerChannel

All Implemented Interfaces:
Closeable, AutoCloseable, Channel, AttributeRepository, AttributeStore, Channel, ChannelIdentifier, ChannelListenerManager, ChannelStreamWriterResolver, ChannelStreamWriterResolverManager, Closeable, PropertyResolver, SessionContextHolder, SessionHolder<Session>, ExecutorServiceCarrier, ServerChannel, ServerSessionHolder
Direct Known Subclasses:
ChannelAgentForwarding, ChannelSession, TcpipServerChannel

public abstract class AbstractServerChannel extends AbstractChannel implements ServerChannel
TODO Add javadoc
  • Field Details

  • Constructor Details

  • Method Details

    • open

      public OpenFuture open(long recipient, long rwSize, long packetSize, Buffer buffer)
      Description copied from interface: Channel
      For a server channel, this method will actually open the channel
      Specified by:
      open in interface Channel
      Parameters:
      recipient - Recipient identifier (UINT32 represented as a long)
      rwSize - Read/Write window size (uint32)
      packetSize - Preferred maximum packet size (uint32)
      buffer - Incoming Buffer that triggered the call. Note: the buffer's read position is exactly after the information that read to this call was decoded
      Returns:
      An OpenFuture for the channel open request
    • handleOpenSuccess

      public void handleOpenSuccess(long recipient, long rwSize, long packetSize, Buffer buffer) throws IOException
      Description copied from interface: Channel
      For a client channel, this method will be called internally by the session when the confirmation has been received.
      Specified by:
      handleOpenSuccess in interface Channel
      Parameters:
      recipient - Recipient identifier (UINT32 represented as a long)
      rwSize - Read/Write window size (uint32)
      packetSize - Preferred maximum packet size (uint32)
      buffer - Incoming Buffer that triggered the call. Note: the buffer's read position is exactly after the information that read to this call was decoded
      Throws:
      IOException - If failed to handle the success
    • handleOpenFailure

      public void handleOpenFailure(Buffer buffer)
      Description copied from interface: Channel
      For a client channel, this method will be called internally by the session when the server has rejected this channel opening.
      Specified by:
      handleOpenFailure in interface Channel
      Parameters:
      buffer - Incoming Buffer that triggered the call. Note: the buffer's read position is exactly after the information that read to this call was decoded
    • doInit

      protected OpenFuture doInit(Buffer buffer)
    • sendExitStatus

      protected void sendExitStatus(int v) throws IOException
      Throws:
      IOException