Package com.sun.corba.se.impl.orb
Class ParserTable.TestAcceptor2
java.lang.Object
com.sun.corba.se.impl.orb.ParserTable.TestAcceptor2
- All Implemented Interfaces:
Acceptor
- Enclosing class:
- ParserTable
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaccept()Accept a connection request.voidclose()Close theAcceptor.createInputObject(Broker broker, MessageMediator messageMediator) Used to get aInputObjectfor the specific encoding represented by thisAcceptor.createMessageMediator(Broker xbroker, Connection xconnection) Used to get aMessageMediatorto hold internal data for a message received using the specific encoding, protocol, transport combination represented by thisAcceptor.createOutputObject(Broker broker, MessageMediator messageMediator) Used to get aOutputObjectfor the specific encoding represented by thisAcceptor.booleanfinishCreatingMessageMediator(Broker xbroker, Connection xconnection, MessageMediator messageMediator) Used to finish creating aMessageMediatorto with internal data for a message received using the specific encoding, protocol, transport combination represented by thisAcceptor.Get theInboundConnectionCacheused by thisAcceptorPEPt uses separate caches for each type ofAcceptoras given byAcceptor.getConnectionCacheType().PEPt uses separate caches for each type ofAcceptoras given bygetConnectionCacheType.Get theEventHandlerassociated with thisAcceptor.inthashCode()booleanUsed to initialize anAcceptor.booleanUsed to determine if anAcceptorhas been initialized.voidsetConnectionCache(InboundConnectionCache connectionCache) Set theInboundConnectionCacheto be used by thisAcceptor.voidsetUseSelectThreadForConnections(boolean x) voidsetUseWorkerThreadForConnections(boolean x) booleanUsed to determine if theAcceptorshould register withSelectorto handle accept events.booleanboolean
-
Constructor Details
-
TestAcceptor2
public TestAcceptor2()
-
-
Method Details
-
equals
-
hashCode
public int hashCode() -
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</code. if theAcceptorhas been initialized.
-
getConnectionCacheType
Description copied from interface:AcceptorPEPt uses separate caches for each type ofAcceptoras given bygetConnectionCacheType.- Specified by:
getConnectionCacheTypein interfaceAcceptor- Returns:
String
-
setConnectionCache
Description copied from interface:AcceptorSet theInboundConnectionCacheto be used by thisAcceptor. PEPt uses separate caches for each type ofAcceptoras given byAcceptor.getConnectionCacheType().Acceptor.setConnectionCache(com.sun.corba.se.pept.transport.InboundConnectionCache)andAcceptor.getConnectionCache()support an optimzation to avoid hashing to find that cache.- Specified by:
setConnectionCachein interfaceAcceptor- Parameters:
connectionCache- .
-
getConnectionCache
Description copied from interface:AcceptorGet theInboundConnectionCacheused by thisAcceptorPEPt uses separate caches for each type ofAcceptoras given byAcceptor.getConnectionCacheType().Acceptor.setConnectionCache(com.sun.corba.se.pept.transport.InboundConnectionCache)andAcceptor.getConnectionCache()support an optimzation to avoid hashing to find that cache.- Specified by:
getConnectionCachein interfaceAcceptor- Returns:
ConnectionCache
-
shouldRegisterAcceptEvent
public boolean shouldRegisterAcceptEvent()Description copied from interface:AcceptorUsed to determine if theAcceptorshould register withSelectorto 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 withSelector
-
setUseSelectThreadForConnections
public void setUseSelectThreadForConnections(boolean x) -
shouldUseSelectThreadForConnections
public boolean shouldUseSelectThreadForConnections() -
setUseWorkerThreadForConnections
public void setUseWorkerThreadForConnections(boolean x) -
shouldUseWorkerThreadForConnections
public boolean shouldUseWorkerThreadForConnections() -
accept
public void accept()Description copied from interface:AcceptorAccept a connection request. This is called either when the selector gets an accept event for thisAcceptoror by aListenerThread. It results in aConnectionbeing created. -
close
public void close()Description copied from interface:AcceptorClose theAcceptor. -
getEventHandler
Description copied from interface:AcceptorGet theEventHandlerassociated with thisAcceptor.- Specified by:
getEventHandlerin interfaceAcceptor- Returns:
EventHandler
-
createMessageMediator
Description copied from interface:AcceptorUsed to get aMessageMediatorto hold internal data for a message received using the specific encoding, protocol, transport combination represented by thisAcceptor.- Specified by:
createMessageMediatorin interfaceAcceptor- Returns:
MessageMediator
-
finishCreatingMessageMediator
public MessageMediator finishCreatingMessageMediator(Broker xbroker, Connection xconnection, MessageMediator messageMediator) Description copied from interface:AcceptorUsed to finish creating aMessageMediatorto with internal data for a message received using the specific encoding, protocol, transport combination represented by thisAcceptor.- Specified by:
finishCreatingMessageMediatorin interfaceAcceptor- Returns:
MessageMediator
-
createInputObject
Description copied from interface:AcceptorUsed to get aInputObjectfor the specific encoding represented by thisAcceptor.- Specified by:
createInputObjectin interfaceAcceptor- Returns:
InputObject
-
createOutputObject
Description copied from interface:AcceptorUsed to get aOutputObjectfor the specific encoding represented by thisAcceptor.- Specified by:
createOutputObjectin interfaceAcceptor- Returns:
OutputObject
-