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
public class AcceptorAcceptOnlyImpl extends AcceptorImpl
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
Fields Modifier and Type Field Description private org.glassfish.pfl.basic.func.UnaryVoidFunction<java.net.Socket>
operation
-
Fields 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
Constructors Constructor Description AcceptorAcceptOnlyImpl(ORB orb, int port, java.lang.String name, java.lang.String type, org.glassfish.pfl.basic.func.UnaryVoidFunction<java.net.Socket> operation)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
accept()
void
addToIORTemplate(IORTemplate iorTemplate, Policies policies, java.lang.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
-
-
-
-
Constructor Detail
-
AcceptorAcceptOnlyImpl
public AcceptorAcceptOnlyImpl(ORB orb, int port, java.lang.String name, java.lang.String type, org.glassfish.pfl.basic.func.UnaryVoidFunction<java.net.Socket> operation)
-
-
Method Detail
-
accept
public void accept()
- Overrides:
accept
in classAcceptorImpl
-
addToIORTemplate
public void addToIORTemplate(IORTemplate iorTemplate, Policies policies, java.lang.String codebase)
- Specified by:
addToIORTemplate
in interfaceAcceptor
- Overrides:
addToIORTemplate
in classAcceptorBase
-
-