com.ibm.websphere.pmi.client
Class PerfDescriptorList

java.lang.Object
  |
  +--com.ibm.websphere.pmi.client.PerfDescriptorList

public class PerfDescriptorList
extends java.lang.Object

The PerfDescriptorList is a 4.0 class and will be supported in 5.0. It has an ArrayList to help maintaining all the PerfDescriptors.

Note: it is recommanded you call getDescriptors first and cache the PerfDescriptor array and then repeatedly calling gets methods on the PerfDescriptor array instead of PerfDescriptorList.


Constructor Summary
PerfDescriptorList()
          Constructor
PerfDescriptorList(PerfDescriptor[] pds)
           
 
Method Summary
 boolean addDescriptor(PerfDescriptor pd)
          If pd is not in the list yet, add it and return true; otherwise, return false
 void addDescriptor(PerfDescriptor[] pds)
           
 PerfDescriptor[] getDescriptors()
          It is recommanded calling this method first, cache the returned array, and use the array to repeatly get PMI data.
 int numDescriptors()
          return the number of descriptors
 boolean removeDescriptor(PerfDescriptor pd)
          If pd (not necessary be the object itself) is found by names, remove it and return true; otherwise, return false.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PerfDescriptorList

public PerfDescriptorList()
Constructor


PerfDescriptorList

public PerfDescriptorList(PerfDescriptor[] pds)
Method Detail

addDescriptor

public void addDescriptor(PerfDescriptor[] pds)

addDescriptor

public boolean addDescriptor(PerfDescriptor pd)
If pd is not in the list yet, add it and return true; otherwise, return false


removeDescriptor

public boolean removeDescriptor(PerfDescriptor pd)
If pd (not necessary be the object itself) is found by names, remove it and return true; otherwise, return false.


numDescriptors

public int numDescriptors()
return the number of descriptors


getDescriptors

public PerfDescriptor[] getDescriptors()
It is recommanded calling this method first, cache the returned array, and use the array to repeatly get PMI data. Using the list itself to repeatly query PMI data will create extra temporary objects.

Returns:
all the PerfDescriptors in an array


 

WebSphere is a trademark of the IBM Corporation in the United States, other countries, or both.

 

IBM is a trademark of the IBM Corporation in the United States, other countries, or both.