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 AcceptorBase
connectionCache, enqueueTime, hostname, initialized, locatorPort, name, port, type, wrapperFields inherited from class EventHandlerBase
orb, selectionKey, useSelectThreadToWait, useWorkerThreadForEvent, workFields inherited from interface LegacyServerSocketEndPointInfo
BOOT_NAMING, DEFAULT_ENDPOINT, NO_NAMEFields inherited from interface 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 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 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
-
usingServerSocket
-
usingServerSocketChannel
-
getAcceptedSocket
-
closeException
-
close
-
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
-