@ManagedObject
@Description(value="An Acceptor represents an endpoint on which the ORB handles incoming connections")
public interface Acceptor
| Modifier and Type | Method and Description |
|---|---|
void |
addToIORTemplate(IORTemplate iorTemplate,
Policies policies,
String codebase) |
void |
close()
Close the
Acceptor. |
CDROutputObject |
createOutputObject(ORB broker,
MessageMediator messageMediator) |
Socket |
getAcceptedSocket()
Blocks until a new Socket is available on the acceptor's port.
|
InboundConnectionCache |
getConnectionCache() |
String |
getConnectionCacheType() |
EventHandler |
getEventHandler() |
String |
getInterfaceName() |
String |
getMonitoringName() |
int |
getPort() |
ServerSocket |
getServerSocket() |
String |
getType() |
boolean |
initialize()
Used to initialize an
Acceptor. |
boolean |
initialized()
Used to determine if an
Acceptor has been initialized. |
boolean |
isLazy() |
void |
processSocket(Socket channel)
Handle a newly accepted Socket.
|
void |
setConnectionCache(InboundConnectionCache connectionCache) |
boolean |
shouldRegisterAcceptEvent()
Used to determine if the
Acceptor should register
with a Selector to handle accept events. |
@ManagedAttribute @Description(value="The TCP port of this Acceptor") int getPort()
@ManagedAttribute @Description(value="The name of the IP interface for this Acceptor") String getInterfaceName()
@ManagedAttribute @Description(value="The type of requests that this Acceptor handles") String getType()
@ManagedAttribute @Description(value="True if this acceptor is used to lazily start the ORB") boolean isLazy()
void addToIORTemplate(IORTemplate iorTemplate, Policies policies, String codebase)
String getMonitoringName()
boolean initialize()
Acceptor.
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.boolean initialized()
Acceptor has been initialized.trueAcceptor has been
initialized.String getConnectionCacheType()
void setConnectionCache(InboundConnectionCache connectionCache)
InboundConnectionCache getConnectionCache()
boolean shouldRegisterAcceptEvent()
Acceptor 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.true if the Acceptor should be
registered with a Selector.Socket getAcceptedSocket()
void processSocket(Socket channel)
void close()
Acceptor.EventHandler getEventHandler()
CDROutputObject createOutputObject(ORB broker, MessageMediator messageMediator)
ServerSocket getServerSocket()
Copyright © 2017–2019 Eclipse Foundation. All rights reserved.