1 20 21 22 package org.snmp4j.agent; 23 24 import java.util.*; 25 26 import org.snmp4j.smi.*; 27 28 35 public class ContextEvent extends EventObject { 36 37 private static final long serialVersionUID = -7705596020456783972L; 38 39 public static final int CONTEXT_ADDED = 1; 40 public static final int CONTEXT_REMOVED = 2; 41 42 private int type; 43 private OctetString context; 44 45 55 public ContextEvent(Object source, int type, OctetString context) { 56 super(source); 57 this.type = type; 58 this.context = context; 59 } 60 61 66 public OctetString getContext() { 67 return context; 68 } 69 70 75 public int getType() { 76 return type; 77 } 78 } 79 | Popular Tags |