|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Broker
An interface to a broker. The broker supports both queries to any MBeans registered to the MBean server and direct shortcuts to MBeans having an explicit alias maintained by the MBean registry of the broker itself. An alias is a mapping between a chosen alias key and an object name or a query pattern.
MBeans registered to the same domain as the broker itself have automatically alias keys formed from their interface names with package names replaced by an asterisk. The mapping of the default alias key can be replaced in the configuration, but care must be taken that the aliased MBean definitely implements the corresponding interface.
| Method Summary | |
|---|---|
Object |
get(Class clazz)
Gets the referent of the default MBean implementing a specific interface. |
MBeanReference |
getMBean(Class clazz)
Gets a reference to the default MBean implementing a specific interface. |
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. |
| Methods inherited from interface org.norther.tammi.core.base.Container |
|---|
clear, containsKey, get, getContainerKey, getContainerKey, getContainerKey, getMBean, getMBeanInterface, getMBeanInterface, getObjectName, getObjectNames, getQueryPattern, registryKeySet, registryKeySet, registryKeySet, registryKeySet, registryMap, registrySize, remove, setMBeanInterface, setQueryPattern, setQueryPattern |
| Method Detail |
|---|
Object get(Class clazz)
clazz - the MBean interface of the default MBean.
MBeanReference getMBean(Class clazz)
clazz - the MBean interface of the default MBean.
MBeanReference queryMBean(ObjectName query)
query - a query pattern.
MBeanReference queryMBean(ObjectName query,
QueryExp exp)
query - a query pattern.exp - an optional query expression.
MBeanReference queryMBean(ObjectName query,
String className)
query - a query pattern.className - a class or interface, null for any.
MBeanReference queryMBean(String pattern)
pattern - a query pattern as a string.
MBeanReference queryMBean(String pattern,
String className)
pattern - a query pattern as a string.className - a class or interface, null for any.
MBeanReference queryMBean(String domain,
Map keySet,
String className)
domain - the query domain, null for any.keySet - a set of keys, null for any.className - a class or interface, null for any.
ObjectName queryObjectName(ObjectName query)
query - a query pattern.
ObjectName queryObjectName(ObjectName query,
QueryExp exp)
query - a query pattern.exp - an optional query expression.
ObjectName queryObjectName(ObjectName query,
String className)
query - a query pattern.className - a class or interface, null for any.
ObjectName queryObjectName(String pattern)
pattern - a query pattern as a string.
ObjectName queryObjectName(String pattern,
String className)
pattern - a query pattern as a string.className - a class or interface, null for any.
ObjectName queryObjectName(String domain,
Map keySet,
String className)
domain - the query domain, null for any.keySet - a set of keys, null for any.className - a class or interface, null for any.
Set queryObjectNames(ObjectName query)
query - a query pattern.
Set queryObjectNames(ObjectName query,
QueryExp exp)
query - a query pattern.exp - an optional query expression.
Set queryObjectNames(ObjectName query,
String className)
query - a query pattern.className - a class or interface, null for any.
Set queryObjectNames(String pattern)
pattern - a query pattern as a string.
Set queryObjectNames(String pattern,
String className)
pattern - a query pattern as a string.className - a class or interface, null for any.
Set queryObjectNames(String domain,
Map keySet,
String className)
domain - 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 | |||||||||