|
||||||||||
PREV CLASS (src) NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.jmx.adaptor.snmp.agent.NotificationWrapperSupport
NotificationWrapperSupport provides a base NotificationWrapper implementation
Field Summary | |
protected Clock (src) |
clock
Provides uptime |
protected java.util.Map |
payload
Holds the notification payload keyed on the attibute name |
protected Counter (src) |
trapCount
Provides trap count |
Fields inherited from interface org.jboss.jmx.adaptor.snmp.agent.NotificationWrapper (src) |
ALL_TAG, CLASS_TAG, MESSAGE_TAG, SEQNO_TAG, STARTTIME_TAG, TRAPCOUNT_TAG, TSTAMP_TAG, TYPE_TAG, UPTIME_TAG |
Constructor Summary | |
NotificationWrapperSupport()
CTOR |
Method Summary | |
java.lang.Object |
get(java.lang.String tagName)
Implements the communication protocol between the caller and the data source (notification and agent) based on tags. |
void |
prime(Notification (src) n)
Set the notification to be used as the data source. |
void |
set(Clock (src) uptime,
Counter (src) count)
Loads the hashmap with the DCAs of interest. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected java.util.Map payload
protected Clock (src) clock
protected Counter (src) trapCount
Constructor Detail |
public NotificationWrapperSupport()
Method Detail |
public void set(Clock (src) uptime, Counter (src) count)
set
in interface NotificationWrapper (src)
public void prime(Notification (src) n)
prime
in interface NotificationWrapper (src)
n
- the notification to be used as data source at subsequent calls
of get()public java.lang.Object get(java.lang.String tagName) throws MappingFailedException (src)
get
in interface NotificationWrapper (src)
tagName
- the tag of the attribute the value of which is required
MappingFailedException (src)
- if for any reason the requested attribute
can not be found
|
||||||||||
PREV CLASS (src) NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |