org.rhq.plugins.jbossas5
Class AbstractManagedDeploymentComponent
java.lang.Object
org.rhq.plugins.jbossas5.AbstractManagedComponent
org.rhq.plugins.jbossas5.AbstractManagedDeploymentComponent
- All Implemented Interfaces:
- org.jboss.deployers.spi.management.deploy.ProgressListener, AvailabilityFacet, ResourceComponent<ProfileServiceComponent<?>>, MeasurementFacet, OperationFacet, ProfileServiceComponent<ProfileServiceComponent<?>>, JMXComponent<ProfileServiceComponent<?>>
- Direct Known Subclasses:
- EmbeddedManagedDeploymentComponent, StandaloneManagedDeploymentComponent
public abstract class AbstractManagedDeploymentComponent
- extends AbstractManagedComponent
- implements MeasurementFacet, OperationFacet, org.jboss.deployers.spi.management.deploy.ProgressListener
ResourceComponent for managing ManagedDeployments (EARs, WARs, etc.).
- Author:
- Mark Spritzler, Ian Springer
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DEPLOYMENT_NAME_PROPERTY
public static final String DEPLOYMENT_NAME_PROPERTY
- See Also:
- Constant Field Values
DEPLOYMENT_TYPE_NAME_PROPERTY
public static final String DEPLOYMENT_TYPE_NAME_PROPERTY
- See Also:
- Constant Field Values
EXTENSION_PROPERTY
public static final String EXTENSION_PROPERTY
- See Also:
- Constant Field Values
deploymentName
protected String deploymentName
- The name of the ManagedDeployment (e.g.: vfszip:/C:/opt/jboss-6.0.0.Final/server/default/deploy/foo.war).
deploymentType
protected org.jboss.deployers.spi.management.KnownDeploymentTypes deploymentType
- The type of the ManagedDeployment (e.g. war).
deploymentFile
protected File deploymentFile
- The absolute path of the deployment file (e.g.: C:/opt/jboss-6.0.0.Final/server/default/deploy/foo.war).
AbstractManagedDeploymentComponent
public AbstractManagedDeploymentComponent()
start
public void start(ResourceContext<ProfileServiceComponent<?>> resourceContext)
throws Exception
- Specified by:
start in interface ResourceComponent<ProfileServiceComponent<?>>- Overrides:
start in class AbstractManagedComponent
- Throws:
Exception
getAvailability
public org.rhq.core.domain.measurement.AvailabilityType getAvailability()
- Specified by:
getAvailability in interface AvailabilityFacet
getValues
public void getValues(org.rhq.core.domain.measurement.MeasurementReport report,
Set<org.rhq.core.domain.measurement.MeasurementScheduleRequest> requests)
throws Exception
- Specified by:
getValues in interface MeasurementFacet
- Throws:
Exception
invokeOperation
public OperationResult invokeOperation(String name,
org.rhq.core.domain.configuration.Configuration parameters)
throws Exception
- Specified by:
invokeOperation in interface OperationFacet
- Throws:
Exception
progressEvent
public void progressEvent(org.jboss.deployers.spi.management.deploy.ProgressEvent event)
- Specified by:
progressEvent in interface org.jboss.deployers.spi.management.deploy.ProgressListener
getDeploymentName
public String getDeploymentName()
getDeploymentType
public org.jboss.deployers.spi.management.KnownDeploymentTypes getDeploymentType()
getManagedDeployment
protected org.jboss.managed.api.ManagedDeployment getManagedDeployment()
throws org.jboss.profileservice.spi.NoSuchDeploymentException
- Throws:
org.jboss.profileservice.spi.NoSuchDeploymentException
getManagedDeployment
protected org.jboss.managed.api.ManagedDeployment getManagedDeployment(boolean forceLoad)
throws org.jboss.profileservice.spi.NoSuchDeploymentException
- Throws:
org.jboss.profileservice.spi.NoSuchDeploymentException
Copyright © 2008-2012 Red Hat, Inc.. All Rights Reserved.