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: IfTestEntryImpl.java 4432 2006-05-29 16:21:11Z strauss $
10 This class extends the Java AgentX (JAX) implementation of
11 the table row ifTestEntry defined in IF-MIB.
15 import jax.AgentXSetPhase;
16 import jax.AgentXResponsePDU;
17 import jax.AgentXEntry;
19 public class IfTestEntryImpl extends IfTestEntry
23 public IfTestEntryImpl()
28 public int get_ifTestId()
33 public int set_ifTestId(AgentXSetPhase phase, int value)
35 switch (phase.getPhase()) {
36 case AgentXSetPhase.TEST_SET:
38 case AgentXSetPhase.COMMIT:
39 undo_ifTestId = ifTestId;
42 case AgentXSetPhase.UNDO:
43 ifTestId = undo_ifTestId;
45 case AgentXSetPhase.CLEANUP:
48 return AgentXResponsePDU.PROCESSING_ERROR;
50 return AgentXResponsePDU.NO_ERROR;
52 public int get_ifTestStatus()
57 public int set_ifTestStatus(AgentXSetPhase phase, int value)
59 switch (phase.getPhase()) {
60 case AgentXSetPhase.TEST_SET:
62 case AgentXSetPhase.COMMIT:
63 undo_ifTestStatus = ifTestStatus;
66 case AgentXSetPhase.UNDO:
67 ifTestStatus = undo_ifTestStatus;
69 case AgentXSetPhase.CLEANUP:
72 return AgentXResponsePDU.PROCESSING_ERROR;
74 return AgentXResponsePDU.NO_ERROR;
76 public AgentXOID get_ifTestType()
81 public int set_ifTestType(AgentXSetPhase phase, AgentXOID value)
83 switch (phase.getPhase()) {
84 case AgentXSetPhase.TEST_SET:
86 case AgentXSetPhase.COMMIT:
87 undo_ifTestType = ifTestType;
90 case AgentXSetPhase.UNDO:
91 ifTestType = undo_ifTestType;
93 case AgentXSetPhase.CLEANUP:
96 return AgentXResponsePDU.PROCESSING_ERROR;
98 return AgentXResponsePDU.NO_ERROR;
100 public int get_ifTestResult()
105 public AgentXOID get_ifTestCode()
110 public byte[] get_ifTestOwner()
115 public int set_ifTestOwner(AgentXSetPhase phase, byte[] value)
117 switch (phase.getPhase()) {
118 case AgentXSetPhase.TEST_SET:
120 case AgentXSetPhase.COMMIT:
121 undo_ifTestOwner = ifTestOwner;
122 ifTestOwner = new byte[value.length];
123 for(int i = 0; i < value.length; i++)
124 ifTestOwner[i] = value[i];
126 case AgentXSetPhase.UNDO:
127 ifTestOwner = undo_ifTestOwner;
129 case AgentXSetPhase.CLEANUP:
130 undo_ifTestOwner = null;
133 return AgentXResponsePDU.PROCESSING_ERROR;
135 return AgentXResponsePDU.NO_ERROR;