KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > snmp4j > agent > mo > jmx > JMXMutableTableModel


1 /*_############################################################################
2   _##
3   _## SNMP4J-AgentJMX - JMXMutableTableModel.java
4   _##
5   _## Copyright (C) 2006-2007 Frank Fock (SNMP4J.org)
6   _##
7   _## This program is free software; you can redistribute it and/or modify
8   _## it under the terms of the GNU General Public License version 2 as
9   _## published by the Free Software Foundation.
10   _##
11   _## This program is distributed in the hope that it will be useful,
12   _## but WITHOUT ANY WARRANTY; without even the implied warranty of
13   _## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14   _## GNU General Public License for more details.
15   _##
16   _## You should have received a copy of the GNU General Public License
17   _## along with this program; if not, write to the Free Software
18   _## Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
19   _## MA 02110-1301 USA
20   _##
21   _##########################################################################*/

22 package org.snmp4j.agent.mo.jmx;
23
24 import org.snmp4j.agent.mo.*;
25 import org.snmp4j.smi.OID;
26 import org.snmp4j.smi.Variable;
27
28 /**
29  * The <code>JMXMutableTableModel</code> extends the {@link JMXTableModel} by
30  * adding support for row creation and deletion.
31  *
32  * @author Frank Fock
33  * @version 1.0
34  */

35 public class JMXMutableTableModel extends JMXTableModel
36     implements MOMutableTableModel {
37
38   /**
39    * Creates a JMX based table model for a table with the specified OID and
40    * columns using the supplied {@link JMXMutableTableSupport} to map
41    * between SNMP and JMX.
42    *
43    * @param tableOID
44    * the OID of the table (e.g., ifEntry).
45    * @param tableSupport
46    * the JMXMutableTableSupport instance that maps between SNMP values and
47    * value organisation to JMX MBean(s).
48    * @param columns
49    * the columns defined for the table.
50    */

51   public JMXMutableTableModel(OID tableOID,
52                               JMXMutableTableSupport tableSupport,
53                               MOColumn[] columns) {
54     super(tableOID, tableSupport, columns);
55   }
56
57   public MOTableRow createRow(OID index, Variable[] values) throws
58       UnsupportedOperationException JavaDoc {
59     /**@todo implement */
60     throw new UnsupportedOperationException JavaDoc("Not yet implemented");
61   }
62
63   public void freeRow(MOTableRow row) {
64     /**@todo implement */
65     throw new UnsupportedOperationException JavaDoc("Not yet implemented");
66   }
67
68   public MOTableRow addRow(MOTableRow row) {
69     /**@todo implement */
70     throw new UnsupportedOperationException JavaDoc("Not yet implemented");
71   }
72
73   public MOTableRow removeRow(OID index) {
74     /**@todo implement */
75     throw new UnsupportedOperationException JavaDoc("Not yet implemented");
76   }
77
78   public void clear() {
79     /**@todo implement */
80     throw new UnsupportedOperationException JavaDoc("Not yet implemented");
81   }
82
83   public void clear(MOTableRowFilter filter) {
84     /**@todo implement */
85     throw new UnsupportedOperationException JavaDoc("Not yet implemented");
86   }
87
88   public void setRowFactory(MOTableRowFactory rowFactory) {
89     /**@todo implement */
90     throw new UnsupportedOperationException JavaDoc("Not yet implemented");
91   }
92
93 }
94
Popular Tags