2 * This Java file has been generated by smidump 0.4.5. Do not edit!
3 * It is intended to be used within a Java AgentX sub-agent environment.
5 * $Id: AddressMapControlEntry.java 4432 2006-05-29 16:21:11Z strauss $
9 This class represents a Java AgentX (JAX) implementation of
10 the table row addressMapControlEntry defined in RMON2-MIB.
14 @see AgentXTable, AgentXEntry
18 import jax.AgentXSetPhase;
19 import jax.AgentXResponsePDU;
20 import jax.AgentXEntry;
22 public class AddressMapControlEntry extends AgentXEntry
25 protected int addressMapControlIndex = 0;
26 protected AgentXOID addressMapControlDataSource = new AgentXOID();
27 protected AgentXOID undo_addressMapControlDataSource = new AgentXOID();
28 protected long addressMapControlDroppedFrames = 0;
29 protected byte[] addressMapControlOwner = new byte[0];
30 protected byte[] undo_addressMapControlOwner = new byte[0];
31 protected int addressMapControlStatus = 0;
32 protected int undo_addressMapControlStatus = 0;
34 public AddressMapControlEntry(int addressMapControlIndex)
36 this.addressMapControlIndex = addressMapControlIndex;
38 instance.append(addressMapControlIndex);
41 public int get_addressMapControlIndex()
43 return addressMapControlIndex;
46 public AgentXOID get_addressMapControlDataSource()
48 return addressMapControlDataSource;
51 public int set_addressMapControlDataSource(AgentXSetPhase phase, AgentXOID value)
53 switch (phase.getPhase()) {
54 case AgentXSetPhase.TEST_SET:
56 case AgentXSetPhase.COMMIT:
57 undo_addressMapControlDataSource = addressMapControlDataSource;
58 addressMapControlDataSource = value;
60 case AgentXSetPhase.UNDO:
61 addressMapControlDataSource = undo_addressMapControlDataSource;
63 case AgentXSetPhase.CLEANUP:
66 return AgentXResponsePDU.PROCESSING_ERROR;
68 return AgentXResponsePDU.NO_ERROR;
70 public long get_addressMapControlDroppedFrames()
72 return addressMapControlDroppedFrames;
75 public byte[] get_addressMapControlOwner()
77 return addressMapControlOwner;
80 public int set_addressMapControlOwner(AgentXSetPhase phase, byte[] value)
82 switch (phase.getPhase()) {
83 case AgentXSetPhase.TEST_SET:
85 case AgentXSetPhase.COMMIT:
86 undo_addressMapControlOwner = addressMapControlOwner;
87 addressMapControlOwner = new byte[value.length];
88 for(int i = 0; i < value.length; i++)
89 addressMapControlOwner[i] = value[i];
91 case AgentXSetPhase.UNDO:
92 addressMapControlOwner = undo_addressMapControlOwner;
94 case AgentXSetPhase.CLEANUP:
95 undo_addressMapControlOwner = null;
98 return AgentXResponsePDU.PROCESSING_ERROR;
100 return AgentXResponsePDU.NO_ERROR;
102 public int get_addressMapControlStatus()
104 return addressMapControlStatus;
107 public int set_addressMapControlStatus(AgentXSetPhase phase, int value)
109 switch (phase.getPhase()) {
110 case AgentXSetPhase.TEST_SET:
112 case AgentXSetPhase.COMMIT:
113 undo_addressMapControlStatus = addressMapControlStatus;
114 addressMapControlStatus = value;
116 case AgentXSetPhase.UNDO:
117 addressMapControlStatus = undo_addressMapControlStatus;
119 case AgentXSetPhase.CLEANUP:
122 return AgentXResponsePDU.PROCESSING_ERROR;
124 return AgentXResponsePDU.NO_ERROR;