Class AcceptorImpl

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

public class AcceptorImpl extends AcceptorBase
  • Field Details

    • serverSocketChannel

      protected ServerSocketChannel serverSocketChannel
    • serverSocket

      protected ServerSocket serverSocket
    • lastExceptionClassSeen

      private Class<?> lastExceptionClassSeen
  • 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
    • usingServerSocket

      @InfoMethod private void usingServerSocket(ServerSocket ss)
    • usingServerSocketChannel

      @InfoMethod private void usingServerSocketChannel(ServerSocketChannel ssc)
    • 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
    • closeException

      @InfoMethod private void closeException(IOException exc)
    • 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()
    • selectionKeyNotAcceptable

      @InfoMethod private void selectionKeyNotAcceptable()
    • securityException

      @InfoMethod private void securityException(SecurityException se)
    • otherException

      @InfoMethod private void otherException(Throwable t)