org.rhq.plugins.jbossas
Class WarComponent

java.lang.Object
  extended by org.rhq.plugins.jmx.MBeanResourceComponent<JBossASServerComponent<?>>
      extended by org.rhq.plugins.jbossas.ApplicationComponent
          extended by org.rhq.plugins.jbossas.WarComponent
All Implemented Interfaces:
AvailabilityFacet, ConfigurationFacet, ContentFacet, DeleteResourceFacet, ResourceComponent<JBossASServerComponent<?>>, MeasurementFacet, OperationFacet, JMXComponent<JBossASServerComponent<?>>

public class WarComponent
extends ApplicationComponent
implements OperationFacet, DeleteResourceFacet

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

Author:
Ian Springer, Heiko W. Rupp

Field Summary
static String CONTEXT_ROOT_CONFIG_PROP
           
static String FILE_NAME
           
static String JBOSS_WEB_NAME
           
static String NAME_CONFIG_PROP
           
static String RESPONSE_TIME_LOG_FILE_CONFIG_PROP
           
static String RESPONSE_TIME_URL_EXCLUDES_CONFIG_PROP
           
static String RESPONSE_TIME_URL_TRANSFORMS_CONFIG_PROP
           
static String ROOT_WEBAPP_CONTEXT_ROOT
           
static String VHOST_CONFIG_PROP
           
 
Fields inherited from class org.rhq.plugins.jbossas.ApplicationComponent
FILENAME_PLUGIN_CONFIG_PROP, RHQ_SHA256
 
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
WarComponent()
           
 
Method Summary
 org.rhq.core.domain.measurement.AvailabilityType getAvailability()
           
 void getValues(org.rhq.core.domain.measurement.MeasurementReport report, Set<org.rhq.core.domain.measurement.MeasurementScheduleRequest> schedules)
           
 OperationResult invokeOperation(String name, org.rhq.core.domain.configuration.Configuration params)
           
 void start(ResourceContext resourceContext)
           
 
Methods inherited from class org.rhq.plugins.jbossas.ApplicationComponent
deleteResource, deployPackages, discoverDeployedPackages, generateInstallationSteps, getApplicationName, getFileName, getParentResourceComponent, removePackages, retrievePackageBits, revertFromBackupFile
 
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, updateResourceConfiguration
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.rhq.core.pluginapi.inventory.DeleteResourceFacet
deleteResource
 

Field Detail

CONTEXT_ROOT_CONFIG_PROP

public static final String CONTEXT_ROOT_CONFIG_PROP
See Also:
Constant Field Values

NAME_CONFIG_PROP

public static final String NAME_CONFIG_PROP
See Also:
Constant Field Values

FILE_NAME

public static final String FILE_NAME
See Also:
Constant Field Values

JBOSS_WEB_NAME

public static final String JBOSS_WEB_NAME
See Also:
Constant Field Values

RESPONSE_TIME_LOG_FILE_CONFIG_PROP

public static final String RESPONSE_TIME_LOG_FILE_CONFIG_PROP
See Also:
Constant Field Values

RESPONSE_TIME_URL_EXCLUDES_CONFIG_PROP

public static final String RESPONSE_TIME_URL_EXCLUDES_CONFIG_PROP
See Also:
Constant Field Values

RESPONSE_TIME_URL_TRANSFORMS_CONFIG_PROP

public static final String RESPONSE_TIME_URL_TRANSFORMS_CONFIG_PROP
See Also:
Constant Field Values

VHOST_CONFIG_PROP

public static final String VHOST_CONFIG_PROP
See Also:
Constant Field Values

ROOT_WEBAPP_CONTEXT_ROOT

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

WarComponent

public WarComponent()
Method Detail

getAvailability

public org.rhq.core.domain.measurement.AvailabilityType getAvailability()
Specified by:
getAvailability in interface AvailabilityFacet
Overrides:
getAvailability in class MBeanResourceComponent<JBossASServerComponent<?>>

start

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

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 ApplicationComponent

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 ApplicationComponent
Throws:
Exception


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