org.norther.tammi.core.base
Interface Domain

All Known Implementing Classes:
DefaultDomain

public interface Domain

An interface to domains marking the default domain of the MBean server, providing MBean server services and system dependent properties.

Version:
$Id: Domain.java,v 1.40 2009/09/28 15:08:42 cvsimp Exp $
Author:
Ilkka Priha

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

ANY_DOMAIN

static final String ANY_DOMAIN
The wildcard.

See Also:
Constant Field Values

OS_NAME_PROPERTY

static final String OS_NAME_PROPERTY
The OS name property.

See Also:
Constant Field Values

OS_ARCH_PROPERTY

static final String OS_ARCH_PROPERTY
The OS architecture property.

See Also:
Constant Field Values

OS_TYPE_PROPERTY

static final String OS_TYPE_PROPERTY
The OS type property.

See Also:
Constant Field Values

WIN32

static final String WIN32
Windows 32 OS.

See Also:
Constant Field Values

WIN64

static final String WIN64
Windows 64 OS.

See Also:
Constant Field Values

LNX32

static final String LNX32
Linux 32 OS.

See Also:
Constant Field Values

LNX64

static final String LNX64
Linux 64 OS.

See Also:
Constant Field Values

SUNOS

static final String SUNOS
Sun OS.

See Also:
Constant Field Values

HPUX

static final String HPUX
HP-UX OS.

See Also:
Constant Field Values

MACOS

static final String MACOS
Macintosh OS.

See Also:
Constant Field Values

UNKNOWN

static final String UNKNOWN
Unknown OS.

See Also:
Constant Field Values
Method Detail

getOSType

String getOSType()
Gets the OS type.

Returns:
the OS type.

getOSName

String getOSName()
Gets the OS name.

Returns:
the OS name.

getOSArch

String getOSArch()
Gets the OS architecture.

Returns:
the OS architecture.

getDomainName

String getDomainName()
Gets the name without the context of this domain.

Returns:
the domain name.

getDomainNames

String[] getDomainNames()
Gets the domain names without the contexts of this domain.

Returns:
an array of domain names.

getDefaultDomain

String getDefaultDomain()
Gets the name with the default context of this domain.

Returns:
the default context.

getDefaultQuery

ObjectName getDefaultQuery()
Gets a query to the default context of this domain.

Returns:
the default query.

queryDefaultNames

Set<ObjectName> queryDefaultNames()
Queries for a set of object names of MBeans in the default context of this domain.

Returns:
a set of found object names or an empty set.

queryDefaultNames

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.

Parameters:
exp - an optional query expression.
Returns:
a set of found object names or an empty set.

queryDefaultNames

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.

Parameters:
className - a class or interface, null for any.
Returns:
a set of found object names or an empty set.

queryObjectNames

Set<ObjectName> queryObjectNames()
Queries for a set of object names of MBeans in any of the contexts of this domain.

Returns:
a set of found object names or an empty set.

queryObjectNames

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.

Parameters:
exp - an optional query expression.
Returns:
a set of found object names or an empty set.

queryObjectNames

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.

Parameters:
className - a class or interface, null for any.
Returns:
a set of found object names or an empty set.

getProperty

String getProperty(String key)
Gets the specified system property.

Parameters:
key - the key of the system property.
Returns:
the value of the system property or null.

getProperty

String getProperty(String key,
                   String def)
Gets the specified system property with a default.

Parameters:
key - the key of the system property.
def - the default value.
Returns:
the value of the system property or the default.

setProperty

void setProperty(String key,
                 String value)
Sets the specified system property.

Parameters:
key - the key of the system property.
value - the value of the system property.

properties

Properties properties()
Gets the current map of system properties.

Returns:
the map of system properties.

getModelMBeanClassName

String getModelMBeanClassName()
Gets the model MBean class name.

Returns:
the model MBean class name.

setModelMBeanClassName

void setModelMBeanClassName(String className)
Sets the model MBean class name.

Parameters:
className - the model MBean class name.

getMBeanInfo

MBeanInfo getMBeanInfo(ObjectName name)
                       throws RegistrationException
Gets the MBean info the named MBean.

Parameters:
name - the object name of the MBean.
Returns:
the MBean info.
Throws:
RegistrationException - if not registered.

getObjectInstance

ObjectInstance getObjectInstance(ObjectName name)
                                 throws RegistrationException
Gets the object instance the named MBean.

Parameters:
name - the object name of the MBean.
Returns:
the MBean info.
Throws:
RegistrationException - if not registered.

isInstanceOf

