sun.jvmstat.monitor.event
Class MonitorStatusChangeEvent
java.lang.Object
java.util.EventObject
sun.jvmstat.monitor.event.VmEvent
sun.jvmstat.monitor.event.MonitorStatusChangeEvent
- All Implemented Interfaces:
- Serializable
public class MonitorStatusChangeEvent
- extends VmEvent
Provides a description of a change in status of the instrumentation
exported by the MonitoredVm.
- Since:
- 1.5
- See Also:
- Serialized Form
Field Summary |
protected List |
inserted
List of instrumentation objects inserted since the last event. |
protected List |
removed
List of instrumentation objects removed since the last event. |
Method Summary |
List |
getInserted()
Return the list of instrumentation objects that were inserted
since the last event notification. |
List |
getRemoved()
Return the set of instrumentation objects that were removed
since the last event notification. |
inserted
protected List inserted
- List of instrumentation objects inserted since the last event.
Elements of this list will always be of type Monitor.
removed
protected List removed
- List of instrumentation objects removed since the last event.
Elements of this list will always be of type Monitor.
MonitorStatusChangeEvent
public MonitorStatusChangeEvent(MonitoredVm vm,
List inserted,
List removed)
- Construct a new MonitorStatusChangeEvent.
- Parameters:
vm
- the MonitoredVm source of the event.inserted
- the list of instrumentation objects inserted since
the last event.removed
- the list of instrumentation objects removed since
the last event.
getInserted
public List getInserted()
- Return the list of instrumentation objects that were inserted
since the last event notification.
- Returns:
- List - a List of Monitor objects that were inserted into the
instrumentation exported by the MonitoredHost. If no
new instrumentation was inserted, an emply List is
returned.
getRemoved
public List getRemoved()
- Return the set of instrumentation objects that were removed
since the last event notification.
- Returns:
- List - a List of Monitor objects that were removed from the
instrumentation exported by the MonitoredHost. If no
instrumentation was removed, an emply List is returned.