1 20 21 package org.snmp4j.util; 22 23 import org.snmp4j.smi.OID; 24 import org.snmp4j.smi.VariableBinding; 25 import org.snmp4j.PDU; 26 27 36 public class TableEvent extends RetrievalEvent { 37 38 private static final long serialVersionUID = 3340523737695933621L; 39 40 private OID index; 41 42 protected TableEvent(Object source, Object userObject) { 43 super(source, userObject); 44 this.userObject = userObject; 45 } 46 47 56 public TableEvent(Object source, Object userObject, int status) { 57 this(source, userObject); 58 this.status = status; 59 } 60 61 70 public TableEvent(Object source, Object userObject, Exception exception) { 71 this(source, userObject); 72 this.exception = exception; 73 this.status = STATUS_EXCEPTION; 74 } 75 76 85 public TableEvent(Object source, Object userObject, PDU report) { 86 this(source, userObject); 87 this.reportPDU = report; 88 this.status = STATUS_REPORT; 89 } 90 91 108 public TableEvent(Object source, Object userObject, 109 OID index, VariableBinding[] cols) { 110 super(source, userObject, cols); 111 this.index = index; 112 } 113 114 120 public OID getIndex() { 121 return index; 122 } 123 124 136 public VariableBinding[] getColumns() { 137 return vbs; 138 } 139 140 141 } 142 | Popular Tags |