public abstract class ListenerBase extends org.omg.ETF._ListenerLocalBase implements Configurable
Modifier and Type | Class and Description |
---|---|
protected class |
ListenerBase.Acceptor |
Modifier and Type | Field and Description |
---|---|
protected ListenerBase.Acceptor |
acceptor
The primary acceptor of this listener.
|
protected Configuration |
configuration
The configuration.
|
protected List<org.omg.ETF.Connection> |
incoming_connections
Queue of incoming connections, which will be
delivered via calls to the accept() method.
|
protected ListenEndpoint |
listenEndpoint |
protected org.slf4j.Logger |
logger
The logger.
|
protected ORB |
orb
The ORB.
|
protected org.omg.ETF.Profile |
profile
The profile of this listener's endpoint.
|
protected org.omg.ETF.Handle |
up
Reference to the ORB, for delivering
incoming connections via upcalls.
|
Constructor and Description |
---|
ListenerBase() |
ListenerBase(ListenEndpoint listenEndpoint) |
Modifier and Type | Method and Description |
---|---|
org.omg.ETF.Connection |
accept()
This call is an alternative to using set_handle() to initiate the
callback-style of accepting new connections.
|
void |
completed_data(org.omg.ETF.Connection conn)
The connection instance is returned to the Listener.
|
void |
configure(Configuration config) |
protected void |
deliverConnection(org.omg.ETF.Connection connection)
Method the Acceptor implementation should call to pass
an opened connection to the ORB.
|
void |
destroy()
The Listener is instructed to close its endpoint.
|
org.omg.ETF.Profile |
endpoint()
Returns a copy of the profile describing the endpoint
of this instance.
|
void |
listen()
It is possible that connection requests arrive after the
initial creation of the Listener instance but before the
conclusion of the configuration of the specific endpoint in this
plugin.
|
void |
set_handle(org.omg.ETF.Handle up)
This call establishes the link between the ORB (i.e.
|
void |
setListenEndpoint(ListenEndpoint listenEndpoint)
Assigns a listen end point to this listener
|
_create_request, _create_request, _duplicate, _get_domain_managers, _get_interface_def, _get_interface, _get_policy, _hash, _invoke, _is_a, _is_equivalent, _is_local, _non_existent, _orb, _release, _releaseReply, _request, _request, _servant_postinvoke, _servant_preinvoke, _set_policy_override, validate_connection
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
_create_request, _create_request, _duplicate, _get_domain_managers, _get_interface_def, _get_policy, _hash, _is_a, _is_equivalent, _non_existent, _release, _request, _set_policy_override
protected ORB orb
protected org.omg.ETF.Profile profile
protected ListenerBase.Acceptor acceptor
protected Configuration configuration
protected org.slf4j.Logger logger
protected org.omg.ETF.Handle up
protected final List<org.omg.ETF.Connection> incoming_connections
protected ListenEndpoint listenEndpoint
public ListenerBase()
public ListenerBase(ListenEndpoint listenEndpoint)
public void configure(Configuration config) throws ConfigurationException
configure
in interface Configurable
ConfigurationException
public void set_handle(org.omg.ETF.Handle up)
set_handle
in interface org.omg.ETF.ListenerOperations
public void listen()
listen
in interface org.omg.ETF.ListenerOperations
protected void deliverConnection(org.omg.ETF.Connection connection)
public org.omg.ETF.Connection accept()
accept
in interface org.omg.ETF.ListenerOperations
public void completed_data(org.omg.ETF.Connection conn)
completed_data
in interface org.omg.ETF.ListenerOperations
public void destroy()
destroy
in interface org.omg.ETF.ListenerOperations
public org.omg.ETF.Profile endpoint()
endpoint
in interface org.omg.ETF.ListenerOperations
public void setListenEndpoint(ListenEndpoint listenEndpoint)
listenEndpoint
- Copyright © 2017 JacORB. All rights reserved.