|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.snmp4j.agent.NotificationTask
public class NotificationTask
The NotificationTask is a Runnable that sends
a notifcation or a series of notifications/traps/informs - depending
on the configuration associated with the supplied
NotificationOriginator.
| Constructor Summary | |
|---|---|
NotificationTask(NotificationOriginator notificationOriginator,
org.snmp4j.smi.OctetString context,
org.snmp4j.smi.OID notificationID,
org.snmp4j.smi.TimeTicks sysUptime,
org.snmp4j.smi.VariableBinding[] vbs)
|
|
| Method Summary | |
|---|---|
org.snmp4j.smi.OctetString |
getContext()
|
org.snmp4j.smi.OID |
getNotificationID()
|
NotificationOriginator |
getNotificationOriginator()
|
org.snmp4j.event.ResponseEvent[] |
getResponses()
Returns an array of ResponseEvent instances. |
org.snmp4j.smi.TimeTicks |
getSysUpTime()
|
org.snmp4j.smi.VariableBinding[] |
getVariableBindings()
|
void |
interrupt()
|
void |
join()
|
void |
run()
Send the notification a notify this object afterwards. |
void |
terminate()
This method does nothing by default, because this task cannot be terminated gracefully while being executed. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public NotificationTask(NotificationOriginator notificationOriginator,
org.snmp4j.smi.OctetString context,
org.snmp4j.smi.OID notificationID,
org.snmp4j.smi.TimeTicks sysUptime,
org.snmp4j.smi.VariableBinding[] vbs)
| Method Detail |
|---|
public void run()
run in interface java.lang.Runnablepublic org.snmp4j.smi.OctetString getContext()
public org.snmp4j.smi.OID getNotificationID()
public NotificationOriginator getNotificationOriginator()
public org.snmp4j.event.ResponseEvent[] getResponses()
NotificationOriginator determines on behalf of the
SNMP-NOTIFICTON-MIB contents whether a notification is sent as
trap/notification or as inform request, the returned array contains
an element for each addressed target, but only a response PDU for
inform targets.
null
values (for traps/notifications).public org.snmp4j.smi.TimeTicks getSysUpTime()
public org.snmp4j.smi.VariableBinding[] getVariableBindings()
public void terminate()
terminate in interface org.snmp4j.util.WorkerTask
public void join()
throws java.lang.InterruptedException
join in interface org.snmp4j.util.WorkerTaskjava.lang.InterruptedExceptionpublic void interrupt()
interrupt in interface org.snmp4j.util.WorkerTask
|
Copyright 2005-2010 Frank Fock (SNMP4J.org) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||