クラス org.objectweb.cjdbc.controller.loadbalancer.WeightedBalancer

すべてのメンバ一覧

説明

To return information, weighted load balancers share the same kind of information on backend configuration.

作者:
Nicolas Modrzyk
バージョン:
1.0

WeightedBalancer.java34 行で定義されています。

Static Public メソッド

final String getWeightedXml (HashMap weights)
final String getRaidbXml (HashMap weights, String xmltag)


メソッド

final String org.objectweb.cjdbc.controller.loadbalancer.WeightedBalancer.getRaidbXml HashMap  weights,
String  xmltag
[static]
 

Convert raidb weighted balancers into xml because they share common views.

引数:
weights hashmap of (name,weight)
xmltag the xml tag to use
戻り値:
xml formatted string

WeightedBalancer.java72 行で定義されています。

00073   {
00074     StringBuffer info = new StringBuffer();
00075     info.append("<" + xmltag + ">");
00076     info.append(WeightedBalancer.getWeightedXml(weights));
00077     info.append("</" + xmltag + ">");
00078     return info.toString();
00079   }

final String org.objectweb.cjdbc.controller.loadbalancer.WeightedBalancer.getWeightedXml HashMap  weights  )  [static]
 

get different xml tags of the weights in the system.

引数:
weights a list ((String)name,(Integer)weight) of weights
戻り値:
xml formatted string of weighted backends

WeightedBalancer.java41 行で定義されています。

00042   {
00043     if (weights == null)
00044       return "";
00045     StringBuffer info = new StringBuffer();
00046     String nametmp;
00047     for (Iterator iterator = weights.keySet().iterator(); iterator.hasNext();)
00048     {
00049       nametmp = (String) iterator.next();
00050       info.append(
00051         "<"
00052           + DatabasesXmlTags.ELT_BackendWeight
00053           + " "
00054           + DatabasesXmlTags.ATT_name
00055           + "=\""
00056           + nametmp
00057           + "\" "
00058           + DatabasesXmlTags.ATT_weight
00059           + "=\""
00060           + weights.get(nametmp)
00061           + "\"/>");
00062     }
00063     return info.toString();
00064   }


このクラスの説明は次のファイルから生成されました:
CJDBCversion1.0rc6に対してWed May 5 18:02:20 2004に生成されました。 doxygen 1.3.6