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: ProtocolDirEntry.java 4432 2006-05-29 16:21:11Z strauss $
9 This class represents a Java AgentX (JAX) implementation of
10 the table row protocolDirEntry defined in RMON2-MIB.
14 @see AgentXTable, AgentXEntry
18 import jax.AgentXSetPhase;
19 import jax.AgentXResponsePDU;
20 import jax.AgentXEntry;
22 public class ProtocolDirEntry extends AgentXEntry
25 protected byte[] protocolDirID = new byte[0];
26 protected byte[] protocolDirParameters = new byte[0];
27 protected int protocolDirLocalIndex = 0;
28 protected byte[] protocolDirDescr = new byte[0];
29 protected byte[] undo_protocolDirDescr = new byte[0];
30 protected byte[] protocolDirType = new byte[0];
31 protected int protocolDirAddressMapConfig = 0;
32 protected int undo_protocolDirAddressMapConfig = 0;
33 protected int protocolDirHostConfig = 0;
34 protected int undo_protocolDirHostConfig = 0;
35 protected int protocolDirMatrixConfig = 0;
36 protected int undo_protocolDirMatrixConfig = 0;
37 protected byte[] protocolDirOwner = new byte[0];
38 protected byte[] undo_protocolDirOwner = new byte[0];
39 protected int protocolDirStatus = 0;
40 protected int undo_protocolDirStatus = 0;
42 public ProtocolDirEntry(byte[] protocolDirID,
43 byte[] protocolDirParameters)
45 this.protocolDirID = protocolDirID;
46 this.protocolDirParameters = protocolDirParameters;
48 instance.append(protocolDirID);
49 instance.append(protocolDirParameters);
52 public byte[] get_protocolDirID()
57 public byte[] get_protocolDirParameters()
59 return protocolDirParameters;
62 public int get_protocolDirLocalIndex()
64 return protocolDirLocalIndex;
67 public byte[] get_protocolDirDescr()
69 return protocolDirDescr;
72 public int set_protocolDirDescr(AgentXSetPhase phase, byte[] value)
74 switch (phase.getPhase()) {
75 case AgentXSetPhase.TEST_SET:
77 case AgentXSetPhase.COMMIT:
78 undo_protocolDirDescr = protocolDirDescr;
79 protocolDirDescr = new byte[value.length];
80 for(int i = 0; i < value.length; i++)
81 protocolDirDescr[i] = value[i];
83 case AgentXSetPhase.UNDO:
84 protocolDirDescr = undo_protocolDirDescr;
86 case AgentXSetPhase.CLEANUP:
87 undo_protocolDirDescr = null;
90 return AgentXResponsePDU.PROCESSING_ERROR;
92 return AgentXResponsePDU.NO_ERROR;
94 public byte[] get_protocolDirType()
96 return protocolDirType;
99 public int get_protocolDirAddressMapConfig()
101 return protocolDirAddressMapConfig;
104 public int set_protocolDirAddressMapConfig(AgentXSetPhase phase, int value)
106 switch (phase.getPhase()) {
107 case AgentXSetPhase.TEST_SET:
109 case AgentXSetPhase.COMMIT:
110 undo_protocolDirAddressMapConfig = protocolDirAddressMapConfig;
111 protocolDirAddressMapConfig = value;
113 case AgentXSetPhase.UNDO:
114 protocolDirAddressMapConfig = undo_protocolDirAddressMapConfig;
116 case AgentXSetPhase.CLEANUP:
119 return AgentXResponsePDU.PROCESSING_ERROR;
121 return AgentXResponsePDU.NO_ERROR;
123 public int get_protocolDirHostConfig()
125 return protocolDirHostConfig;
128 public int set_protocolDirHostConfig(AgentXSetPhase phase, int value)
130 switch (phase.getPhase()) {
131 case AgentXSetPhase.TEST_SET:
133 case AgentXSetPhase.COMMIT:
134 undo_protocolDirHostConfig = protocolDirHostConfig;
135 protocolDirHostConfig = value;
137 case AgentXSetPhase.UNDO:
138 protocolDirHostConfig = undo_protocolDirHostConfig;
140 case AgentXSetPhase.CLEANUP:
143 return AgentXResponsePDU.PROCESSING_ERROR;
145 return AgentXResponsePDU.NO_ERROR;
147 public int get_protocolDirMatrixConfig()
149 return protocolDirMatrixConfig;
152 public int set_protocolDirMatrixConfig(AgentXSetPhase phase, int value)
154 switch (phase.getPhase()) {
155 case AgentXSetPhase.TEST_SET:
157 case AgentXSetPhase.COMMIT:
158 undo_protocolDirMatrixConfig = protocolDirMatrixConfig;
159 protocolDirMatrixConfig = value;
161 case AgentXSetPhase.UNDO:
162 protocolDirMatrixConfig = undo_protocolDirMatrixConfig;
164 case AgentXSetPhase.CLEANUP:
167 return AgentXResponsePDU.PROCESSING_ERROR;
169 return AgentXResponsePDU.NO_ERROR;
171 public byte[] get_protocolDirOwner()
173 return protocolDirOwner;
176 public int set_protocolDirOwner(AgentXSetPhase phase, byte[] value)
178 switch (phase.getPhase()) {
179 case AgentXSetPhase.TEST_SET:
181 case AgentXSetPhase.COMMIT:
182 undo_protocolDirOwner = protocolDirOwner;
183 protocolDirOwner = new byte[value.length];
184 for(int i = 0; i < value.length; i++)
185 protocolDirOwner[i] = value[i];
187 case AgentXSetPhase.UNDO:
188 protocolDirOwner = undo_protocolDirOwner;
190 case AgentXSetPhase.CLEANUP:
191 undo_protocolDirOwner = null;
194 return AgentXResponsePDU.PROCESSING_ERROR;
196 return AgentXResponsePDU.NO_ERROR;
198 public int get_protocolDirStatus()
200 return protocolDirStatus;
203 public int set_protocolDirStatus(AgentXSetPhase phase, int value)
205 switch (phase.getPhase()) {
206 case AgentXSetPhase.TEST_SET:
208 case AgentXSetPhase.COMMIT:
209 undo_protocolDirStatus = protocolDirStatus;
210 protocolDirStatus = value;
212 case AgentXSetPhase.UNDO:
213 protocolDirStatus = undo_protocolDirStatus;
215 case AgentXSetPhase.CLEANUP:
218 return AgentXResponsePDU.PROCESSING_ERROR;
220 return AgentXResponsePDU.NO_ERROR;