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: LinkUp.java 4432 2006-05-29 16:21:11Z strauss $
9 import jax.AgentXVarBind;
10 import jax.AgentXNotification;
11 import java.util.Vector;
13 public class LinkUp extends AgentXNotification
16 private final static long[] linkUp_OID = {1, 3, 6, 1, 6, 3, 1, 1, 5, 4};
17 private static AgentXVarBind snmpTrapOID_VarBind =
18 new AgentXVarBind(snmpTrapOID_OID,
19 AgentXVarBind.OBJECTIDENTIFIER,
20 new AgentXOID(linkUp_OID));
22 private final static long[] OID1 = {1, 3, 6, 1, 2, 1, 2, 2, 1, 1};
23 private final AgentXOID ifIndex_OID = new AgentXOID(OID1);
24 private final static long[] OID2 = {1, 3, 6, 1, 2, 1, 2, 2, 1, 7};
25 private final AgentXOID ifAdminStatus_OID = new AgentXOID(OID2);
26 private final static long[] OID3 = {1, 3, 6, 1, 2, 1, 2, 2, 1, 8};
27 private final AgentXOID ifOperStatus_OID = new AgentXOID(OID3);
30 public LinkUp(IfEntry ifEntry_1, IfEntry ifEntry_2, IfEntry ifEntry_3) {
32 AgentXVarBind varBind;
34 // add the snmpTrapOID object
35 varBindList.addElement(snmpTrapOID_VarBind);
37 // add the ifIndex columnar object of ifEntry_1
39 oid.appendImplied(ifEntry_1.getInstance());
40 varBind = new AgentXVarBind(oid,
41 AgentXVarBind.INTEGER,
42 ifEntry_1.get_ifIndex());
43 varBindList.addElement(varBind);
45 // add the ifAdminStatus columnar object of ifEntry_2
46 oid = ifAdminStatus_OID;
47 oid.appendImplied(ifEntry_2.getInstance());
48 varBind = new AgentXVarBind(oid,
49 AgentXVarBind.INTEGER,
50 ifEntry_2.get_ifAdminStatus());
51 varBindList.addElement(varBind);
53 // add the ifOperStatus columnar object of ifEntry_3
54 oid = ifOperStatus_OID;
55 oid.appendImplied(ifEntry_3.getInstance());
56 varBind = new AgentXVarBind(oid,
57 AgentXVarBind.INTEGER,
58 ifEntry_3.get_ifOperStatus());
59 varBindList.addElement(varBind);
62 public Vector getVarBindList() {