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
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addToIORTemplate
(IORTemplate iorTemplate, Policies policies, String codebase) void
close()
Close theAcceptor
.createOutputObject
(ORB broker, MessageMediator messageMediator) boolean
Blocks until a new Socket is available on the acceptor's port.getName()
int
getPort()
getType()
boolean
Used to initialize anAcceptor
.boolean
Used to determine if anAcceptor
has been initialized.boolean
isLazy()
void
processSocket
(Socket socket) Handle a newly accepted Socket.void
setConnectionCache
(InboundConnectionCache connectionCache) void
setUseSelectThreadForConnections
(boolean x) void
setUseWorkerThreadForConnections
(boolean x) boolean
Used to determine if theAcceptor
should register with a Selector to handle accept events.boolean
boolean
-
Constructor Details
-
TestAcceptor2
public TestAcceptor2()
-
-
Method Details
-
equals
-
initialize
public boolean initialize()Description copied from interface:Acceptor
Used to initialize anAcceptor
. For example, initialization may mean to create aServerSocketChannel
. Note: this must be prepared to be be called multiple times.- Specified by:
initialize
in interfaceAcceptor
- Returns:
true
when it performs initializatin actions (typically the first call.
-
initialized
public boolean initialized()Description copied from interface:Acceptor
Used to determine if anAcceptor
has been initialized.- Specified by:
initialized
in interfaceAcceptor
- Returns:
true
. if theAcceptor
has been initialized.
-
getConnectionCacheType
- Specified by:
getConnectionCacheType
in interfaceAcceptor
-
setConnectionCache
- Specified by:
setConnectionCache
in interfaceAcceptor
-
getConnectionCache
- Specified by:
getConnectionCache
in interfaceAcceptor
-
shouldRegisterAcceptEvent
public boolean shouldRegisterAcceptEvent()Description copied from interface:Acceptor
Used to determine if theAcceptor
should 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:
shouldRegisterAcceptEvent
in interfaceAcceptor
- Returns:
true
if theAcceptor
should 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:Acceptor
Blocks until a new Socket is available on the acceptor's port.- Specified by:
getAcceptedSocket
in interfaceAcceptor
- Returns:
- the new socket
-
processSocket
Description copied from interface:Acceptor
Handle a newly accepted Socket.- Specified by:
processSocket
in interfaceAcceptor
- Parameters:
socket
- socket to handle
-
close
public void close()Description copied from interface:Acceptor
Close theAcceptor
. -
getEventHandler
- Specified by:
getEventHandler
in interfaceAcceptor
-
createOutputObject
- Specified by:
createOutputObject
in interfaceAcceptor
-
getObjectAdapterId
-
getObjectAdapterManagerId
-
addToIORTemplate
- Specified by:
addToIORTemplate
in interfaceAcceptor
-
getMonitoringName
- Specified by:
getMonitoringName
in interfaceAcceptor
-
getServerSocket
- Specified by:
getServerSocket
in interfaceAcceptor
-
getPort
public int getPort() -
getName
-
getInterfaceName
- Specified by:
getInterfaceName
in interfaceAcceptor
-
getType
-
isLazy
public boolean isLazy()
-