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 AcceptorImpl
serverSocket, 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
ConstructorsConstructorDescriptionAcceptorAcceptOnlyImpl(ORB orb, int port, String name, String type, org.glassfish.pfl.basic.func.UnaryVoidFunction<Socket> operation) -
Method Summary
Modifier and TypeMethodDescriptionvoidaccept()/////////////////////////////////////////////////voidaddToIORTemplate(IORTemplate iorTemplate, Policies policies, String codebase) Methods inherited from class AcceptorImpl
close, doWork, getAcceptedSocket, getChannel, getServerSocket, initialize, internalInitializeMethods inherited from class 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, toStringNameMethods inherited from class EventHandlerBase
getSelectionKey, getWork, handleEvent, setSelectionKey, setUseSelectThreadToWait, setUseWorkerThreadForEvent, setWork, shouldUseSelectThreadToWait, shouldUseWorkerThreadForEvent
-
Field Details
-
operation
-
-
Constructor Details
-
AcceptorAcceptOnlyImpl
-
-
Method Details
-
accept
public void accept()Description copied from class:AcceptorImpl/////////////////////////////////////////////////- Overrides:
acceptin classAcceptorImpl
-
addToIORTemplate
- Specified by:
addToIORTemplatein interfaceAcceptor- Overrides:
addToIORTemplatein classAcceptorBase
-