|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
V
- the registered MBean type.public interface Container<V>
An interface to MBean registries accepting only strings as registry keys.
Method Summary | |
---|---|
void |
clear()
Clears all MBeans from this registry. |
boolean |
containsKey(String key)
Checks whether the specified key is registered in this registry. |
V |
get(String key)
Gets the referent of the MBean in this registry. |
String |
getContainerKey(ObjectName name)
Gets the key of a named MBean in this container. |
String |
getContainerKey(String ifname)
Gets the key of an MBean of a specific class in this container. |
String |
getContainerKey(String ifname,
ObjectName name)
Gets the key of a named MBean of a specific class in this container. |
MBeanReference<V> |
getMBean(String key)
Gets a reference to the MBean in this registry. |
String |
getMBeanInterface()
Gets the interface of MBeans in this registry. |
String |
getMBeanInterface(String key)
Gets the interface of a registry MBean. |
ObjectName |
getObjectName(String key)
Gets the object name of the MBean in this registry, which is also registered in the MBean server. |
Set<ObjectName> |
getObjectNames(String key)
Gets a set of object names registered in the MBean server with names matching the query pattern of the MBean in this registry. |
ObjectName |
getQueryPattern(String key)
Gets the query pattern, with which the MBean is registered in this registry. |
Set<String> |
registryKeySet()
Returns a read-only set of registered keys. |
Set<String> |
registryKeySet(ObjectName name)
Returns a set of registered keys of a named MBean in this registry. |
Set<String> |
registryKeySet(String ifname)
Returns a set of registered keys of MBeans of a specific class in this registry. |
Set<String> |
registryKeySet(String ifname,
ObjectName name)
Returns a set of registered keys of a named MBean of a specific class in this registry. |
Map<String,ObjectName> |
registryMap()
Returns a map view to this registry. |
int |
registrySize()
Gets the size of the registry. |
void |
remove(String key)
Removes an MBean from this registry. |
void |
setMBeanInterface(String key,
String ifname)
Sets the interface of a registry MBean. |
void |
setQueryPattern(String key,
ObjectName name)
Sets the object name of a registry MBean. |
void |
setQueryPattern(String key,
String ifname,
ObjectName name)
Sets the interface and object name of a registry MBean. |
Method Detail |
---|
String getMBeanInterface()
ObjectName getQueryPattern(String key)
key
- the registry key.
void setQueryPattern(String key, ObjectName name)
key
- the registry key.name
- the object name or query pattern.
NullPointerException
- for null values.void setQueryPattern(String key, String ifname, ObjectName name)
key
- the registry key.ifname
- the class or interface name.name
- the object name or query pattern.
NullPointerException
- for null values.String getMBeanInterface(String key)
key
- the registry key.
void setMBeanInterface(String key, String ifname)
key
- the registry key.ifname
- the class or interface name.
NullPointerException
- for null values.
IllegalArgumentException
- if not accepted.boolean containsKey(String key)
key
- the key to check.
V get(String key)
key
- the registry key.
MBeanReference<V> getMBean(String key)
key
- the registry key.
ObjectName getObjectName(String key)
key
- the registry key.
Set<ObjectName> getObjectNames(String key)
key
- the registry key.
String getContainerKey(String ifname)
ifname
- the class or interface name.
String getContainerKey(ObjectName name)
name
- the object name or query pattern.
String getContainerKey(String ifname, ObjectName name)
ifname
- the class or interface name.name
- the object name or query pattern.
int registrySize()
Set<String> registryKeySet()
Set<String> registryKeySet(String ifname)
ifname
- the class or interface name.
Set<String> registryKeySet(ObjectName name)
name
- the object name or query pattern.
Set<String> registryKeySet(String ifname, ObjectName name)
ifname
- the class or interface name.name
- the object name or query pattern.
void remove(String key)
key
- the registry key.void clear()
Map<String,ObjectName> registryMap()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |