public class AcceptorImpl extends AcceptorBase
| Modifier and Type | Field and Description |
|---|---|
protected ServerSocket |
serverSocket |
protected ServerSocketChannel |
serverSocketChannel |
connectionCache, enqueueTime, hostname, initialized, locatorPort, name, port, type, wrapperorb, selectionKey, useSelectThreadToWait, useWorkerThreadForEvent, workIIOP_CLEAR_TEXT, SSL_PREFIXBOOT_NAMING, DEFAULT_ENDPOINT, NO_NAME| Constructor and Description |
|---|
AcceptorImpl(ORB orb,
int port,
String name,
String type) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
accept() |
void |
close()
Close the
Acceptor. |
void |
doWork() |
Socket |
getAcceptedSocket()
Blocks until a new Socket is available on the acceptor's port.
|
SelectableChannel |
getChannel() |
ServerSocket |
getServerSocket() |
boolean |
initialize()
Used to initialize an
Acceptor. |
protected void |
internalInitialize() |
addToIORTemplate, createOutputObject, getAcceptor, getConnection, getConnectionCache, getConnectionCacheType, getEnqueueTime, getEventHandler, getHost, getHostName, getInterestOps, getInterfaceName, getLocatorPort, getMonitoringName, getName, getPort, getType, initialized, isLazy, makeIIOPProfileTemplate, processSocket, setConnectionCache, setEnqueueTime, setLocatorPort, shouldRegisterAcceptEvent, toString, toStringNamegetSelectionKey, getWork, handleEvent, setSelectionKey, setUseSelectThreadToWait, setUseWorkerThreadForEvent, setWork, shouldUseSelectThreadToWait, shouldUseWorkerThreadForEventprotected ServerSocketChannel serverSocketChannel
protected ServerSocket serverSocket
public boolean initialize()
AcceptorAcceptor.
For example, initialization may mean to create a
ServerSocketChannel.
Note: this must be prepared to be be called multiple times.true when it performs initializatin
actions (typically the first call.public Socket getAcceptedSocket()
Acceptorpublic void close()
AcceptorAcceptor.public SelectableChannel getChannel()
protected void accept()
public void doWork()
public ServerSocket getServerSocket()
Copyright © 2017–2019 Eclipse Foundation. All rights reserved.