public class VirtualPlatform extends Object
TargetPlatform| Constructor and Description |
|---|
VirtualPlatform(PlatformConfiguration configuration) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
activate(PackageSet<?> packages)
Activates a set of
Package in the platform |
boolean |
deactivate(PackageSet<?> packages)
Deactivates a set of
Package in the platform |
PackageSet<DeployedPackage> |
deploy(PackageSet<Package> packages)
Deploys a set of
Package in the platform |
FileFilter |
getAcceptedFilesFilter()
Gets a filter for files to be deployed on the platform
|
short |
getMinorVersion() |
String |
getName() |
Package |
getNewAppInstance() |
short |
getVersion() |
void |
initialize()
Initializes the platform
|
boolean |
isAvailable()
Checks if the platform is available or not
|
void |
shutdown()
Shutdowns the platform
|
PackageSet<UndeployedPackage> |
undeploy(PackageSet<?> packages)
Undeploys a set of
Package from the platform |
public VirtualPlatform(PlatformConfiguration configuration) throws Exception
Exceptionpublic PackageSet<DeployedPackage> deploy(PackageSet<Package> packages) throws Exception
Package in the platformpackages - the package to deployException - if the deployment of at least one package failspublic FileFilter getAcceptedFilesFilter() throws Exception
Exceptionpublic PackageSet<UndeployedPackage> undeploy(PackageSet<?> packages) throws Exception
Package from the platformpackages - the package to undeployException - if the undeployment of at least one package failspublic boolean activate(PackageSet<?> packages) throws Exception
Package in the platformpackages - the package to activateException - if the activation of at least one resource failspublic boolean deactivate(PackageSet<?> packages) throws Exception
Package in the platformpackages - the package to deactivateException - if the deactivation of at least one resource failspublic boolean isAvailable()
public String getName()
public short getVersion()
public short getMinorVersion()
Copyright © 2019. All Rights Reserved.