public class

VmStatusChangeEvent

extends HostEvent
java.lang.Object
   ↳ java.util.EventObject
     ↳ sun.jvmstat.monitor.event.HostEvent
       ↳ sun.jvmstat.monitor.event.VmStatusChangeEvent

Class Overview

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

Summary

Fields
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.
[Expand]
Inherited Fields
From class java.util.EventObject
Public Constructors
VmStatusChangeEvent(MonitoredHost host, Set active, Set started, Set terminated)
Construct a new VmStatusChangeEvent instance.
Public Methods
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.
[Expand]
Inherited Methods
From class sun.jvmstat.monitor.event.HostEvent
From class java.util.EventObject
From class java.lang.Object

Fields

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.

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.

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.

Public Constructors

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.

Public Methods

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.

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.

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.