Class AcceptorBase
java.lang.Object
com.sun.corba.ee.impl.transport.EventHandlerBase
com.sun.corba.ee.impl.transport.AcceptorBase
- All Implemented Interfaces:
LegacyServerSocketEndPointInfo, Work, Acceptor, EventHandler, SocketInfo
- Direct Known Subclasses:
AcceptorImpl, AcceptorLazyImpl
public abstract class AcceptorBase
extends EventHandlerBase
implements Acceptor, Work, SocketInfo, LegacyServerSocketEndPointInfo
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected InboundConnectionCacheprotected longprotected Stringprotected booleanprotected intprotected Stringprotected intprotected Stringprotected ORBUtilSystemExceptionFields inherited from class EventHandlerBase
orb, selectionKey, useSelectThreadToWait, useWorkerThreadForEvent, workFields inherited from interface LegacyServerSocketEndPointInfo
BOOT_NAMING, DEFAULT_ENDPOINT, NO_NAMEFields inherited from interface SocketInfo
IIOP_CLEAR_TEXT, SSL_PREFIX -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddToIORTemplate(IORTemplate iorTemplate, Policies policies, String codebase) createOutputObject(ORB broker, MessageMediator messageMediator) longThis methods gets the time in millis in the work item, when this work item was enqueued in the work queue.getHost()Get the host name of this end point.intintThe ORBD's proxy port of this end point.getName()This method will return the name of the work item.intgetPort()getType()e.g.: "CLEAR_TEXT", "SSL", ...booleanUsed to determine if anAcceptorhas been initialized.booleanisLazy()protected final IIOPProfileTemplatemakeIIOPProfileTemplate(Policies policies, String codebase) voidprocessSocket(Socket socket) Handle a newly accepted Socket.voidsetConnectionCache(InboundConnectionCache connectionCache) voidsetEnqueueTime(long timeInMillis) This methods sets the time in millis in the work item, when this work item was enqueued in the work queue.voidsetLocatorPort(int port) booleanUsed to determine if theAcceptorshould register with a Selector to handle accept events.toString()protected StringMethods inherited from class EventHandlerBase
getSelectionKey, getWork, handleEvent, setSelectionKey, setUseSelectThreadToWait, setUseWorkerThreadForEvent, setWork, shouldUseSelectThreadToWait, shouldUseWorkerThreadForEventMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface Acceptor
close, getAcceptedSocket, getServerSocket, initializeMethods inherited from interface EventHandler
getChannel
-
Field Details
-
wrapper
-
port
protected int port -
enqueueTime
protected long enqueueTime -
initialized
protected boolean initialized -
type
-
name
-
hostname
-
locatorPort
protected int locatorPort -
connectionCache
-
-
Constructor Details
-
AcceptorBase
-
-
Method Details
-
getPort
public int getPort()- Specified by:
getPortin interfaceAcceptor- Specified by:
getPortin interfaceLegacyServerSocketEndPointInfo- Specified by:
getPortin interfaceSocketInfo
-
getInterfaceName
- Specified by:
getInterfaceNamein interfaceAcceptor
-
getName
-
getType
Description copied from interface:LegacyServerSocketEndPointInfoe.g.: "CLEAR_TEXT", "SSL", ...- Specified by:
getTypein interfaceAcceptor- Specified by:
getTypein interfaceLegacyServerSocketEndPointInfo- Specified by:
getTypein interfaceSocketInfo- Returns:
- type
-
isLazy
-
processSocket
Description copied from interface:AcceptorHandle a newly accepted Socket.- Specified by:
processSocketin interfaceAcceptor- Parameters:
socket- socket to handle
-
addToIORTemplate
- Specified by:
addToIORTemplatein interfaceAcceptor
-
makeIIOPProfileTemplate
-
toString
-
toStringName
-
getHost
- Specified by:
getHostin interfaceSocketInfo
-
getHostName
Description copied from interface:LegacyServerSocketEndPointInfoGet the host name of this end point. Subcontracts must use this instead of InetAddress.getHostName() because this would take into account the value of the ORBServerHost property.- Specified by:
getHostNamein interfaceLegacyServerSocketEndPointInfo- Returns:
- the host name
-
getLocatorPort
public int getLocatorPort()Description copied from interface:LegacyServerSocketEndPointInfoThe ORBD's proxy port of this end point. Note: Pre-ORT "port-exchange" model.- Specified by:
getLocatorPortin interfaceLegacyServerSocketEndPointInfo- Returns:
- proxy port
-
setLocatorPort
public void setLocatorPort(int port) - Specified by:
setLocatorPortin interfaceLegacyServerSocketEndPointInfo
-
getConnectionCache
- Specified by:
getConnectionCachein interfaceAcceptor
-
getConnectionCacheType
- Specified by:
getConnectionCacheTypein interfaceAcceptor
-
getEnqueueTime
public long getEnqueueTime()Description copied from interface:WorkThis methods gets the time in millis in the work item, when this work item was enqueued in the work queue.- Specified by:
getEnqueueTimein interfaceWork
-
getMonitoringName
- Specified by:
getMonitoringNamein interfaceAcceptor
-
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.
-
setConnectionCache
- Specified by:
setConnectionCachein interfaceAcceptor
-
setEnqueueTime
public void setEnqueueTime(long timeInMillis) Description copied from interface:WorkThis methods sets the time in millis in the work item, when this work item was enqueued in the work queue.- Specified by:
setEnqueueTimein interfaceWork
-
getEventHandler
- Specified by:
getEventHandlerin interfaceAcceptor
-
getAcceptor
- Specified by:
getAcceptorin interfaceEventHandler
-
getConnection
- Specified by:
getConnectionin interfaceEventHandler
-
createOutputObject
- Specified by:
createOutputObjectin 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.
-
getInterestOps
public int getInterestOps()- Specified by:
getInterestOpsin interfaceEventHandler
-