src/share/classes/sun/jvmstat/monitor/event/VmStatusChangeEvent.java

Print this page

        

@@ -42,27 +42,27 @@
      * The set of currently active Java Virtual Machines for the MonitoredHost.
      * The set contains an Integer object holding the <em>lvmid</em> for each
      * active Java Virtual Machine on the MonitoredHost. This Set will only
      * contain Integer objects.
      */
-    protected Set active;
+    protected Set<Integer> active;
 
     /**
      * The set of Java Virtual Machines started on MonitoredHost since the
      * previous event. The set contains an Integer object holding the
      * <em>lvmid</em> for each Java Virtual Machine started on the
      * MonitoredHost. This Set will only contain Integer objects.
      */
-    protected Set started;
+    protected Set<Integer> started;
 
     /**
      * The set of Java Virtual Machines terminated on MonitoredHost since the
      * previous event. The set contains an Integer object holding the
      * <em>lvmid</em> for each Java Virtual Machine started on the
      * MonitoredHost. This Set will only contain Integer objects.
      */
-    protected Set terminated;
+    protected Set<Integer> terminated;
 
     /**
      * Construct a new VmStatusChangeEvent instance.
      *
      * @param host the MonitoredHost that is the source of the event.

@@ -70,12 +70,12 @@
      * @param started the set of Java Virtual Machines started since the
      *                last event.
      * @param terminated the set of Java Virtual Machines terminated since
      *                   the last event.
      */
-    public VmStatusChangeEvent(MonitoredHost host, Set active,
-                               Set started, Set terminated) {
+    public VmStatusChangeEvent(MonitoredHost host, Set<Integer> active,
+                               Set<Integer> started, Set<Integer> terminated) {
         super(host);
         this.active = active;
         this.started = started;
         this.terminated = terminated;
     }

@@ -88,11 +88,11 @@
      * @return Set - a set of Integer objects containing the <em>lvmid</em>
      *               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 getActive() {
+    public Set<Integer> getActive() {
         return active;
     }
 
     /**
      * Return the set of Java Virtual Machines started since the last

@@ -103,11 +103,11 @@
      * @return Set - a set of Integer objects containing the <em>lvmid</em>
      *               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 getStarted() {
+    public Set<Integer> getStarted() {
         return started;
     }
 
     /**
      * Return the set of Java Virtual Machines terminated since the last

@@ -118,9 +118,9 @@
      * @return Set - a set of Integer objects containing the <em>lvmid</em>
      *               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.
      */
-    public Set getTerminated() {
+    public Set<Integer> getTerminated() {
         return terminated;
     }
 }