javax.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 and Description |
---|
PerfDescriptorList()
Deprecated.
Constructor
|
PerfDescriptorList(PerfDescriptor[] pds)
Deprecated.
|
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 false
|
void |
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 descriptors
|
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.
|
public PerfDescriptorList()
public PerfDescriptorList(PerfDescriptor[] pds)
public void addDescriptor(PerfDescriptor[] pds)
public boolean addDescriptor(PerfDescriptor pd)
public boolean removeDescriptor(PerfDescriptor pd)
public int numDescriptors()
public PerfDescriptor[] getDescriptors()