2 * This Java file has been generated by smidump 0.4.5. It
3 * is intended to be edited by the application programmer and
4 * to be used within a Java AgentX sub-agent environment.
6 * $Id: UsrHistoryControlEntryImpl.java 4432 2006-05-29 16:21:11Z strauss $
10 This class extends the Java AgentX (JAX) implementation of
11 the table row usrHistoryControlEntry defined in RMON2-MIB.
15 import jax.AgentXSetPhase;
16 import jax.AgentXResponsePDU;
17 import jax.AgentXEntry;
19 public class UsrHistoryControlEntryImpl extends UsrHistoryControlEntry
23 public UsrHistoryControlEntryImpl(int usrHistoryControlIndex)
25 super(usrHistoryControlIndex);
28 public int get_usrHistoryControlObjects()
30 return usrHistoryControlObjects;
33 public int set_usrHistoryControlObjects(AgentXSetPhase phase, int value)
35 switch (phase.getPhase()) {
36 case AgentXSetPhase.TEST_SET:
38 case AgentXSetPhase.COMMIT:
39 undo_usrHistoryControlObjects = usrHistoryControlObjects;
40 usrHistoryControlObjects = value;
42 case AgentXSetPhase.UNDO:
43 usrHistoryControlObjects = undo_usrHistoryControlObjects;
45 case AgentXSetPhase.CLEANUP:
48 return AgentXResponsePDU.PROCESSING_ERROR;
50 return AgentXResponsePDU.NO_ERROR;
52 public int get_usrHistoryControlBucketsRequested()
54 return usrHistoryControlBucketsRequested;
57 public int set_usrHistoryControlBucketsRequested(AgentXSetPhase phase, int value)
59 switch (phase.getPhase()) {
60 case AgentXSetPhase.TEST_SET:
62 case AgentXSetPhase.COMMIT:
63 undo_usrHistoryControlBucketsRequested = usrHistoryControlBucketsRequested;
64 usrHistoryControlBucketsRequested = value;
66 case AgentXSetPhase.UNDO:
67 usrHistoryControlBucketsRequested = undo_usrHistoryControlBucketsRequested;
69 case AgentXSetPhase.CLEANUP:
72 return AgentXResponsePDU.PROCESSING_ERROR;
74 return AgentXResponsePDU.NO_ERROR;
76 public int get_usrHistoryControlBucketsGranted()
78 return usrHistoryControlBucketsGranted;
81 public int get_usrHistoryControlInterval()
83 return usrHistoryControlInterval;
86 public int set_usrHistoryControlInterval(AgentXSetPhase phase, int value)
88 switch (phase.getPhase()) {
89 case AgentXSetPhase.TEST_SET:
91 case AgentXSetPhase.COMMIT:
92 undo_usrHistoryControlInterval = usrHistoryControlInterval;
93 usrHistoryControlInterval = value;
95 case AgentXSetPhase.UNDO:
96 usrHistoryControlInterval = undo_usrHistoryControlInterval;
98 case AgentXSetPhase.CLEANUP:
101 return AgentXResponsePDU.PROCESSING_ERROR;
103 return AgentXResponsePDU.NO_ERROR;
105 public byte[] get_usrHistoryControlOwner()
107 return usrHistoryControlOwner;
110 public int set_usrHistoryControlOwner(AgentXSetPhase phase, byte[] value)
112 switch (phase.getPhase()) {
113 case AgentXSetPhase.TEST_SET:
115 case AgentXSetPhase.COMMIT:
116 undo_usrHistoryControlOwner = usrHistoryControlOwner;
117 usrHistoryControlOwner = new byte[value.length];
118 for(int i = 0; i < value.length; i++)
119 usrHistoryControlOwner[i] = value[i];
121 case AgentXSetPhase.UNDO:
122 usrHistoryControlOwner = undo_usrHistoryControlOwner;
124 case AgentXSetPhase.CLEANUP:
125 undo_usrHistoryControlOwner = null;
128 return AgentXResponsePDU.PROCESSING_ERROR;
130 return AgentXResponsePDU.NO_ERROR;
132 public int get_usrHistoryControlStatus()
134 return usrHistoryControlStatus;
137 public int set_usrHistoryControlStatus(AgentXSetPhase phase, int value)
139 switch (phase.getPhase()) {
140 case AgentXSetPhase.TEST_SET:
142 case AgentXSetPhase.COMMIT:
143 undo_usrHistoryControlStatus = usrHistoryControlStatus;
144 usrHistoryControlStatus = value;
146 case AgentXSetPhase.UNDO:
147 usrHistoryControlStatus = undo_usrHistoryControlStatus;
149 case AgentXSetPhase.CLEANUP:
152 return AgentXResponsePDU.PROCESSING_ERROR;
154 return AgentXResponsePDU.NO_ERROR;