Jvmstat

sun.jvmstat.monitor.event
Class VmStatusChangeEvent

java.lang.Object
  extended by java.util.EventObject
      extended by sun.jvmstat.monitor.event.HostEvent
          extended by sun.jvmstat.monitor.event.VmStatusChangeEvent
All Implemented Interfaces:
Serializable

public class VmStatusChangeEvent
extends HostEvent

Provides a description of a change in status of the Java Virtual Machines associated with a MonitoredHost.

Since:
1.5
See Also:
Serialized Form

Field Summary
protected  Set active
          The set of currently active Java Virtual Machines for the MonitoredHost.
protected  Set started
          The set of Java Virtual Machines started on MonitoredHost since the previous event.
protected  Set terminated
          The set of Java Virtual Machines terminated on MonitoredHost since the previous event.
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
VmStatusChangeEvent(MonitoredHost host, Set active, Set started, Set terminated)
          Construct a new VmStatusChangeEvent instance.
 
Method Summary
 Set getActive()
          Return the set of currently active Java Virtual Machines.
 Set getStarted()
          Return the set of Java Virtual Machines started since the last event notification.
 Set getTerminated()
          Return the set of Java Virtual Machines terminated since the last event notification.
 
Methods inherited from class sun.jvmstat.monitor.event.HostEvent
getMonitoredHost
 
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

active

protected Set active
The set of currently active Java Virtual Machines for the MonitoredHost. The set contains an Integer object holding the lvmid for each active Java Virtual Machine on the MonitoredHost. This Set will only contain Integer objects.


started

protected Set started
The set of Java Virtual Machines started on MonitoredHost since the previous event. The set contains an Integer object holding the lvmid for each Java Virtual Machine started on the MonitoredHost. This Set will only contain Integer objects.


terminated

protected Set terminated
The set of Java Virtual Machines terminated on MonitoredHost since the previous event. The set contains an Integer object holding the lvmid for each Java Virtual Machine started on the MonitoredHost. This Set will only contain Integer objects.

Constructor Detail

VmStatusChangeEvent

public VmStatusChangeEvent(MonitoredHost host,
                           Set active,
                           Set started,
                           Set terminated)
Construct a new VmStatusChangeEvent instance.

Parameters:
host - the MonitoredHost that is the source of the event.
active - the set of currently active Java Virtual Machines
started - the set of Java Virtual Machines started since the last event.
terminated - the set of Java Virtual Machines terminated since the last event.
Method Detail

getActive

public Set getActive()
Return the set of currently active Java Virtual Machines. The set contains an Integer object holding the lvmid for each active Java Virtual Machine on the MonitoredHost.

Returns:
Set - a set of Integer objects containing the lvmid of each active Java Virtual Machine on the host. If there are no active Java Virtual Machines on the host, an empty Set is returned.

getStarted

public Set getStarted()
Return the set of Java Virtual Machines started since the last event notification. The set contains an Integer object holding the lvmid for each Java Virtual Machine started on the MonitoredHost since the last event notification.

Returns:
Set - a set of Integer objects containing the lvmid of each Java Virtual Machine started on the host. If no Java Virtual Machines were recently started on the host, an empty Set is returned.

getTerminated

public Set getTerminated()
Return the set of Java Virtual Machines terminated since the last event notification. The set contains an Integer object holding the lvmid for each Java Virtual Machine terminated on the MonitoredHost since the last event notification.

Returns:
Set - a set of Integer objects containing the lvmid of each Java Virtual Machine terminated on the host. If no Java Virtual Machines were recently terminated on the host, an empty Set is returned.

Jvmstat