|
||||||||||
| 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
org.norther.tammi.core.base.DefaultBroker
public class DefaultBroker
A default implementation of Broker.
This implementation provides also static convenience methods to access directly the search functionality of the default broker.
| 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 | |
|---|---|
DefaultBroker()
Constructs a new broker. |
|
| Method Summary | |
|---|---|
Object |
get(Class clazz)
Gets the referent of the default MBean implementing a specific interface. |
Object |
get(String key)
Gets the referent of the MBean in this registry. |
MBeanReference |
getMBean(Class clazz)
Gets a reference to the default MBean implementing a specific interface. |
MBeanReference |
getMBean(String key)
Gets a reference to the MBean in this registry. |
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. |
void |
postmanaged()
This method is called when the implementing adaptee has been managed either during post-registration of the corresponding adapter MBean or just after it is explicitly added to the adapter MBean during run-time. |
MBeanReference |
queryMBean(ObjectName query)
Queries for an MBean. |
MBeanReference |
queryMBean(ObjectName query,
QueryExp exp)
Queries for an MBean with a query expression. |
MBeanReference |
queryMBean(ObjectName query,
String className)
Queries for an MBean of the specified class. |
MBeanReference |
queryMBean(String pattern)
Queries for an MBean matching the given query pattern. |
MBeanReference |
queryMBean(String domain,
Map keySet,
String className)
Queries for an MBean from the specific domain, with the given key set and of the specified class. |
MBeanReference |
queryMBean(String pattern,
String className)
Queries for an MBean matching the given query pattern and of the specified class. |
ObjectName |
queryObjectName(ObjectName query)
Queries for an object name of an MBean. |
ObjectName |
queryObjectName(ObjectName query,
QueryExp exp)
Queries for an object name of an MBean with a query expression. |
ObjectName |
queryObjectName(ObjectName query,
String className)
Queries for an object name of an MBean of the specified class. |
ObjectName |
queryObjectName(String pattern)
Queries for an object name of an MBean matching the given query pattern. |
ObjectName |
queryObjectName(String domain,
Map keySet,
String className)
Queries for an object name of an MBean from the specific domain, with the given key set and of the specified class. |
ObjectName |
queryObjectName(String pattern,
String className)
Queries for an object name of an MBean matching the given query pattern and of the specified class. |
Set |
queryObjectNames(ObjectName query)
Queries for a set of object names of MBeans. |
Set |
queryObjectNames(ObjectName query,
QueryExp exp)
Queries for a set of object names of MBeans with a query expression. |
Set |
queryObjectNames(ObjectName query,
String className)
Queries for a set of object names of MBeans of the specified class. |
Set |
queryObjectNames(String pattern)
Queries for a set of object names of MBeans matching the given query pattern. |
Set |
queryObjectNames(String domain,
Map keySet,
String className)
Queries for a set of object names of MBeans from the specific domain, with given key set and of the specified class. |
Set |
queryObjectNames(String pattern,
String className)
Queries for a set of object names of MBeans matching the given query pattern and of the specified class. |
void |
remove(String key)
Removes an MBean from this registry. |
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. |
void |
unmanaged()
This method is called when the implementing adaptee is unmanaged either during pre-deregistration of the corresponding adapter MBean or just before it is explicitly removed from the adapter MBean during run-time. |
| Methods inherited from class org.norther.tammi.core.base.DefaultContainer |
|---|
clear, containsKey, getContainerKey, getContainerKey, getContainerKey, getMBeanHandle, getMBeanHandles, getMBeanInterface, getMBeanInterface, getQueryPattern, registryKeySet, registryKeySet, registryKeySet, registryKeySet, registryMap, registrySize, setMBeanInterface |
| 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, premanaged, removeNotificationListener, removeNotificationListener, sendNotification, sendNotification, sendNotification, sendNotification, unregister |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.norther.tammi.core.base.Container |
|---|
clear, containsKey, getContainerKey, getContainerKey, getContainerKey, getMBeanInterface, getMBeanInterface, getQueryPattern, registryKeySet, registryKeySet, registryKeySet, registryKeySet, registryMap, registrySize, setMBeanInterface |
| Constructor Detail |
|---|
public DefaultBroker()
| Method Detail |
|---|
public void postmanaged()
Manageable
postmanaged in interface Manageablepostmanaged in class Adaptee
public void unmanaged()
throws Exception
Manageable
unmanaged in interface Manageableunmanaged in class AdapteeException - if the adaptee refused to be unmanaged.public Object get(Class clazz)
Broker
get in interface Brokerclazz - the MBean interface of the default MBean.
public MBeanReference getMBean(Class clazz)
Broker
getMBean in interface Brokerclazz - the MBean interface of the default MBean.
public Object get(String key)
Container
get in interface Containerget in class DefaultContainerkey - the registry key.
public MBeanReference getMBean(String key)
Container
getMBean in interface ContainergetMBean in class DefaultContainerkey - the registry key.
public ObjectName getObjectName(String key)
Container
getObjectName in interface ContainergetObjectName in class DefaultContainerkey - the registry key.
public Set getObjectNames(String key)
Container
getObjectNames in interface ContainergetObjectNames in class DefaultContainerkey - the registry key.
public void setQueryPattern(String key,
ObjectName name)
Container
setQueryPattern in interface ContainersetQueryPattern in class DefaultContainerkey - the registry key.name - the object name or query pattern.
public void setQueryPattern(String key,
String ifname,
ObjectName name)
Container
setQueryPattern in interface ContainersetQueryPattern in class DefaultContainerkey - the registry key.ifname - the class or interface name.name - the object name or query pattern.public void remove(String key)
Container
remove in interface Containerremove in class DefaultContainerkey - the registry key.public MBeanReference queryMBean(ObjectName query)
Broker
queryMBean in interface Brokerquery - a query pattern.
public MBeanReference queryMBean(ObjectName query,
QueryExp exp)
Broker
queryMBean in interface Brokerquery - a query pattern.exp - an optional query expression.
public MBeanReference queryMBean(ObjectName query,
String className)
Broker
queryMBean in interface Brokerquery - a query pattern.className - a class or interface, null for any.
public MBeanReference queryMBean(String pattern)
Broker
queryMBean in interface Brokerpattern - a query pattern as a string.
public MBeanReference queryMBean(String pattern,
String className)
Broker
queryMBean in interface Brokerpattern - a query pattern as a string.className - a class or interface, null for any.
public MBeanReference queryMBean(String domain,
Map keySet,
String className)
Broker
queryMBean in interface Brokerdomain - the query domain, null for any.keySet - a set of keys, null for any.className - a class or interface, null for any.
public ObjectName queryObjectName(ObjectName query)
Broker
queryObjectName in interface Brokerquery - a query pattern.
public ObjectName queryObjectName(ObjectName query,
QueryExp exp)
Broker
queryObjectName in interface Brokerquery - a query pattern.exp - an optional query expression.
public ObjectName queryObjectName(ObjectName query,
String className)
Broker
queryObjectName in interface Brokerquery - a query pattern.className - a class or interface, null for any.
public ObjectName queryObjectName(String pattern)
Broker
queryObjectName in interface Brokerpattern - a query pattern as a string.
public ObjectName queryObjectName(String pattern,
String className)
Broker
queryObjectName in interface Brokerpattern - a query pattern as a string.className - a class or interface, null for any.
public ObjectName queryObjectName(String domain,
Map keySet,
String className)
Broker
queryObjectName in interface Brokerdomain - the query domain, null for any.keySet - a set of keys, null for any.className - a class or interface, null for any.
public Set queryObjectNames(ObjectName query)
Broker
queryObjectNames in interface Brokerquery - a query pattern.
public Set queryObjectNames(ObjectName query,
QueryExp exp)
Broker
queryObjectNames in interface Brokerquery - a query pattern.exp - an optional query expression.
public Set queryObjectNames(ObjectName query,
String className)
Broker
queryObjectNames in interface Brokerquery - a query pattern.className - a class or interface, null for any.
public Set queryObjectNames(String pattern)
Broker
queryObjectNames in interface Brokerpattern - a query pattern as a string.
public Set queryObjectNames(String pattern,
String className)
Broker
queryObjectNames in interface Brokerpattern - a query pattern as a string.className - a class or interface, null for any.
public Set queryObjectNames(String domain,
Map keySet,
String className)
Broker
queryObjectNames in interface Brokerdomain - the query domain, null for any.keySet - a set of keys, null for any.className - a class or interface, null for any.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||