Package com.sun.corba.ee.impl.transport
Class AcceptorImpl
java.lang.Object
com.sun.corba.ee.impl.transport.EventHandlerBase
com.sun.corba.ee.impl.transport.AcceptorBase
com.sun.corba.ee.impl.transport.AcceptorImpl
- All Implemented Interfaces:
LegacyServerSocketEndPointInfo
,Work
,Acceptor
,EventHandler
,SocketInfo
- Direct Known Subclasses:
AcceptorAcceptOnlyImpl
,SocketFactoryAcceptorImpl
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Class
<?> protected ServerSocket
protected ServerSocketChannel
Fields inherited from class com.sun.corba.ee.impl.transport.AcceptorBase
connectionCache, enqueueTime, hostname, initialized, locatorPort, name, port, type, wrapper
Fields inherited from class com.sun.corba.ee.impl.transport.EventHandlerBase
orb, selectionKey, useSelectThreadToWait, useWorkerThreadForEvent, work
Fields inherited from interface com.sun.corba.ee.spi.legacy.connection.LegacyServerSocketEndPointInfo
BOOT_NAMING, DEFAULT_ENDPOINT, NO_NAME
Fields inherited from interface com.sun.corba.ee.spi.transport.SocketInfo
IIOP_CLEAR_TEXT, SSL_PREFIX
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
accept()
void
close()
Close theAcceptor
.private void
void
doWork()
This method denotes the actual work that is done by the work item.Blocks until a new Socket is available on the acceptor's port.boolean
Used to initialize anAcceptor
.protected void
private void
private void
private void
private void
private void
Methods inherited from class com.sun.corba.ee.impl.transport.AcceptorBase
addToIORTemplate, createOutputObject, getAcceptor, getConnection, getConnectionCache, getConnectionCacheType, getEnqueueTime, getEventHandler, getHost, getHostName, getInterestOps, getInterfaceName, getLocatorPort, getMonitoringName, getName, getPort, getType, initialized, isLazy, makeIIOPProfileTemplate, processSocket, setConnectionCache, setEnqueueTime, setLocatorPort, shouldRegisterAcceptEvent, toString, toStringName
Methods inherited from class com.sun.corba.ee.impl.transport.EventHandlerBase
getSelectionKey, getWork, handleEvent, setSelectionKey, setUseSelectThreadToWait, setUseWorkerThreadForEvent, setWork, shouldUseSelectThreadToWait, shouldUseWorkerThreadForEvent
-
Field Details
-
serverSocketChannel
-
serverSocket
-
lastExceptionClassSeen
-
-
Constructor Details
-
AcceptorImpl
-
-
Method Details
-
initialize
public boolean initialize()Description copied from interface:Acceptor
Used to initialize anAcceptor
. For example, initialization may mean to create aServerSocketChannel
. Note: this must be prepared to be be called multiple times.- Returns:
true
when it performs initializatin actions (typically the first call.
-
internalInitialize
- Throws:
Exception
-
usingServerSocket
-
usingServerSocketChannel
-
getAcceptedSocket
Description copied from interface:Acceptor
Blocks until a new Socket is available on the acceptor's port.- Returns:
- the new socket
-
closeException
-
close
public void close()Description copied from interface:Acceptor
Close theAcceptor
. -
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
-
selectionKeyNotAcceptable
@InfoMethod private void selectionKeyNotAcceptable() -
securityException
-
otherException
-