com.dynalivery.harmoni
Class LoadBalancer

java.lang.Object
  |
  +--com.dynalivery.harmoni.LoadBalancer

public class LoadBalancer
extends java.lang.Object


Field Summary
static java.lang.String CRYSTAL7
          Crystal 7 Server Type
static java.lang.String CRYSTAL9
          Crystal 9 Server Type
static int LOAD_FACTOR
           
static int MODIFIED_LOAD_FACTOR
           
static int ROUND_ROBIN
           
static java.lang.String WORD
          Word Server Type
 
Constructor Summary
LoadBalancer()
          Thread safe constructor.
 
Method Summary
 HarmoniApplicationClient getConnectedClient(int algorithm, java.lang.String svrType)
          Deprecated. As of Harmoni 1.0, replaced by HarmoniApplicationClient.ConnectUsingLoadBalance(String serverType, LoadBalanceInfo lb)
 HarmoniApplicationClient getConnectedClient(java.lang.String svrType)
          Deprecated. As of Harmoni 1.0, replaced by HarmoniApplicationClient.ConnectUsingLoadBalance(String serverType, LoadBalanceInfo lb)
 HarmoniApplicationClient getConnectedClient(java.lang.String chnlName, int algorithm, int priority, java.lang.String svrType)
          Deprecated. As of Harmoni 1.0, replaced by HarmoniApplicationClient.ConnectUsingLoadBalance(String serverType, LoadBalanceInfo lb)
 HarmoniApplicationClient getConnectedClient(java.lang.String channel, int algorithm, int priority, java.lang.String svrType, boolean fileArchive, boolean idletimeout)
          Deprecated. As of Harmoni 1.0, replaced by HarmoniApplicationClient.ConnectUsingLoadBalance(String serverType, LoadBalanceInfo lb)
 HarmoniApplicationClient getConnectedClient(java.lang.String chnlName, int algorithm, java.lang.String svrType)
          Deprecated. As of Harmoni 1.0, replaced by HarmoniApplicationClient.ConnectUsingLoadBalance(String serverType, LoadBalanceInfo lb)
 HarmoniApplicationClient getConnectedClient(java.lang.String chnlName, java.lang.String svrType)
          Deprecated. As of Harmoni 1.0, replaced by HarmoniApplicationClient.ConnectUsingLoadBalance(String serverType, LoadBalanceInfo lb)
 java.lang.String getReportServerName()
          Deprecated. As of Parallel Crystal 2.6, replaced by getConnectedClient()
 java.lang.String getReportServerName(int algorithm)
          Deprecated. As of Parallel Crystal 2.6, replaced by getConnectedClient(int)
 java.lang.String getReportServerName(LoadBalanceInfo lb, int priority)
          Deprecated. As of Parallel Crystal 2.6, replaced by getConnectedClient(String)
 java.lang.String getReportServerName(java.lang.String chnlName)
          Deprecated. As of Parallel Crystal 2.6, replaced by getConnectedClient(String)
 java.lang.String getReportServerName(java.lang.String chnlName, int algorithm)
          Deprecated. As of Parallel Crystal 2.6, replaced by getConnectedClient(String, int)
 void setOrb(org.omg.CORBA.ORB neworb)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOAD_FACTOR

public static final int LOAD_FACTOR

ROUND_ROBIN

public static final int ROUND_ROBIN

MODIFIED_LOAD_FACTOR

public static final int MODIFIED_LOAD_FACTOR

CRYSTAL7

public static final java.lang.String CRYSTAL7
Crystal 7 Server Type

CRYSTAL9

public static final java.lang.String CRYSTAL9
Crystal 9 Server Type

WORD

public static final java.lang.String WORD
Word Server Type
Constructor Detail

LoadBalancer

public LoadBalancer()
Thread safe constructor.
Method Detail

getConnectedClient

public HarmoniApplicationClient getConnectedClient(java.lang.String svrType)
                                            throws HarmoniClientError
Deprecated. As of Harmoni 1.0, replaced by HarmoniApplicationClient.ConnectUsingLoadBalance(String serverType, LoadBalanceInfo lb)

Returns a reference to a connected HarmoniApplicationClient object using the default load channel name "pcre_loadbalancer_p" the default load balancing algorithm of load-factor, the default medium priority,the default archiving option of false and the default idletimeout option of false. It is not necessary to call the connect method on the client object.

getConnectedClient

public HarmoniApplicationClient getConnectedClient(int algorithm,
                                                   java.lang.String svrType)
                                            throws HarmoniClientError
