public abstract class AcceptorBase extends EventHandlerBase implements Acceptor, Work, SocketInfo, LegacyServerSocketEndPointInfo
| Modifier and Type | Field and Description |
|---|---|
protected InboundConnectionCache |
connectionCache |
protected long |
enqueueTime |
protected String |
hostname |
protected boolean |
initialized |
protected int |
locatorPort |
protected String |
name |
protected int |
port |
protected String |
type |
protected ORBUtilSystemException |
wrapper |
orb, selectionKey, useSelectThreadToWait, useWorkerThreadForEvent, workIIOP_CLEAR_TEXT, SSL_PREFIXBOOT_NAMING, DEFAULT_ENDPOINT, NO_NAME| Constructor and Description |
|---|
AcceptorBase(ORB orb,
int port,
String name,
String type) |
| Modifier and Type | Method and Description |
|---|---|
void |
addToIORTemplate(IORTemplate iorTemplate,
Policies policies,
String codebase) |
CDROutputObject |
createOutputObject(ORB broker,
MessageMediator messageMediator) |
Acceptor |
getAcceptor() |
Connection |
getConnection() |
InboundConnectionCache |
getConnectionCache() |
String |
getConnectionCacheType() |
long |
getEnqueueTime() |
EventHandler |
getEventHandler() |
String |
getHost() |
String |
getHostName()
Get the host name of this end point.
|
int |
getInterestOps() |
String |
getInterfaceName() |
int |
getLocatorPort()
The ORBD's proxy port of this end point.
|
String |
getMonitoringName() |
String |
getName() |
int |
getPort() |
String |
getType()
e.g.: "CLEAR_TEXT", "SSL", ...
|
boolean |
initialized()
Used to determine if an
Acceptor has been initialized. |
boolean |
isLazy() |
protected IIOPProfileTemplate |
makeIIOPProfileTemplate(Policies policies,
String codebase) |
void |
processSocket(Socket socket)
Handle a newly accepted Socket.
|
void |
setConnectionCache(InboundConnectionCache connectionCache) |
void |
setEnqueueTime(long timeInMillis) |
void |
setLocatorPort(int port) |
boolean |
shouldRegisterAcceptEvent()
Used to determine if the
Acceptor should register
with a Selector to handle accept events. |
String |
toString() |
protected String |
toStringName() |
getSelectionKey, getWork, handleEvent, setSelectionKey, setUseSelectThreadToWait, setUseWorkerThreadForEvent, setWork, shouldUseSelectThreadToWait, shouldUseWorkerThreadForEventclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitclose, getAcceptedSocket, getServerSocket, initializegetChannelprotected ORBUtilSystemException wrapper
protected int port
protected long enqueueTime
protected boolean initialized
protected String type
protected String name
protected String hostname
protected int locatorPort
protected InboundConnectionCache connectionCache
public int getPort()
getPort in interface LegacyServerSocketEndPointInfogetPort in interface AcceptorgetPort in interface SocketInfopublic String getInterfaceName()
getInterfaceName in interface Acceptorpublic String getName()
getName in interface LegacyServerSocketEndPointInfogetName in interface Workpublic String getType()
LegacyServerSocketEndPointInfogetType in interface LegacyServerSocketEndPointInfogetType in interface AcceptorgetType in interface SocketInfopublic void processSocket(Socket socket)
AcceptorprocessSocket in interface Acceptorpublic void addToIORTemplate(IORTemplate iorTemplate, Policies policies, String codebase)
addToIORTemplate in interface Acceptorprotected final IIOPProfileTemplate makeIIOPProfileTemplate(Policies policies, String codebase)
protected String toStringName()
public String getHost()
getHost in interface SocketInfopublic String getHostName()
LegacyServerSocketEndPointInfogetHostName in interface LegacyServerSocketEndPointInfopublic int getLocatorPort()
LegacyServerSocketEndPointInfogetLocatorPort in interface LegacyServerSocketEndPointInfopublic void setLocatorPort(int port)
setLocatorPort in interface LegacyServerSocketEndPointInfopublic InboundConnectionCache getConnectionCache()
getConnectionCache in interface Acceptorpublic String getConnectionCacheType()
getConnectionCacheType in interface Acceptorpublic long getEnqueueTime()
getEnqueueTime in interface Workpublic String getMonitoringName()
getMonitoringName in interface Acceptorpublic boolean initialized()
AcceptorAcceptor has been initialized.initialized in interface AcceptortrueAcceptor has been
initialized.public void setConnectionCache(InboundConnectionCache connectionCache)
setConnectionCache in interface Acceptorpublic void setEnqueueTime(long timeInMillis)
setEnqueueTime in interface Workpublic EventHandler getEventHandler()
getEventHandler in interface Acceptorpublic Acceptor getAcceptor()
getAcceptor in interface EventHandlerpublic Connection getConnection()
getConnection in interface EventHandlerpublic CDROutputObject createOutputObject(ORB broker, MessageMediator messageMediator)
createOutputObject in interface Acceptorpublic boolean shouldRegisterAcceptEvent()
AcceptorAcceptor 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.shouldRegisterAcceptEvent in interface Acceptortrue if the Acceptor should be
registered with a Selector.public int getInterestOps()
getInterestOps in interface EventHandlerCopyright © 2017–2019 Eclipse Foundation. All rights reserved.