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: AddressMapControlEntryImpl.java 4432 2006-05-29 16:21:11Z strauss $
10 This class extends the Java AgentX (JAX) implementation of
11 the table row addressMapControlEntry defined in RMON2-MIB.
15 import jax.AgentXSetPhase;
16 import jax.AgentXResponsePDU;
17 import jax.AgentXEntry;
19 public class AddressMapControlEntryImpl extends AddressMapControlEntry
23 public AddressMapControlEntryImpl(int addressMapControlIndex)
25 super(addressMapControlIndex);
28 public AgentXOID get_addressMapControlDataSource()
30 return addressMapControlDataSource;
33 public int set_addressMapControlDataSource(AgentXSetPhase phase, AgentXOID value)
35 switch (phase.getPhase()) {
36 case AgentXSetPhase.TEST_SET:
38 case AgentXSetPhase.COMMIT:
39 undo_addressMapControlDataSource = addressMapControlDataSource;
40 addressMapControlDataSource = value;
42 case AgentXSetPhase.UNDO:
43 addressMapControlDataSource = undo_addressMapControlDataSource;
45 case AgentXSetPhase.CLEANUP:
48 return AgentXResponsePDU.PROCESSING_ERROR;
50 return AgentXResponsePDU.NO_ERROR;
52 public long get_addressMapControlDroppedFrames()
54 return addressMapControlDroppedFrames;
57 public byte[] get_addressMapControlOwner()
59 return addressMapControlOwner;
62 public int set_addressMapControlOwner(AgentXSetPhase phase, byte[] value)
64 switch (phase.getPhase()) {
65 case AgentXSetPhase.TEST_SET:
67 case AgentXSetPhase.COMMIT:
68 undo_addressMapControlOwner = addressMapControlOwner;
69 addressMapControlOwner = new byte[value.length];
70 for(int i = 0; i < value.length; i++)
71 addressMapControlOwner[i] = value[i];
73 case AgentXSetPhase.UNDO:
74 addressMapControlOwner = undo_addressMapControlOwner;
76 case AgentXSetPhase.CLEANUP:
77 undo_addressMapControlOwner = null;
80 return AgentXResponsePDU.PROCESSING_ERROR;
82 return AgentXResponsePDU.NO_ERROR;
84 public int get_addressMapControlStatus()
86 return addressMapControlStatus;
89 public int set_addressMapControlStatus(AgentXSetPhase phase, int value)
91 switch (phase.getPhase()) {
92 case AgentXSetPhase.TEST_SET:
94 case AgentXSetPhase.COMMIT:
95 undo_addressMapControlStatus = addressMapControlStatus;
96 addressMapControlStatus = value;
98 case AgentXSetPhase.UNDO:
99 addressMapControlStatus = undo_addressMapControlStatus;
101 case AgentXSetPhase.CLEANUP:
104 return AgentXResponsePDU.PROCESSING_ERROR;
106 return AgentXResponsePDU.NO_ERROR;