Imported Upstream version 0.4.8
[platform/upstream/libsmi.git] / test / dumps / jax / HistoryControl2Table.java
1 /*
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.
4  *
5  * $Id: HistoryControl2Table.java 4432 2006-05-29 16:21:11Z strauss $
6  */
7
8 /**
9     This class represents a Java AgentX (JAX) implementation of
10     the table historyControl2Table defined in RMON2-MIB.
11
12     @version 1
13     @author  smidump 0.4.5
14     @see     AgentXTable
15  */
16
17 import java.util.Vector;
18
19 import jax.AgentXOID;
20 import jax.AgentXVarBind;
21 import jax.AgentXResponsePDU;
22 import jax.AgentXSetPhase;
23 import jax.AgentXTable;
24 import jax.AgentXEntry;
25
26 public class HistoryControl2Table extends AgentXTable
27 {
28
29     // entry OID
30     private final static long[] OID = {1, 3, 6, 1, 2, 1, 16, 2, 5, 1};
31
32     // constructors
33     public HistoryControl2Table()
34     {
35         oid = new AgentXOID(OID);
36
37         // register implemented columns
38         columns.addElement(new Long(1));
39     }
40
41     public HistoryControl2Table(boolean shared)
42     {
43         super(shared);
44
45         oid = new AgentXOID(OID);
46
47         // register implemented columns
48         columns.addElement(new Long(1));
49     }
50
51     public AgentXVarBind getVarBind(AgentXEntry entry, long column)
52     {
53         AgentXOID oid = new AgentXOID(getOID(), column, entry.getInstance());
54
55         switch ((int)column) {
56         case 1: // historyControlDroppedFrames
57         {
58             long value = ((HistoryControl2Entry)entry).get_historyControlDroppedFrames();
59             return new AgentXVarBind(oid, AgentXVarBind.COUNTER32, value);
60         }
61         }
62
63         return null;
64     }
65
66     public int setEntry(AgentXSetPhase phase,
67                         AgentXEntry entry,
68                         long column,
69                         AgentXVarBind vb)
70     {
71
72         switch ((int)column) {
73         }
74
75         return AgentXResponsePDU.NOT_WRITABLE;
76     }
77
78 }
79