public class DefaultMonitoringConfig<E> extends Object implements MonitoringConfig<E>
createManagementObject() method returns null, so if a child
class requires JMX support, it has to implement this method properly.| Constructor and Description |
|---|
DefaultMonitoringConfig(Class<E> clazz) |
| Modifier and Type | Method and Description |
|---|---|
void |
addProbes(E... probes)
Add the monitoring probes, which will be notified about object's lifecycle events.
|
void |
clearProbes()
Removes all the monitoring probes, which are registered on the object.
|
Object |
createManagementObject()
Create the JMX
Object, which represents this object. |
E[] |
getProbes()
Get the the monitoring probes, which are registered on the objet.
|
E[] |
getProbesUnsafe()
Get the monitoring probes array (direct).
|
boolean |
hasProbes() |
boolean |
removeProbes(E... probes)
Remove the monitoring probes.
|
public final void addProbes(E... probes)
addProbes in interface MonitoringConfig<E>probes - the monitoring probes.public final boolean removeProbes(E... probes)
removeProbes in interface MonitoringConfig<E>probes - the monitoring probes.public final E[] getProbes()
MonitoringConfig.addProbes(Object[]) and
MonitoringConfig.removeProbes(Object[]) instead.getProbes in interface MonitoringConfig<E>public final E[] getProbesUnsafe()
public boolean hasProbes()
hasProbes in interface MonitoringConfig<E>public final void clearProbes()
clearProbes in interface MonitoringConfig<E>public Object createManagementObject()
Object, which represents this object.createManagementObject in interface MonitoringConfig<E>Object, which represents this object.Copyright © 2015 Oracle Corporation. All Rights Reserved.