public class MBeanContainer extends Object implements Container.InheritedListener, Dumpable
Constructor and Description |
---|
MBeanContainer(MBeanServer server)
Constructs MBeanContainer
|
Modifier and Type | Method and Description |
---|---|
void |
beanAdded(Container parent,
Object obj) |
void |
beanRemoved(Container parent,
Object obj) |
void |
destroy() |
String |
dump() |
void |
dump(Appendable out,
String indent) |
Object |
findBean(ObjectName oname)
Lookup an instance by object name
|
ObjectName |
findMBean(Object object)
Lookup an object name by instance
|
String |
getDomain()
Retrieve domain name used to add MBeans
|
MBeanServer |
getMBeanServer()
Retrieve instance of MBeanServer used by container
|
String |
makeName(String basis) |
static void |
resetUnique() |
void |
setDomain(String domain)
Set domain to be used to add MBeans
|
public MBeanContainer(MBeanServer server)
server
- instance of MBeanServer for use by containerpublic static void resetUnique()
public ObjectName findMBean(Object object)
object
- instance for which object name is looked uppublic Object findBean(ObjectName oname)
oname
- object name of instancepublic MBeanServer getMBeanServer()
public void setDomain(String domain)
domain
- domain namepublic String getDomain()
public void beanAdded(Container parent, Object obj)
beanAdded
in interface Container.Listener
public void beanRemoved(Container parent, Object obj)
beanRemoved
in interface Container.Listener
public String makeName(String basis)
basis
- name to strip of special characters.public void dump(Appendable out, String indent) throws IOException
dump
in interface Dumpable
IOException
public void destroy()
Copyright © 1995-2015 Webtide. All Rights Reserved.