jfullam.vfabric.jenkins.plugin.rest
Class ProvisioningRestService

java.lang.Object
  extended by jfullam.vfabric.jenkins.plugin.rest.ProvisioningRestService
All Implemented Interfaces:
ProvisioningService

public class ProvisioningRestService
extends Object
implements ProvisioningService

Calls the Application Director REST API for scheduling actions such as deploying / provisioning an application environment

Author:
Jonathan Fullam

Constructor Summary
ProvisioningRestService()
           
 
Method Summary
 RestProvider getRestProvider()
           
 ServiceResult scheduleDeployment(String deploymentProfileId)
          Schedule the deployment of an application based on a deployment profile.
 void setRestProvider(RestProvider restProvider)
           
 ServiceResult tearDown(String appName, String profileName)
          Schedule the teardown an existing deployment
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProvisioningRestService

public ProvisioningRestService()
Method Detail

tearDown

public ServiceResult tearDown(String appName,
                              String profileName)
                       throws ServiceException
Description copied from interface: ProvisioningService
Schedule the teardown an existing deployment

Specified by:
tearDown in interface ProvisioningService
Parameters:
appName - - The name of the application
profileName - - deployment profile name
Returns:
ServiceResult - based on the response from Application Director
Throws:
ServiceException

scheduleDeployment

public ServiceResult scheduleDeployment(String deploymentProfileId)
                                 throws ServiceException
Description copied from interface: ProvisioningService
Schedule the deployment of an application based on a deployment profile.

Specified by:
scheduleDeployment in interface ProvisioningService
Returns:
ServiceResult - based on the response from Application Director
Throws:
ServiceException

getRestProvider

public RestProvider getRestProvider()

setRestProvider

public void setRestProvider(RestProvider restProvider)
Specified by:
setRestProvider in interface ProvisioningService


Copyright © 2004-2012. All Rights Reserved.