Package com.sun.corba.ee.impl.orb
Class ParserTable.TestAcceptor1
java.lang.Object
com.sun.corba.ee.impl.orb.ParserTable.TestAcceptor1
- All Implemented Interfaces:
Acceptor
- Enclosing class:
ParserTable
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddToIORTemplate(IORTemplate iorTemplate, Policies policies, String codebase) voidclose()Close theAcceptor.createOutputObject(ORB broker, MessageMediator messageMediator) booleanBlocks until a new Socket is available on the acceptor's port.getName()intgetPort()getType()booleanUsed to initialize anAcceptor.booleanUsed to determine if anAcceptorhas been initialized.booleanisLazy()voidprocessSocket(Socket socket) Handle a newly accepted Socket.voidsetConnectionCache(InboundConnectionCache connectionCache) voidsetUseSelectThreadForConnections(boolean x) voidsetUseWorkerThreadForConnections(boolean x) booleanUsed to determine if theAcceptorshould register with a Selector to handle accept events.booleanboolean
-
Constructor Details
-
TestAcceptor1
public TestAcceptor1()
-
-
Method Details
-
equals
-
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.- Specified by:
initializein interfaceAcceptor- Returns:
truewhen it performs initializatin actions (typically the first call.
-
initialized
public boolean initialized()Description copied from interface:AcceptorUsed to determine if anAcceptorhas been initialized.- Specified by:
initializedin interfaceAcceptor- Returns:
true. if theAcceptorhas been initialized.
-
getConnectionCacheType
- Specified by:
getConnectionCacheTypein interfaceAcceptor
-
setConnectionCache
- Specified by:
setConnectionCachein interfaceAcceptor
-
getConnectionCache
- Specified by:
getConnectionCachein interfaceAcceptor
-
shouldRegisterAcceptEvent
public boolean shouldRegisterAcceptEvent()Description copied from interface:AcceptorUsed to determine if theAcceptorshould register with a Selector to handle accept events. For example, this may be false in the case of Solaris Doors which do not actively listen.- Specified by:
shouldRegisterAcceptEventin interfaceAcceptor- Returns:
trueif theAcceptorshould be registered with a Selector.
-
setUseSelectThreadForConnections
public void setUseSelectThreadForConnections(boolean x) -
shouldUseSelectThreadForConnections
public boolean shouldUseSelectThreadForConnections() -
setUseWorkerThreadForConnections
public void setUseWorkerThreadForConnections(boolean x) -
shouldUseWorkerThreadForConnections
public boolean shouldUseWorkerThreadForConnections() -
getAcceptedSocket
Description copied from interface:AcceptorBlocks until a new Socket is available on the acceptor's port.- Specified by:
getAcceptedSocketin interfaceAcceptor- Returns:
- the new socket
-
processSocket
Description copied from interface:AcceptorHandle a newly accepted Socket.- Specified by:
processSocketin interfaceAcceptor- Parameters:
socket- socket to handle
-
close
public void close()Description copied from interface:AcceptorClose theAcceptor. -
getEventHandler
- Specified by:
getEventHandlerin interfaceAcceptor
-
createOutputObject
- Specified by:
createOutputObjectin interfaceAcceptor
-
getObjectAdapterId
-
getObjectAdapterManagerId
-
addToIORTemplate
- Specified by:
addToIORTemplatein interfaceAcceptor
-
getMonitoringName
- Specified by:
getMonitoringNamein interfaceAcceptor
-
getServerSocket
- Specified by:
getServerSocketin interfaceAcceptor
-
getPort
public int getPort() -
getName
-
getInterfaceName
- Specified by:
getInterfaceNamein interfaceAcceptor
-
getType
-
isLazy
public boolean isLazy()
-