public abstract class ConnectionBase extends org.omg.ETF._ConnectionLocalBase implements Configurable
| Modifier and Type | Field and Description |
|---|---|
protected ByteArrayOutputStream |
b_out
Optionally initialised to be used in the dumping of messages.
|
protected Configuration |
configuration |
protected boolean |
connected |
protected String |
connection_info |
protected int |
finalTimeout
Time out after a close connection has been received.
|
protected org.slf4j.Logger |
logger
shared with sub classes
|
protected ORB |
orb |
protected ProfileBase |
profile
The Profile of the target / server side of the connection.
|
| Modifier | Constructor and Description |
|---|---|
protected |
ConnectionBase() |
protected |
ConnectionBase(ConnectionBase other)
Initialise this instance as a copy of another.
|
| Modifier and Type | Method and Description |
|---|---|
void |
configure(Configuration config) |
org.omg.ETF.Profile |
get_server_profile() |
protected String |
getLocalhost() |
protected abstract int |
getTimeout() |
protected abstract COMM_FAILURE |
handleCommFailure(IOException exception)
this is invoked whenever a communication error occurs.
|
boolean |
is_connected() |
protected abstract void |
setTimeout(int timeout) |
boolean |
supports_callback()
A boolean flag describing whether this connection supports the
Bidirectional GIOP mechanism as described by GIOP-1.2 in CORBA 2.3.1
(OMG Document: formal/99-10-07).
|
protected COMM_FAILURE |
to_COMM_FAILURE(IOException exception)
convert the specified exception into a CORBA COMM_FAILURE
|
void |
turnOnFinalTimeout()
This is used to tell the transport that a CloseConnection has
been sent, and that it should set a timeout in case the client
doesn't close its side of the connection right away.
|
boolean |
use_handle_time_out()
A flag directing the ORB to use either the Handle class to perform
data queries with a time_out, or the transport layer (through this
connection).
|
boolean |
wait_next_data(long time_out)
Wait for the given time_out period for incoming data on this
connection.
|
_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_connectionclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclose, connect, flush, is_data_available, read, write_create_request, _create_request, _duplicate, _get_domain_managers, _get_interface_def, _get_policy, _hash, _is_a, _is_equivalent, _non_existent, _release, _request, _set_policy_overrideprotected boolean connected
protected ByteArrayOutputStream b_out
jacorb.debug.dump_outgoing_messages.
Default is off.protected int finalTimeout
jacorb.connection.timeout_after_closeconnection.
Default 20000 milliseconds.protected ProfileBase profile
protected org.slf4j.Logger logger
protected Configuration configuration
protected String connection_info
protected ORB orb
protected ConnectionBase()
protected ConnectionBase(ConnectionBase other)
public void configure(Configuration config) throws ConfigurationException
configure in interface ConfigurableConfigurationExceptionprotected abstract void setTimeout(int timeout)
protected abstract int getTimeout()
public org.omg.ETF.Profile get_server_profile()
get_server_profile in interface org.omg.ETF.ConnectionOperationspublic boolean is_connected()
is_connected in interface org.omg.ETF.ConnectionOperationspublic void turnOnFinalTimeout()
protected abstract COMM_FAILURE handleCommFailure(IOException exception)
protected COMM_FAILURE to_COMM_FAILURE(IOException exception)
public boolean wait_next_data(long time_out)
wait_next_data in interface org.omg.ETF.ConnectionOperationspublic boolean supports_callback()
supports_callback in interface org.omg.ETF.ConnectionOperationspublic boolean use_handle_time_out()
use_handle_time_out in interface org.omg.ETF.ConnectionOperationsprotected final String getLocalhost()
Copyright © 2017 JacORB. All rights reserved.