|
|||||||||||
| PREV CLASS NEXT CLASS | 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 |
clock
Provides uptime |
protected Map |
payload
Holds the notification payload keyed on the attibute name |
protected Counter |
trapCount
Provides trap count |
| Fields inherited from interface org.jboss.jmx.adaptor.snmp.agent.NotificationWrapper |
ALL_TAG, CLASS_TAG, MESSAGE_TAG, SEQNO_TAG, STARTTIME_TAG, TRAPCOUNT_TAG, TSTAMP_TAG, TYPE_TAG, UPTIME_TAG |
| Constructor Summary | |
NotificationWrapperSupport()
CTOR |
|
| Method Summary | |
Object |
get(String tagName)
Implements the communication protocol between the caller and the data source (notification and agent) based on tags. |
void |
prime(javax.management.Notification n)
Set the notification to be used as the data source. |
void |
set(Clock uptime,
Counter 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 Map payload
protected Clock clock
protected Counter trapCount
| Constructor Detail |
public NotificationWrapperSupport()
| Method Detail |
public void set(Clock uptime, Counter count)
set in interface NotificationWrapperpublic void prime(javax.management.Notification n)
prime in interface NotificationWrappern - the notification to be used as data source at subsequent calls
of get()public Object get(String tagName) throws MappingFailedException
get in interface NotificationWrappertagName - the tag of the attribute the value of which is required
MappingFailedException - if for any reason the requested attribute
can not be found
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||