diff --git a/bindings/java/src/org/hyperic/sigar/jmx/SigarRegistry.java b/bindings/java/src/org/hyperic/sigar/jmx/SigarRegistry.java index 5dda7861..58243843 100644 --- a/bindings/java/src/org/hyperic/sigar/jmx/SigarRegistry.java +++ b/bindings/java/src/org/hyperic/sigar/jmx/SigarRegistry.java @@ -32,6 +32,7 @@ import javax.management.MBeanServer; import javax.management.ObjectInstance; import javax.management.ObjectName; +import org.hyperic.sigar.FileSystem; import org.hyperic.sigar.Sigar; import org.hyperic.sigar.SigarException; import org.hyperic.sigar.SigarLoader; @@ -197,7 +198,7 @@ public class SigarRegistry extends AbstractMBean { this.mbeanServer.registerMBean(mbean, name); this.managedBeans.add(instance.getObjectName()); } catch (Exception e) { - + e.printStackTrace(); } } @@ -230,6 +231,25 @@ public class SigarRegistry extends AbstractMBean { throw unexpectedError("CpuInfoList", e); } + //FileSystem beans + try { + FileSystem[] fslist = sigarImpl.getFileSystemList(); + for (int i=0; i