James Moger
2011-12-22 e6935876b97a63bae2ec087b4fc390c832aef155
src/com/gitblit/models/ServerStatus.java
@@ -17,12 +17,14 @@
import java.io.Serializable;
import java.util.Date;
import java.util.HashMap;
import java.util.Map;
import java.util.TreeMap;
import com.gitblit.Constants;
/**
 * ServerStatus encapsulates runtime status information about the server
 * including the system environment.
 * including some information about the system environment.
 * 
 * @author James Moger
 * 
@@ -32,21 +34,32 @@
   private static final long serialVersionUID = 1L;
   public final Date bootDate;
   public final long heapSize;
   public final String version;
   public final String releaseDate;
   public final boolean isGO;
   public final Map<String, String> systemProperties;
   public final long heapMaximum;
   public volatile long heapAllocated;
   public volatile long heapFree;
   public ServerStatus() {
      bootDate = new Date();
      heapSize = Runtime.getRuntime().maxMemory();
      systemProperties = new HashMap<String, String>();
   public String servletContainer;
   public ServerStatus(boolean isGO) {
      this.bootDate = new Date();
      this.version = Constants.VERSION;
      this.releaseDate = Constants.VERSION_DATE;
      this.isGO = isGO;
      this.heapMaximum = Runtime.getRuntime().maxMemory();
      this.systemProperties = new TreeMap<String, String>();
      put("file.encoding");
      put("java.home");
      put("java.io.tmpdir");