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

public Class VmStatusChangeEvent

extends HostEvent
Class Inheritance
Annotations
@SuppressWarnings:serial
Imports
java.util.Set, sun.jvmstat.monitor.MonitoredHost

Provides a description of a change in status of the Java Virtual Machines associated with a MonitoredHost.
Author
Brian Doherty
Since
1.5

Field Summary

Modifier and TypeField and Description
protected Set<Integer>
active

The set of currently active Java Virtual Machines for the MonitoredHost.

protected Set<Integer>
started

The set of Java Virtual Machines started on MonitoredHost since the previous event.

protected Set<Integer>
terminated

The set of Java Virtual Machines terminated on MonitoredHost since the previous event.

Constructor Summary

AccessConstructor and Description
public
VmStatusChangeEvent(MonitoredHost
the MonitoredHost that is the source of the event.
host
,
Set<Integer>
the set of currently active Java Virtual Machines
active
,
Set<Integer>
the set of Java Virtual Machines started since the last event.
started
,
Set<Integer>
the set of Java Virtual Machines terminated since the last event.
terminated
)

Construct a new VmStatusChangeEvent instance.

Method Summary

Modifier and TypeMethod and Description
public Set<Integer>

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

Return the set of currently active Java Virtual Machines.

public Set<Integer>

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

Return the set of Java Virtual Machines started since the last event notification.

public Set<Integer>

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

Return the set of Java Virtual Machines terminated since the last event notification.

Inherited from sun.jvmstat.monitor.event.HostEvent:
getMonitoredHost

Field Detail

activeback to summary
protected Set<Integer> 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.

startedback to summary
protected Set<Integer> 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.

terminatedback to summary
protected Set<Integer> 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

VmStatusChangeEventback to summary
public VmStatusChangeEvent(MonitoredHost host, Set<Integer> active, Set<Integer> started, Set<Integer> terminated)

Construct a new VmStatusChangeEvent instance.

Parameters
host:MonitoredHost

the MonitoredHost that is the source of the event.

active:Set<Integer>

the set of currently active Java Virtual Machines

started:Set<Integer>

the set of Java Virtual Machines started since the last event.

terminated:Set<Integer>

the set of Java Virtual Machines terminated since the last event.

Method Detail

getActiveback to summary
public Set<Integer> 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<Integer>

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.

getStartedback to summary
public Set<Integer> 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<Integer>

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.

getTerminatedback to summary
public Set<Integer> 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<Integer>

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.