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: IfEntry.java 4432 2006-05-29 16:21:11Z strauss $
9 This class represents a Java AgentX (JAX) implementation of
10 the table row ifEntry defined in IF-MIB.
14 @see AgentXTable, AgentXEntry
18 import jax.AgentXSetPhase;
19 import jax.AgentXResponsePDU;
20 import jax.AgentXEntry;
22 public class IfEntry extends AgentXEntry
25 protected int ifIndex = 0;
26 protected byte[] ifDescr = new byte[0];
27 protected int ifType = 0;
28 protected int ifMtu = 0;
29 protected long ifSpeed = 0;
30 protected byte[] ifPhysAddress = new byte[0];
31 protected int ifAdminStatus = 0;
32 protected int undo_ifAdminStatus = 0;
33 protected int ifOperStatus = 0;
34 protected long ifLastChange = 0;
35 protected long ifInOctets = 0;
36 protected long ifInUcastPkts = 0;
37 protected long ifInNUcastPkts = 0;
38 protected long ifInDiscards = 0;
39 protected long ifInErrors = 0;
40 protected long ifInUnknownProtos = 0;
41 protected long ifOutOctets = 0;
42 protected long ifOutUcastPkts = 0;
43 protected long ifOutNUcastPkts = 0;
44 protected long ifOutDiscards = 0;
45 protected long ifOutErrors = 0;
46 protected long ifOutQLen = 0;
47 protected AgentXOID ifSpecific = new AgentXOID();
49 public IfEntry(int ifIndex)
51 this.ifIndex = ifIndex;
53 instance.append(ifIndex);
56 public int get_ifIndex()
61 public byte[] get_ifDescr()
66 public int get_ifType()
71 public int get_ifMtu()
76 public long get_ifSpeed()
81 public byte[] get_ifPhysAddress()
86 public int get_ifAdminStatus()
91 public int set_ifAdminStatus(AgentXSetPhase phase, int value)
93 switch (phase.getPhase()) {
94 case AgentXSetPhase.TEST_SET:
96 case AgentXSetPhase.COMMIT:
97 undo_ifAdminStatus = ifAdminStatus;
98 ifAdminStatus = value;
100 case AgentXSetPhase.UNDO:
101 ifAdminStatus = undo_ifAdminStatus;
103 case AgentXSetPhase.CLEANUP:
106 return AgentXResponsePDU.PROCESSING_ERROR;
108 return AgentXResponsePDU.NO_ERROR;
110 public int get_ifOperStatus()
115 public long get_ifLastChange()
120 public long get_ifInOctets()
125 public long get_ifInUcastPkts()
127 return ifInUcastPkts;
130 public long get_ifInNUcastPkts()
132 return ifInNUcastPkts;
135 public long get_ifInDiscards()
140 public long get_ifInErrors()
145 public long get_ifInUnknownProtos()
147 return ifInUnknownProtos;
150 public long get_ifOutOctets()
155 public long get_ifOutUcastPkts()
157 return ifOutUcastPkts;
160 public long get_ifOutNUcastPkts()
162 return ifOutNUcastPkts;
165 public long get_ifOutDiscards()
167 return ifOutDiscards;
170 public long get_ifOutErrors()
175 public long get_ifOutQLen()
180 public AgentXOID get_ifSpecific()