FileDocCategorySizeDatePackage
LBCluster.javaAPI DocGlassfish v2 API3515Fri May 04 22:35:04 BST 2007com.sun.enterprise.tools.upgrade.cluster

LBCluster

public class LBCluster extends Object
This class represents a cluster element in loadbalancer
author
prakash

Fields Summary
private List
instances
private List
webModules
private LBHealthChecker
healthChecker
Constructors Summary
public LBCluster(Element clusterElement)
Creates a new instance of LBCluster

        instances = new ArrayList();
        webModules = new ArrayList();
        NodeList inEles = clusterElement.getElementsByTagName("instance");
        for(int lh =0; lh < inEles.getLength(); lh++){
            instances.add(new LBInstance((Element)inEles.item(lh)));
        }
        NodeList webEles = clusterElement.getElementsByTagName("web-module");
        for(int ih =0; ih < webEles.getLength(); ih++){
            webModules.add(new LBWebModule((Element)webEles.item(ih)));
        }
        NodeList helEles = clusterElement.getElementsByTagName("health-checker");
        for(int ih =0; ih < helEles.getLength(); ih++){
            // There should either zero or one health-checker.
            healthChecker = new LBHealthChecker((Element)helEles.item(ih));
        }
    
Methods Summary
public LBHealthCheckergetHealthChecker()

        return healthChecker;
    
public java.util.ListgetInstances()

        return instances;
    
public java.util.ListgetWebModules()

        return webModules;