|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.norther.tammi.core.base.Adaptee
org.norther.tammi.core.base.DefaultContainer
public class DefaultContainer
A default implementation of Container.
| Field Summary |
|---|
| Fields inherited from class org.norther.tammi.core.base.Adaptee |
|---|
ADAPTEE_NOTIF_DESCRIPTION, ADAPTEE_NOTIFICATIONS |
| Fields inherited from interface org.norther.tammi.core.base.MBeanDelegate |
|---|
ARRAY_TYPE, OBJECT_TYPE, PRIMITIVE_TYPE, STRING_TYPE |
| Constructor Summary | |
|---|---|
|
DefaultContainer()
Constructs a new container. |
|
DefaultContainer(String ifname)
Constructs a new container with a named interface. |
protected |
DefaultContainer(String ifname,
int capacity)
Constructs a new container with a named interface and initial capacity. |
| Method Summary | |
|---|---|
void |
clear()
Clears all MBeans from this registry. |
boolean |
containsKey(String key)
Checks whether the specified key is registered in this registry. |
Object |
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 |
getMBean(String key)
Gets a reference to the MBean in this registry. |
protected MBeanHandle |
getMBeanHandle(String key)
Gets a reference to a mapped MBean. |
protected ConcurrentMap |
getMBeanHandles()
Gets a map of MBean references. |
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 |
getObjectNames(String key)
Gets a set of ojbect 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 |
registryKeySet()
Returns a read-only set of registered keys. |
Set |
registryKeySet(ObjectName name)
Returns a set of registered keys a named MBean in this registry. |
Set |
registryKeySet(String ifname)
Returns a set of registered keys of MBeans of a specific class in this registry. |
Set |
registryKeySet(String ifname,
ObjectName name)
Returns a set of registered keys of a named MBean of a specific class in this registry. |
Map |
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. |
| Methods inherited from class org.norther.tammi.core.base.Adaptee |
|---|
addAdaptee, addNotificationListener, getAttributeSupport, getBroker, getCanonicalName, getDomain, getFactory, getLoader, getLog, getLog, getMBean, getMBeanServer, getNotificationInfo, getObjectName, getRegistrationTime, getSequenceNumber, hasListeners, isRegistered, postmanaged, premanaged, removeNotificationListener, removeNotificationListener, sendNotification, sendNotification, sendNotification, sendNotification, unmanaged, unregister |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultContainer()
public DefaultContainer(String ifname)
ifname - the name of the interface.
protected DefaultContainer(String ifname,
int capacity)
ifname - the name of the interface.capacity - the initial capacity.| Method Detail |
|---|
public String getMBeanInterface()
Container
getMBeanInterface in interface Containerpublic ObjectName getQueryPattern(String key)
Container
getQueryPattern in interface Containerkey - the registry key.
public void setQueryPattern(String key,
ObjectName name)
Container
setQueryPattern in interface Containerkey - the registry key.name - the object name or query pattern.
public void setQueryPattern(String key,
String ifname,
ObjectName name)
Container
setQueryPattern in interface Containerkey - the registry key.ifname - the class or interface name.name - the object name or query pattern.public String getMBeanInterface(String key)
Container
getMBeanInterface in interface Containerkey - the registry key.
public void setMBeanInterface(String key,
String ifname)
Container
setMBeanInterface in interface Containerkey - the registry key.ifname - the class or interface name.public boolean containsKey(String key)
Container
containsKey in interface Containerkey - the key to check.
public Object get(String key)
Container
get in interface Containerkey - the registry key.
public MBeanReference getMBean(String key)
Container
getMBean in interface Containerkey - the registry key.
public ObjectName getObjectName(String key)
Container
getObjectName in interface Containerkey - the registry key.
public Set getObjectNames(String key)
Container
getObjectNames in interface Containerkey - the registry key.
public String getContainerKey(String ifname)
Container
getContainerKey in interface Containerifname - the class or interface name.
public String getContainerKey(ObjectName name)
Container
getContainerKey in interface Containername - the object name or query pattern.
public String getContainerKey(String ifname,
ObjectName name)
Container
getContainerKey in interface Containerifname - the class or interface name.name - the object name or query pattern.
public int registrySize()
Container
registrySize in interface Containerpublic Set registryKeySet(String ifname)
Container
registryKeySet in interface Containerifname - the class or interface name.
public Set registryKeySet(ObjectName name)
Container
registryKeySet in interface Containername - the object name or query pattern.
public Set registryKeySet(String ifname,
ObjectName name)
Container
registryKeySet in interface Containerifname - the class or interface name.name - the object name or query pattern.
public Set registryKeySet()
Container
registryKeySet in interface Containerpublic void remove(String key)
Container
remove in interface Containerkey - the registry key.public void clear()
Container
clear in interface Containerpublic Map registryMap()
Container
registryMap in interface Containerprotected MBeanHandle getMBeanHandle(String key)
Note that the reference is meant for internal use only.
key - the key to the MBean.
protected ConcurrentMap getMBeanHandles()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||