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 java.lang.String DEPLOYMENT_NAME_PROPERTY
           
static java.lang.String DEPLOYMENT_TYPE_NAME_PROPERTY
           
protected  java.io.File deploymentFile
          The absolute path of the deployment file (e.g.: C:/opt/jboss-5.0.0.GA/server/default/deploy/foo.war).
protected  java.lang.String deploymentName
          The name of the ManagedDeployment (e.g.: vfszip:/C:/opt/jboss-5.0.0.GA/server/default/deploy/foo.war).
protected  org.jboss.deployers.spi.management.KnownDeploymentTypes deploymentType
          The type of the ManagedDeployment.
static java.lang.String EXTENSION_PROPERTY
           
 
Fields inherited from interface org.rhq.plugins.jmx.JMXComponent
CREDENTIALS_CONFIG_PROP, PRINCIPAL_CONFIG_PROP
 
Constructor Summary
AbstractManagedDeploymentComponent()
           
 
Method Summary
 AvailabilityType getAvailability()
           
 java.lang.String getDeploymentName()
           
 org.jboss.deployers.spi.management.KnownDeploymentTypes getDeploymentType()
           
protected  org.jboss.managed.api.ManagedDeployment getManagedDeployment()
           
 void getValues(MeasurementReport report, java.util.Set<MeasurementScheduleRequest> requests)
           
 OperationResult invokeOperation(java.lang.String name, 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 java.lang.String DEPLOYMENT_NAME_PROPERTY
See Also:
Constant Field Values

DEPLOYMENT_TYPE_NAME_PROPERTY

public static final java.lang.String DEPLOYMENT_TYPE_NAME_PROPERTY
See Also:
Constant Field Values

EXTENSION_PROPERTY

public static final java.lang.String EXTENSION_PROPERTY
See Also:
Constant Field Values

deploymentName

protected java.lang.String deploymentName
The name of the ManagedDeployment (e.g.: vfszip:/C:/opt/jboss-5.0.0.GA/server/default/deploy/foo.war).


deploymentType

protected org.jboss.deployers.spi.management.KnownDeploymentTypes deploymentType
The type of the ManagedDeployment.


deploymentFile

protected java.io.File deploymentFile
The absolute path of the deployment file (e.g.: C:/opt/jboss-5.0.0.GA/server/default/deploy/foo.war).

Constructor Detail

AbstractManagedDeploymentComponent

public AbstractManagedDeploymentComponent()
Method Detail

start

public void start(ResourceContext<ProfileServiceComponent> resourceContext)
           throws java.lang.Exception
Specified by:
start in interface ResourceComponent<ProfileServiceComponent>
Overrides:
start in class AbstractManagedComponent
Throws:
java.lang.Exception

getAvailability

public AvailabilityType getAvailability()
Specified by:
getAvailability in interface AvailabilityFacet

getValues

public void getValues(MeasurementReport report,
                      java.util.Set<MeasurementScheduleRequest> requests)
               throws java.lang.Exception
Specified by:
getValues in interface MeasurementFacet
Throws:
java.lang.Exception

invokeOperation

public OperationResult invokeOperation(java.lang.String name,
                                       Configuration parameters)
                                throws java.lang.Exception
Specified by:
invokeOperation in interface OperationFacet
Throws:
java.lang.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 java.lang.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


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