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 ServerSocketprotected ServerSocketChannelFields inherited from class com.sun.corba.ee.impl.transport.AcceptorBase
connectionCache, enqueueTime, hostname, initialized, locatorPort, name, port, type, wrapperFields inherited from class com.sun.corba.ee.impl.transport.EventHandlerBase
orb, selectionKey, useSelectThreadToWait, useWorkerThreadForEvent, workFields inherited from interface com.sun.corba.ee.spi.legacy.connection.LegacyServerSocketEndPointInfo
BOOT_NAMING, DEFAULT_ENDPOINT, NO_NAMEFields inherited from interface com.sun.corba.ee.spi.transport.SocketInfo
IIOP_CLEAR_TEXT, SSL_PREFIX -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaccept()voidclose()Close theAcceptor.private voidvoiddoWork()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.booleanUsed to initialize anAcceptor.protected voidprivate voidprivate voidprivate voidprivate voidprivate voidMethods 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, toStringNameMethods 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:AcceptorUsed to initialize anAcceptor. For example, initialization may mean to create aServerSocketChannel. Note: this must be prepared to be be called multiple times.- Returns:
truewhen it performs initializatin actions (typically the first call.
-
internalInitialize
- Throws:
Exception
-
usingServerSocket
-
usingServerSocketChannel
-
getAcceptedSocket
Description copied from interface:AcceptorBlocks until a new Socket is available on the acceptor's port.- Returns:
- the new socket
-
closeException
-
close
public void close()Description copied from interface:AcceptorClose theAcceptor. -
getChannel
-
accept
protected void accept() -
doWork
public void doWork()Description copied from interface:WorkThis method denotes the actual work that is done by the work item. -
getServerSocket
-
selectionKeyNotAcceptable
@InfoMethod private void selectionKeyNotAcceptable() -
securityException
-
otherException
-