Class AcceptorImpl

    • Field Detail

      • serverSocketChannel

        protected java.nio.channels.ServerSocketChannel serverSocketChannel
      • serverSocket

        protected java.net.ServerSocket serverSocket
      • lastExceptionClassSeen

        private java.lang.Class<?> lastExceptionClassSeen
    • Constructor Detail

      • AcceptorImpl

        public AcceptorImpl​(ORB orb,
                            int port,
                            java.lang.String name,
                            java.lang.String type)
    • Method Detail

      • 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 java.lang.Exception
        Throws:
        java.lang.Exception
      • usingServerSocket

        @InfoMethod
        private void usingServerSocket​(java.net.ServerSocket ss)
      • usingServerSocketChannel

        @InfoMethod
        private void usingServerSocketChannel​(java.nio.channels.ServerSocketChannel ssc)
      • getAcceptedSocket

        public java.net.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​(java.io.IOException exc)
      • close

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

        public java.nio.channels.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 java.net.ServerSocket getServerSocket()
      • selectionKeyNotAcceptable

        @InfoMethod
        private void selectionKeyNotAcceptable()
      • securityException

        @InfoMethod
        private void securityException​(java.lang.SecurityException se)
      • otherException

        @InfoMethod
        private void otherException​(java.lang.Throwable t)