1 17 package org.apache.jmeter.visualizers; 18 19 import java.io.Serializable ; 20 21 public class MonitorStats implements Serializable 22 { 23 24 public int health; 25 public int load; 26 public int cpuload; 27 public int memload; 28 public int threadload; 29 public String host; 30 public String port; 31 public String protocol; 32 public long timestamp; 33 34 37 public MonitorStats() 38 { 39 super(); 40 } 41 42 54 public MonitorStats(int health, 55 int load, 56 int cpuload, 57 int memload, 58 int threadload, 59 String host, 60 String port, 61 String protocol, 62 long time){ 63 this.health = health; 64 this.load = load; 65 this.cpuload = cpuload; 66 this.memload = memload; 67 this.threadload = threadload; 68 this.host = host; 69 this.port = port; 70 this.protocol = protocol; 71 this.timestamp = time; 72 } 73 74 79 public String getURL(){ 80 return protocol + "://" + host + ":" + port; 81 } 82 } 83 | Popular Tags |