1 20 21 package org.snmp4j.event; 22 23 import java.util.EventObject ; 24 import org.snmp4j.smi.OctetString; 25 import org.snmp4j.smi.Address; 26 27 35 public class SnmpEngineEvent extends EventObject { 36 37 private static final long serialVersionUID = -7287039511083410591L; 38 39 public static final int ADDED_ENGINE_ID = 1; 40 public static final int REMOVED_ENGINE_ID = 2; 41 42 private OctetString engineID; 43 private Address engineAddress; 44 private int type; 45 46 public SnmpEngineEvent(Object source, int type, 47 OctetString engineID, Address engineAddress) { 48 super(source); 49 this.engineID = engineID; 50 this.type = type; 51 this.engineAddress = engineAddress; 52 } 53 54 59 public int getType() { 60 return type; 61 } 62 63 68 public OctetString getEngineID() { 69 return engineID; 70 } 71 72 77 public Address getEngineAddress() { 78 return engineAddress; 79 } 80 81 } 82 | Popular Tags |