Jvmstat

sun.jvmstat.monitor.event
Class MonitorStatusChangeEvent

java.lang.Object
  extended by java.util.EventObject
      extended by sun.jvmstat.monitor.event.VmEvent
          extended by 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.
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
MonitorStatusChangeEvent(MonitoredVm vm, List inserted, List removed)
          Construct a new MonitorStatusChangeEvent.
 
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.
 
Methods inherited from class sun.jvmstat.monitor.event.VmEvent
getMonitoredVm
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

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.

Constructor Detail

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.
Method Detail

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.

Jvmstat