com.ibm.websphere.pmi.client
Class PerfDescriptorList
- java.lang.Object
-
- com.ibm.websphere.pmi.client.PerfDescriptorList
-
Deprecated.As of 6.0, PMI Client API is replaced with JMX interface and MBean StatisticsProvider model. PMI CpdCollection data structure is replaced by J2EE Performance Data Framework defined injavax.management.j2ee.statistics
package.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.
public class PerfDescriptorList extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor and Description PerfDescriptorList()
Deprecated.ConstructorPerfDescriptorList(PerfDescriptor[] pds)
Deprecated.
-
Method Summary
Methods Modifier and Type Method and Description boolean
addDescriptor(PerfDescriptor pd)
Deprecated.If pd is not in the list yet, add it and return true; otherwise, return falsevoid
addDescriptor(PerfDescriptor[] pds)
Deprecated.PerfDescriptor[]
getDescriptors()
Deprecated.It is recommanded calling this method first, cache the returned array, and use the array to repeatly get PMI data.int
numDescriptors()
Deprecated.return the number of descriptorsboolean
removeDescriptor(PerfDescriptor pd)
Deprecated.If pd (not necessary be the object itself) is found by names, remove it and return true; otherwise, return false.
-
-
-
Constructor Detail
-
PerfDescriptorList
public PerfDescriptorList()
Deprecated.Constructor
-
PerfDescriptorList
public PerfDescriptorList(PerfDescriptor[] pds)
Deprecated.
-
-
Method Detail
-
addDescriptor
public void addDescriptor(PerfDescriptor[] pds)
Deprecated.
-
addDescriptor
public boolean addDescriptor(PerfDescriptor pd)
Deprecated.If pd is not in the list yet, add it and return true; otherwise, return false
-
removeDescriptor
public boolean removeDescriptor(PerfDescriptor pd)
Deprecated.If pd (not necessary be the object itself) is found by names, remove it and return true; otherwise, return false.
-
numDescriptors
public int numDescriptors()
Deprecated.return the number of descriptors
-
getDescriptors
public PerfDescriptor[] getDescriptors()
Deprecated.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
-
-