org.teiid.rhq.plugin.deployer
Class AbstractDeployer

java.lang.Object
  extended by org.teiid.rhq.plugin.deployer.AbstractDeployer
All Implemented Interfaces:
Deployer
Direct Known Subclasses:
RemoteDeployer

public abstract class AbstractDeployer
extends java.lang.Object
implements Deployer

Abstract base class capturing the common deploy functionality for embedded and remote scenarios.


Constructor Summary
protected AbstractDeployer(org.rhq.plugins.jbossas5.connection.ProfileServiceConnection profileService)
           
 
Method Summary
 void deploy(org.rhq.core.pluginapi.inventory.CreateResourceReport createResourceReport, org.rhq.core.domain.resource.ResourceType resourceType)
          Handles the deployment process end to end and updates the createResourceReport with appropriate results.
protected abstract  void destroyArchive(java.io.File archive)
           
protected  org.apache.commons.logging.Log getLog()
           
protected  org.rhq.plugins.jbossas5.connection.ProfileServiceConnection getProfileServiceConnection()
           
protected abstract  java.io.File prepareArchive(org.rhq.core.domain.content.PackageDetailsKey key, org.rhq.core.domain.resource.ResourceType resourceType)
           
protected abstract  java.io.File prepareArchive(java.lang.String userSpecifiedName, org.rhq.core.domain.content.PackageDetailsKey key, org.rhq.core.domain.resource.ResourceType resourceType)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractDeployer

protected AbstractDeployer(org.rhq.plugins.jbossas5.connection.ProfileServiceConnection profileService)
Method Detail

deploy

public void deploy(org.rhq.core.pluginapi.inventory.CreateResourceReport createResourceReport,
                   org.rhq.core.domain.resource.ResourceType resourceType)
Description copied from interface: Deployer
Handles the deployment process end to end and updates the createResourceReport with appropriate results.

Specified by:
deploy in interface Deployer
Parameters:
createResourceReport - the report to get the deployment from
resourceType - the target resource type

getLog

protected org.apache.commons.logging.Log getLog()

getProfileServiceConnection

protected org.rhq.plugins.jbossas5.connection.ProfileServiceConnection getProfileServiceConnection()

prepareArchive

protected abstract java.io.File prepareArchive(org.rhq.core.domain.content.PackageDetailsKey key,
                                               org.rhq.core.domain.resource.ResourceType resourceType)

prepareArchive

protected abstract java.io.File prepareArchive(java.lang.String userSpecifiedName,
                                               org.rhq.core.domain.content.PackageDetailsKey key,
                                               org.rhq.core.domain.resource.ResourceType resourceType)

destroyArchive

protected abstract void destroyArchive(java.io.File archive)


Copyright © 2011. All Rights Reserved.