org.rhq.plugins.jbossas
Class ApplicationComponent
java.lang.Object
org.rhq.plugins.jmx.MBeanResourceComponent<JBossASServerComponent>
org.rhq.plugins.jbossas.ApplicationComponent
- All Implemented Interfaces:
- AvailabilityFacet, ConfigurationFacet, ContentFacet, DeleteResourceFacet, ResourceComponent<JBossASServerComponent>, MeasurementFacet, OperationFacet, JMXComponent<JBossASServerComponent>
- Direct Known Subclasses:
- WarComponent
public class ApplicationComponent
- extends MBeanResourceComponent<JBossASServerComponent>
- implements ContentFacet, DeleteResourceFacet, OperationFacet
A resource component for managing an application (e.g. EAR or WAR) deployed to a JBossAS server.
- Author:
- Ian Springer
| Methods inherited from class org.rhq.plugins.jmx.MBeanResourceComponent |
getAttributeName, getAttributeProperty, getAvailability, getBeanProperties, getEmsBean, getEmsConnection, getResourceContext, getValues, invokeOperation, loadBean, loadBean, loadResourceConfiguration, lookupAttributeProperty, setEmsBean, setResourceContext, start, stop, transformBeanName, updateResourceConfiguration, updateResourceConfiguration |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FILENAME_PLUGIN_CONFIG_PROP
protected static final java.lang.String FILENAME_PLUGIN_CONFIG_PROP
- See Also:
- Constant Field Values
ApplicationComponent
public ApplicationComponent()
retrievePackageBits
public java.io.InputStream retrievePackageBits(ResourcePackageDetails packageDetails)
- Specified by:
retrievePackageBits in interface ContentFacet
discoverDeployedPackages
public java.util.Set<ResourcePackageDetails> discoverDeployedPackages(PackageType type)
- Specified by:
discoverDeployedPackages in interface ContentFacet
removePackages
public RemovePackagesResponse removePackages(java.util.Set<ResourcePackageDetails> packages)
- Specified by:
removePackages in interface ContentFacet
generateInstallationSteps
public java.util.List<DeployPackageStep> generateInstallationSteps(ResourcePackageDetails packageDetails)
- Specified by:
generateInstallationSteps in interface ContentFacet
deployPackages
public DeployPackagesResponse deployPackages(java.util.Set<ResourcePackageDetails> packages,
ContentServices contentServices)
- Specified by:
deployPackages in interface ContentFacet
deleteResource
public void deleteResource()
throws java.lang.Exception
- Specified by:
deleteResource in interface DeleteResourceFacet
- Throws:
java.lang.Exception
getValues
public void getValues(MeasurementReport report,
java.util.Set<MeasurementScheduleRequest> requests)
- Specified by:
getValues in interface MeasurementFacet- Overrides:
getValues in class MBeanResourceComponent<JBossASServerComponent>
invokeOperation
public OperationResult invokeOperation(java.lang.String name,
Configuration parameters)
throws java.lang.InterruptedException,
java.lang.Exception
- Specified by:
invokeOperation in interface OperationFacet- Overrides:
invokeOperation in class MBeanResourceComponent<JBossASServerComponent>
- Throws:
java.lang.InterruptedException
java.lang.Exception
getApplicationName
public java.lang.String getApplicationName()
- Returns the name of the application.
- Returns:
- application name
getFileName
public java.lang.String getFileName()
- Returns the file name of this application.
- Returns:
- full directory and file name of the application
getParentResourceComponent
public JBossASServerComponent getParentResourceComponent()
revertFromBackupFile
public void revertFromBackupFile()
throws java.lang.Exception
- Revert the resource from a possibly existing backup file with the same basename
and ending in .bak
- Throws:
java.lang.Exception - If anything goes wrong.
Copyright © 2008-2009 Red Hat, Inc.. All Rights Reserved.