2 * This Java file has been generated by smidump 0.4.5. Do not edit!
3 * It is intended to be used within a Java AgentX sub-agent environment.
5 * $Id: HistoryControl2Table.java 4432 2006-05-29 16:21:11Z strauss $
9 This class represents a Java AgentX (JAX) implementation of
10 the table historyControl2Table defined in RMON2-MIB.
17 import java.util.Vector;
20 import jax.AgentXVarBind;
21 import jax.AgentXResponsePDU;
22 import jax.AgentXSetPhase;
23 import jax.AgentXTable;
24 import jax.AgentXEntry;
26 public class HistoryControl2Table extends AgentXTable
30 private final static long[] OID = {1, 3, 6, 1, 2, 1, 16, 2, 5, 1};
33 public HistoryControl2Table()
35 oid = new AgentXOID(OID);
37 // register implemented columns
38 columns.addElement(new Long(1));
41 public HistoryControl2Table(boolean shared)
45 oid = new AgentXOID(OID);
47 // register implemented columns
48 columns.addElement(new Long(1));
51 public AgentXVarBind getVarBind(AgentXEntry entry, long column)
53 AgentXOID oid = new AgentXOID(getOID(), column, entry.getInstance());
55 switch ((int)column) {
56 case 1: // historyControlDroppedFrames
58 long value = ((HistoryControl2Entry)entry).get_historyControlDroppedFrames();
59 return new AgentXVarBind(oid, AgentXVarBind.COUNTER32, value);
66 public int setEntry(AgentXSetPhase phase,
72 switch ((int)column) {
75 return AgentXResponsePDU.NOT_WRITABLE;