boolean isInstanceOf(ObjectName name,
                     String className)
                     throws RegistrationException
Checks the class of the named MBean.

Parameters:
name - the object name of the MBean.
className - the class name to check.
Returns:
true if registered, false otherwise.
Throws:
RegistrationException - if not registered.

adapt

ModelMBean adapt(Object object,
                 String ifName)
                 throws ConstructionException,
                        AdaptationException
Adapts the specified object exposing the specified class or interface by applying the default model MBean and the domain MBean loader.

Parameters:
object - the object instance to adapt.
ifName - the exposed interface of the MBean.
Returns:
the model MBean adapter for the object.
Throws:
ConstructionException - if construction fails.
AdaptationException - if adaptation fails.

adapt

ModelMBean adapt(Object object,
                 String ifName,
                 String modelName)
                 throws ConstructionException,
                        AdaptationException
Adapts the specified object exposing the specified class or interface by applying the specified model MBean and the domain MBean loader.

Parameters:
object - the object instance to adapt.
ifName - the exposed interface of the MBean.
modelName - the model MBean adapter to apply.
Returns:
the model MBean adapter for the object.
Throws:
ConstructionException - if construction fails.
AdaptationException - if adaptation fails.

adapt

ModelMBean adapt(Object object,
                 String ifName,
                 ObjectName loader)
                 throws ConstructionException,
                        AdaptationException
Adapts the specified object exposing the specified class or interface by applying the default model MBean and the named MBean loader.

Parameters:
object - the object instance to adapt.
ifName - the exposed interface of the MBean.
loader - the object name of the loader.
Returns:
the model MBean adapter for the object.
Throws:
ConstructionException - if construction fails.
AdaptationException - if adaptation fails.

adapt

ModelMBean adapt(Object object,
                 String ifName,
                 String modelName,
                 ObjectName loader)
                 throws ConstructionException,
                        AdaptationException
Adapts the specified object exposing the specified class or interface by applying the specified model MBean and the named MBean loader.

Parameters:
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.
Returns:
the model MBean adapter for the object.
Throws:
ConstructionException - if construction fails.
AdaptationException - if adaptation fails.

adapt

ModelMBean adapt(Object object,
                 String ifName,
                 ObjectName loader,
                 MBeanServer server)
                 throws ConstructionException,
                        AdaptationException
Adapts the specified object exposing the specified class or interface by applying the named MBean loader in the given MBean server.

This method can be applied to adapt objects even when the domain is not yet registered; especially the domain itself may be adapted.

Parameters:
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.
Returns:
the model MBean adapter for the object.
Throws:
ConstructionException - if construction fails.
AdaptationException - if adaptation fails.

adapt

ModelMBean adapt(Object object,
                 String ifName,
                 String modelName,
                 ObjectName loader,
                 MBeanServer server)
                 throws ConstructionException,
                        AdaptationException
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.

This method can be applied to adapt objects even when the domain is not yet registered; especially the domain itself may be adapted.

Parameters:
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.
Returns:
the model MBean adapter for the object.
Throws:
ConstructionException - if construction fails.
AdaptationException - if adaptation fails.

createMBean

ObjectInstance createMBean(String className,
                           ObjectName name)
                           throws ConstructionException,
                                  RegistrationException
Creates a named MBean by applying the domain MBean loader.

Parameters:
className - the class name of the MBean.
name - the object name of the MBean.
Returns:
the object instance of the MBean.
Throws:
ConstructionException - if construction fails.
RegistrationException - if registration fails.

createMBean

ObjectInstance createMBean(String className,
                           ObjectName name,
                           Object[] params,
                           String[] signature)
                           throws ConstructionException,
                                  RegistrationException
Creates a named MBean with parameters by applying the domain MBean loader.

Parameters:
className - the class name of the MBean.
name - the object name of the MBean.
params - an array of parameters.
signature - the signature.
Returns:
the object instance of the MBean.
Throws:
ConstructionException - if construction fails.
RegistrationException - if registration fails.

createMBean

ObjectInstance createMBean(String className,
                           ObjectName name,
                           ObjectName loader)
                           throws ConstructionException,
                                  RegistrationException
Creates a named MBean by applying the named MBean loader.

Parameters:
className - the class name of the MBean.
name - the object name of the MBean.
loader - the object name of the loader.
Returns:
the object instance of the MBean.
Throws:
ConstructionException - if construction fails.
RegistrationException - if registration fails.

createMBean

ObjectInstance createMBean(String className,
                           ObjectName name,
                           ObjectName loader,
                           Object[] params,
                           String[] signature)
                           throws ConstructionException,
                                  RegistrationException
