com.mobileapps.pcre
Class LoadBalancer
java.lang.Object
|
+--com.mobileapps.pcre.LoadBalancer
- public class LoadBalancer
- extends java.lang.Object
|
Method Summary |
PCREApplicationClient |
getConnectedClient()
Returns a reference to a connected PCREApplicationClient object
using the default load channel name "pcre_loadbalancer_p"
and the default load balancing algorithm of load-factor. |
PCREApplicationClient |
getConnectedClient(int algorithm)
Returns a reference to a connected PCREApplicationClient object
using the default load channel name "pcre_loadbalancer_p"
and the supplied algorithm constant. |
PCREApplicationClient |
getConnectedClient(java.lang.String chnlName)
Returns a reference to a connected PCREApplicationClient object
using the supplied channel name
and the default load balancing algorithm of load-factor. |
PCREApplicationClient |
getConnectedClient(java.lang.String channel,
int algorithm)
Returns a reference to a connected PCREApplicationClient object
using the supplied channel name
and the supplied algorithm constant. |
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(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) |
| Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
LOAD_FACTOR
public static final int LOAD_FACTOR
ROUND_ROBIN
public static final int ROUND_ROBIN
LoadBalancer
public LoadBalancer()
- Thread safe constructor.
getConnectedClient
public PCREApplicationClient getConnectedClient()
throws PCREClientError
- Returns a reference to a connected PCREApplicationClient object
using the default load channel name "pcre_loadbalancer_p"
and the default load balancing algorithm of load-factor. It is not necessary
to call the connect method on the client object.
getConnectedClient
public PCREApplicationClient getConnectedClient(int algorithm)
throws PCREClientError
- Returns a reference to a connected PCREApplicationClient object
using the default load channel name "pcre_loadbalancer_p"
and the supplied algorithm constant. It is not necessary
to call the connect method on the client object.
getConnectedClient
public PCREApplicationClient getConnectedClient(java.lang.String chnlName)
throws PCREClientError
- Returns a reference to a connected PCREApplicationClient object
using the supplied channel name
and the default load balancing algorithm of load-factor. It is not necessary
to call the connect method on the client object.
getConnectedClient
public PCREApplicationClient getConnectedClient(java.lang.String channel,
int algorithm)
throws PCREClientError
- Returns a reference to a connected PCREApplicationClient object
using the supplied channel name
and the supplied algorithm constant. It is not necessary
to call the connect method on the client object.
getReportServerName
public java.lang.String getReportServerName()
throws PCREClientError
- 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 PCREClientError
- 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 PCREClientError
- 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(java.lang.String chnlName,
int algorithm)
throws PCREClientError
- 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).