## org.apache.catalina.mbeans
Class StandardHostMBean

    java.lang.Object
      org.apache.commons.modeler.BaseModelMBean
          org.apache.catalina.mbeans.StandardHostMBean

All Implemented Interfaces:
  javax.management.DynamicMBean, javax.management.MBeanRegistration, javax.management.modelmbean.ModelMBean, javax.management.modelmbean.ModelMBeanNotificationBroadcaster, javax.management.NotificationBroadcaster, javax.management.PersistentMBean

public class StandardHostMBean
extends org.apache.commons.modeler.BaseModelMBean

A ModelMBean implementation for the `org.apache.catalina.core.StandardHost` component.

Version:
  $Revision: 1.3 $ $Date: 2004/02/27 14:58:45 $
Author:
  Amy Roh

Field Summary

Fields inherited from class org.apache.commons.modeler.BaseModelMBean
`attributeBroadcaster, attributes, generalBroadcaster, info, oname, registry, resource, resourceType, source`

Constructor Summary
`StandardHostMBean()` Construct a `ModelMBean` with default `ModelMBeanInfo` information.

Method Summary
`void` `addAlias(java.lang.String alias)` Add an alias name that should be mapped to this Host
`java.lang.String[]` `findAliases()` Return the set of alias names for this Host
`java.lang.String[]` `getValves()` Return the MBean Names of the Valves assoicated with this Host
`void` `removeAlias(java.lang.String alias)` Return the specified alias name from the aliases for this Host

Methods inherited from class org.apache.commons.modeler.BaseModelMBean

`addAttributeChangeNotificationListener, addNotificationListener, createDefaultModelMBeanInfo, createResource, getAttribute, getAttributes, getClassName, getManagedResource, getMBeanInfo, getModelerType, getNotificationInfo, getObjectName, getRegistry, initModelInfo, invoke, isModelMBeanInfoValid, load, postDeregister, postRegister, preDeregister, preRegister, removeAttributeChangeNotificationListener, removeAttributeChangeNotificationListener, removeNotificationListener, removeNotificationListener, removeNotificationListener, sendAttributeChangeNotification, sendAttributeChangeNotification, sendNotification, sendNotification, setAttribute, setAttributes, setManagedResource, setModeledType, setModelMBeanInfo, setRegistry, store, toString`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

Constructor Detail

### StandardHostMBean

    public StandardHostMBean()
                      throws javax.management.MBeanException,
                             javax.management.RuntimeOperationsException

  Construct a `ModelMBean` with default `ModelMBeanInfo` information.

Throws:
  `javax.management.MBeanException` - if the initializer of an object throws an exception
  `javax.management.RuntimeOperationsException` - if an IllegalArgumentException occurs

Method Detail

### addAlias

    public void addAlias(java.lang.String alias)
                  throws java.lang.Exception

  Add an alias name that should be mapped to this Host

  Parameters:
    `alias` - The alias to be added
  Throws:
    `java.lang.Exception` - if an MBean cannot be created or registered

### findAliases

    public java.lang.String[] findAliases()
                                   throws java.lang.Exception

  Return the set of alias names for this Host

  Throws:
    `java.lang.Exception` - if an MBean cannot be created or registered

### getValves

    public java.lang.String[] getValves()
                                 throws java.lang.Exception

  Return the MBean Names of the Valves assoicated with this Host

  Throws:
    `java.lang.Exception` - if an MBean cannot be created or registered

### removeAlias

    public void removeAlias(java.lang.String alias)
                     throws java.lang.Exception

  Return the specified alias name from the aliases for this Host

  Parameters:
    `alias` - Alias name to be removed
  Throws:
    `java.lang.Exception` - if an MBean cannot be created or registered

Copyright © 2000-2003 Apache Software Foundation. All Rights Reserved.