See: Description
Interface | Description |
---|---|
MonitoringLevelListener |
Implementation of this interface enables notifications to
be received for change in monitoring level from a prior
level to a new one.
|
MonitoringRegistry |
Provides component specific methods to enable components to register their
Stats implementations for monitoring.
|
StatsHolder |
Provides the ability to associate various j2ee components
and sub components in a hierarchical tree.
|
Class | Description |
---|---|
MonitoredObjectType |
MonitoredObjectType represents the type of a monitored object.
|
MonitoringLevel |
Provides enumerated constants related to various levels
at which monitoring could be set
|
Exception | Description |
---|---|
MonitoringRegistrationException |
Exception class to encompass exception events occuring while employing the
MonitoringRegistrationHelper to register or unregister Stats components
|
import com.sun.enterprise.server.ApplicationServer;// (appserver-core
module)
import com.sun.enterprise.server.ServerContext; // (appserv-core module)
import com.sun.enterprise.server.admin.monitor.registry.MonitoringRegistry;//(admin-core module
-compile time dependency)
...
final MonitoringRegistry registry = ApplicationServer.getServerContext().getMonitoringRegistry(); // returns an
implementation.
registry.registerEJBStats( ...);
The magnitude of monitoring and corresponding number of attributes involved
in monitoring is dependent on the level at which monitoring of each component
is set. A change in monitoring level to OFF, LOW or HIGH
from a prior setting results in a change in the extent to which monitoring
is performed for that component. Following each such change in state, the
J2EE server component has to unregister its previous Stats implementation. The MonitoringRegistrationHelper unregisters the DynamicMBean from the MBeanServer as a result. If the change in state results in monitoring level being either HIGH or LOW(i.e. not OFF), the component will now register a Stats implementation that reflects the higher or lower set of attributes that are monitored. The MonitoringRegistrationHelper will now generate a new DynamicMBean that will expose the revised higher or lower level of observed attributes as a result of the change in setting.
setLevel
method. Implementations will be notified of changes in monitoring level through this method.Copyright © 2020. All rights reserved.