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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PerfDescriptorList
public PerfDescriptorList()
- Constructor
PerfDescriptorList
public PerfDescriptorList(PerfDescriptor[] pds)
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