public class FNotification extends FNode
The object of this class is retrieved from MIB class for each notification node declared in a MIB. This object is required to send notification.
NOTES. [Forum 2006-10]
For traps, the sender is authoritative. That is, each sender may use
its own password for the same user name, because each sender MUST have
a different engine ID (that's a plain SNMPv3 requirement). For informs,
the receiver is authoritative. That is, there is only a single user
name / password combination defined by the receiver. All senders must
use this combination to successfully send an inform to that receiver.
Each sender discovers the receiver's engine ID by engine ID discovery.
Modifier and Type | Field and Description |
---|---|
static boolean |
NOTIFY_ENABLED
Used only for debugging to disable notifications.
|
Constructor and Description |
---|
FNotification(java.lang.String name,
org.snmp4j.smi.OID oid,
AgentWorker agent)
Constructor
|
Modifier and Type | Method and Description |
---|---|
void |
sendNotification()
Sends notification without any parameters
|
void |
sendNotification(java.lang.Object param)
Sends notification with a single parameter
|
void |
sendNotification(java.lang.Object[] paramAll)
Sends notification with parameters
|
void |
sendNotification(java.lang.Object[] paramAll,
org.snmp4j.smi.OID[] oidAll)
Sends notification with parameters declared in a MIB file.
|
getFID, getFIDtoString, getName, getOID, getOIDSize, getPersistStorage, makeFException, makeFException, setAgent
public static final boolean NOTIFY_ENABLED
public FNotification(java.lang.String name, org.snmp4j.smi.OID oid, AgentWorker agent)
name
- notification nameoid
- notification OIDagent
- agentpublic void sendNotification()
Exception is reported to registered with agent listener.
public void sendNotification(java.lang.Object param)
Exception is reported to registered with agent listener.
param
- parameter which is sent along with notificationpublic void sendNotification(java.lang.Object[] paramAll)
Exception is reported to registered with agent listener.
paramAll
- array of parameters which is sent along with notificationpublic void sendNotification(java.lang.Object[] paramAll, org.snmp4j.smi.OID[] oidAll)
paramAll
- array of parametersoidAll
- array of parameter's OIDs