You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by st...@locus.apache.org on 2000/03/25 13:50:21 UTC
cvs commit: xml-cocoon/src/org/apache/cocoon/store MemoryStore.java
stefano 00/03/25 04:50:21
Modified: src/org/apache/cocoon/store MemoryStore.java
Log:
more info on memory
Revision Changes Path
1.9 +6 -3 xml-cocoon/src/org/apache/cocoon/store/MemoryStore.java
Index: MemoryStore.java
===================================================================
RCS file: /home/cvs/xml-cocoon/src/org/apache/cocoon/store/MemoryStore.java,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -r1.8 -r1.9
--- MemoryStore.java 2000/02/23 00:50:50 1.8
+++ MemoryStore.java 2000/03/25 12:50:21 1.9
@@ -1,4 +1,4 @@
-/*-- $Id: MemoryStore.java,v 1.8 2000/02/23 00:50:50 stefano Exp $ --
+/*-- $Id: MemoryStore.java,v 1.9 2000/03/25 12:50:21 stefano Exp $ --
============================================================================
The Apache Software License, Version 1.1
@@ -66,7 +66,7 @@
* sending a note about a method to do it.
*
* @author <a href="mailto:stefano@apache.org">Stefano Mazzocchi</a>
- * @version $Revision: 1.8 $ $Date: 2000/02/23 00:50:50 $
+ * @version $Revision: 1.9 $ $Date: 2000/03/25 12:50:21 $
*/
public class MemoryStore implements Store, Status {
@@ -214,8 +214,11 @@
* Returns the signature of this store implementation
*/
public String getStatus() {
+ // give back info on the total memory used.
StringBuffer buffer = new StringBuffer();
- buffer.append("Memory Object Storage System<br>");
+ buffer.append("Memory Object Storage System:<br>");
+ buffer.append("Minimum required free memory: " + memory + "<br>");
+ buffer.append("Current free memory: " + this.jvm.freeMemory() + "<br>");
Enumeration e = list();
while (e.hasMoreElements()) {
buffer.append("<li>");