MonitorEventpublic class MonitorEvent extends Object implements Event
Fields Summary |
---|
private static Logger | _logger | private static com.sun.enterprise.util.i18n.StringManager | sm | private ObjectName | objName | private static String | description | private static String | defaultDescription | private StatisticMonitor | sMonitor | private Monitor | monitor |
Constructors Summary |
---|
MonitorEvent(StatisticMonitor monitor, ObjectName objName, String description)
monitor.start();
try {
MBeanServerFactory.getMBeanServer().registerMBean(monitor,objName);
} catch (Exception ex) {
_logger.log(Level.WARNING,"smgt.internal_error", ex);
}
this.sMonitor = monitor;
this.objName = objName;
if (description != null)
this.description = description;
else
this.description = defaultDescription;
| MonitorEvent(Monitor monitor, ObjectName objName, String description)
monitor.start();
try {
MBeanServerFactory.getMBeanServer().registerMBean(monitor,objName);
} catch (Exception ex) {
_logger.log(Level.WARNING,"smgt.internal_error", ex);
}
this.monitor = monitor;
this.objName = objName;
if (description != null)
this.description = description;
else
this.description = defaultDescription;
|
Methods Summary |
---|
public void | destroy()
try {
if (monitor != null)
monitor.stop();
if (sMonitor != null)
sMonitor.stop();
} catch (Exception ex) {
_logger.log(Level.WARNING,"smgt.internal_error", ex);
}
try {
MBeanServerFactory.getMBeanServer().unregisterMBean(objName);
} catch (Exception ex) {
_logger.log(Level.WARNING,"smgt.internal_error", ex);
}
| public java.lang.String | getDescription()
return description;
| public javax.management.NotificationFilter | getNotificationFilter()
return null;
| public javax.management.ObjectName | getObjectName()
return objName;
| public java.lang.String | getType()
return "monitor";
|
|