|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.Dictionary
java.util.Hashtable
org.glite.ce.commonj.axis.handlers.ConfigCache
This class is a table of MBeans handling gJAF plugin. Every MBean inserted into or removed from this table is automatically registered into or unregistered from a given MBean server. It is able to read notifications issued by a JMX agent in order to keep updated the list of MBeans.
Constructor Summary | |
ConfigCache(javax.management.MBeanServer mbsrv)
The constructor for this class. |
Method Summary | |
void |
clear()
Method used to remove all items of the table. |
void |
handleNotification(javax.management.Notification notification,
java.lang.Object handback)
This method is called by a JMX agent in order to notify a generic event. |
boolean |
isNotificationEnabled(javax.management.Notification notification)
Method used to filter notifications. |
java.util.Enumeration |
keys()
This method returns an enumeration of plugin names |
java.lang.Object |
put(java.lang.Object k,
java.lang.Object v)
Method used to insert an item into the table. |
java.lang.Object |
remove(java.lang.Object k)
This method removes an MBean from the table. |
java.lang.String[] |
toArray()
This method returns an array of plugin names contained into this table |
Methods inherited from class java.util.Hashtable |
clone, contains, containsKey, containsValue, elements, entrySet, equals, get, hashCode, isEmpty, keySet, putAll, rehash, size, toString, values |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public ConfigCache(javax.management.MBeanServer mbsrv)
mbsrv
- is the MBean server used for MBean
registration/removalMethod Detail |
public void clear()
clear
in interface java.util.Map
public java.util.Enumeration keys()
public java.lang.Object put(java.lang.Object k, java.lang.Object v)
put
in interface java.util.Map
k
- is the name of the pluginv
- is the MBean to insert into the table
public java.lang.Object remove(java.lang.Object k)
remove
in interface java.util.Map
k
- is the name of the plugin
public java.lang.String[] toArray()
public void handleNotification(javax.management.Notification notification, java.lang.Object handback)
handleNotification
in interface javax.management.NotificationListener
notification
- contains information about the event notifiedhandback
- unused callback objectpublic boolean isNotificationEnabled(javax.management.Notification notification)
isNotificationEnabled
in interface javax.management.NotificationFilter
notification
- contains information about the event notified
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |