1 20 21 package org.snmp4j.event; 22 23 import java.util.EventObject ; 24 import org.snmp4j.smi.OID; 25 import org.snmp4j.smi.Variable; 26 import org.snmp4j.smi.Counter32; 27 import org.snmp4j.smi.Counter64; 29 30 43 public class CounterEvent extends EventObject { 44 45 private static final long serialVersionUID = 7916507798848195425L; 46 47 private OID oid; 48 private Variable currentValue = new Counter32(); 49 50 58 public CounterEvent(Object source, OID oid) { 59 super(source); 60 this.oid = oid; 61 } 62 63 68 public OID getOid() { 69 return oid; 70 } 71 72 78 public Variable getCurrentValue() { 79 return currentValue; 80 } 81 82 89 public void setCurrentValue(Variable currentValue) { 90 this.currentValue = currentValue; 91 } 92 } 93 | Popular Tags |