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: NetConfigEntry.java 4432 2006-05-29 16:21:11Z strauss $
9 This class represents a Java AgentX (JAX) implementation of
10 the table row netConfigEntry defined in RMON2-MIB.
14 @see AgentXTable, AgentXEntry
18 import jax.AgentXSetPhase;
19 import jax.AgentXResponsePDU;
20 import jax.AgentXEntry;
22 public class NetConfigEntry extends AgentXEntry
25 protected byte[] netConfigIPAddress = new byte[4];
26 protected byte[] undo_netConfigIPAddress = new byte[4];
27 protected byte[] netConfigSubnetMask = new byte[4];
28 protected byte[] undo_netConfigSubnetMask = new byte[4];
29 protected int netConfigStatus = 0;
30 protected int undo_netConfigStatus = 0;
32 protected int ifIndex;
34 public NetConfigEntry(int ifIndex)
36 this.ifIndex = ifIndex;
38 instance.append(ifIndex);
41 public int get_ifIndex()
46 public byte[] get_netConfigIPAddress()
48 return netConfigIPAddress;
51 public int set_netConfigIPAddress(AgentXSetPhase phase, byte[] value)
53 switch (phase.getPhase()) {
54 case AgentXSetPhase.TEST_SET:
56 case AgentXSetPhase.COMMIT:
57 undo_netConfigIPAddress = netConfigIPAddress;
58 netConfigIPAddress = new byte[value.length];
59 for(int i = 0; i < value.length; i++)
60 netConfigIPAddress[i] = value[i];
62 case AgentXSetPhase.UNDO:
63 netConfigIPAddress = undo_netConfigIPAddress;
65 case AgentXSetPhase.CLEANUP:
66 undo_netConfigIPAddress = null;
69 return AgentXResponsePDU.PROCESSING_ERROR;
71 return AgentXResponsePDU.NO_ERROR;
73 public byte[] get_netConfigSubnetMask()
75 return netConfigSubnetMask;
78 public int set_netConfigSubnetMask(AgentXSetPhase phase, byte[] value)
80 switch (phase.getPhase()) {
81 case AgentXSetPhase.TEST_SET:
83 case AgentXSetPhase.COMMIT:
84 undo_netConfigSubnetMask = netConfigSubnetMask;
85 netConfigSubnetMask = new byte[value.length];
86 for(int i = 0; i < value.length; i++)
87 netConfigSubnetMask[i] = value[i];
89 case AgentXSetPhase.UNDO:
90 netConfigSubnetMask = undo_netConfigSubnetMask;
92 case AgentXSetPhase.CLEANUP:
93 undo_netConfigSubnetMask = null;
96 return AgentXResponsePDU.PROCESSING_ERROR;
98 return AgentXResponsePDU.NO_ERROR;
100 public int get_netConfigStatus()
102 return netConfigStatus;
105 public int set_netConfigStatus(AgentXSetPhase phase, int value)
107 switch (phase.getPhase()) {
108 case AgentXSetPhase.TEST_SET:
110 case AgentXSetPhase.COMMIT:
111 undo_netConfigStatus = netConfigStatus;
112 netConfigStatus = value;
114 case AgentXSetPhase.UNDO:
115 netConfigStatus = undo_netConfigStatus;
117 case AgentXSetPhase.CLEANUP:
120 return AgentXResponsePDU.PROCESSING_ERROR;
122 return AgentXResponsePDU.NO_ERROR;