org.objectweb.cjdbc.controller.loadbalancer
Class WeightedBalancer
java.lang.Object
org.objectweb.cjdbc.controller.loadbalancer.WeightedBalancer
- public abstract class WeightedBalancer
- extends java.lang.Object
To return information, weighted load balancers share the same kind of
information on backend configuration.
- Version:
- 1.0
- Author:
- Nicolas Modrzyk
Method Summary |
static java.lang.String |
getRaidbXml(java.util.HashMap weights,
java.lang.String xmltag)
Convert raidb weighted balancers into xml because they share common views. |
static java.lang.String |
getWeightedXml(java.util.HashMap weights)
get different xml tags of the weights in the system. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WeightedBalancer
public WeightedBalancer()
getWeightedXml
public static final java.lang.String getWeightedXml(java.util.HashMap weights)
- get different xml tags of the weights in the system.
- Parameters:
weights
- a list ((String)name,(Integer)weight) of weights
- Returns:
- xml formatted string of weighted backends
getRaidbXml
public static final java.lang.String getRaidbXml(java.util.HashMap weights,
java.lang.String xmltag)
- Convert raidb weighted balancers into xml because they share common views.
- Parameters:
weights
- hashmap of (name,weight)xmltag
- the xml tag to use
- Returns:
- xml formatted string
Copyright © 2002, 2005 - ObjectWeb Consortium - All Rights Reserved.