Method Summary |
|
public void | addUpdateListener(UpdateListener ul) Add an update listener to observe all monitored objects. |
public boolean | cancel() Cancel this monitor and any overhead associated with it. |
abstract protected String | createIdTag(Object identifier) Must be defined by subclasses to provide a xml representation of a
given identifier.
Parameters: identifier - an object that uniquely identifies an object on theaggregation agent. |
protected Object | getMonitoredObject(Object identifier) Get a specific object being updated by this monitor.
Parameters: identifier - an object that uniquely identifies an object on theaggregation agent. |
public Collection | getMonitoredObjects() Returns a collection of all 'live' objects currently being updated by
this monitor. |
public TimerTask | getPullTask() Get the timer task to use to periodically pull incremental updates from
the aggregation agent.
the timer task to use to periodically pull incremental updatesfrom the aggregation agent. |
public boolean | isMonitoring(Object identifier) Returns true if an object matching the given identifier is currently
being updated by this monitor.
Parameters: identifier - an object that uniquely identifies an object on theaggregation agent. |
public void | monitorAllObjects() Change mode to monitor all objects on the aggregation agent that are of
the type that this monitor handles. |
protected Object | monitorObject(Object identifier, Object monitoredObj) Monitor a new object. |
abstract protected Object | remove(Element monitoredElement) Must be defined by subclasses to define what should be done when a
remove event is reported by the aggregation agent to a object described
by the given xml element tree.
Parameters: monitoredElement - xml element tree that describes the removedmonitored object. |
public void | removeUpdateListener(UpdateListener ul) Remove an update listener such that it no longer gets notified of
changes to monitored objects. |
protected Object | stopMonitoringObject(Object identifier) Remove this object from the set of objects being monitored. |
abstract protected Object | update(Element monitoredElement) Must be defined by subclasses to define what should be done when an
update event (either add or change) is reported by the aggregation agent
to a object described by the given xml element tree.
Parameters: monitoredElement - xml element tree that describes the updatedmonitored object. |