public class SnmpaNotification extends Notification
Modifier and Type | Class and Description |
---|---|
static class |
SnmpaNotification.SnmpVar
Class representing a SNMP variable
|
static class |
SnmpaNotification.TrapInfo
Class representing trapinfo for a trap
|
static class |
SnmpaNotification.Varbind
Class representing a varbind for a trap
|
Modifier and Type | Field and Description |
---|---|
static int |
SNMPA_PDU_GET_BULK_REQUEST |
static int |
SNMPA_PDU_GET_NEXT_REQUEST |
static int |
SNMPA_PDU_GET_REQUEST |
static int |
SNMPA_PDU_GET_RESPONSE |
static int |
SNMPA_PDU_INFORM |
static int |
SNMPA_PDU_REPORT |
static int |
SNMPA_PDU_SET_REQUEST |
static int |
SNMPA_PDU_V1TRAP |
static int |
SNMPA_PDU_V2TRAP |
Constructor and Description |
---|
SnmpaNotification(int pdu_type,
int request_id,
int thandle,
InetAddress ip,
ConfObject ipValue,
int port,
int error_status,
int error_index,
int num_variables,
SnmpaNotification.Varbind[] varbinds,
SnmpaNotification.TrapInfo v1_trap) |
Modifier and Type | Method and Description |
---|---|
int |
getErrorIndex() |
int |
getErrorStatus() |
InetAddress |
getIP() |
ConfObject |
getIPValue() |
int |
getNumVariables()
size of vbinds
|
int |
getPDUType() |
int |
getPort() |
int |
getRequestId() |
int |
getTransaction() |
SnmpaNotification.TrapInfo |
getTrapInfo() |
SnmpaNotification.Varbind[] |
getVarBinds() |
String |
toString() |
getNotificationType
public static final int SNMPA_PDU_V1TRAP
public static final int SNMPA_PDU_V2TRAP
public static final int SNMPA_PDU_INFORM
public static final int SNMPA_PDU_GET_RESPONSE
public static final int SNMPA_PDU_GET_REQUEST
public static final int SNMPA_PDU_GET_NEXT_REQUEST
public static final int SNMPA_PDU_REPORT
public static final int SNMPA_PDU_GET_BULK_REQUEST
public static final int SNMPA_PDU_SET_REQUEST
public SnmpaNotification(int pdu_type, int request_id, int thandle, InetAddress ip, ConfObject ipValue, int port, int error_status, int error_index, int num_variables, SnmpaNotification.Varbind[] varbinds, SnmpaNotification.TrapInfo v1_trap)
public String toString()
toString
in class Notification
public int getPDUType()
public int getRequestId()
public int getTransaction()
public InetAddress getIP()
public ConfObject getIPValue()
public int getPort()
public int getErrorStatus()
public int getErrorIndex()
public int getNumVariables()
public SnmpaNotification.Varbind[] getVarBinds()
public SnmpaNotification.TrapInfo getTrapInfo()