public interface RegistryMBean
Modifier and Type | Method and Description |
---|---|
int |
getId(java.lang.String domain,
java.lang.String name)
Return an int ID for faster access.
|
void |
invoke(java.util.List<javax.management.ObjectName> mbeans,
java.lang.String operation,
boolean failFirst)
Invoke an operation on a set of mbeans.
|
java.util.List<javax.management.ObjectName> |
loadMBeans(java.lang.Object source,
java.lang.ClassLoader cl)
Load an extended mlet file.
|
void |
loadMetadata(java.lang.Object source)
Load descriptors.
|
void |
registerComponent(java.lang.Object bean,
java.lang.String oname,
java.lang.String type)
Register a bean by creating a modeler mbean and adding it to the
MBeanServer.
|
void |
stop()
Reset all metadata cached by this registry.
|
void |
unregisterComponent(java.lang.String oname)
Unregister a component.
|
java.util.List<javax.management.ObjectName> loadMBeans(java.lang.Object source, java.lang.ClassLoader cl) throws java.lang.Exception
source
- InputStream or URL of the filecl
- ClassLoader to be used to load the mbeans, or null to use the
default JMX mechanism ( i.e. all registered loaders )java.lang.Exception
void invoke(java.util.List<javax.management.ObjectName> mbeans, java.lang.String operation, boolean failFirst) throws java.lang.Exception
mbeans
- List of ObjectNamesoperation
- Operation to perform. Typically "init" "start" "stop" or "destroy"failFirst
- Behavior in case of exceptions - if false we'll ignore
errorsjava.lang.Exception
void registerComponent(java.lang.Object bean, java.lang.String oname, java.lang.String type) throws java.lang.Exception
bean
- Object to be registeredoname
- Name used for registrationtype
- The type of the mbean, as declared in mbeans-descriptors. If
null, the name of the class will be used. This can be used as a hint or
by subclasses.java.lang.Exception
void unregisterComponent(java.lang.String oname)
oname
- int getId(java.lang.String domain, java.lang.String name)
domain
- Namespacename
- Type of the notificationvoid stop()
void loadMetadata(java.lang.Object source) throws java.lang.Exception
source
- java.lang.Exception
Copyright © 2000-2015 Apache Software Foundation. All Rights Reserved.