com.adventnet.utils.jmx
Class ExtendedTabularData

java.lang.Object
  |
  +--javax.jmx.openmbean.TabularData
        |
        +--com.adventnet.utils.jmx.ExtendedTabularData

public class ExtendedTabularData
extends TabularData
implements java.io.Serializable

This ExtendedTabularData Class extends the Tabular Data. This class is re-constructing the TabularData Object that adding the new column "rowId"

See Also:
Serialized Form

Field Summary
(package private)  TabularParameterInfo tempTabParam
           
 
Constructor Summary
ExtendedTabularData(TabularParameterInfo parameterInf, CompositeData[] comDatas)
          In here we are constructing the TabularDara.
 
Method Summary
 void addRow(java.lang.Object[] index, CompositeData comp)
          Here we are adding new row in the hashtable
 boolean containsRow(java.lang.Object[] index)
          Checks whether or not there is a row which matches the key (ie., the index array) exists in this TabularData.
 CompositeData deleteRow(java.lang.Object[] index)
          Here we are deleting the index data from the hash table
 java.util.Enumeration enumerate()
          Here we are enumerating the hashtable data
 CompositeData getRow(java.lang.Object[] index)
          Here we are getting the CompositeData
 TabularParameterInfo getTabularParameterInfo()
          Here we are getting the TabularParameterInfo
 void setTabularData(TabularParameterInfo parameterInfo, CompositeData[] rows)
          In here we are constructing the hashtable.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

tempTabParam

TabularParameterInfo tempTabParam
Constructor Detail

ExtendedTabularData

public ExtendedTabularData(TabularParameterInfo parameterInf,
                           CompositeData[] comDatas)
                    throws java.lang.Exception
In here we are constructing the TabularDara.
Parameters:
TabularParameterInfo - In this Object is holding the TabularParameterInfo
CompositeData - In this compositedata object array holding the CompositeData details
Method Detail

setTabularData

public void setTabularData(TabularParameterInfo parameterInfo,
                           CompositeData[] rows)
                    throws java.lang.Exception
In here we are constructing the hashtable. In this method receiving the TabularParameterInfo, CompositeData as a Object.In this method hashtable one having the index value and the CompositeData hashtable two having the index value and index Object(As a Object)
Parameters:
TabularParameterInfo - Here we are passing the TabularParameterInfo as a Object
CompositeData - Here we are passing the array CompositeData as a Object
Returns:
void

getRow

public CompositeData getRow(java.lang.Object[] index)
Here we are getting the CompositeData
Overrides:
getRow in class TabularData
Parameters:
Object - we are passing the array of index object
Returns:
CompositeData Here we are returning the CompositeData as a Object

containsRow

public boolean containsRow(java.lang.Object[] index)
Description copied from class: TabularData
Checks whether or not there is a row which matches the key (ie., the index array) exists in this TabularData.
Overrides:
containsRow in class TabularData
Tags copied from class: TabularData
Parameters:
index - the arrray of objects which index one row.
Returns:
boolean true if row exists for the corresponding index

enumerate

public java.util.Enumeration enumerate()
Here we are enumerating the hashtable data
Overrides:
enumerate in class TabularData
Returns:
Enumeration Here returning the Enumeration

getTabularParameterInfo

public TabularParameterInfo getTabularParameterInfo()
Here we are getting the TabularParameterInfo
Overrides:
getTabularParameterInfo in class TabularData
Returns:
TabularParameterInfo Here we are returning the TabularParameterInfo

deleteRow

public CompositeData deleteRow(java.lang.Object[] index)
Here we are deleting the index data from the hash table
Overrides:
deleteRow in class TabularData
Parameters:
Object - Here we are passing the Index Object as a Object
Returns:
CompositeData Here we are returning the deleted CompositeData

addRow

public void addRow(java.lang.Object[] index,
                   CompositeData comp)
Here we are adding new row in the hashtable
Overrides:
addRow in class TabularData
Parameters:
CompositeData - data as a Object
index - array as a object