createMBeans
protected void createMBeans()
Create the MBeans that correspond to every existing node of our tree.
createMBeans
protected void createMBeans(Connector connector)
throws Exception
Create the MBeans for the specified Connector and its nested components.
connector
- Connector for which to create MBeans
createMBeans
protected void createMBeans(Context context)
throws Exception
Create the MBeans for the specified Context and its nested components.
context
- Context for which to create MBeans
createMBeans
protected void createMBeans(DefaultContext dcontext)
throws Exception
Create the MBeans for the specified DefaultContext and its nested components.
dcontext
- DefaultContext for which to create MBeans
createMBeans
protected void createMBeans(Engine engine)
throws Exception
Create the MBeans for the specified Engine and its nested components.
engine
- Engine for which to create MBeans
createMBeans
protected void createMBeans(Host host)
throws Exception
Create the MBeans for the specified Host and its nested components.
host
- Host for which to create MBeans
createMBeans
protected void createMBeans(Server server)
throws Exception
Create the MBeans for the specified Server and its nested components.
server
- Server for which to create MBeans
createMBeans
protected void createMBeans(Service service)
throws Exception
Create the MBeans for the specified Service and its nested components.
service
- Service for which to create MBeans
createMBeans
protected void createMBeans(ContextEnvironment environment)
throws Exception
Create the MBeans for the specified ContextEnvironment entry.
environment
- ContextEnvironment for which to create MBeans
createMBeans
protected void createMBeans(ContextResource resource)
throws Exception
Create the MBeans for the specified ContextResource entry.
resource
- ContextResource for which to create MBeans
createMBeans
protected void createMBeans(ContextResourceLink resourceLink)
throws Exception
Create the MBeans for the specified ContextResourceLink entry.
resourceLink
- ContextResourceLink for which to create MBeans
createMBeans
protected void createMBeans(NamingResources resources)
throws Exception
Create the MBeans for the specified NamingResources and its
nested components.
resources
- NamingResources for which to create MBeans
createMBeans
protected void createMBeans(MBeanFactory factory)
throws Exception
Create the MBeans for MBeanFactory.
factory
- MBeanFactory for which to create MBean
destroyMBeans
protected void destroyMBeans(Connector connector,
Service service)
throws Exception
Deregister the MBeans for the specified Connector and its nested
components.
connector
- Connector for which to deregister MBeans
destroyMBeans
protected void destroyMBeans(Context context)
throws Exception
Deregister the MBeans for the specified Context and its nested
components.
context
- Context for which to deregister MBeans
destroyMBeans
protected void destroyMBeans(DefaultContext dcontext)
throws Exception
Deregister the MBeans for the specified DefaultContext and its nested
components.
dcontext
- DefaultContext for which to deregister MBeans
destroyMBeans
protected void destroyMBeans(Engine engine)
throws Exception
Deregister the MBeans for the specified Engine and its nested
components.
engine
- Engine for which to destroy MBeans
destroyMBeans
protected void destroyMBeans(Host host)
throws Exception
Deregister the MBeans for the specified Host and its nested components.
host
- Host for which to destroy MBeans
destroyMBeans
protected void destroyMBeans(Server server)
throws Exception
Deregister the MBeans for the specified Server and its related
components.
server
- Server for which to destroy MBeans
destroyMBeans
protected void destroyMBeans(Service service)
throws Exception
Deregister the MBeans for the specified Service and its nested
components.
service
- Service for which to destroy MBeans
destroyMBeans
protected void destroyMBeans(ContextEnvironment environment)
throws Exception
Deregister the MBeans for the specified ContextEnvironment entry.
environment
- ContextEnvironment for which to destroy MBeans
destroyMBeans
protected void destroyMBeans(ContextResource resource)
throws Exception
Deregister the MBeans for the specified ContextResource entry.
resource
- ContextResource for which to destroy MBeans
destroyMBeans
protected void destroyMBeans(ContextResourceLink resourceLink)
throws Exception
Deregister the MBeans for the specified ContextResourceLink entry.
resourceLink
- ContextResourceLink for which to destroy MBeans
destroyMBeans
protected void destroyMBeans(NamingResources resources)
throws Exception
Deregister the MBeans for the specified NamingResources and its
nested components.
resources
- NamingResources for which to destroy MBeans
getAdaptor
public String getAdaptor()
getAdaptorHost
public String getAdaptorHost()
getAdaptorPort
public int getAdaptorPort()
getDebug
public int getDebug()
getDescriptors
public String getDescriptors()
loadMBeanDescriptors
protected void loadMBeanDescriptors()
Load additional MBean descriptor resources.
log
protected void log(String message)
Log a message.
message
- The message to be logged
log
protected void log(String message,
Throwable throwable)
Log a message and associated exception.
message
- The message to be loggedthrowable
- The exception to be logged
processContainerAddChild
protected void processContainerAddChild(Container parent,
Container child)
Process the addition of a new child Container to a parent Container.
parent
- Parent containerchild
- Child container
processContainerPropertyChange
protected void processContainerPropertyChange(Container container,
String propertyName,
Object oldValue,
Object newValue)
throws Exception
Process a property change event on a Container.
container
- The container on which this event occurredpropertyName
- The name of the property that changedoldValue
- The previous value (may be null
)newValue
- The new value (may be null
)
processContainerRemoveChild
protected void processContainerRemoveChild(Container parent,
Container child)
Process the removal of a child Container from a parent Container.
parent
- Parent containerchild
- Child container
processDefaultContextPropertyChange
protected void processDefaultContextPropertyChange(DefaultContext defaultContext,
String propertyName,
Object oldValue,
Object newValue)
throws Exception
Process a property change event on a DefaultContext.
defaultContext
- The DefaultContext on which this event occurredpropertyName
- The name of the property that changedoldValue
- The previous value (may be null
)newValue
- The new value (may be null
)
processNamingResourcesPropertyChange
protected void processNamingResourcesPropertyChange(NamingResources resources,
String propertyName,
Object oldValue,
Object newValue)
throws Exception
Process a property change event on a NamingResources.
resources
- The global naming resources on which this
event occurredpropertyName
- The name of the property that changedoldValue
- The previous value (may be null
)newValue
- The new value (may be null
)
processServerPropertyChange
protected void processServerPropertyChange(Server server,
String propertyName,
Object oldValue,
Object newValue)
throws Exception
Process a property change event on a Server.
server
- The server on which this event occurredpropertyName
- The name of the property that changedoldValue
- The previous value (may be null
)newValue
- The new value (may be null
)
processServicePropertyChange
protected void processServicePropertyChange(Service service,
String propertyName,
Object oldValue,
Object newValue)
throws Exception
Process a property change event on a Service.
service
- The service on which this event occurredpropertyName
- The name of the property that changedoldValue
- The previous value (may be null
)newValue
- The new value (may be null
)
propertyChange
public void propertyChange(PropertyChangeEvent event)
Handle a PropertyChangeEvent
from one of the Containers
we are interested in.
event
- The event that has occurred
setAdaptor
public void setAdaptor(String adaptor)
setAdaptorHost
public void setAdaptorHost(String adaptorHost)
setAdaptorPort
public void setAdaptorPort(int adaptorPort)
setDebug
public void setDebug(int debug)
setDescriptors
public void setDescriptors(String descriptors)