Top Description Fields Constructors Methods
sun.jvmstat.monitor.event

public Class MonitorStatusChangeEvent

extends VmEvent
Class Inheritance
Annotations
@SuppressWarnings:serial
Imports
java.util.List, sun.jvmstat.monitor.MonitoredVm, .Monitor

Provides a description of a change in status of the instrumentation exported by the MonitoredVm.
Author
Brian Doherty
Since
1.5

Field Summary

Modifier and TypeField and Description
protected List<Monitor>
inserted

List of instrumentation objects inserted since the last event.

protected List<Monitor>
removed

List of instrumentation objects removed since the last event.

Constructor Summary

AccessConstructor and Description
public
MonitorStatusChangeEvent(MonitoredVm
the MonitoredVm source of the event.
vm
,
List<Monitor>
the list of instrumentation objects inserted since the last event.
inserted
,
List<Monitor>
the list of instrumentation objects removed since the last event.
removed
)

Construct a new MonitorStatusChangeEvent.

Method Summary

Modifier and TypeMethod and Description
public List<Monitor>

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.
getInserted
()

Return the list of instrumentation objects that were inserted since the last event notification.

public List<Monitor>

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.
getRemoved
()

Return the set of instrumentation objects that were removed since the last event notification.

Inherited from sun.jvmstat.monitor.event.VmEvent:
getMonitoredVm

Field Detail

insertedback to summary
protected List<Monitor> inserted

List of instrumentation objects inserted since the last event. Elements of this list will always be of type Monitor.

removedback to summary
protected List<Monitor> removed

List of instrumentation objects removed since the last event. Elements of this list will always be of type Monitor.

Constructor Detail

MonitorStatusChangeEventback to summary
public MonitorStatusChangeEvent(MonitoredVm vm, List<Monitor> inserted, List<Monitor> removed)

Construct a new MonitorStatusChangeEvent.

Parameters
vm:MonitoredVm

the MonitoredVm source of the event.

inserted:List<Monitor>

the list of instrumentation objects inserted since the last event.

removed:List<Monitor>

the list of instrumentation objects removed since the last event.

Method Detail

getInsertedback to summary
public List<Monitor> getInserted()

Return the list of instrumentation objects that were inserted since the last event notification.

Returns:List<Monitor>

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.

getRemovedback to summary
public List<Monitor> getRemoved()

Return the set of instrumentation objects that were removed since the last event notification.

Returns:List<Monitor>

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.