Package com.sun.corba.ee.impl.transport
Class AcceptorAcceptOnlyImpl
java.lang.Object
com.sun.corba.ee.impl.transport.EventHandlerBase
com.sun.corba.ee.impl.transport.AcceptorBase
com.sun.corba.ee.impl.transport.AcceptorImpl
com.sun.corba.ee.impl.transport.AcceptorAcceptOnlyImpl
- All Implemented Interfaces:
LegacyServerSocketEndPointInfo
,Work
,Acceptor
,EventHandler
,SocketInfo
This version of an acceptor is the other half of CorbaAcceptorLazyImpl.
The idea is that AcceptOnly will NOT contribute to an IORTemplate, and will
actually accept from a ServerSocket (and so it must initialize the
server socket and close it). The LazyImpl will contribute to an IORTemplate,
and will not actually accept, but does the actual processing of sockets
from the server socket.
-
Field Summary
FieldsFields inherited from class com.sun.corba.ee.impl.transport.AcceptorImpl
serverSocket, 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
ConstructorsConstructorDescriptionAcceptorAcceptOnlyImpl
(ORB orb, int port, String name, String type, org.glassfish.pfl.basic.func.UnaryVoidFunction<Socket> operation) -
Method Summary
Modifier and TypeMethodDescriptionvoid
accept()
void
addToIORTemplate
(IORTemplate iorTemplate, Policies policies, String codebase) Methods inherited from class com.sun.corba.ee.impl.transport.AcceptorImpl
close, doWork, getAcceptedSocket, getChannel, getServerSocket, initialize, internalInitialize
Methods inherited from class com.sun.corba.ee.impl.transport.AcceptorBase
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
-
operation
-
-
Constructor Details
-
AcceptorAcceptOnlyImpl
-
-
Method Details
-
accept
public void accept()- Overrides:
accept
in classAcceptorImpl
-
addToIORTemplate
- Specified by:
addToIORTemplate
in interfaceAcceptor
- Overrides:
addToIORTemplate
in classAcceptorBase
-