com.ibm.websphere.pmi.client

Class PerfDescriptorList

  1. java.lang.Object
  2. extended bycom.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 in 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.

  1. public class PerfDescriptorList
  2. extends java.lang.Object

Constructor Summary

Constructor and Description
PerfDescriptorList()
Deprecated. Constructor
PerfDescriptorList(PerfDescriptor[] pds)
Deprecated.

Method Summary

Modifier and Type Method and Description
  1. boolean
addDescriptor(PerfDescriptor pd)
Deprecated. If pd is not in the list yet, add it and return true; otherwise, return false
  1. void
addDescriptor(PerfDescriptor[] pds)
Deprecated.
  1. PerfDescriptor[]
getDescriptors()
Deprecated. It is recommanded calling this method first, cache the returned array, and use the array to repeatly get PMI data.
  1. int
numDescriptors()
Deprecated. return the number of descriptors
  1. 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.
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail

PerfDescriptorList

  1. public PerfDescriptorList()
Deprecated.
Constructor

PerfDescriptorList

  1. public PerfDescriptorList(PerfDescriptor[] pds)
Deprecated.

Method Detail

addDescriptor

  1. public void addDescriptor(PerfDescriptor[] pds)
Deprecated.

addDescriptor

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

removeDescriptor

  1. 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

  1. public int numDescriptors()
Deprecated.
return the number of descriptors

getDescriptors

  1. 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