org.jboss.on.plugins.tomcat
Class TomcatWarComponent

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

public class TomcatWarComponent
extends MBeanResourceComponent<TomcatVHostComponent>
implements ContentFacet, DeleteResourceFacet

A resource component for managing a web application (WAR) deployed to a Tomcat server.

Author:
Jay Shaughnessy, Fady Matar, Ian Springer, Heiko W. Rupp

Field Summary
protected static String PROPERTY_CONTEXT_ROOT
           
protected static String PROPERTY_FILENAME
           
protected static String PROPERTY_NAME
           
protected static String PROPERTY_RESPONSE_TIME_LOG_FILE
           
protected static String PROPERTY_RESPONSE_TIME_URL_EXCLUDES
           
protected static String PROPERTY_RESPONSE_TIME_URL_TRANSFORMS
           
protected static String PROPERTY_VHOST
           
protected static String RESOURCE_TYPE_NAME
           
 
Fields inherited from class org.rhq.plugins.jmx.MBeanResourceComponent
bean, OBJECT_NAME_PROP, PROPERTY_TRANSFORM, resourceContext
 
Fields inherited from interface org.rhq.plugins.jmx.JMXComponent
CREDENTIALS_CONFIG_PROP, PRINCIPAL_CONFIG_PROP
 
Constructor Summary
TomcatWarComponent()
           
 
Method Summary
 void deleteResource()
           
 DeployPackagesResponse deployPackages(Set<ResourcePackageDetails> packages, ContentServices contentServices)
           
 Set<ResourcePackageDetails> discoverDeployedPackages(PackageType type)
           
 List<DeployPackageStep> generateInstallationSteps(ResourcePackageDetails packageDetails)
           
 AvailabilityType getAvailability()
           
 TomcatVHostComponent getParentResourceComponent()
           
 void getValues(MeasurementReport report, Set<MeasurementScheduleRequest> schedules)
           
 OperationResult invokeOperation(String name, Configuration params)
           
 RemovePackagesResponse removePackages(Set<ResourcePackageDetails> packages)
           
 InputStream retrievePackageBits(ResourcePackageDetails packageDetails)
           
 void start(ResourceContext<TomcatVHostComponent> resourceContext)
           
 void updateResourceConfiguration(ConfigurationUpdateReport report)
           
 
Methods inherited from class org.rhq.plugins.jmx.MBeanResourceComponent
getAttributeName, getAttributeProperty, getBeanProperties, getEmsBean, getEmsConnection, getResourceContext, getValues, invokeOperation, loadBean, loadBean, loadResourceConfiguration, lookupAttributeProperty, setEmsBean, setResourceContext, stop, transformBeanName, updateResourceConfiguration
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PROPERTY_NAME

protected static final String PROPERTY_NAME
See Also:
Constant Field Values

PROPERTY_CONTEXT_ROOT

protected static final String PROPERTY_CONTEXT_ROOT
See Also:
Constant Field Values

PROPERTY_FILENAME

protected static final String PROPERTY_FILENAME
See Also:
Constant Field Values

PROPERTY_RESPONSE_TIME_LOG_FILE

protected static final String PROPERTY_RESPONSE_TIME_LOG_FILE
See Also:
Constant Field Values

PROPERTY_RESPONSE_TIME_URL_EXCLUDES

protected static final String PROPERTY_RESPONSE_TIME_URL_EXCLUDES
See Also:
Constant Field Values

PROPERTY_RESPONSE_TIME_URL_TRANSFORMS

protected static final String PROPERTY_RESPONSE_TIME_URL_TRANSFORMS
See Also:
Constant Field Values

PROPERTY_VHOST

protected static final String PROPERTY_VHOST
See Also:
Constant Field Values

RESOURCE_TYPE_NAME

protected static final String RESOURCE_TYPE_NAME
See Also:
Constant Field Values
Constructor Detail

TomcatWarComponent

public TomcatWarComponent()
Method Detail

getAvailability

public AvailabilityType getAvailability()
Specified by:
getAvailability in interface AvailabilityFacet
Overrides:
getAvailability in class MBeanResourceComponent<TomcatVHostComponent>

start

public void start(ResourceContext<TomcatVHostComponent> resourceContext)
Specified by:
start in interface ResourceComponent<TomcatVHostComponent>
Overrides:
start in class MBeanResourceComponent<TomcatVHostComponent>

getValues

public void getValues(MeasurementReport report,
                      Set<MeasurementScheduleRequest> schedules)
Specified by:
getValues in interface MeasurementFacet
Overrides:
getValues in class MBeanResourceComponent<TomcatVHostComponent>

invokeOperation

public OperationResult invokeOperation(String name,
                                       Configuration params)
                                throws Exception
Specified by:
invokeOperation in interface OperationFacet
Overrides:
invokeOperation in class MBeanResourceComponent<TomcatVHostComponent>
Throws:
Exception

deployPackages

public DeployPackagesResponse deployPackages(Set<ResourcePackageDetails> packages,
                                             ContentServices contentServices)
Specified by:
deployPackages in interface ContentFacet

discoverDeployedPackages

public Set<ResourcePackageDetails> discoverDeployedPackages(PackageType type)
Specified by:
discoverDeployedPackages in interface ContentFacet

generateInstallationSteps

public List<DeployPackageStep> generateInstallationSteps(ResourcePackageDetails packageDetails)
Specified by:
generateInstallationSteps in interface ContentFacet

removePackages

public RemovePackagesResponse removePackages(Set<ResourcePackageDetails> packages)
Specified by:
removePackages in interface ContentFacet

retrievePackageBits

public InputStream retrievePackageBits(ResourcePackageDetails packageDetails)
Specified by:
retrievePackageBits in interface ContentFacet

getParentResourceComponent

public TomcatVHostComponent getParentResourceComponent()

deleteResource

public void deleteResource()
                    throws Exception
Specified by:
deleteResource in interface DeleteResourceFacet
Throws:
Exception

updateResourceConfiguration

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


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