| Modifier and Type | Field and Description |
|---|---|
protected URL |
baseURL |
protected String |
manager |
protected String |
password |
protected String |
platform |
protected int |
platformMinorVersion |
protected int |
platformVersion |
protected String |
user |
| Constructor and Description |
|---|
TargetPlatform() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
activate(RESOURCE resource)
Activates the resource in the platform
|
boolean |
deactivate(RESOURCE resource)
Deactivates the resource on the platform
|
DeployedPackage |
deploy(RESOURCE resource)
Deploys a resource into the platform
|
FileFilter |
getAcceptedFilesFilter()
Gets the filter to select the appropriate files to deploy on the platform.
|
String |
getPlatform() |
int |
getPlatformMinorVersion() |
int |
getPlatformVersion() |
Class<RESOURCE> |
getResourceClass()
Gets the resource class managed by the platform
|
void |
initialize()
Initializes the platform
|
boolean |
isAvailable()
Checks whether the platform is available or not
|
PackageSet<RESOURCE> |
list()
Lists all the resources deployed
|
void |
setBaseURL(URL url)
Sets the base URL of the platform
|
void |
setPassword(String password)
Sets the password to use for the admin user in the target platform, if any
|
void |
setUser(String user)
Sets the admin user, if any
|
void |
shutdown()
Shutdowns the platform
|
boolean |
supportHotDeployment()
States if the platform supports hot deployments, i.e.
|
UndeployedPackage |
undeploy(RESOURCE resource)
Undeploys a resource from the platform
|
protected String user
protected String password
protected String manager
protected URL baseURL
protected String platform
protected int platformVersion
protected int platformMinorVersion
public String getPlatform()
public int getPlatformVersion()
public int getPlatformMinorVersion()
public DeployedPackage deploy(RESOURCE resource) throws Exception
resource - the resource to deployException - if the deployment failspublic UndeployedPackage undeploy(RESOURCE resource) throws Exception
resource - the resource to undeployException - if the undeployment failspublic boolean activate(RESOURCE resource) throws Exception
resource - the resource to activateException - if the activation failspublic boolean deactivate(RESOURCE resource) throws Exception
resource - the resource to deactivateException - if the deactivation failspublic PackageSet<RESOURCE> list() throws Exception
Exception - if the listing failspublic void setBaseURL(URL url)
url - public void setPassword(String password)
password - the passwordpublic void setUser(String user)
user - the userpublic boolean supportHotDeployment()
deploy(Package) or undeploy(Package) invocationpublic Class<RESOURCE> getResourceClass()
public FileFilter getAcceptedFilesFilter()
public boolean isAvailable()
Copyright © 2019. All Rights Reserved.