1 2 12 package com.versant.core.jdo; 13 14 import java.io.Serializable ; 15 16 20 public class PoolStatus implements Serializable { 21 22 private String datastore; 23 private int active; 24 private int maxActive; 25 private int idle; 26 private int maxIdle; 27 28 public PoolStatus() { 29 } 30 31 public PoolStatus(String datastore) { 32 this.datastore = datastore; 33 } 34 35 public void fill(int maxActive, int active, int maxIdle, int idle) { 36 this.maxActive = maxActive; 37 this.active = active; 38 this.maxIdle = maxIdle; 39 this.idle = idle; 40 } 41 42 public String getDatastore() { 43 return datastore; 44 } 45 46 public int getActive() { 47 return active; 48 } 49 50 public int getMaxActive() { 51 return maxActive; 52 } 53 54 public String getActiveStr() { 55 return active + "/" + maxActive; 56 } 57 58 public int getIdle() { 59 return idle; 60 } 61 62 public int getMaxIdle() { 63 return maxIdle; 64 } 65 66 public String getIdleStr() { 67 return idle + "/" + maxIdle; 68 } 69 70 public String toString() { 71 return datastore + " active " + active + "/" + maxActive + 72 " idle " + idle + "/" + maxIdle; 73 } 74 } 75 76 | Popular Tags |