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: IfStackEntryImpl.java 4432 2006-05-29 16:21:11Z strauss $
10 This class extends the Java AgentX (JAX) implementation of
11 the table row ifStackEntry defined in IF-MIB.
15 import jax.AgentXSetPhase;
16 import jax.AgentXResponsePDU;
17 import jax.AgentXEntry;
19 public class IfStackEntryImpl extends IfStackEntry
23 public IfStackEntryImpl(int ifStackHigherLayer,
24 int ifStackLowerLayer)
26 super(ifStackHigherLayer,
30 public int get_ifStackStatus()
35 public int set_ifStackStatus(AgentXSetPhase phase, int value)
37 switch (phase.getPhase()) {
38 case AgentXSetPhase.TEST_SET:
40 case AgentXSetPhase.COMMIT:
41 undo_ifStackStatus = ifStackStatus;
42 ifStackStatus = value;
44 case AgentXSetPhase.UNDO:
45 ifStackStatus = undo_ifStackStatus;
47 case AgentXSetPhase.CLEANUP:
50 return AgentXResponsePDU.PROCESSING_ERROR;
52 return AgentXResponsePDU.NO_ERROR;