public class PlatformCall extends Object
VirtualPlatform invocation| Constructor and Description |
|---|
PlatformCall(org.gcube.vremanagement.virtualplatform.image.VirtualPlatform platform)
Creates a new abstract call for the target platform
|
| Modifier and Type | Method and Description |
|---|---|
void |
activate(DeployablePackage pack)
Activates a package
|
void |
activate(String name,
String path)
Activates a package given its name and application path
|
void |
deactivate(String name,
String path)
Deactivates a package
|
void |
deactivate(UndeployablePackage pack)
Deactivates a package
|
PlatformApplication |
deactivateAndUndeploy(UndeployablePackage pack) |
PlatformApplication |
deploy(DeployablePackage pack,
List<File> files,
List<String> endpoints)
Deploys a package
|
PlatformApplication |
deployAndActivate(DeployablePackage pack,
List<File> files,
List<String> endpoints)
A wrapper around the
#deploy(DeployablePackage) and activate(DeployablePackage) methods |
PlatformApplication |
undeploy(UndeployablePackage pack)
Undeploys the package
|
public PlatformCall(org.gcube.vremanagement.virtualplatform.image.VirtualPlatform platform)
platform - the platform to invoke in the objet's methodspublic PlatformApplication deploy(DeployablePackage pack, List<File> files, List<String> endpoints) throws Exception
pack - the package to deployendpoints - Exceptionpublic PlatformApplication deployAndActivate(DeployablePackage pack, List<File> files, List<String> endpoints) throws Exception
#deploy(DeployablePackage) and activate(DeployablePackage) methodspack - the package to deploy and ativatefiles - the list of files belonging the packagelist - the endpoints as extracted from the package profileExceptionpublic void activate(DeployablePackage pack) throws Exception
pack - the package to activateExceptionpublic void activate(String name, String path) throws Exception
name - the package to activatepath - the path of the package to activateExceptionpublic void deactivate(UndeployablePackage pack) throws Exception
pack - the package to deactivateExceptionpublic void deactivate(String name, String path) throws Exception
name - the name of the package to deactivatepath - the path of the package to deactivateExceptionpublic PlatformApplication undeploy(UndeployablePackage pack) throws Exception
pack - the package to undeployExceptionpublic PlatformApplication deactivateAndUndeploy(UndeployablePackage pack) throws Exception
ExceptionCopyright © 2015. All Rights Reserved.