org.jboss.on.plugins.tomcat
Class TomcatWarComponent
java.lang.Object
org.rhq.plugins.jmx.MBeanResourceComponent<TomcatVHostComponent>
org.jboss.on.plugins.tomcat.TomcatWarComponent
- All Implemented Interfaces:
- AvailabilityFacet, ConfigurationFacet, 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
| Methods inherited from class org.rhq.plugins.jmx.MBeanResourceComponent |
getAttributeName, getAttributeProperty, getBeanProperties, getEmsBean, getEmsConnection, getPropertyValueAsType, 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 |
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
TomcatWarComponent
public TomcatWarComponent()
getAvailability
public org.rhq.core.domain.measurement.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(org.rhq.core.domain.measurement.MeasurementReport report,
Set<org.rhq.core.domain.measurement.MeasurementScheduleRequest> schedules)
- Specified by:
getValues in interface MeasurementFacet- Overrides:
getValues in class MBeanResourceComponent<TomcatVHostComponent>
invokeOperation
public OperationResult invokeOperation(String name,
org.rhq.core.domain.configuration.Configuration params)
throws Exception
- Specified by:
invokeOperation in interface OperationFacet- Overrides:
invokeOperation in class MBeanResourceComponent<TomcatVHostComponent>
- Throws:
Exception
deployPackages
public org.rhq.core.domain.content.transfer.DeployPackagesResponse deployPackages(Set<org.rhq.core.domain.content.transfer.ResourcePackageDetails> packages,
ContentServices contentServices)
- Specified by:
deployPackages in interface ContentFacet
discoverDeployedPackages
public Set<org.rhq.core.domain.content.transfer.ResourcePackageDetails> discoverDeployedPackages(org.rhq.core.domain.content.PackageType type)
- Specified by:
discoverDeployedPackages in interface ContentFacet
generateInstallationSteps
public List<org.rhq.core.domain.content.transfer.DeployPackageStep> generateInstallationSteps(org.rhq.core.domain.content.transfer.ResourcePackageDetails packageDetails)
- Specified by:
generateInstallationSteps in interface ContentFacet
removePackages
public org.rhq.core.domain.content.transfer.RemovePackagesResponse removePackages(Set<org.rhq.core.domain.content.transfer.ResourcePackageDetails> packages)
- Specified by:
removePackages in interface ContentFacet
retrievePackageBits
public InputStream retrievePackageBits(org.rhq.core.domain.content.transfer.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-2012 Red Hat, Inc.. All Rights Reserved.