com.dynalivery.saffron.client
Class LoadBalancer

java.lang.Object
  extended bycom.dynalivery.saffron.client.LoadBalancer

public class LoadBalancer
extends java.lang.Object


Field Summary
static int LOAD_FACTOR
           
static int ROUND_ROBIN
           
 
Constructor Summary
LoadBalancer()
          Creates a new instance of LoadBalancer
 
Method Summary
 SaffronCORBAClient getSaffronClient(java.lang.String userName, java.lang.String password)
          getSaffronClient This method returns a SaffronCORBAClient, that is connected to a Saffron running in the default LoadBalancing channel using the username and password provided.
 SaffronCORBAClient getSaffronClient(java.lang.String userName, java.lang.String password, int alg)
          getSaffronClient This method returns a SaffronCORBAClient, that is connected to a Saffron running in the default LoadBalancing channel using the requested algorithm and the username and password provided.
 SaffronCORBAClient getSaffronClient(java.lang.String userName, java.lang.String password, org.omg.CORBA.ORB cltOrb)
          getSaffronClient This method returns a SaffronCORBAClient, that is connected to a Saffron running in the default LoadBalancing channel using the username and password provided, and uses the client side ORB provided for connection.
 SaffronCORBAClient getSaffronClient(java.lang.String userName, java.lang.String password, java.lang.String channelName)
          getSaffronClient This method returns a SaffronCORBAClient, that is connected to a Saffron running in the LoadBalancing channel provided using the username and password provided.
 SaffronCORBAClient getSaffronClient(java.lang.String userName, java.lang.String password, java.lang.String channelName, int alg)
          getSaffronClient This method returns a SaffronCORBAClient, that is connected to a Saffron running in the LoadBalancing channel requested, using the username and password provided.
 SaffronCORBAClient getSaffronClient(java.lang.String userName, java.lang.String password, java.lang.String channelName, int alg, org.omg.CORBA.ORB cltOrb)
          getSaffronClient This method returns a SaffronCORBAClient, that is connected to a Saffron running in the LoadBalancing channel requested, using the username and password provided, and uses the client side ORB provided for connection.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ROUND_ROBIN

public static final int ROUND_ROBIN
See Also:
Constant Field Values

LOAD_FACTOR

public static final int LOAD_FACTOR
See Also:
Constant Field Values
Constructor Detail

LoadBalancer

public LoadBalancer()
Creates a new instance of LoadBalancer

Method Detail

getSaffronClient

public SaffronCORBAClient getSaffronClient(java.lang.String userName,
                                           java.lang.String password)
                                    throws SaffronClientException
getSaffronClient This method returns a SaffronCORBAClient, that is connected to a Saffron running in the default LoadBalancing channel using the username and password provided.

Throws:
SaffronClientException

getSaffronClient

public SaffronCORBAClient getSaffronClient(java.lang.String userName,
                                           java.lang.String password,
                                           int alg)
                                    throws SaffronClientException
getSaffronClient This method returns a SaffronCORBAClient, that is connected to a Saffron running in the default LoadBalancing channel using the requested algorithm and the username and password provided.

Throws:
SaffronClientException

getSaffronClient

public SaffronCORBAClient getSaffronClient(java.lang.String userName,
                                           java.lang.String password,
                                           java.lang.String channelName)
                                    throws SaffronClientException
getSaffronClient This method returns a SaffronCORBAClient, that is connected to a Saffron running in the LoadBalancing channel provided using the username and password provided.

Throws:
SaffronClientException

getSaffronClient

public SaffronCORBAClient getSaffronClient(java.lang.String userName,
                                           java.lang.String password,
                                           org.omg.CORBA.ORB cltOrb)
                                    throws SaffronClientException
getSaffronClient This method returns a SaffronCORBAClient, that is connected to a Saffron running in the default LoadBalancing channel using the username and password provided, and uses the client side ORB provided for connection.

Throws:
SaffronClientException

getSaffronClient

public SaffronCORBAClient getSaffronClient(java.lang.String userName,
                                           java.lang.String password,
                                           java.lang.String channelName,
                                           int alg)
                                    throws SaffronClientException
getSaffronClient This method returns a SaffronCORBAClient, that is connected to a Saffron running in the LoadBalancing channel requested, using the username and password provided.

Throws:
SaffronClientException

getSaffronClient

public SaffronCORBAClient getSaffronClient(java.lang.String userName,
                                           java.lang.String password,
                                           java.lang.String channelName,
                                           int alg,
                                           org.omg.CORBA.ORB cltOrb)
                                    throws SaffronClientException
getSaffronClient This method returns a SaffronCORBAClient, that is connected to a Saffron running in the LoadBalancing channel requested, using the username and password provided, and uses the client side ORB provided for connection.

Throws:
SaffronClientException