Creates a named MBean with parameters by applying the named MBean loader.

Parameters:
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.
Returns:
the object instance of the MBean.
Throws:
ConstructionException - if construction fails.
RegistrationException - if registration fails.

adaptMBean

ObjectInstance adaptMBean(String className,
                          ObjectName name,
                          String ifName)
                          throws ConstructionException,
                                 AdaptationException,
                                 RegistrationException
Adapts a named MBean exposing the specified class or interface by applying the default model MBean and the domain MBean loader.

Parameters:
className - the class name of the MBean.
name - the object name of the MBean.
ifName - the exposed interface of the MBean.
Returns:
the object instance of the MBean.
Throws:
ConstructionException - if construction fails.
AdaptationException - if adaptation fails.
RegistrationException - if registration fails.

adaptMBean

ObjectInstance adaptMBean(String className,
                          ObjectName name,
                          String ifName,
                          String modelName)
                          throws ConstructionException,
                                 AdaptationException,
                                 RegistrationException
Adapts a named MBean exposing the specified class or interface by applying the specified model MBean and the domain MBean loader.

Parameters:
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.
Returns:
the object instance of the MBean.
Throws:
ConstructionException - if construction fails.
AdaptationException - if adaptation fails.
RegistrationException - if registration fails.

adaptMBean

ObjectInstance adaptMBean(String className,
                          ObjectName name,
                          String ifName,
                          Object[] params,
                          String[] signature)
                          throws ConstructionException,
                                 AdaptationException,
                                 RegistrationException
Adapts a named MBean exposing the specified class or interface with parameters by applying the default model MBean and the domain MBean loader.

Parameters:
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.
Returns:
the object instance of the MBean.
Throws:
ConstructionException - if construction fails.
AdaptationException - if adaptation fails.
RegistrationException - if registration fails.

adaptMBean

ObjectInstance adaptMBean(String className,
                          ObjectName name,
                          String ifName,
                          String modelName,
                          Object[] params,
                          String[] signature)
                          throws ConstructionException,
                                 AdaptationException,
                                 RegistrationException
Adapts a named MBean exposing the specified class or interface with parameters by applying the specified model MBean and the domain MBean loader.

Parameters:
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.
Returns:
the object instance of the MBean.
Throws:
ConstructionException - if construction fails.
AdaptationException - if adaptation fails.
RegistrationException - if registration fails.

adaptMBean

ObjectInstance adaptMBean(String className,
                          ObjectName name,
                          String ifName,
                          ObjectName loader)
                          throws ConstructionException,
                                 AdaptationException,
                                 RegistrationException
Adapts a named MBean exposing the specified class or interface by applying the default model MBean and the named MBean loader.

Parameters:
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.
Returns:
the object instance of the MBean.
Throws:
ConstructionException - if construction fails.
AdaptationException - if adaptation fails.
RegistrationException - if registration fails.

adaptMBean

ObjectInstance adaptMBean(String className,
                          ObjectName name,
                          String ifName,
                          String modelName,
                          ObjectName loader)
                          throws ConstructionException,
                                 AdaptationException,
                                 RegistrationException
Adapts a named MBean exposing the specified class or interface by applying the specified model MBean and the named MBean loader.

Parameters:
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.
Returns:
the object instance of the MBean.
Throws:
ConstructionException - if construction fails.
AdaptationException - if adaptation fails.
RegistrationException - if registration fails.

adaptMBean

ObjectInstance adaptMBean(String className,
                          ObjectName name,
                          String ifName,
                          ObjectName loader,
                          Object[] params,
                          String[] signature)
                          throws ConstructionException,
                                 AdaptationException,
                                 RegistrationException
Adapts a named MBean exposing the specified class or interface with parameters by applying the default model MBean and the named MBean loader.

Parameters:
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.
Returns:
the object instance of the MBean.
Throws:
ConstructionException - if construction fails.
AdaptationException - if adaptation fails.
RegistrationException - if registration fails.

adaptMBean

ObjectInstance adaptMBean(String className,
                          ObjectName name,
                          String ifName,
                          String modelName,
                          ObjectName loader,
                          Object[] params,
                          String[] signature)
                          throws ConstructionException,
                                 AdaptationException,
                                 RegistrationException
Adapts a named MBean exposing the specified class or interface with parameters by applying the specified model MBean and the named MBean loader.

Parameters:
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.
Returns:
the object instance of the MBean.
Throws:
ConstructionException - if construction fails.
AdaptationException - if adaptation fails.
RegistrationException - if registration fails.

