Beispiel #1
0
 /** Returns a list of attributes of a named MBean. */
 public AttributeList getAttributes(ObjectName name, String[] attributes) throws IOException {
   AttributeList list = null;
   try {
     list = server.getAttributes(name, attributes);
   } catch (InstanceNotFoundException e) {
     // TODO: A MBean may have been unregistered.
     // need to set up listener to listen for MBeanServerNotification.
   } catch (ReflectionException e) {
     // TODO: should log the error
   }
   return list;
 }