org.jacorb.orb.iiop

Class ClientIIOPConnection

Implemented Interfaces:
Configurable, Connection, ConnectionOperations, IDLEntity, LocalInterface, Object, java.io.Serializable

public class ClientIIOPConnection
extends IIOPConnection
implements Configurable

ClientIIOPConnection.java Created: Sun Aug 12 20:56:32 2002

Version:
$Id: ClientIIOPConnection.java,v 1.13 2004/05/06 12:40:00 nicolas Exp $

Author:
Nicolas Noffke / Andre Spiegel

Field Summary

static int
openTransports

Fields inherited from class org.jacorb.orb.iiop.IIOPConnection

configuration, connected, connection_info, in_stream, logger, out_stream, socket

Constructor Summary

ClientIIOPConnection()
ClientIIOPConnection(ClientIIOPConnection other)

Method Summary

void
close()
void
configure(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.
Profile
get_server_profile()
boolean
isSSL()

Methods inherited from class org.jacorb.orb.iiop.IIOPConnection

configure, flush, isSSL, is_connected, is_data_available, read, supports_callback, to_COMM_FAILURE, turnOnFinalTimeout, use_handle_time_out, wait_next_data, write

Methods inherited from class org.omg.ETF._ConnectionLocalBase

_ids

Methods inherited from class org.omg.CORBA.LocalObject

_create_request, _create_request, _duplicate, _get_domain_managers, _get_interface, _get_interface_def, _get_policy, _hash, _ids, _invoke, _is_a, _is_equivalent, _is_local, _non_existent, _orb, _release, _releaseReply, _request, _request, _servant_postinvoke, _servant_preinvoke, _set_policy_override, validate_connection

Field Details

openTransports

public static int openTransports

Constructor Details

ClientIIOPConnection

public ClientIIOPConnection()


ClientIIOPConnection

public ClientIIOPConnection(ClientIIOPConnection other)

Method Details

close

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


configure

public void configure(Configuration configuration)
            throws ConfigurationException
Overrides:
configure in interface IIOPConnection


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


get_server_profile

public Profile get_server_profile()
Specified by:
get_server_profile in interface ConnectionOperations


isSSL

public boolean isSSL()
Overrides:
isSSL in interface IIOPConnection