public static final class ParserTable.TestAcceptor2 extends Object implements Acceptor
| Constructor and Description |
|---|
TestAcceptor2() |
| Modifier and Type | Method and Description |
|---|---|
void |
accept()
Accept a connection request.
|
void |
close()
Close the
Acceptor. |
InputObject |
createInputObject(Broker broker,
MessageMediator messageMediator)
Used to get a
InputObject
for the specific encoding represented by this
Acceptor. |
MessageMediator |
createMessageMediator(Broker xbroker,
Connection xconnection)
Used to get a
MessageMediator
to hold internal data for a message received using the specific
encoding, protocol, transport combination represented by this
Acceptor. |
OutputObject |
createOutputObject(Broker broker,
MessageMediator messageMediator)
Used to get a
OutputObject
for the specific encoding represented by this
Acceptor. |
boolean |
equals(Object other) |
MessageMediator |
finishCreatingMessageMediator(Broker xbroker,
Connection xconnection,
MessageMediator messageMediator)
Used to finish creating a
MessageMediator
to with internal data for a message received using the specific
encoding, protocol, transport combination represented by this
Acceptor. |
InboundConnectionCache |
getConnectionCache()
Get the
InboundConnectionCache
used by this Acceptor
PEPt uses separate caches for each type of Acceptor
as given by Acceptor.getConnectionCacheType(). |
String |
getConnectionCacheType()
PEPt uses separate caches for each type of
Acceptor
as given by getConnectionCacheType. |
EventHandler |
getEventHandler()
Get the
EventHandler
associated with this Acceptor. |
int |
hashCode() |
boolean |
initialize()
Used to initialize an
Acceptor. |
boolean |
initialized()
Used to determine if an
Acceptor has been initialized. |
void |
setConnectionCache(InboundConnectionCache connectionCache)
Set the
InboundConnectionCache
to be used by this Acceptor. |
void |
setUseSelectThreadForConnections(boolean x) |
void |
setUseWorkerThreadForConnections(boolean x) |
boolean |
shouldRegisterAcceptEvent()
Used to determine if the
Acceptor should register
with
Selector
to handle accept events. |
boolean |
shouldUseSelectThreadForConnections() |
boolean |
shouldUseWorkerThreadForConnections() |
public boolean initialize()
AcceptorAcceptor.
For example, initialization may mean to create a
ServerSocketChannel.
Note: this must be prepared to be be called multiple times.initialize in interface Acceptortrue when it performs initializatin
actions (typically the first call.public boolean initialized()
AcceptorAcceptor has been initialized.initialized in interface AcceptortrueAcceptor has been
initialized.public String getConnectionCacheType()
AcceptorAcceptor
as given by getConnectionCacheType.getConnectionCacheType in interface AcceptorStringpublic void setConnectionCache(InboundConnectionCache connectionCache)
AcceptorInboundConnectionCache
to be used by this Acceptor.
PEPt uses separate caches for each type of Acceptor
as given by Acceptor.getConnectionCacheType().
Acceptor.setConnectionCache(com.sun.corba.se.pept.transport.InboundConnectionCache) and Acceptor.getConnectionCache() support
an optimzation to avoid hashing to find that cache.setConnectionCache in interface Acceptorpublic InboundConnectionCache getConnectionCache()
AcceptorInboundConnectionCache
used by this Acceptor
PEPt uses separate caches for each type of Acceptor
as given by Acceptor.getConnectionCacheType().
Acceptor.setConnectionCache(com.sun.corba.se.pept.transport.InboundConnectionCache) and Acceptor.getConnectionCache() support
an optimzation to avoid hashing to find that cache.getConnectionCache in interface AcceptorConnectionCachepublic boolean shouldRegisterAcceptEvent()
AcceptorAcceptor should register
with
Selector
to handle accept events.
For example, this may be false in the case of Solaris Doors
which do not actively listen.shouldRegisterAcceptEvent in interface Acceptortrue if the Acceptor should be
registered with
Selectorpublic void setUseSelectThreadForConnections(boolean x)
public boolean shouldUseSelectThreadForConnections()
public void setUseWorkerThreadForConnections(boolean x)
public boolean shouldUseWorkerThreadForConnections()
public void accept()
AcceptorAcceptor or by a
ListenerThread.
It results in a
Connection
being created.public void close()
AcceptorAcceptor.public EventHandler getEventHandler()
AcceptorEventHandler
associated with this Acceptor.getEventHandler in interface AcceptorEventHandlerpublic MessageMediator createMessageMediator(Broker xbroker, Connection xconnection)
AcceptorMessageMediator
to hold internal data for a message received using the specific
encoding, protocol, transport combination represented by this
Acceptor.createMessageMediator in interface AcceptorMessageMediatorpublic MessageMediator finishCreatingMessageMediator(Broker xbroker, Connection xconnection, MessageMediator messageMediator)
AcceptorMessageMediator
to with internal data for a message received using the specific
encoding, protocol, transport combination represented by this
Acceptor.finishCreatingMessageMediator in interface AcceptorMessageMediatorpublic InputObject createInputObject(Broker broker, MessageMediator messageMediator)
AcceptorInputObject
for the specific encoding represented by this
Acceptor.createInputObject in interface AcceptorInputObjectpublic OutputObject createOutputObject(Broker broker, MessageMediator messageMediator)
AcceptorOutputObject
for the specific encoding represented by this
Acceptor.createOutputObject in interface AcceptorOutputObjectCopyright © 2018 JBoss by Red Hat. All rights reserved.