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

LBInstance

public class LBInstance extends Object
This class represents instance element in loadbalancer.
author
prakash

Fields Summary
private String
name
private boolean
enabled
private int
disableTimeOut
private List
listeners
Constructors Summary
public LBInstance(Element ele)
Creates a new instance of LBInstance

        this.name = ele.getAttribute("name");
        this.enabled = Boolean.getBoolean(ele.getAttribute("enabled"));
        this.disableTimeOut = Integer.getInteger(ele.getAttribute("disable-timeout-in-minutes")).intValue();
        listeners = new ArrayList();
        String listenersList = ele.getAttribute("listeners");
        StringTokenizer stk = new StringTokenizer(listenersList, " ");
        while(stk.hasMoreTokens()){
            listeners.add(stk.nextToken());
        }
    
Methods Summary
public intgetDisableTimeOut()

        return disableTimeOut;
    
public java.util.ListgetListeners()

        return listeners;
    
public java.lang.StringgetName()

        return name;
    
public booleanisEnabled()

        return enabled;