1 2 12 package com.versant.core.jdo; 13 14 import java.io.Serializable ; 15 import java.util.Date ; 16 17 21 public class PmfStatus implements Serializable { 22 23 private String server; 24 private Date date; 25 private int freeK; 26 private int totalK; 27 28 public PmfStatus() { 29 date = new Date (); 30 freeK = (int)(Runtime.getRuntime().freeMemory() >> 10); 31 totalK = (int)(Runtime.getRuntime().totalMemory() >> 10); 32 } 33 34 public String getServer() { 35 return server; 36 } 37 38 public void setServer(String server) { 39 this.server = server; 40 } 41 42 public Date getDate() { 43 return date; 44 } 45 46 public int getFreeK() { 47 return freeK; 48 } 49 50 public int getTotalK() { 51 return totalK; 52 } 53 54 } 55 | Popular Tags |