com.adventnet.adaptors.tl1.security
Class Tl1ChannelSecurityTable

java.lang.Object
  extended by com.adventnet.adaptors.tl1.security.Tl1ChannelSecurityTable
All Implemented Interfaces:
com.adventnet.utils.jmx.JmxTableModelListener

public class Tl1ChannelSecurityTable
extends java.lang.Object
implements com.adventnet.utils.jmx.JmxTableModelListener

Handles all requests under tl1ChannelSecurityTable group


Field Summary
(package private)  javax.management.MBeanServer server
           
 
Constructor Summary
Tl1ChannelSecurityTable()
           
Tl1ChannelSecurityTable(TL1Adaptor tl1Adaptor)
           
 
Method Summary
 void addRow(java.lang.Object[] indexObjects, javax.jmx.openmbean.CompositeData entry)
          Implementation of JmxTableModelListener interface.
 void deleteRow(java.lang.Object[] indexObjects)
          Implementation of JmxTableModelListener interface.
 java.util.List getEntries(int startIndex, int endIndex)
          Implementation of JmxTableModelListener interface.
 javax.jmx.openmbean.CompositeData getEntry(java.lang.Object[] indexObjects)
          Implementation of JmxTableModelListener interface.
 javax.jmx.openmbean.CompositeData getFirstEntry()
          Implementation of JmxTableModelListener interface.
 java.util.Hashtable getHashtable()
           
 java.lang.String[] getIndexNames()
          To get the index column names of the table
 javax.jmx.openmbean.CompositeData getNextEntry(java.lang.Object[] indexObjects)
          Implementation of JmxTableModelListener interface.
 java.util.Vector getTableVector()
           
 javax.jmx.openmbean.TabularData getTl1ChannelSecurityTable()
           
 void modifyRow(java.lang.Object[] indexObjects, javax.jmx.openmbean.CompositeData entry)
          Implementation of JmxTableModelListener interface.
 void setHashtable(java.util.Hashtable table)
           
 void setTableVector(java.util.Vector vec)
           
 void setTl1ChannelSecurityTable(javax.jmx.openmbean.TabularData data)
           
 int totalRows()
          Implementation of JmxTableModelListener interface.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

server

javax.management.MBeanServer server
Constructor Detail

Tl1ChannelSecurityTable

public Tl1ChannelSecurityTable()

Tl1ChannelSecurityTable

public Tl1ChannelSecurityTable(TL1Adaptor tl1Adaptor)
Method Detail

getIndexNames

public java.lang.String[] getIndexNames()
To get the index column names of the table


setHashtable

public void setHashtable(java.util.Hashtable table)

getHashtable

public java.util.Hashtable getHashtable()

setTableVector

public void setTableVector(java.util.Vector vec)

getTableVector

public java.util.Vector getTableVector()

getTl1ChannelSecurityTable

public javax.jmx.openmbean.TabularData getTl1ChannelSecurityTable()

setTl1ChannelSecurityTable

public void setTl1ChannelSecurityTable(javax.jmx.openmbean.TabularData data)
                                throws java.lang.Exception
Throws:
java.lang.Exception

getEntry

public javax.jmx.openmbean.CompositeData getEntry(java.lang.Object[] indexObjects)
Implementation of JmxTableModelListener interface. To get the entry for the given row (identified by the instance)

Specified by:
getEntry in interface com.adventnet.utils.jmx.JmxTableModelListener
Parameters:
indexObjects - the object array with index objects which identifies the row
Returns:
instance of javax.jmx.openmbean.CompositeData with the entry information. Otherwise null.

getNextEntry

public javax.jmx.openmbean.CompositeData getNextEntry(java.lang.Object[] indexObjects)
Implementation of JmxTableModelListener interface. To get the next entry for the given row (identified by the instance)

Specified by:
getNextEntry in interface com.adventnet.utils.jmx.JmxTableModelListener
Parameters:
indexObjects - the object array with index objects which identifies the row
Returns:
instance of javax.jmx.openmbean.CompositeData with the entry information. Otherwise null.

getFirstEntry

public javax.jmx.openmbean.CompositeData getFirstEntry()
Implementation of JmxTableModelListener interface. To get the first entry in the table

Specified by:
getFirstEntry in interface com.adventnet.utils.jmx.JmxTableModelListener
Returns:
instance of javax.jmx.openmbean.CompositeData with the entry information. Otherwise null.

addRow

public void addRow(java.lang.Object[] indexObjects,
                   javax.jmx.openmbean.CompositeData entry)
            throws java.lang.Exception
Implementation of JmxTableModelListener interface. When the manager is trying to add a row in the table, this method will be called.

Specified by:
addRow in interface com.adventnet.utils.jmx.JmxTableModelListener
Parameters:
indexObjects - the object array with index objects which identifies the row to be added.
entry - the entry value as javax.jmx.openmbean.CompositeData instance.
Throws:
java.lang.Exception

deleteRow

public void deleteRow(java.lang.Object[] indexObjects)
               throws java.lang.Exception
Implementation of JmxTableModelListener interface. When the manager is trying to delete a row in the table, this method will be called.

Specified by:
deleteRow in interface com.adventnet.utils.jmx.JmxTableModelListener
Parameters:
indexObjects - the object array with index objects which identifies the row to be deleted.
entry - the entry value as javax.jmx.openmbean.CompositeData instance.
Throws:
java.lang.Exception

modifyRow

public void modifyRow(java.lang.Object[] indexObjects,
                      javax.jmx.openmbean.CompositeData entry)
               throws java.lang.Exception
Implementation of JmxTableModelListener interface. When the manager is trying to modify a row in the table, this method will be called.

Specified by:
modifyRow in interface com.adventnet.utils.jmx.JmxTableModelListener
Parameters:
indexObjects - the object array with index objects which identifies the row to be modified.
entry - the entry value as javax.jmx.openmbean.CompositeData instance.
Throws:
java.lang.Exception

totalRows

public int totalRows()
Implementation of JmxTableModelListener interface. This method gives the total number of rows in the table. This method will be used by the HTML and TL1 adaptors. Users who wish to have only Snmp interface need not implement this method.

Specified by:
totalRows in interface com.adventnet.utils.jmx.JmxTableModelListener
Returns:
int specifying the number of rows in the Table.

getEntries

public java.util.List getEntries(int startIndex,
                                 int endIndex)
Implementation of JmxTableModelListener interface. This method gives an ArrayList of the CompositeData instances in this table starting from the startIndex through till the EndIndex. This method will be used by the HTML and TL1 adaptors. Users who wish to have only Snmp interface need not implement this method. For example: If the 1st 5 rows have to be retrieved, then the start index will be 1 and the end index will be 5.

Specified by:
getEntries in interface com.adventnet.utils.jmx.JmxTableModelListener
Returns:
ArrayList of the instances of the CompositeData.