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

java.lang.Object
  extended bycom.sun.management.oss.impl.pm.util.ObjectIterator
      extended bycom.sun.management.oss.impl.pm.measurement.ReportInfoIteratorImpl
All Implemented Interfaces:
ReportInfoIterator, java.io.Serializable

public class ReportInfoIteratorImpl
extends ObjectIterator
implements ReportInfoIterator

Title: com.ericsson.oss Description: Copyright: Copyright (c) 2001 Company: Copyright 2001 Ericsson Radio Systems AB

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

Constructor Summary
ReportInfoIteratorImpl(ReportInfo[] ri)
           
 
Method Summary
 ReportInfo[] getNext(int how_many)
          Returns a list of measurement report information.
 
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.pm.measurement.ReportInfoIterator
remove
 

Constructor Detail

ReportInfoIteratorImpl

public ReportInfoIteratorImpl(ReportInfo[] ri)
Method Detail

getNext

public ReportInfo[] getNext(int how_many)
Description copied from interface: ReportInfoIterator
Returns a list of measurement report information.

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:
getNext in interface ReportInfoIterator
Parameters:
how_many - Maximum of items to return, the implementation can decide to return less.
Returns:
ReportInfo[] List of measurement report keys.