org.rhq.plugins.jbossas5
Class AbstractManagedDeploymentComponent

java.lang.Object
  extended by org.rhq.plugins.jbossas5.AbstractManagedComponent
      extended by 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

Field Summary
static String DEPLOYMENT_NAME_PROPERTY
           
static String DEPLOYMENT_TYPE_NAME_PROPERTY
           
protected  File deploymentFile
          The absolute path of the deployment file (e.g.: C:/opt/jboss-6.0.0.Final/server/default/deploy/foo.war).
protected  String deploymentName
          The name of the ManagedDeployment (e.g.: vfszip:/C:/opt/jboss-6.0.0.Final/server/default/deploy/foo.war).
protected  org.jboss.deployers.spi.management.KnownDeploymentTypes deploymentType
          The type of the ManagedDeployment (e.g.
static String EXTENSION_PROPERTY
           
 
Fields inherited from interface org.rhq.plugins.jmx.JMXComponent
CREDENTIALS_CONFIG_PROP, PRINCIPAL_CONFIG_PROP
 
Constructor Summary
AbstractManagedDeploymentComponent()
           
 
Method Summary
 org.rhq.core.domain.measurement.AvailabilityType getAvailability()
           
 String getDeploymentName()
           
 org.jboss.deployers.spi.management.KnownDeploymentTypes getDeploymentType()
           
protected  org.jboss.managed.api.ManagedDeployment getManagedDeployment()
           
protected  org.jboss.managed.api.ManagedDeployment getManagedDeployment(boolean forceLoad)
           
 void getValues(org.rhq.core.domain.measurement.MeasurementReport report, Set<org.rhq.core.domain.measurement.MeasurementScheduleRequest> requests)
           
 OperationResult invokeOperation(String name, org.rhq.core.domain.configuration.Configuration parameters)
           
 void progressEvent(org.jboss.deployers.spi.management.deploy.ProgressEvent event)
           
 void start(ResourceContext<ProfileServiceComponent<?>> resourceContext)
           
 
Methods inherited from class org.rhq.plugins.jbossas5.AbstractManagedComponent
getConnection, getEmsConnection, getResourceContext, getResourceDescription, stop
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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).

Constructor Detail

AbstractManagedDeploymentComponent

public AbstractManagedDeploymentComponent()
Method Detail

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.