public interface RegistryMBean
Modifier and Type | Method and Description |
---|---|
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.
|
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.
|
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
errorsException
- Error invoking operationvoid 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
- Error registering MBeanvoid unregisterComponent(String oname)
oname
- The name used by the beanint getId(String domain, String name)
domain
- Namespacename
- Type of the notificationvoid stop()
Copyright © 2000-2016 Apache Software Foundation. All Rights Reserved.