|
Apache Tomcat 7.0.28 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface RegistryMBean
Interface for modeler MBeans. This is the main entry point into modeler. It provides methods to create and manipulate model mbeans and simplify their use. Starting with version 1.1, this is no longer a singleton and the static methods are strongly deprecated. In a container environment we can expect different applications to use different registries.
Method Summary | |
---|---|
int |
getId(String domain,
String name)
Return an int ID for faster access. |
void |
invoke(List<ObjectName> mbeans,
String operation,
boolean failFirst)
Invoke an operation on a set of mbeans. |
List<ObjectName> |
loadMBeans(Object source,
ClassLoader cl)
Load an extended mlet file. |
void |
loadMetadata(Object source)
Load descriptors. |
void |
registerComponent(Object bean,
String oname,
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(String oname)
Unregister a component. |
Method Detail |
---|
List<ObjectName> loadMBeans(Object source, ClassLoader cl) throws 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 )
Exception
void invoke(List<ObjectName> mbeans, String operation, boolean failFirst) throws 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
errors
Exception
void registerComponent(Object bean, String oname, String type) throws 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.
Exception
void unregisterComponent(String oname)
oname
- int getId(String domain, String name)
domain
- Namespacename
- Type of the notification
void stop()
void loadMetadata(Object source) throws Exception
source
-
Exception
|
Apache Tomcat 7.0.28 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |