WeightedBalancer.java の 34 行で定義されています。
Static Public メソッド | |
final String | getWeightedXml (HashMap weights) |
final String | getRaidbXml (HashMap weights, String xmltag) |
|
Convert raidb weighted balancers into xml because they share common views.
WeightedBalancer.java の 72 行で定義されています。
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 } |
|
get different xml tags of the weights in the system.
WeightedBalancer.java の 41 行で定義されています。
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 } |