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: IfXEntry.java 4432 2006-05-29 16:21:11Z strauss $
9 This class represents a Java AgentX (JAX) implementation of
10 the table row ifXEntry defined in IF-MIB.
14 @see AgentXTable, AgentXEntry
18 import jax.AgentXSetPhase;
19 import jax.AgentXResponsePDU;
20 import jax.AgentXEntry;
22 public class IfXEntry extends AgentXEntry
25 protected byte[] ifName = new byte[0];
26 protected long ifInMulticastPkts = 0;
27 protected long ifInBroadcastPkts = 0;
28 protected long ifOutMulticastPkts = 0;
29 protected long ifOutBroadcastPkts = 0;
30 protected long ifHCInOctets = 0;
31 protected long ifHCInUcastPkts = 0;
32 protected long ifHCInMulticastPkts = 0;
33 protected long ifHCInBroadcastPkts = 0;
34 protected long ifHCOutOctets = 0;
35 protected long ifHCOutUcastPkts = 0;
36 protected long ifHCOutMulticastPkts = 0;
37 protected long ifHCOutBroadcastPkts = 0;
38 protected int ifLinkUpDownTrapEnable = 0;
39 protected int undo_ifLinkUpDownTrapEnable = 0;
40 protected long ifHighSpeed = 0;
41 protected int ifPromiscuousMode = 0;
42 protected int undo_ifPromiscuousMode = 0;
43 protected int ifConnectorPresent = 0;
44 protected byte[] ifAlias = new byte[0];
45 protected byte[] undo_ifAlias = new byte[0];
46 protected long ifCounterDiscontinuityTime = 0;
53 public byte[] get_ifName()
58 public long get_ifInMulticastPkts()
60 return ifInMulticastPkts;
63 public long get_ifInBroadcastPkts()
65 return ifInBroadcastPkts;
68 public long get_ifOutMulticastPkts()
70 return ifOutMulticastPkts;
73 public long get_ifOutBroadcastPkts()
75 return ifOutBroadcastPkts;
78 public long get_ifHCInOctets()
83 public long get_ifHCInUcastPkts()
85 return ifHCInUcastPkts;
88 public long get_ifHCInMulticastPkts()
90 return ifHCInMulticastPkts;
93 public long get_ifHCInBroadcastPkts()
95 return ifHCInBroadcastPkts;
98 public long get_ifHCOutOctets()
100 return ifHCOutOctets;
103 public long get_ifHCOutUcastPkts()
105 return ifHCOutUcastPkts;
108 public long get_ifHCOutMulticastPkts()
110 return ifHCOutMulticastPkts;
113 public long get_ifHCOutBroadcastPkts()
115 return ifHCOutBroadcastPkts;
118 public int get_ifLinkUpDownTrapEnable()
120 return ifLinkUpDownTrapEnable;
123 public int set_ifLinkUpDownTrapEnable(AgentXSetPhase phase, int value)
125 switch (phase.getPhase()) {
126 case AgentXSetPhase.TEST_SET:
128 case AgentXSetPhase.COMMIT:
129 undo_ifLinkUpDownTrapEnable = ifLinkUpDownTrapEnable;
130 ifLinkUpDownTrapEnable = value;
132 case AgentXSetPhase.UNDO:
133 ifLinkUpDownTrapEnable = undo_ifLinkUpDownTrapEnable;
135 case AgentXSetPhase.CLEANUP:
138 return AgentXResponsePDU.PROCESSING_ERROR;
140 return AgentXResponsePDU.NO_ERROR;
142 public long get_ifHighSpeed()
147 public int get_ifPromiscuousMode()
149 return ifPromiscuousMode;
152 public int set_ifPromiscuousMode(AgentXSetPhase phase, int value)
154 switch (phase.getPhase()) {
155 case AgentXSetPhase.TEST_SET:
157 case AgentXSetPhase.COMMIT:
158 undo_ifPromiscuousMode = ifPromiscuousMode;
159 ifPromiscuousMode = value;
161 case AgentXSetPhase.UNDO:
162 ifPromiscuousMode = undo_ifPromiscuousMode;
164 case AgentXSetPhase.CLEANUP:
167 return AgentXResponsePDU.PROCESSING_ERROR;
169 return AgentXResponsePDU.NO_ERROR;
171 public int get_ifConnectorPresent()
173 return ifConnectorPresent;
176 public byte[] get_ifAlias()
181 public int set_ifAlias(AgentXSetPhase phase, byte[] value)
183 switch (phase.getPhase()) {
184 case AgentXSetPhase.TEST_SET:
186 case AgentXSetPhase.COMMIT:
187 undo_ifAlias = ifAlias;
188 ifAlias = new byte[value.length];
189 for(int i = 0; i < value.length; i++)
190 ifAlias[i] = value[i];
192 case AgentXSetPhase.UNDO:
193 ifAlias = undo_ifAlias;
195 case AgentXSetPhase.CLEANUP:
199 return AgentXResponsePDU.PROCESSING_ERROR;
201 return AgentXResponsePDU.NO_ERROR;
203 public long get_ifCounterDiscontinuityTime()
205 return ifCounterDiscontinuityTime;