From 4c835e61e8ea2d5af2acf0c85c3c1f0d06f419df Mon Sep 17 00:00:00 2001
From: James Moger <james.moger@gitblit.com>
Date: Wed, 26 Oct 2011 17:19:55 -0400
Subject: [PATCH] Documentation.
---
src/com/gitblit/models/ServerStatus.java | 21 +++++++++++++--------
1 files changed, 13 insertions(+), 8 deletions(-)
diff --git a/src/com/gitblit/models/ServerStatus.java b/src/com/gitblit/models/ServerStatus.java
index b1dc52d..1c40b5f 100644
--- a/src/com/gitblit/models/ServerStatus.java
+++ b/src/com/gitblit/models/ServerStatus.java
@@ -17,12 +17,12 @@
import java.io.Serializable;
import java.util.Date;
-import java.util.HashMap;
import java.util.Map;
+import java.util.TreeMap;
/**
* ServerStatus encapsulates runtime status information about the server
- * including the system environment.
+ * including some information about the system environment.
*
* @author James Moger
*
@@ -33,20 +33,25 @@
public final Date bootDate;
- public final long heapSize;
-
- public final Map<String, String> systemProperties;
+ public final boolean isGO;
+ public final Map<String, String> systemProperties;
+
+ public final long heapMaximum;
+
public volatile long heapAllocated;
public volatile long heapFree;
+
+ public String servletContainer;
- public ServerStatus() {
+ public ServerStatus(boolean isGO) {
bootDate = new Date();
+ this.isGO = isGO;
- heapSize = Runtime.getRuntime().maxMemory();
+ heapMaximum = Runtime.getRuntime().maxMemory();
- systemProperties = new HashMap<String, String>();
+ systemProperties = new TreeMap<String, String>();
put("file.encoding");
put("java.home");
put("java.io.tmpdir");
--
Gitblit v1.9.1