|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Domain
An interface to domains marking the default domain of the MBean server, providing MBean server services and system dependent properties.
Field Summary | |
---|---|
static String |
ANY_DOMAIN
The wildcard. |
static String |
HPUX
HP-UX OS. |
static String |
LNX32
Linux 32 OS. |
static String |
LNX64
Linux 64 OS. |
static String |
MACOS
Macintosh OS. |
static String |
OS_ARCH_PROPERTY
The OS architecture property. |
static String |
OS_NAME_PROPERTY
The OS name property. |
static String |
OS_TYPE_PROPERTY
The OS type property. |
static String |
SUNOS
Sun OS. |
static String |
UNKNOWN
Unknown OS. |
static String |
WIN32
Windows 32 OS. |
static String |
WIN64
Windows 64 OS. |
Method Summary | |
---|---|
ModelMBean |
adapt(Object object,
String ifName)
Adapts the specified object exposing the specified class or interface by applying the default model MBean and the domain MBean loader. |
ModelMBean |
adapt(Object object,
String ifName,
ObjectName loader)
Adapts the specified object exposing the specified class or interface by applying the default model MBean and the named MBean loader. |
ModelMBean |
adapt(Object object,
String ifName,
ObjectName loader,
MBeanServer server)
Adapts the specified object exposing the specified class or interface by applying the named MBean loader in the given MBean server. |
ModelMBean |
adapt(Object object,
String ifName,
String modelName)
Adapts the specified object exposing the specified class or interface by applying the specified model MBean and the domain MBean loader. |
ModelMBean |
adapt(Object object,
String ifName,
String modelName,
ObjectName loader)
Adapts the specified object exposing the specified class or interface by applying the specified model MBean and the named MBean loader. |
ModelMBean |
adapt(Object object,
String ifName,
String modelName,
ObjectName loader,
MBeanServer server)
Adapts the specified object exposing the specified class or interface by applying the specified model MBean, the named MBean loader in the given MBean server. |
ObjectInstance |
adaptMBean(String className,
ObjectName name,
String ifName)
Adapts a named MBean exposing the specified class or interface by applying the default model MBean and the domain MBean loader. |
ObjectInstance |
adaptMBean(String className,
ObjectName name,
String ifName,
Object[] params,
String[] signature)
Adapts a named MBean exposing the specified class or interface with parameters by applying the default model MBean and the domain MBean loader. |
ObjectInstance |
adaptMBean(String className,
ObjectName name,
String ifName,
ObjectName loader)
Adapts a named MBean exposing the specified class or interface by applying the default model MBean and the named MBean loader. |
ObjectInstance |
adaptMBean(String className,
ObjectName name,
String ifName,
ObjectName loader,
Object[] params,
String[] signature)
Adapts a named MBean exposing the specified class or interface with parameters by applying the default model MBean and the named MBean loader. |
ObjectInstance |
adaptMBean(String className,
ObjectName name,
String ifName,
String modelName)
Adapts a named MBean exposing the specified class or interface by applying the specified model MBean and the domain MBean loader. |
ObjectInstance |
adaptMBean(String className,
ObjectName name,
String ifName,
String modelName,
Object[] params,
String[] signature)
Adapts a named MBean exposing the specified class or interface with parameters by applying the specified model MBean and the domain MBean loader. |
ObjectInstance |
adaptMBean(String className,
ObjectName name,
String ifName,
String modelName,
ObjectName loader)
Adapts a named MBean exposing the specified class or interface by applying the specified model MBean and the named MBean loader. |
ObjectInstance |
adaptMBean(String className,
ObjectName name,
String ifName,
String modelName,
ObjectName loader,
Object[] params,
String[] signature)
Adapts a named MBean exposing the specified class or interface with parameters by applying the specified model MBean and the named MBean loader. |
ObjectInstance |
createMBean(String className,
ObjectName name)
Creates a named MBean by applying the domain MBean loader. |
ObjectInstance |
createMBean(String className,
ObjectName name,
Object[] params,
String[] signature)
Creates a named MBean with parameters by applying the domain MBean loader. |
ObjectInstance |
createMBean(String className,
ObjectName name,
ObjectName loader)
Creates a named MBean by applying the named MBean loader. |
ObjectInstance |
createMBean(String className,
ObjectName name,
ObjectName loader,
Object[] params,
String[] signature)
Creates a named MBean with parameters by applying the named MBean loader. |
MBeanReference<Broker> |
getBrokerMBean()
Gets a reference to the broker of this domain. |
ObjectName |
getBrokerName()
Gets the broker of this domain. |
String |
getDefaultDomain()
Gets the name with the default context of this domain. |
ObjectName |
getDefaultQuery()
Gets a query to the default context of this domain. |
MBeanReference<Domain> |
getDomainMBean()
Gets a reference to the domain MBean of this domain. |
String |
getDomainName()
Gets the name without the context of this domain. |
String[] |
getDomainNames()
Gets the domain names without the contexts of this domain. |
MBeanReference<Factory> |
getFactoryMBean()
Gets a reference to the factory of this domain. |
ObjectName |
getFactoryName()
Gets the the factory of this domain. |
MBeanReference<Loader> |
getLoaderMBean()
Gets a reference to the loader MBean of this domain. |
ObjectName |
getLoaderName()
Gets the loader of this domain. |
MBeanInfo |
getMBeanInfo(ObjectName name)
Gets the MBean info the named MBean. |
String |
getModelMBeanClassName()
Gets the model MBean class name. |
ObjectInstance |
getObjectInstance(ObjectName name)
Gets the object instance the named MBean. |
ObjectName |
getObjectName(String name)
Gets a string as an object name. |
ObjectName |
getObjectName(String domain,
Hashtable<String,String> table)
Gets a hashtable as an object name using the specified domain. |
ObjectName |
getObjectName(String domain,
String key,
String value)
Gets a key property as an object name using the given domain. |
String |
getOSArch()
Gets the OS architecture. |
String |
getOSName()
Gets the OS name. |
String |
getOSType()
Gets the OS type. |
String |
getProperty(String key)
Gets the specified system property. |
String |
getProperty(String key,
String def)
Gets the specified system property with a default. |
boolean |
isInstanceOf(ObjectName name,
String className)
Checks the class of the named MBean. |
boolean |
isRegistered(ObjectName name)
Checks registration of the named MBean. |
Properties |
properties()
Gets the current map of system properties. |
Set<ObjectName> |
queryDefaultNames()
Queries for a set of object names of MBeans in the default context of this domain. |
Set<ObjectName> |
queryDefaultNames(QueryExp exp)
Queries for a set of object names of MBeans in the default context of this domain with a query expression. |
Set<ObjectName> |
queryDefaultNames(String className)
Queries for a set of object names of MBeans in the default context of this domain of the specified class. |
Set<ObjectName> |
queryObjectNames()
Queries for a set of object names of MBeans in any of the contexts of this domain. |
Set<ObjectName> |
queryObjectNames(QueryExp exp)
Queries for a set of object names of MBeans in any of the contexts of this domain with a query expression. |
Set<ObjectName> |
queryObjectNames(String className)
Queries for a set of object names of MBeans in any of the contexts of this domain of the specified class. |
ObjectInstance |
registerMBean(Object object,
ObjectName name)
Registers the named MBean. |
ObjectInstance |
registerMBean(Object object,
ObjectName name,
String ifName)
Registers the named MBean exposing the specified class or interface by applying the default model MBean. |
ObjectInstance |
registerMBean(Object object,
ObjectName name,
String ifName,
String modelName)
Registers the named MBean exposing the specified class or interface by applying the specified model MBean. |
void |
setBrokerName(ObjectName broker)
Sets the broker of this domain. |
void |
setFactoryName(ObjectName factory)
Sets the factory of this domain. |
void |
setLoaderName(ObjectName loader)
Sets the loader of this domain. |
void |
setModelMBeanClassName(String className)
Sets the model MBean class name. |
void |
setProperty(String key,
String value)
Sets the specified system property. |
void |
unregisterMBean(ObjectName name)
Unregisters the named MBean. |
Field Detail |
---|
static final String ANY_DOMAIN
static final String OS_NAME_PROPERTY
static final String OS_ARCH_PROPERTY
static final String OS_TYPE_PROPERTY
static final String WIN32
static final String WIN64
static final String LNX32
static final String LNX64
static final String SUNOS
static final String HPUX
static final String MACOS
static final String UNKNOWN
Method Detail |
---|
String getOSType()
String getOSName()
String getOSArch()
String getDomainName()
String[] getDomainNames()
String getDefaultDomain()
ObjectName getDefaultQuery()
Set<ObjectName> queryDefaultNames()
Set<ObjectName> queryDefaultNames(QueryExp exp)
exp
- an optional query expression.
Set<ObjectName> queryDefaultNames(String className)
className
- a class or interface, null for any.
Set<ObjectName> queryObjectNames()
Set<ObjectName> queryObjectNames(QueryExp exp)
exp
- an optional query expression.
Set<ObjectName> queryObjectNames(String className)
className
- a class or interface, null for any.
String getProperty(String key)
key
- the key of the system property.
String getProperty(String key, String def)
key
- the key of the system property.def
- the default value.
void setProperty(String key, String value)
key
- the key of the system property.value
- the value of the system property.Properties properties()
String getModelMBeanClassName()
void setModelMBeanClassName(String className)
className
- the model MBean class name.MBeanInfo getMBeanInfo(ObjectName name) throws RegistrationException
name
- the object name of the MBean.
RegistrationException
- if not registered.ObjectInstance getObjectInstance(ObjectName name) throws RegistrationException
name
- the object name of the MBean.
RegistrationException
- if not registered.boolean isInstanceOf(ObjectName name, String className) throws RegistrationException
name
- the object name of the MBean.className
- the class name to check.
RegistrationException
- if not registered.ModelMBean adapt(Object object, String ifName) throws ConstructionException, AdaptationException
object
- the object instance to adapt.ifName
- the exposed interface of the MBean.
ConstructionException
- if construction fails.
AdaptationException
- if adaptation fails.ModelMBean adapt(Object object, String ifName, String modelName) throws ConstructionException, AdaptationException
object
- the object instance to adapt.ifName
- the exposed interface of the MBean.modelName
- the model MBean adapter to apply.
ConstructionException
- if construction fails.
AdaptationException
- if adaptation fails.ModelMBean adapt(Object object, String ifName, ObjectName loader) throws ConstructionException, AdaptationException
object
- the object instance to adapt.ifName
- the exposed interface of the MBean.loader
- the object name of the loader.
ConstructionException
- if construction fails.
AdaptationException
- if adaptation fails.ModelMBean adapt(Object object, String ifName, String modelName, ObjectName loader) throws ConstructionException, AdaptationException
object
- the object instance to adapt.ifName
- the exposed interface of the MBean.loader
- the object name of the loader.modelName
- the model MBean adapter to apply.
ConstructionException
- if construction fails.
AdaptationException
- if adaptation fails.ModelMBean adapt(Object object, String ifName, ObjectName loader, MBeanServer server) throws ConstructionException, AdaptationException
This method can be applied to adapt objects even when the domain is not yet registered; especially the domain itself may be adapted.
object
- the object instance to adapt.ifName
- the exposed interface of the MBean.loader
- the object name of the loader.server
- the MBean server to apply.
ConstructionException
- if construction fails.
AdaptationException
- if adaptation fails.ModelMBean adapt(Object object, String ifName, String modelName, ObjectName loader, MBeanServer server) throws ConstructionException, AdaptationException
This method can be applied to adapt objects even when the domain is not yet registered; especially the domain itself may be adapted.
object
- the object instance to adapt.ifName
- the exposed interface of the MBean.loader
- the object name of the loader.modelName
- the model MBean adapter to apply.server
- the MBean server to apply.
ConstructionException
- if construction fails.
AdaptationException
- if adaptation fails.ObjectInstance createMBean(String className, ObjectName name) throws ConstructionException, RegistrationException
className
- the class name of the MBean.name
- the object name of the MBean.
ConstructionException
- if construction fails.
RegistrationException
- if registration fails.ObjectInstance createMBean(String className, ObjectName name, Object[] params, String[] signature) throws ConstructionException, RegistrationException
className
- the class name of the MBean.name
- the object name of the MBean.params
- an array of parameters.signature
- the signature.
ConstructionException
- if construction fails.
RegistrationException
- if registration fails.ObjectInstance createMBean(String className, ObjectName name, ObjectName loader) throws ConstructionException, RegistrationException
className
- the class name of the MBean.name
- the object name of the MBean.loader
- the object name of the loader.
ConstructionException
- if construction fails.
RegistrationException
- if registration fails.ObjectInstance createMBean(String className, ObjectName name, ObjectName loader, Object[] params, String[] signature) throws ConstructionException, RegistrationException
className
- the class name of the MBean.name
- the object name of the MBean.loader
- the object name of the loader.params
- an array of parameters.signature
- the signature.
ConstructionException
- if construction fails.
RegistrationException
- if registration fails.ObjectInstance adaptMBean(String className, ObjectName name, String ifName) throws ConstructionException, AdaptationException, RegistrationException
className
- the class name of the MBean.name
- the object name of the MBean.ifName
- the exposed interface of the MBean.
ConstructionException
- if construction fails.
AdaptationException
- if adaptation fails.
RegistrationException
- if registration fails.ObjectInstance adaptMBean(String className, ObjectName name, String ifName, String modelName) throws ConstructionException, AdaptationException, RegistrationException
className
- the class name of the MBean.name
- the object name of the MBean.ifName
- the exposed interface of the MBean.modelName
- the model MBean adapter to apply.
ConstructionException
- if construction fails.
AdaptationException
- if adaptation fails.
RegistrationException
- if registration fails.ObjectInstance adaptMBean(String className, ObjectName name, String ifName, Object[] params, String[] signature) throws ConstructionException, AdaptationException, RegistrationException
className
- the class name of the MBean.name
- the object name of the MBean.ifName
- the exposed interface of the MBean.params
- an array of parameters.signature
- the signature.
ConstructionException
- if construction fails.
AdaptationException
- if adaptation fails.
RegistrationException
- if registration fails.ObjectInstance adaptMBean(String className, ObjectName name, String ifName, String modelName, Object[] params, String[] signature) throws ConstructionException, AdaptationException, RegistrationException
className
- the class name of the MBean.name
- the object name of the MBean.ifName
- the exposed interface of the MBean.modelName
- the model MBean adapter to apply.params
- an array of parameters.signature
- the signature.
ConstructionException
- if construction fails.
AdaptationException
- if adaptation fails.
RegistrationException
- if registration fails.ObjectInstance adaptMBean(String className, ObjectName name, String ifName, ObjectName loader) throws ConstructionException, AdaptationException, RegistrationException
className
- the class name of the MBean.name
- the object name of the MBean.ifName
- the exposed interface of the MBean.loader
- the object name of the loader.
ConstructionException
- if construction fails.
AdaptationException
- if adaptation fails.
RegistrationException
- if registration fails.ObjectInstance adaptMBean(String className, ObjectName name, String ifName, String modelName, ObjectName loader) throws ConstructionException, AdaptationException, RegistrationException
className
- the class name of the MBean.name
- the object name of the MBean.ifName
- the exposed interface of the MBean.modelName
- the model MBean adapter to apply.loader
- the object name of the loader.
ConstructionException
- if construction fails.
AdaptationException
- if adaptation fails.
RegistrationException
- if registration fails.ObjectInstance adaptMBean(String className, ObjectName name, String ifName, ObjectName loader, Object[] params, String[] signature) throws ConstructionException, AdaptationException, RegistrationException
className
- the class name of the MBean.name
- the object name of the MBean.ifName
- the exposed interface of the MBean.loader
- the object name of the loader.params
- an array of parameters.signature
- the signature.
ConstructionException
- if construction fails.
AdaptationException
- if adaptation fails.
RegistrationException
- if registration fails.ObjectInstance adaptMBean(String className, ObjectName name, String ifName, String modelName, ObjectName loader, Object[] params, String[] signature) throws ConstructionException, AdaptationException, RegistrationException
className
- the class name of the MBean.name
- the object name of the MBean.ifName
- the exposed interface of the MBean.modelName
- the model MBean adapter to apply.loader
- the object name of the loader.params
- an array of parameters.signature
- the signature.
ConstructionException
- if construction fails.
AdaptationException
- if adaptation fails.
RegistrationException
- if registration fails.ObjectInstance registerMBean(Object object, ObjectName name) throws RegistrationException
object
- the MBean object.name
- the object name of the MBean.
RegistrationException
- if registration fails.ObjectInstance registerMBean(Object object, ObjectName name, String ifName) throws ConstructionException, AdaptationException, RegistrationException
object
- the MBean object.name
- the object name of the MBean.ifName
- the exposed interface of the MBean.
ConstructionException
- if construction fails.
AdaptationException
- if adaptation fails.
RegistrationException
- if registration fails.ObjectInstance registerMBean(Object object, ObjectName name, String ifName, String modelName) throws ConstructionException, AdaptationException, RegistrationException
object
- the MBean object.name
- the object name of the MBean.ifName
- the exposed interface of the MBean.modelName
- the model MBean adapter to apply.
ConstructionException
- if construction fails.
AdaptationException
- if adaptation fails.
RegistrationException
- if registration fails.void unregisterMBean(ObjectName name) throws RegistrationException
name
- the object name of the MBean.
RegistrationException
- if unregistration fails.boolean isRegistered(ObjectName name)
name
- the object name of the MBean.
ObjectName getObjectName(String name) throws MalformedObjectNameException
name
- the string to convert.
MalformedObjectNameException
- for invalid strings.ObjectName getObjectName(String domain, Hashtable<String,String> table) throws MalformedObjectNameException
domain
- the domain to use.table
- the key table.
MalformedObjectNameException
- for invalid strings.ObjectName getObjectName(String domain, String key, String value) throws MalformedObjectNameException
domain
- the domain to use.key
- the key.value
- the value.
MalformedObjectNameException
- for invalid strings.ObjectName getLoaderName()
void setLoaderName(ObjectName loader)
loader
- the object name of the loader or a query.MBeanReference<Loader> getLoaderMBean()
MBeanReference<Domain> getDomainMBean()
ObjectName getBrokerName()
void setBrokerName(ObjectName broker)
broker
- the object name of the broker or a query.MBeanReference<Broker> getBrokerMBean()
ObjectName getFactoryName()
void setFactoryName(ObjectName factory)
factory
- the object name of the factory or a query.MBeanReference<Factory> getFactoryMBean()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |