Package com.sun.corba.ee.impl.orb
Class ParserTable.TestAcceptor2
- java.lang.Object
-
- com.sun.corba.ee.impl.orb.ParserTable.TestAcceptor2
-
- All Implemented Interfaces:
Acceptor
- Enclosing class:
- ParserTable
public static final class ParserTable.TestAcceptor2 extends java.lang.Object implements Acceptor
-
-
Constructor Summary
Constructors Constructor Description TestAcceptor2()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddToIORTemplate(IORTemplate iorTemplate, Policies policies, java.lang.String codebase)voidclose()Close theAcceptor.CDROutputObjectcreateOutputObject(ORB broker, MessageMediator messageMediator)booleanequals(java.lang.Object other)java.net.SocketgetAcceptedSocket()Blocks until a new Socket is available on the acceptor's port.InboundConnectionCachegetConnectionCache()java.lang.StringgetConnectionCacheType()EventHandlergetEventHandler()java.lang.StringgetInterfaceName()java.lang.StringgetMonitoringName()java.lang.StringgetName()java.lang.StringgetObjectAdapterId()java.lang.StringgetObjectAdapterManagerId()intgetPort()java.net.ServerSocketgetServerSocket()java.lang.StringgetType()booleaninitialize()Used to initialize anAcceptor.booleaninitialized()Used to determine if anAcceptorhas been initialized.booleanisLazy()voidprocessSocket(java.net.Socket socket)Handle a newly accepted Socket.voidsetConnectionCache(InboundConnectionCache connectionCache)voidsetUseSelectThreadForConnections(boolean x)voidsetUseWorkerThreadForConnections(boolean x)booleanshouldRegisterAcceptEvent()Used to determine if theAcceptorshould register with a Selector to handle accept events.booleanshouldUseSelectThreadForConnections()booleanshouldUseWorkerThreadForConnections()
-
-
-
Method Detail
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equalsin classjava.lang.Object
-
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
public java.lang.String getConnectionCacheType()
- Specified by:
getConnectionCacheTypein interfaceAcceptor
-
setConnectionCache
public void setConnectionCache(InboundConnectionCache connectionCache)
- Specified by:
setConnectionCachein interfaceAcceptor
-
getConnectionCache
public InboundConnectionCache 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
public java.net.Socket 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
public void processSocket(java.net.Socket socket)
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
public EventHandler getEventHandler()
- Specified by:
getEventHandlerin interfaceAcceptor
-
createOutputObject
public CDROutputObject createOutputObject(ORB broker, MessageMediator messageMediator)
- Specified by:
createOutputObjectin interfaceAcceptor
-
getObjectAdapterId
public java.lang.String getObjectAdapterId()
-
getObjectAdapterManagerId
public java.lang.String getObjectAdapterManagerId()
-
addToIORTemplate
public void addToIORTemplate(IORTemplate iorTemplate, Policies policies, java.lang.String codebase)
- Specified by:
addToIORTemplatein interfaceAcceptor
-
getMonitoringName
public java.lang.String getMonitoringName()
- Specified by:
getMonitoringNamein interfaceAcceptor
-
getServerSocket
public java.net.ServerSocket getServerSocket()
- Specified by:
getServerSocketin interfaceAcceptor
-
getName
public java.lang.String getName()
-
getInterfaceName
public java.lang.String getInterfaceName()
- Specified by:
getInterfaceNamein interfaceAcceptor
-
-