registerMBean

ObjectInstance registerMBean(Object object,
                             ObjectName name)
                             throws RegistrationException
Registers the named MBean.

Parameters:
object - the MBean object.
name - the object name of the MBean.
Returns:
the object instance of the MBean.
Throws:
RegistrationException - if registration fails.

registerMBean

ObjectInstance registerMBean(Object object,
                             ObjectName name,
                             String ifName)
                             throws ConstructionException,
                                    AdaptationException,
                                    RegistrationException
Registers the named MBean exposing the specified class or interface by applying the default model MBean.

Parameters:
object - the MBean object.
name - the object name of the MBean.
ifName - the exposed interface of the MBean.
Returns:
the object instance of the MBean.
Throws:
ConstructionException - if construction fails.
AdaptationException - if adaptation fails.
RegistrationException - if registration fails.

registerMBean

ObjectInstance registerMBean(Object object,
                             ObjectName name,
                             String ifName,
                             String modelName)
                             throws ConstructionException,
                                    AdaptationException,
                                    RegistrationException
Registers the named MBean exposing the specified class or interface by applying the specified model MBean.

Parameters:
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.
Returns:
the object instance of the MBean.
Throws:
ConstructionException - if construction fails.
AdaptationException - if adaptation fails.
RegistrationException - if registration fails.

unregisterMBean

void unregisterMBean(ObjectName name)
                     throws RegistrationException
Unregisters the named MBean.

Parameters:
name - the object name of the MBean.
Throws:
RegistrationException - if unregistration fails.

isRegistered

boolean isRegistered(ObjectName name)
Checks registration of the named MBean.

Parameters:
name - the object name of the MBean.
Returns:
true if registered, false otherwise.

getObjectName

ObjectName getObjectName(String name)
                         throws MalformedObjectNameException
Gets a string as an object name. A colon in the domain name is replaced with the default context and a colon followed by more with the domain name.

Parameters:
name - the string to convert.
Returns:
the corresponding object name.
Throws:
MalformedObjectNameException - for invalid strings.

getObjectName

ObjectName getObjectName(String domain,
                         Hashtable<String,String> table)
                         throws MalformedObjectNameException
Gets a hashtable as an object name using the specified domain. A colon in the domain name is replaced with the default context and a colon followed by more with the domain name.

Parameters:
domain - the domain to use.
table - the key table.
Returns:
the corresponding object name.
Throws:
MalformedObjectNameException - for invalid strings.

getObjectName

ObjectName getObjectName(String domain,
                         String key,
                         String value)
                         throws MalformedObjectNameException
Gets a key property as an object name using the given domain. A colon in the domain name is replaced with the default context and a colon followed by more with the domain name.

Parameters:
domain - the domain to use.
key - the key.
value - the value.
Returns:
the corresponding object name.
Throws:
MalformedObjectNameException - for invalid strings.

getLoaderName

ObjectName getLoaderName()
Gets the loader of this domain.

Returns:
the object name of the loader or a query.

setLoaderName

void setLoaderName(ObjectName loader)
Sets the loader of this domain. If it is not set, the default one will be used.

Parameters:
loader - the object name of the loader or a query.

getLoaderMBean

MBeanReference<Loader> getLoaderMBean()
Gets a reference to the loader MBean of this domain.

Returns:
a reference to the loader MBean or null if not available.

getDomainMBean

MBeanReference<Domain> getDomainMBean()
Gets a reference to the domain MBean of this domain.

Returns:
a reference to the domain MBean or null if not available.

getBrokerName

ObjectName getBrokerName()
Gets the broker of this domain.

Returns:
the object name of the broker or a query.

setBrokerName

void setBrokerName(ObjectName broker)
Sets the broker of this domain. If it is not set, the default one will be used.

Parameters:
broker - the object name of the broker or a query.

getBrokerMBean

MBeanReference<Broker> getBrokerMBean()
Gets a reference to the broker of this domain.

Returns:
a reference to the broker or null if not available.

getFactoryName

ObjectName getFactoryName()
Gets the the factory of this domain.

Returns:
the object name of the factory or a query.

setFactoryName

void setFactoryName(ObjectName factory)
Sets the factory of this domain. If it is not set, the default one will be used.

Parameters:
factory - the object name of the factory or a query.

getFactoryMBean

MBeanReference<Factory> getFactoryMBean()
Gets a reference to the factory of this domain.

Returns:
a reference to the factory or null if not available.


Copyright © 2004 The Norther Organization. All rights reserved.