/**
* Visit reader class
*/
public void visit(BaseReader br) {
// FIXME, make as assert here about no class cast exception
LoadbalancerReader lbRdr = (LoadbalancerReader) br;
PropertyReader[] pRdrs = null;
try {
pRdrs = lbRdr.getProperties();
} catch (LbReaderException le) {
// should we throw this exception XXX ???
// or fill in with default values
}
if ((pRdrs != null) && (pRdrs.length > 0 ) ){
Property[] props = new Property[pRdrs.length];
for(int i =0; i < pRdrs.length; i++) {
props[i] = new Property();
pRdrs[i].accept( new PropertyVisitor(props[i]));
}
_lb.setProperty2(props);
}
ClusterReader[] cRdrs = null;
try {
cRdrs = lbRdr.getClusters();
} catch (LbReaderException le) {
// should we throw this exception XXX ???
// or fill in with default values
}