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: AlMatrixTopNControlEntryImpl.java 4432 2006-05-29 16:21:11Z strauss $
10 This class extends the Java AgentX (JAX) implementation of
11 the table row alMatrixTopNControlEntry defined in RMON2-MIB.
15 import jax.AgentXSetPhase;
16 import jax.AgentXResponsePDU;
17 import jax.AgentXEntry;
19 public class AlMatrixTopNControlEntryImpl extends AlMatrixTopNControlEntry
23 public AlMatrixTopNControlEntryImpl(int alMatrixTopNControlIndex)
25 super(alMatrixTopNControlIndex);
28 public int get_alMatrixTopNControlMatrixIndex()
30 return alMatrixTopNControlMatrixIndex;
33 public int set_alMatrixTopNControlMatrixIndex(AgentXSetPhase phase, int value)
35 switch (phase.getPhase()) {
36 case AgentXSetPhase.TEST_SET:
38 case AgentXSetPhase.COMMIT:
39 undo_alMatrixTopNControlMatrixIndex = alMatrixTopNControlMatrixIndex;
40 alMatrixTopNControlMatrixIndex = value;
42 case AgentXSetPhase.UNDO:
43 alMatrixTopNControlMatrixIndex = undo_alMatrixTopNControlMatrixIndex;
45 case AgentXSetPhase.CLEANUP:
48 return AgentXResponsePDU.PROCESSING_ERROR;
50 return AgentXResponsePDU.NO_ERROR;
52 public int get_alMatrixTopNControlRateBase()
54 return alMatrixTopNControlRateBase;
57 public int set_alMatrixTopNControlRateBase(AgentXSetPhase phase, int value)
59 switch (phase.getPhase()) {
60 case AgentXSetPhase.TEST_SET:
62 case AgentXSetPhase.COMMIT:
63 undo_alMatrixTopNControlRateBase = alMatrixTopNControlRateBase;
64 alMatrixTopNControlRateBase = value;
66 case AgentXSetPhase.UNDO:
67 alMatrixTopNControlRateBase = undo_alMatrixTopNControlRateBase;
69 case AgentXSetPhase.CLEANUP:
72 return AgentXResponsePDU.PROCESSING_ERROR;
74 return AgentXResponsePDU.NO_ERROR;
76 public int get_alMatrixTopNControlTimeRemaining()
78 return alMatrixTopNControlTimeRemaining;
81 public int set_alMatrixTopNControlTimeRemaining(AgentXSetPhase phase, int value)
83 switch (phase.getPhase()) {
84 case AgentXSetPhase.TEST_SET:
86 case AgentXSetPhase.COMMIT:
87 undo_alMatrixTopNControlTimeRemaining = alMatrixTopNControlTimeRemaining;
88 alMatrixTopNControlTimeRemaining = value;
90 case AgentXSetPhase.UNDO:
91 alMatrixTopNControlTimeRemaining = undo_alMatrixTopNControlTimeRemaining;
93 case AgentXSetPhase.CLEANUP:
96 return AgentXResponsePDU.PROCESSING_ERROR;
98 return AgentXResponsePDU.NO_ERROR;
100 public long get_alMatrixTopNControlGeneratedReports()
102 return alMatrixTopNControlGeneratedReports;
105 public int get_alMatrixTopNControlDuration()
107 return alMatrixTopNControlDuration;
110 public int get_alMatrixTopNControlRequestedSize()
112 return alMatrixTopNControlRequestedSize;
115 public int set_alMatrixTopNControlRequestedSize(AgentXSetPhase phase, int value)
117 switch (phase.getPhase()) {
118 case AgentXSetPhase.TEST_SET:
120 case AgentXSetPhase.COMMIT:
121 undo_alMatrixTopNControlRequestedSize = alMatrixTopNControlRequestedSize;
122 alMatrixTopNControlRequestedSize = value;
124 case AgentXSetPhase.UNDO:
125 alMatrixTopNControlRequestedSize = undo_alMatrixTopNControlRequestedSize;
127 case AgentXSetPhase.CLEANUP:
130 return AgentXResponsePDU.PROCESSING_ERROR;
132 return AgentXResponsePDU.NO_ERROR;
134 public int get_alMatrixTopNControlGrantedSize()
136 return alMatrixTopNControlGrantedSize;
139 public long get_alMatrixTopNControlStartTime()
141 return alMatrixTopNControlStartTime;
144 public byte[] get_alMatrixTopNControlOwner()
146 return alMatrixTopNControlOwner;
149 public int set_alMatrixTopNControlOwner(AgentXSetPhase phase, byte[] value)
151 switch (phase.getPhase()) {
152 case AgentXSetPhase.TEST_SET:
154 case AgentXSetPhase.COMMIT:
155 undo_alMatrixTopNControlOwner = alMatrixTopNControlOwner;
156 alMatrixTopNControlOwner = new byte[value.length];
157 for(int i = 0; i < value.length; i++)
158 alMatrixTopNControlOwner[i] = value[i];
160 case AgentXSetPhase.UNDO:
161 alMatrixTopNControlOwner = undo_alMatrixTopNControlOwner;
163 case AgentXSetPhase.CLEANUP:
164 undo_alMatrixTopNControlOwner = null;
167 return AgentXResponsePDU.PROCESSING_ERROR;
169 return AgentXResponsePDU.NO_ERROR;
171 public int get_alMatrixTopNControlStatus()
173 return alMatrixTopNControlStatus;
176 public int set_alMatrixTopNControlStatus(AgentXSetPhase phase, int value)
178 switch (phase.getPhase()) {
179 case AgentXSetPhase.TEST_SET:
181 case AgentXSetPhase.COMMIT:
182 undo_alMatrixTopNControlStatus = alMatrixTopNControlStatus;
183 alMatrixTopNControlStatus = value;
185 case AgentXSetPhase.UNDO:
186 alMatrixTopNControlStatus = undo_alMatrixTopNControlStatus;
188 case AgentXSetPhase.CLEANUP:
191 return AgentXResponsePDU.PROCESSING_ERROR;
193 return AgentXResponsePDU.NO_ERROR;