Deprecated. As of Harmoni 1.0, replaced by HarmoniApplicationClient.ConnectUsingLoadBalance(String serverType, LoadBalanceInfo lb)

Returns a reference to a connected HarmoniApplicationClient object using the default load channel name "harmoni_loadbalancer_p" the supplied algorithm constant, the default medium priority,the default archiving option of false and the default idletimeout option of false. It is not necessary to call the connect method on the client object.

getConnectedClient

public HarmoniApplicationClient getConnectedClient(java.lang.String chnlName,
                                                   java.lang.String svrType)
                                            throws HarmoniClientError
Deprecated. As of Harmoni 1.0, replaced by HarmoniApplicationClient.ConnectUsingLoadBalance(String serverType, LoadBalanceInfo lb)

Returns a reference to a connected HarmoniApplicationClient object using the supplied channel name, default medium priority the default load balancing algorithm of load-factor the default archiving option of false and the default idletimeout option of false. It is not necessary to call the connect method on the client object.

getConnectedClient

public HarmoniApplicationClient getConnectedClient(java.lang.String chnlName,
                                                   int algorithm,
                                                   java.lang.String svrType)
                                            throws HarmoniClientError
Deprecated. As of Harmoni 1.0, replaced by HarmoniApplicationClient.ConnectUsingLoadBalance(String serverType, LoadBalanceInfo lb)

Returns a reference to a connected HarmoniApplicationClient object using the supplied channel name and the supplied algorithm constant. Default priority is set to medium, the default archiving option is set to false and the default idletimeout option is set to false. It is not necessary to call the connect method on the client object.

getConnectedClient

public HarmoniApplicationClient getConnectedClient(java.lang.String chnlName,
                                                   int algorithm,
                                                   int priority,
                                                   java.lang.String svrType)
                                            throws HarmoniClientError
Deprecated. As of Harmoni 1.0, replaced by HarmoniApplicationClient.ConnectUsingLoadBalance(String serverType, LoadBalanceInfo lb)

Returns a reference to a connected HarmoniApplicationClient object using the supplied channel name, algorithm constant and priority. the default archiving option of false and the default idletimeout option of false. It is not necessary to call the connect method on the client object.

getConnectedClient

public HarmoniApplicationClient getConnectedClient(java.lang.String channel,
                                                   int algorithm,
                                                   int priority,
                                                   java.lang.String svrType,
                                                   boolean fileArchive,
                                                   boolean idletimeout)
                                            throws HarmoniClientError
Deprecated. As of Harmoni 1.0, replaced by HarmoniApplicationClient.ConnectUsingLoadBalance(String serverType, LoadBalanceInfo lb)

Returns a reference to a connected HarmoniApplicationClient object using the supplied channel name, the supplied algorithm constant the supplied priority constant, ture if filereturn is to be archived false otherwise and true if idletimeout is to be disabled false otherwise. It is not necessary to call the connect method on the client object.

getReportServerName

public java.lang.String getReportServerName()
                                     throws HarmoniClientError
Deprecated. As of Parallel Crystal 2.6, replaced by getConnectedClient()

Returns the ip address of the report server to use using the default load channel name and the default load balancing algorithm of load-factor.

getReportServerName

public java.lang.String getReportServerName(int algorithm)
                                     throws HarmoniClientError
Deprecated. As of Parallel Crystal 2.6, replaced by getConnectedClient(int)

Returns the ip address of the report server to use using the default load channel name and the supplied load balancing algorithm (LoadBalancer constant).

getReportServerName

public java.lang.String getReportServerName(java.lang.String chnlName)
                                     throws HarmoniClientError
Deprecated. As of Parallel Crystal 2.6, replaced by getConnectedClient(String)

Returns the ip address of the report server to use using the supplied load channel name and the default load balancing algorithm of load-factor.

getReportServerName

public java.lang.String getReportServerName(LoadBalanceInfo lb,
                                            int priority)
                                     throws HarmoniClientError
Deprecated. As of Parallel Crystal 2.6, replaced by getConnectedClient(String)

Returns the ip address of the report server to use using the default load channel name and the supplied LoadBalanceInfo object.

getReportServerName

public java.lang.String getReportServerName(java.lang.String chnlName,
                                            int algorithm)
                                     throws HarmoniClientError
Deprecated. As of Parallel Crystal 2.6, replaced by getConnectedClient(String, int)

Returns the ip address of the report server to use using the supplied load channel name and the supplied load balancing algorithm (LoadBalancer constant).

setOrb

public void setOrb(org.omg.CORBA.ORB neworb)