org.jboss.on.plugins.tomcat
Class TomcatVHostComponent

java.lang.Object
  extended by org.rhq.plugins.jmx.MBeanResourceComponent<TomcatServerComponent>
      extended by org.jboss.on.plugins.tomcat.TomcatVHostComponent
All Implemented Interfaces:
AvailabilityFacet, ConfigurationFacet, ConfigurationFacetSupport, ApplicationServerComponent, CreateChildResourceFacet, ResourceComponent<TomcatServerComponent>, MeasurementFacet, OperationFacet, JMXComponent<TomcatServerComponent>

public class TomcatVHostComponent
extends MBeanResourceComponent<TomcatServerComponent>
implements ApplicationServerComponent, CreateChildResourceFacet

Handle generic information about a virtual host in tomcat

Author:
Jay Shaughnessy, Heiko W. Rupp

Field Summary
static String CONFIG_ALIASES
           
static String CONFIG_APP_BASE
           
static String CONFIG_UNPACK_WARS
           
static String CONTENT_CONFIG_EXPLODE_ON_DEPLOY
           
static String PLUGIN_CONFIG_NAME
           
 
Fields inherited from class org.rhq.plugins.jmx.MBeanResourceComponent
bean, log, OBJECT_NAME_PROP, PROPERTY_TRANSFORM, resourceContext
 
Fields inherited from interface org.rhq.plugins.jmx.JMXComponent
CREDENTIALS_CONFIG_PROP, PRINCIPAL_CONFIG_PROP
 
Constructor Summary
TomcatVHostComponent()
           
 
Method Summary
 CreateResourceReport createResource(CreateResourceReport report)
           
 File getCatalinaBase()
           
 File getConfigurationPath()
           
 TomcatApplicationDeployer getDeployer()
           
 String getName()
           
 boolean isWebApplication(File file)
           
 Configuration loadResourceConfiguration()
          Roles and Groups are handled as comma delimited lists and offered up as a String array of object names by the MBean
 void updateResourceConfiguration(ConfigurationUpdateReport report)
           
 
Methods inherited from class org.rhq.plugins.jmx.MBeanResourceComponent
getAttributeName, getAttributeProperty, getAvailability, getBeanProperties, getEmsBean, getEmsConnection, getResourceContext, getValues, getValues, invokeOperation, invokeOperation, loadBean, loadBean, lookupAttributeProperty, setEmsBean, setResourceContext, start, stop, transformBeanName, updateResourceConfiguration
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CONFIG_ALIASES

public static final String CONFIG_ALIASES
See Also:
Constant Field Values

CONFIG_APP_BASE

public static final String CONFIG_APP_BASE
See Also:
Constant Field Values

CONFIG_UNPACK_WARS

public static final String CONFIG_UNPACK_WARS
See Also:
Constant Field Values

CONTENT_CONFIG_EXPLODE_ON_DEPLOY

public static final String CONTENT_CONFIG_EXPLODE_ON_DEPLOY
See Also:
Constant Field Values

PLUGIN_CONFIG_NAME

public static final String PLUGIN_CONFIG_NAME
See Also:
Constant Field Values
Constructor Detail

TomcatVHostComponent

public TomcatVHostComponent()
Method Detail

loadResourceConfiguration

public Configuration loadResourceConfiguration()
Roles and Groups are handled as comma delimited lists and offered up as a String array of object names by the MBean

Specified by:
loadResourceConfiguration in interface ConfigurationFacet
Overrides:
loadResourceConfiguration in class MBeanResourceComponent<TomcatServerComponent>

updateResourceConfiguration

public void updateResourceConfiguration(ConfigurationUpdateReport report)
Specified by:
updateResourceConfiguration in interface ConfigurationFacet
Overrides:
updateResourceConfiguration in class MBeanResourceComponent<TomcatServerComponent>

getCatalinaBase

public File getCatalinaBase()

getName

public String getName()

getConfigurationPath

public File getConfigurationPath()
Specified by:
getConfigurationPath in interface ApplicationServerComponent

createResource

public CreateResourceReport createResource(CreateResourceReport report)
Specified by:
createResource in interface CreateChildResourceFacet

isWebApplication

public boolean isWebApplication(File file)

getDeployer

public TomcatApplicationDeployer getDeployer()


Copyright © 2008-2011 Red Hat, Inc.. All Rights Reserved.