Class AdapterRegistry
- java.lang.Object
-
- com.adaptris.core.runtime.AdapterRegistry
-
- All Implemented Interfaces:
AdapterRegistryMBean
,BaseComponentMBean
public class AdapterRegistry extends java.lang.Object implements AdapterRegistryMBean
-
-
Field Summary
-
Fields inherited from interface com.adaptris.core.runtime.AdapterRegistryMBean
JMX_REGISTRY_TYPE, REGISTRY_PREFIX, STANDARD_REGISTRY_JMX_NAME
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addAdapter(AdapterManagerMBean adapterManager)
Add anAdapterManagerMBean
instance to the registry.void
addConfiguration(java.util.Properties cfg)
void
addManagementComponentInfo(ManagementComponentInfo componentInfo)
static void
close(java.util.Set<javax.management.ObjectName> adapterManagers)
Convenience method to close a set of adapter managers that usesAdapterComponentMBean.requestClose()
javax.management.ObjectName
createAdapter(URLString url)
Create an adapter from the given URL.javax.management.ObjectName
createAdapter(java.lang.String xml)
Create an adapter from the given string representation.javax.management.ObjectName
createAdapterFromUrl(java.lang.String url)
Create an adapter from the given URL.javax.management.ObjectName
createObjectName()
Create the object name representation of the mbean.void
destroyAdapter(AdapterManagerMBean adapter)
Close the underlying adapter and unregister from JMX.void
destroyAdapter(javax.management.ObjectName adapterName)
Close the underlying adapter and unregister from JMX.static AdapterRegistryMBean
findInstance(java.util.Properties cfg)
java.util.Set<javax.management.ObjectName>
getAdapters()
Get all the adapters that have been registered.AdapterBuilderMBean
getBuilder(java.util.Properties p)
Get theAdapterBuilderMBean
associated with givenProperties
object.javax.management.ObjectName
getBuilder(javax.management.ObjectName p)
Get a reference to theAdapterBuilderMBean
instance that built the correspondingAdapterManagerMBean
instance.AdapterBuilderMBean
getBuilderMBean(javax.management.ObjectName p)
Get a reference to theAdapterBuilderMBean
instance that built the correspondingAdapterManagerMBean
instance.java.util.Set<javax.management.ObjectName>
getBuilders()
Get All the builders.java.lang.String
getClassDefinition(java.lang.String className)
In JSON format return the full class description, including subclasses and annotation detail.java.util.Properties
getConfiguration()
Return theBootstrapProperties
instance that was used to create this registry.URLString
getConfigurationURL(javax.management.ObjectName adapterName)
Get the URL that was used to create the adapter associated with that ObjectName.java.lang.String
getConfigurationURLString(javax.management.ObjectName adapterName)
Get the URL that was used to create the adapter associated with that ObjectName.java.util.List<ManagementComponentInfo>
getManagementComponentInfo()
Will return a Map ofManagementComponentInfo
's.java.lang.String
getVersionControl()
Return the version control system that is currently in use based on RuntimeVersionControl.getImplementationName()void
persist(java.lang.String data, URLString configUrl)
Persist some data the given URL.void
persistAdapter(AdapterManagerMBean adapter, URLString url)
Persist the adapter to the given URL.void
persistAdapter(AdapterManagerMBean adapter, java.lang.String url)
Persist the adapter to the given URL.void
persistAdapter(javax.management.ObjectName adapter, URLString url)
Persist the adapter to the given URL.void
persistAdapter(javax.management.ObjectName adapter, java.lang.String url)
Persist the adapter to the given URL.void
putConfigurationURL(javax.management.ObjectName adapterName, URLString configUrl)
Register a URL against a given ObjectName.void
putConfigurationURL(javax.management.ObjectName adapterName, java.lang.String configUrl)
Register a URL against a given ObjectName.void
registerMBean()
Register this component (and all children) against the default Platform MBeanServer.java.util.Set<javax.management.ObjectName>
reloadFromConfig()
Recreate all adapters associated with this AdapterRegistry from their associated bootstrap file.javax.management.ObjectName
reloadFromConfig(javax.management.ObjectName obj)
Recreate the adapters associated with the specified objectname from their associated bootstrap file.void
reloadFromVersionControl()
Recreate all adapters associated with this AdapterRegistry from version control.javax.management.ObjectName
reloadFromVersionControl(javax.management.ObjectName obj)
Recreate the adapter associated with the specified objectname from their associated bootstrap file.boolean
removeConfigurationURL(javax.management.ObjectName adapterName)
Remove the URL that was used to create the adapter associated with the ObjectName.static void
sendShutdownEvent(java.util.Set<javax.management.ObjectName> adapterManagers)
Convenience method for sending a shutdown event for every adapter.void
setManagementComponentInfo(java.util.List<ManagementComponentInfo> managementComponentInfo)
Set the list of configured management components.static void
start(java.util.Set<javax.management.ObjectName> adapterManagers)
Convenience method to start a set of adapter managers that usesAdapterComponentMBean.requestStart()
static void
stop(java.util.Set<javax.management.ObjectName> adapterManagers)
Convenience method to close a set of adapter managers that usesAdapterComponentMBean.requestStop()
static void
unregister(java.util.Set<javax.management.ObjectName> adapterManagers)
Convenience method to close a set of adapter managers that usesBaseComponentMBean.unregisterMBean()
void
unregisterMBean()
Unregister this component (and all children) from the default Platform MBeanServer.void
validateConfig(java.lang.String config)
Attempts to unmarshal the component within this target runtime unit.
-
-
-
Method Detail
-
findInstance
public static AdapterRegistryMBean findInstance(java.util.Properties cfg) throws javax.management.MalformedObjectNameException, CoreException
- Throws:
javax.management.MalformedObjectNameException
CoreException
-
createObjectName
public javax.management.ObjectName createObjectName()
Description copied from interface:BaseComponentMBean
Create the object name representation of the mbean.- Specified by:
createObjectName
in interfaceBaseComponentMBean
- Returns:
- the object name.
-
registerMBean
public void registerMBean() throws CoreException
Description copied from interface:BaseComponentMBean
Register this component (and all children) against the default Platform MBeanServer.- Specified by:
registerMBean
in interfaceBaseComponentMBean
- Throws:
CoreException
- wrapping any exception- See Also:
ManagementFactory.getPlatformMBeanServer()
-
unregisterMBean
public void unregisterMBean() throws CoreException
Description copied from interface:BaseComponentMBean
Unregister this component (and all children) from the default Platform MBeanServer.- Specified by:
unregisterMBean
in interfaceBaseComponentMBean
- Throws:
CoreException
- wrapping any exception- See Also:
ManagementFactory.getPlatformMBeanServer()
-
getAdapters
public java.util.Set<javax.management.ObjectName> getAdapters()
Description copied from interface:AdapterRegistryMBean
Get all the adapters that have been registered.- Specified by:
getAdapters
in interfaceAdapterRegistryMBean
- Returns:
- set of ObjectNames that can be looked up in JMX.
-
getConfigurationURL
public URLString getConfigurationURL(javax.management.ObjectName adapterName)
Description copied from interface:AdapterRegistryMBean
Get the URL that was used to create the adapter associated with that ObjectName.When attempting to persist an adapter instance, you can use this method to query for the URL that was used to create the associated adapter. This will be the URL used to create the adapter initially (i.e. the
adapterConfigURL
that was resolved frombootstrap.properties
) unless the adapter was created with AdapterRegistryMBean.createAdapter(String xml) in the first instance (in which case, you need to figure out where you want to persist the adapter in a different way).Internally, the URLs are keyed against the ObjectName, which means that if create adapters that have the same logical object name, then a URLString will be returned regardless of "how" you created the adapter. So the code below will return
http://my/url
if the two ObjectName instances are considered the same.{ @code ObjectName on = createAdapter(new URLString("http://my/url")); ObjectName on2 = createAdapter("<adapter>...</adapter>"); URLString url = getConfigurationURL(on2); }
- Specified by:
getConfigurationURL
in interfaceAdapterRegistryMBean
- Parameters:
adapterName
- object name representation for the associatedAdapterManagerMBean
- Returns:
- the URL that was used to create the object, or null, if AdapterRegistryMBean.createAdapter(String xml) was used to create a new adapter.
-
getConfigurationURLString
public java.lang.String getConfigurationURLString(javax.management.ObjectName adapterName)
Description copied from interface:AdapterRegistryMBean
Get the URL that was used to create the adapter associated with that ObjectName.When attempting to persist an adapter instance, you can use this method to query for the URL that was used to create the associated adapter. This will be the URL used to create the adapter initially (i.e. the
adapterConfigURL
that was resolved frombootstrap.properties
) unless the adapter was created with AdapterRegistryMBean.createAdapter(String xml) in the first instance (in which case, you need to figure out where you want to persist the adapter in a different way).Internally, the URLs are keyed against the ObjectName, which means that if create adapters that have the same logical object name, then a URL will be returned regardless of "how" you created the adapter. So the code below will return
http://my/url
if the two ObjectName instances are considered the same.ObjectName on = createAdapter(new URL("http://my/url")); ObjectName on2 = createAdapter("<adapter>...</adapter>"); URL url = getConfigurationURL(on2);
- Specified by:
getConfigurationURLString
in interfaceAdapterRegistryMBean
- Parameters:
adapterName
- object name representation for the associatedAdapterManagerMBean
- Returns:
- the URL that was used to create the object, or null, if AdapterRegistryMBean.createAdapter(String xml) was used to create a new adapter.
-
removeConfigurationURL
public boolean removeConfigurationURL(javax.management.ObjectName adapterName)
Description copied from interface:AdapterRegistryMBean
Remove the URL that was used to create the adapter associated with the ObjectName.Note that calling either AdapterRegistryMBean.destroyAdapter(AdapterManagerMBean) or AdapterRegistryMBean.destroyAdapter(ObjectName) will NOT remove the URL from the internal map (as you are likely to invoke those methods to stop/close the adapter prior to creating a new one), so this method is available for you to manually clean up if desired.
- Specified by:
removeConfigurationURL
in interfaceAdapterRegistryMBean
- Parameters:
adapterName
- object name representation for the associatedAdapterManagerMBean
- Returns:
- true if the URL was removed.
-
putConfigurationURL
public void putConfigurationURL(javax.management.ObjectName adapterName, URLString configUrl)
Description copied from interface:AdapterRegistryMBean
Register a URL against a given ObjectName.Where you have used
AdapterRegistryMBean.createAdapter(String)
; there will not be an URL associated with the newly created adapter. Use this to register a URL against the given ObjectName, which means that AdapterRegistryMBean.getConfigurationURL(ObjectName) will not return a null object.- Specified by:
putConfigurationURL
in interfaceAdapterRegistryMBean
- Parameters:
adapterName
- object name representation for the associatedAdapterManagerMBean
configUrl
- the URL to be stored against the objectname
-
putConfigurationURL
public void putConfigurationURL(javax.management.ObjectName adapterName, java.lang.String configUrl) throws java.io.IOException
Description copied from interface:AdapterRegistryMBean
Register a URL against a given ObjectName.Where you have used
AdapterRegistryMBean.createAdapter(String)
; there will not be an URL associated with the newly created adapter. Use this to register a URL against the given ObjectName, which means that AdapterRegistryMBean.getConfigurationURL(ObjectName) will not return a null object.- Specified by:
putConfigurationURL
in interfaceAdapterRegistryMBean
- Parameters:
adapterName
- object name representation for the associatedAdapterManagerMBean
configUrl
- the URL to be stored against the objectname- Throws:
java.io.IOException
-
persistAdapter
public void persistAdapter(AdapterManagerMBean adapter, URLString url) throws CoreException, java.io.IOException
Description copied from interface:AdapterRegistryMBean
Persist the adapter to the given URL.- Specified by:
persistAdapter
in interfaceAdapterRegistryMBean
- Parameters:
adapter
- the adapter Manager.url
- the url.- Throws:
CoreException
java.io.IOException
-
persistAdapter
public void persistAdapter(AdapterManagerMBean adapter, java.lang.String url) throws CoreException, java.io.IOException
Description copied from interface:AdapterRegistryMBean
Persist the adapter to the given URL.- Specified by:
persistAdapter
in interfaceAdapterRegistryMBean
- Parameters:
adapter
- the adapter Manager.url
- the url.- Throws:
CoreException
java.io.IOException
-
persistAdapter
public void persistAdapter(javax.management.ObjectName adapter, URLString url) throws CoreException, java.io.IOException
Description copied from interface:AdapterRegistryMBean
Persist the adapter to the given URL.- Specified by:
persistAdapter
in interfaceAdapterRegistryMBean
- Parameters:
adapter
- theAdapterManagerMBean
ObjectName.url
- the url.- Throws:
CoreException
java.io.IOException
-
persistAdapter
public void persistAdapter(javax.management.ObjectName adapter, java.lang.String url) throws CoreException, java.io.IOException
Description copied from interface:AdapterRegistryMBean
Persist the adapter to the given URL.- Specified by:
persistAdapter
in interfaceAdapterRegistryMBean
- Parameters:
adapter
- theAdapterManagerMBean
ObjectName.url
- the url.- Throws:
CoreException
java.io.IOException
-
persist
public void persist(java.lang.String data, URLString configUrl) throws CoreException, java.io.IOException
Description copied from interface:AdapterRegistryMBean
Persist some data the given URL.- Specified by:
persist
in interfaceAdapterRegistryMBean
- Parameters:
data
- the data.configUrl
- the url.- Throws:
CoreException
java.io.IOException
-
createAdapter
public javax.management.ObjectName createAdapter(URLString url) throws java.io.IOException, javax.management.MalformedObjectNameException, CoreException
Description copied from interface:AdapterRegistryMBean
Create an adapter from the given URL.Create an adapter from the given URL; the license associated with this adapter is one that was derived from
bootstrap.properties
.- Specified by:
createAdapter
in interfaceAdapterRegistryMBean
- Parameters:
url
- the url- Returns:
- the object name representing for the associated
AdapterManagerMBean
- Throws:
java.io.IOException
- an error accessing the URL.javax.management.MalformedObjectNameException
- if there was a problemCoreException
- an error creating the underlying adapter.
-
createAdapterFromUrl
public javax.management.ObjectName createAdapterFromUrl(java.lang.String url) throws java.io.IOException, javax.management.MalformedObjectNameException, CoreException
Description copied from interface:AdapterRegistryMBean
Create an adapter from the given URL.Create an adapter from the given URL; the license associated with this adapter is one that was derived from
bootstrap.properties
.- Specified by:
createAdapterFromUrl
in interfaceAdapterRegistryMBean
- Parameters:
url
- the url- Returns:
- the object name representing for the associated
AdapterManagerMBean
- Throws:
java.io.IOException
- an error accessing the URL.javax.management.MalformedObjectNameException
- if there was a problemCoreException
- an error creating the underlying adapter.
-
createAdapter
public javax.management.ObjectName createAdapter(java.lang.String xml) throws java.io.IOException, javax.management.MalformedObjectNameException, CoreException
Description copied from interface:AdapterRegistryMBean
Create an adapter from the given string representation.Create an adapter from the given string; the license associated with this adapter is one that was derived from
bootstrap.properties
.- Specified by:
createAdapter
in interfaceAdapterRegistryMBean
- Parameters:
xml
- the string representation (generally XML).- Returns:
- the object name representing for the associated
AdapterManagerMBean
- Throws:
java.io.IOException
- an error accessing the URL.javax.management.MalformedObjectNameException
- if there was a problem with the objectname.CoreException
- an error creating the underlying adapter.
-
addAdapter
public void addAdapter(AdapterManagerMBean adapterManager) throws javax.management.MalformedObjectNameException, CoreException
Description copied from interface:AdapterRegistryMBean
Add anAdapterManagerMBean
instance to the registry.- Specified by:
addAdapter
in interfaceAdapterRegistryMBean
- Parameters:
adapterManager
- theAdapterManagerMBean
instance.- Throws:
javax.management.MalformedObjectNameException
- if there was a problem with the objectnameCoreException
- if the objectname already exists in the registry.
-
destroyAdapter
public void destroyAdapter(AdapterManagerMBean adapter) throws CoreException, javax.management.MalformedObjectNameException
Description copied from interface:AdapterRegistryMBean
Close the underlying adapter and unregister from JMX.Note that this uses
AdapterComponentMBean.requestClose()
which will block until the adapter is closed; if a timeout is required, then make sure to useAdapterComponentMBean.requestClose(long)
and possiblyAdapterManagerMBean.forceClose()
before invoking this method.- Specified by:
destroyAdapter
in interfaceAdapterRegistryMBean
- Parameters:
adapter
- theAdapterManagerMBean
.- Throws:
CoreException
- an error accessing the underlying adapter.javax.management.MalformedObjectNameException
- if there was a problem with the objectname.
-
destroyAdapter
public void destroyAdapter(javax.management.ObjectName adapterName) throws javax.management.MalformedObjectNameException, CoreException
Description copied from interface:AdapterRegistryMBean
Close the underlying adapter and unregister from JMX.Note that this uses
AdapterComponentMBean.requestClose()
which will block until the adapter is closed; if a timeout is required, then make sure to useAdapterComponentMBean.requestClose(long)
and possiblyAdapterManagerMBean.forceClose()
before invoking this method.- Specified by:
destroyAdapter
in interfaceAdapterRegistryMBean
- Parameters:
adapterName
- theAdapterManagerMBean
.- Throws:
javax.management.MalformedObjectNameException
- if there was a problem with the objectname.CoreException
- an error accessing the underlying adapter.- See Also:
AdapterRegistryMBean.destroyAdapter(AdapterManagerMBean)
-
sendShutdownEvent
public static void sendShutdownEvent(java.util.Set<javax.management.ObjectName> adapterManagers)
Convenience method for sending a shutdown event for every adapter.- Parameters:
adapterManagers
- set of managers.
-
start
public static void start(java.util.Set<javax.management.ObjectName> adapterManagers) throws CoreException
Convenience method to start a set of adapter managers that usesAdapterComponentMBean.requestStart()
- Parameters:
adapterManagers
- set of managers.- Throws:
CoreException
-
close
public static void close(java.util.Set<javax.management.ObjectName> adapterManagers) throws CoreException
Convenience method to close a set of adapter managers that usesAdapterComponentMBean.requestClose()
- Parameters:
adapterManagers
- set of managers.- Throws:
CoreException
- wrapping other exceptions
-
stop
public static void stop(java.util.Set<javax.management.ObjectName> adapterManagers) throws CoreException
Convenience method to close a set of adapter managers that usesAdapterComponentMBean.requestStop()
- Parameters:
adapterManagers
- set of managers.- Throws:
CoreException
- wrapping other exceptions
-
unregister
public static void unregister(java.util.Set<javax.management.ObjectName> adapterManagers) throws CoreException
Convenience method to close a set of adapter managers that usesBaseComponentMBean.unregisterMBean()
- Parameters:
adapterManagers
- set of managers.- Throws:
CoreException
- wrapping other exceptions
-
getConfiguration
public java.util.Properties getConfiguration()
Description copied from interface:AdapterRegistryMBean
Return theBootstrapProperties
instance that was used to create this registry.- Specified by:
getConfiguration
in interfaceAdapterRegistryMBean
- Returns:
- a set of properties.
-
getVersionControl
public java.lang.String getVersionControl()
Description copied from interface:AdapterRegistryMBean
Return the version control system that is currently in use based on RuntimeVersionControl.getImplementationName()- Specified by:
getVersionControl
in interfaceAdapterRegistryMBean
- Returns:
- the version control system that is currently configured for adapter runtime (null if none is available).
-
reloadFromVersionControl
public void reloadFromVersionControl() throws javax.management.MalformedObjectNameException, CoreException, java.net.MalformedURLException, java.io.IOException
Description copied from interface:AdapterRegistryMBean
Recreate all adapters associated with this AdapterRegistry from version control.Note that the adapters will not be started as part of this process; this needs to be done separately.
- Specified by:
reloadFromVersionControl
in interfaceAdapterRegistryMBean
- Throws:
javax.management.MalformedObjectNameException
- if there was a problem with any objectname.CoreException
- an error creating the underlying adapter(s).java.net.MalformedURLException
- if there was a problem with the URL found from config.java.io.IOException
- if there was a with reading the URL where the adapter is hosted.
-
reloadFromConfig
public java.util.Set<javax.management.ObjectName> reloadFromConfig() throws javax.management.MalformedObjectNameException, CoreException, java.net.MalformedURLException, java.io.IOException
Description copied from interface:AdapterRegistryMBean
Recreate all adapters associated with this AdapterRegistry from their associated bootstrap file.Note that the adapters will not be started as part of this process; this needs to be done separately.
- Specified by:
reloadFromConfig
in interfaceAdapterRegistryMBean
- Returns:
- a set of object name representing for the associated
AdapterManagerMBean
instances created. - Throws:
javax.management.MalformedObjectNameException
- if there was a problem with any objectname.CoreException
- an error creating the underlying adapter(s).java.net.MalformedURLException
- if there was a problem with the URL found from config.java.io.IOException
- if there was a with reading the URL where the adapter is hosted.
-
reloadFromConfig
public javax.management.ObjectName reloadFromConfig(javax.management.ObjectName obj) throws javax.management.MalformedObjectNameException, CoreException, java.io.IOException
Description copied from interface:AdapterRegistryMBean
Recreate the adapters associated with the specified objectname from their associated bootstrap file.Note that the adapter will not be started as part of this process; this needs to be done separately.
- Specified by:
reloadFromConfig
in interfaceAdapterRegistryMBean
- Parameters:
obj
- the ObjectName to reload from config.- Returns:
- The ObjectName representing for the associated
AdapterManagerMBean
instances created. - Throws:
javax.management.MalformedObjectNameException
- if there was a problem with any objectname.CoreException
- an error creating the underlying adapter(s).java.io.IOException
- if there was a with reading the URL where the adapter is hosted.java.net.MalformedURLException
- if there was a problem with the URL found from config.
-
reloadFromVersionControl
public javax.management.ObjectName reloadFromVersionControl(javax.management.ObjectName obj) throws javax.management.MalformedObjectNameException, CoreException, java.io.IOException
Description copied from interface:AdapterRegistryMBean
Recreate the adapter associated with the specified objectname from their associated bootstrap file.Note that the adapter will not be started as part of this process; this needs to be done separately.
- Specified by:
reloadFromVersionControl
in interfaceAdapterRegistryMBean
- Parameters:
obj
- the ObjectName to restart.- Returns:
- The ObjectName representing for the associated
AdapterManagerMBean
instances created. - Throws:
javax.management.MalformedObjectNameException
- if there was a problem with any objectname.CoreException
- an error creating the underlying adapter(s).java.io.IOException
- if there was a with reading the URL where the adapter is hosted.java.net.MalformedURLException
- if there was a problem with the URL found from config.
-
addConfiguration
public void addConfiguration(java.util.Properties cfg) throws javax.management.MalformedObjectNameException, CoreException
- Specified by:
addConfiguration
in interfaceAdapterRegistryMBean
- Throws:
javax.management.MalformedObjectNameException
CoreException
-
validateConfig
public void validateConfig(java.lang.String config) throws CoreException
Description copied from interface:AdapterRegistryMBean
Attempts to unmarshal the component within this target runtime unit.This will verify that the component that was configured can be unmarshalled within the target runtime system. It is largely similar to the
AdapterRegistryMBean.createAdapter(String)
method, however it does not try to register a newAdapterManagerMBean
as part of the operation.- Specified by:
validateConfig
in interfaceAdapterRegistryMBean
- Parameters:
config
- the String representation of a component.- Throws:
CoreException
- if there was an exception unmarshalling.- See Also:
AdapterRegistryMBean.createAdapter(String)
-
getClassDefinition
public java.lang.String getClassDefinition(java.lang.String className) throws CoreException
Description copied from interface:AdapterRegistryMBean
In JSON format return the full class description, including subclasses and annotation detail.- Specified by:
getClassDefinition
in interfaceAdapterRegistryMBean
- Parameters:
className
- - fully qualified- Returns:
- JSON class definition.
- Throws:
CoreException
-
getBuilders
public java.util.Set<javax.management.ObjectName> getBuilders()
Description copied from interface:AdapterRegistryMBean
Get All the builders.- Specified by:
getBuilders
in interfaceAdapterRegistryMBean
- Returns:
- all the available builders.
-
getBuilder
public javax.management.ObjectName getBuilder(javax.management.ObjectName p) throws javax.management.InstanceNotFoundException
Description copied from interface:AdapterRegistryMBean
Get a reference to theAdapterBuilderMBean
instance that built the correspondingAdapterManagerMBean
instance.- Specified by:
getBuilder
in interfaceAdapterRegistryMBean
- Parameters:
p
- a reference to theAdapterManagerMBean
- Returns:
- a reference to the
AdapterBuilderMBean
- Throws:
javax.management.InstanceNotFoundException
- if there was no associated builder.
-
getBuilderMBean
public AdapterBuilderMBean getBuilderMBean(javax.management.ObjectName p) throws javax.management.InstanceNotFoundException
Description copied from interface:AdapterRegistryMBean
Get a reference to theAdapterBuilderMBean
instance that built the correspondingAdapterManagerMBean
instance.- Specified by:
getBuilderMBean
in interfaceAdapterRegistryMBean
- Parameters:
p
- a reference to theAdapterManagerMBean
- Returns:
- a reference to the
AdapterBuilderMBean
- Throws:
javax.management.InstanceNotFoundException
- if there was no associated builder.
-
getBuilder
public AdapterBuilderMBean getBuilder(java.util.Properties p) throws javax.management.InstanceNotFoundException
Description copied from interface:AdapterRegistryMBean
Get theAdapterBuilderMBean
associated with givenProperties
object.- Specified by:
getBuilder
in interfaceAdapterRegistryMBean
- Throws:
javax.management.InstanceNotFoundException
-
addManagementComponentInfo
public void addManagementComponentInfo(ManagementComponentInfo componentInfo)
-
getManagementComponentInfo
public java.util.List<ManagementComponentInfo> getManagementComponentInfo()
Description copied from interface:AdapterRegistryMBean
Will return a Map ofManagementComponentInfo
's. The key to the map is the name of the configured management component.- Specified by:
getManagementComponentInfo
in interfaceAdapterRegistryMBean
- Returns:
- Basic information on configured management components
-
setManagementComponentInfo
public void setManagementComponentInfo(java.util.List<ManagementComponentInfo> managementComponentInfo)
Description copied from interface:AdapterRegistryMBean
Set the list of configured management components.- Specified by:
setManagementComponentInfo
in interfaceAdapterRegistryMBean
-
-