public class CpHostsPowerProbe extends AbstractProbe<Long> implements ModifiableProbe<Long>, PowerProbe
This implementation relies on HostPowerProbe
to update its value.
NotifierImpl.NotifyEvent
Constructor and Description |
---|
CpHostsPowerProbe() |
Modifier and Type | Method and Description |
---|---|
String |
getKey()
Returns a key that defines what kind of information this probe contains.
|
void |
setup(Probed parent)
Setups the probe and sets its parent to the given one.
|
void |
setValue(Long value)
Updates the probe's value.
|
discard, getValue
clone, getParent, isDiscarded, toString
addGlobalListener, addListener, cancelNotifications, cleanupListeners, disableNotifications, enableNotifications, getGlobalListeners, getListeners, isNotificationsDisabled, notify, notifyNow, removeAllGlobalListeners, removeAllListeners, removeAllListeners, removeGlobalListener, removeListener
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
discard, getParent, getValue, isDiscarded
addGlobalListener, addListener, cancelNotifications, cleanupListeners, clone, disableNotifications, enableNotifications, getGlobalListeners, getListeners, isNotificationsDisabled, notify, notifyNow, removeAllGlobalListeners, removeAllListeners, removeAllListeners, removeGlobalListener, removeListener
public static final String KEY
public void setup(Probed parent)
Probe
setup
in interface Probe<Long>
setup
in class AbstractProbe<Long>
Probe.isDiscarded()
public void setValue(Long value)
ModifiableProbe
A CoreNotificationCodes.PROBE_VALUE_CHANGED
is thrown.
setValue
in interface ModifiableProbe<Long>
Probe.isDiscarded()