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
public static final class ParserTable.TestAcceptor1 extends java.lang.Object implements Acceptor
-
-
Constructor Summary
Constructors Constructor Description TestAcceptor1()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addToIORTemplate(IORTemplate iorTemplate, Policies policies, java.lang.String codebase)
void
close()
Close theAcceptor
.CDROutputObject
createOutputObject(ORB broker, MessageMediator messageMediator)
boolean
equals(java.lang.Object other)
java.net.Socket
getAcceptedSocket()
Blocks until a new Socket is available on the acceptor's port.InboundConnectionCache
getConnectionCache()
java.lang.String
getConnectionCacheType()
EventHandler
getEventHandler()
java.lang.String
getInterfaceName()
java.lang.String
getMonitoringName()
java.lang.String
getName()
java.lang.String
getObjectAdapterId()
java.lang.String
getObjectAdapterManagerId()
int
getPort()
java.net.ServerSocket
getServerSocket()
java.lang.String
getType()
boolean
initialize()
Used to initialize anAcceptor
.boolean
initialized()
Used to determine if anAcceptor
has been initialized.boolean
isLazy()
void
processSocket(java.net.Socket socket)
Handle a newly accepted Socket.void
setConnectionCache(InboundConnectionCache connectionCache)
void
setUseSelectThreadForConnections(boolean x)
void
setUseWorkerThreadForConnections(boolean x)
boolean
shouldRegisterAcceptEvent()
Used to determine if theAcceptor
should register with a Selector to handle accept events.boolean
shouldUseSelectThreadForConnections()
boolean
shouldUseWorkerThreadForConnections()
-
-
-
Method Detail
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equals
in classjava.lang.Object
-
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
public java.lang.String getConnectionCacheType()
- Specified by:
getConnectionCacheType
in interfaceAcceptor
-
setConnectionCache
public void setConnectionCache(InboundConnectionCache connectionCache)
- Specified by:
setConnectionCache
in interfaceAcceptor
-
getConnectionCache
public InboundConnectionCache 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
public java.net.Socket 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
public void processSocket(java.net.Socket socket)
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
public EventHandler getEventHandler()
- Specified by:
getEventHandler
in interfaceAcceptor
-
createOutputObject
public CDROutputObject createOutputObject(ORB broker, MessageMediator messageMediator)
- Specified by:
createOutputObject
in 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:
addToIORTemplate
in interfaceAcceptor
-
getMonitoringName
public java.lang.String getMonitoringName()
- Specified by:
getMonitoringName
in interfaceAcceptor
-
getServerSocket
public java.net.ServerSocket getServerSocket()
- Specified by:
getServerSocket
in interfaceAcceptor
-
getName
public java.lang.String getName()
-
getInterfaceName
public java.lang.String getInterfaceName()
- Specified by:
getInterfaceName
in interfaceAcceptor
-
-