- All Known Implementing Classes:
DefaultMonitoringConfig
public interface MonitoringConfig<E>
General monitoring configuration interface.
- Author:
- Alexey Stashok
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Add the monitoring probes, which will be notified about object's lifecycle events.void
Removes all the monitoring probes, which are registered on the object.Create the JMXObject
, which represents this object.E[]
Get the the monitoring probes, which are registered on the objet.boolean
boolean
removeProbes
(E... probes) Remove the monitoring probes.
-
Method Details
-
addProbes
Add the monitoring probes, which will be notified about object's lifecycle events.- Parameters:
probes
- the monitoring probes.
-
removeProbes
Remove the monitoring probes.- Parameters:
probes
- the monitoring probes.
-
getProbes
E[] getProbes()Get the the monitoring probes, which are registered on the objet. Please note, it's not appropriate to modify the returned array's content. Please useaddProbes(Object[])
andremoveProbes(Object[])
instead.- Returns:
- the the monitoring probes, which are registered on the object.
-
hasProbes
boolean hasProbes() -
clearProbes
void clearProbes()Removes all the monitoring probes, which are registered on the object. -
createManagementObject
Object createManagementObject()Create the JMXObject
, which represents this object.- Returns:
- the JMX
Object
, which represents this object.
-