1 23 24 29 30 package com.sun.enterprise.tools.upgrade.cluster; 31 32 36 37 import java.util.*; 38 import org.w3c.dom.Element ; 39 40 public class LBHealthChecker { 41 42 private String url; 43 private int timout; 44 private int interval; 45 46 public LBHealthChecker(Element ele) { 47 this.url = ele.getAttribute("context-root"); 48 this.interval = Integer.getInteger(ele.getAttribute("interval-in-seconds")).intValue(); 49 this.timout = Integer.getInteger(ele.getAttribute("timeout-in-seconds")).intValue(); 50 } 51 public int getInterval() { 52 return interval; 53 } 54 public int getTimout() { 55 return timout; 56 } 57 public java.lang.String getUrl() { 58 return url; 59 } 60 } 61 | Popular Tags |