Class AcceptorImpl

All Implemented Interfaces:
LegacyServerSocketEndPointInfo, Work, Acceptor, EventHandler, SocketInfo
Direct Known Subclasses:
AcceptorAcceptOnlyImpl, SocketFactoryAcceptorImpl

public class AcceptorImpl extends AcceptorBase
Author:
Harold Carr
  • Field Details

  • Constructor Details

    • AcceptorImpl

      public AcceptorImpl(ORB orb, int port, String name, String type)
  • Method Details

    • initialize

      public boolean initialize()
      Description copied from interface: Acceptor
      Used to initialize an Acceptor. For example, initialization may mean to create a ServerSocketChannel. Note: this must be prepared to be be called multiple times.
      Returns:
      true when it performs initializatin actions (typically the first call.
    • internalInitialize

      protected void internalInitialize() throws Exception
      Throws:
      Exception
    • getAcceptedSocket

      public Socket getAcceptedSocket()
      Description copied from interface: Acceptor
      Blocks until a new Socket is available on the acceptor's port.
      Returns:
      the new socket
    • close

      public void close()
      Description copied from interface: Acceptor
      Close the Acceptor.
    • getChannel

      public SelectableChannel getChannel()
    • accept

      protected void accept()
      /////////////////////////////////////////////////
    • doWork

      public void doWork()
      Description copied from interface: Work
      This method denotes the actual work that is done by the work item.
    • getServerSocket

      public ServerSocket getServerSocket()
      /////////////////////////////////////////////////