org.apache.tomcat.util.modeler.modules

Class MbeansSource

public class MbeansSource extends ModelerSource implements MbeansSourceMBean

This will create mbeans based on a config file. The format is an extended version of MLET. Classloading. We don't support any explicit classloader tag. A ClassLoader is just an mbean ( it can be the standard MLetMBean or a custom one ). XXX add a special attribute to reference the loader mbean, XXX figure out how to deal with private loaders
Method Summary
voiddestroy()
voidexecute()
StringgetLocation()
ListgetMBeans()
Return the list of mbeans created by this source.
ObjectgetSource()
voidinit()
voidload()
ListloadDescriptors(Registry registry, String location, String type, Object source)
voidsave()
Store the mbeans.
voidsetLocation(String loc)
voidsetRegistry(Registry reg)
voidsetSource(Object source)
voidsetType(String type)
Used if a single component is loaded
voidstart()
voidstop()
voidupdateField(ObjectName oname, String name, Object value)

Method Detail

destroy

public void destroy()

execute

public void execute()

getLocation

public String getLocation()

getMBeans

public List getMBeans()
Return the list of mbeans created by this source. It can be used to implement runtime services.

getSource

public Object getSource()

init

public void init()

load

public void load()

loadDescriptors

public List loadDescriptors(Registry registry, String location, String type, Object source)

save

public void save()
Store the mbeans. XXX add a background thread to store it periodically

setLocation

public void setLocation(String loc)

setRegistry

public void setRegistry(Registry reg)

setSource

public void setSource(Object source)

setType

public void setType(String type)
Used if a single component is loaded

Parameters: type

start

public void start()

stop

public void stop()

updateField

public void updateField(ObjectName oname, String name, Object value)
Copyright © 2000-2011 Apache Software Foundation. All Rights Reserved.