com.sun.management.oss.impl.pm.measurement
Class PerformanceMonitorValueIteratorImpl

java.lang.Object
  extended bycom.sun.management.oss.impl.pm.util.ObjectIterator
      extended bycom.sun.management.oss.impl.ManagedEntityValueIteratorImpl
          extended bycom.sun.management.oss.impl.pm.measurement.PerformanceMonitorValueIteratorImpl
All Implemented Interfaces:
ManagedEntityValueIterator, PerformanceMonitorValueIterator, java.io.Serializable

public class PerformanceMonitorValueIteratorImpl
extends ManagedEntityValueIteratorImpl
implements PerformanceMonitorValueIterator

Title: JSR090 Reference Implementation Description: Copyright: Copyright 2001 Ericsson Radio Systems AB Company: Ericsson

Version:
0.2
Author:
Andreas Jirven, Anna Eriksson, Ali Feizabadi
See Also:
Serialized Form

Constructor Summary
PerformanceMonitorValueIteratorImpl(PerformanceMonitorValue[] measurementJobs)
           
 
Method Summary
 PerformanceMonitorValue[] getNextPerformanceMonitors(int how_many)
          Returns a list of measurement jobs.
 
Methods inherited from class com.sun.management.oss.impl.ManagedEntityValueIteratorImpl
getNext
 
Methods inherited from class com.sun.management.oss.impl.pm.util.ObjectIterator
getNextValue, remove
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.sun.management.oss.ManagedEntityValueIterator
getNext, remove
 

Constructor Detail

PerformanceMonitorValueIteratorImpl

public PerformanceMonitorValueIteratorImpl(PerformanceMonitorValue[] measurementJobs)
Method Detail

getNextPerformanceMonitors

public PerformanceMonitorValue[] getNextPerformanceMonitors(int how_many)
Description copied from interface: PerformanceMonitorValueIterator
Returns a list of measurement jobs.

The function takes one argument that specifies the most number of items to return. The implementation can decide to return less or the requested number of items.

If zero is specified and empty list is returned.

If the iteration is empty or has reached then end, an empty array is returned.

If the argument is greater than the number of item in the iterator then all or implementation decided number of items are returned.

If the agreement plus the cursor of the iterator is greater than the number of item in the iterator, all or implementation decided number of items from the cursor to the end is returned.

Specified by:
getNextPerformanceMonitors in interface PerformanceMonitorValueIterator
Parameters:
how_many - Maximum of items to return, the implementation can decide to return less.
Returns:
PerformanceMonitorValue[] List of measurement jobs.