1 23 24 29 30 package com.sun.enterprise.tools.upgrade.cluster; 31 32 37 38 import java.util.*; 39 import org.w3c.dom.Element ; 40 41 public class LBInstance { 42 43 private String name; 44 private boolean enabled; 45 private int disableTimeOut; 46 private List listeners; 48 public LBInstance(Element ele) { 49 this.name = ele.getAttribute("name"); 50 this.enabled = Boolean.getBoolean(ele.getAttribute("enabled")); 51 this.disableTimeOut = Integer.getInteger(ele.getAttribute("disable-timeout-in-minutes")).intValue(); 52 listeners = new ArrayList(); 53 String listenersList = ele.getAttribute("listeners"); 54 StringTokenizer stk = new StringTokenizer(listenersList, " "); 55 while(stk.hasMoreTokens()){ 56 listeners.add(stk.nextToken()); 57 } 58 } 59 public int getDisableTimeOut() { 60 return disableTimeOut; 61 } 62 63 public boolean isEnabled() { 64 return enabled; 65 } 66 67 public java.util.List getListeners() { 68 return listeners; 69 } 70 public java.lang.String getName() { 71 return name; 72 } 73 } 74 | Popular Tags |