add NetInfo MBean

This commit is contained in:
Doug MacEachern 2008-10-08 14:11:17 +00:00
parent d08a3cf189
commit 5deb0a0c97
1 changed files with 7 additions and 0 deletions

View File

@ -273,6 +273,13 @@ public class SigarRegistry extends AbstractMBean {
throw unexpectedError("NetInterfaceList", e);
}
//network info bean
ReflectedMBean mbean = new ReflectedMBean(sigarImpl, "NetInfo");
try {
mbean.putAttribute("FQDN", sigarImpl.getFQDN());
} catch (SigarException e) {
}
registerMBean(mbean);
//physical memory bean
registerMBean(new ReflectedMBean(sigarImpl, "Mem"));
//swap memory bean