From 06ec8c88556b02782c7b91a233de91eaf4a1439d Mon Sep 17 00:00:00 2001
From: jvergara <jvergara@localhost>
Date: Tue, 09 Jun 2009 12:28:05 +0000
Subject: [PATCH] Fix for issue 3550 (Consider making the control panel able to manage remote servers)

---
 opends/src/server/org/opends/server/monitors/SystemInfoMonitorProvider.java |   13 +++++++++++--
 1 files changed, 11 insertions(+), 2 deletions(-)

diff --git a/opends/src/server/org/opends/server/monitors/SystemInfoMonitorProvider.java b/opends/src/server/org/opends/server/monitors/SystemInfoMonitorProvider.java
index daec30c..c1b2568 100644
--- a/opends/src/server/org/opends/server/monitors/SystemInfoMonitorProvider.java
+++ b/opends/src/server/org/opends/server/monitors/SystemInfoMonitorProvider.java
@@ -22,7 +22,7 @@
  * CDDL HEADER END
  *
  *
- *      Copyright 2006-2008 Sun Microsystems, Inc.
+ *      Copyright 2006-2009 Sun Microsystems, Inc.
  */
 package org.opends.server.monitors;
 
@@ -196,7 +196,16 @@
                               String.valueOf(runtime.totalMemory())));
     attrs.add(createAttribute("freeUsedMemory",
                               String.valueOf(runtime.freeMemory())));
-
+    String installPath = DirectoryServer.getServerRoot();
+    if (installPath != null)
+    {
+      attrs.add(createAttribute("installPath", installPath));
+    }
+    String instancePath = DirectoryServer.getInstanceRoot();
+    if (instancePath != null)
+    {
+      attrs.add(createAttribute("instancePath", instancePath));
+    }
 
     // Get the JVM input arguments.
     RuntimeMXBean rtBean = ManagementFactory.getRuntimeMXBean();

--
Gitblit v1.10.0