org.jacorb.orb.iiop
Class ClientIIOPConnection

java.lang.Object
  extended by org.omg.CORBA.LocalObject
      extended by org.omg.ETF._ConnectionLocalBase
          extended by org.jacorb.orb.etf.ConnectionBase
              extended by org.jacorb.orb.etf.StreamConnectionBase
                  extended by org.jacorb.orb.iiop.IIOPConnection
                      extended by org.jacorb.orb.iiop.ClientIIOPConnection
All Implemented Interfaces:
java.io.Serializable, org.jacorb.config.Configurable, LocalInterface, Object, IDLEntity, Connection, ConnectionOperations

public class ClientIIOPConnection
extends IIOPConnection
implements org.jacorb.config.Configurable

Version:
$Id: ClientIIOPConnection.java,v 1.37 2009-04-25 10:10:36 andre.spiegel Exp $
Author:
Nicolas Noffke, Andre Spiegel
See Also:
Serialized Form

Field Summary
static int openTransports
           
 
Fields inherited from class org.jacorb.orb.iiop.IIOPConnection
socket, use_ssl
 
Fields inherited from class org.jacorb.orb.etf.StreamConnectionBase
in_stream, out_stream
 
Fields inherited from class org.jacorb.orb.etf.ConnectionBase
b_out, configuration, connected, connection_info, finalTimeout, logger, orb, profile
 
Constructor Summary
ClientIIOPConnection()
           
 
Method Summary
protected  void checkSSL()
          Check if this client should use SSL when connecting to the server described by the 'profile'.
 void close()
           
 void configure(org.jacorb.config.Configuration configuration)
           
 void connect(Profile server_profile, long time_out)
          Attempts to establish a 1-to-1 connection with a server using the Listener endpoint from the given Profile description.
 int getSsl_port()
           
 
Methods inherited from class org.jacorb.orb.iiop.IIOPConnection
getSocket, getTimeout, handleCommFailure, hashCode, isSSL, setTimeout
 
Methods inherited from class org.jacorb.orb.etf.StreamConnectionBase
flush, is_data_available, read, write
 
Methods inherited from class org.jacorb.orb.etf.ConnectionBase
get_server_profile, getLocalhost, is_connected, supports_callback, to_COMM_FAILURE, turnOnFinalTimeout, use_handle_time_out, wait_next_data
 
Methods inherited from class org.omg.ETF._ConnectionLocalBase
_ids
 
Methods inherited from class org.omg.CORBA.LocalObject
_create_request, _create_request, _duplicate, _get_component, _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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.omg.CORBA.Object
_create_request, _create_request, _duplicate, _get_component, _get_domain_managers, _get_interface_def, _get_interface, _get_policy, _hash, _is_a, _is_equivalent, _non_existent, _release, _request, _set_policy_override
 

Field Detail

openTransports

public static int openTransports
Constructor Detail

ClientIIOPConnection

public ClientIIOPConnection()
Method Detail

configure

public void configure(org.jacorb.config.Configuration configuration)
               throws org.jacorb.config.ConfigurationException
Specified by:
configure in interface org.jacorb.config.Configurable
Overrides:
configure in class ConnectionBase
Throws:
org.jacorb.config.ConfigurationException

connect

public void connect(Profile server_profile,
                    long time_out)
Attempts to establish a 1-to-1 connection with a server using the Listener endpoint from the given Profile description. It shall throw a COMM_FAILURE exception if it fails (e.g. if the endpoint is unreachable) or a TIMEOUT exception if the given time_out period has expired before a connection is established. If the connection is successfully established it shall store the used Profile data.

Specified by:
connect in interface ConnectionOperations

close

public void close()
Specified by:
close in interface ConnectionOperations

checkSSL

protected void checkSSL()
Check if this client should use SSL when connecting to the server described by the 'profile'. The result is stored in the private fields use_ssl and ssl_port.


getSsl_port

public int getSsl_port()