public class ManagementWsDelegate extends Object
| Constructor and Description |
|---|
ManagementWsDelegate(com.sun.jersey.api.client.WebResource resource)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
net.roboconf.core.model.beans.Application |
createApplication(String applicationName,
String templateName,
String templateQualifier)
Creates an application from a template.
|
void |
deleteApplication(String applicationName)
Deletes an application.
|
void |
deleteApplicationTemplate(String templateName,
String templateQualifier)
Deletes an application.
|
List<net.roboconf.core.model.beans.Application> |
listApplications()
Lists all the applications.
|
List<net.roboconf.core.model.beans.Application> |
listApplications(String exactName)
Lists applications.
|
List<net.roboconf.core.model.beans.ApplicationTemplate> |
listApplicationTemplates()
Lists all the application templates.
|
List<net.roboconf.core.model.beans.ApplicationTemplate> |
listApplicationTemplates(String exactName,
String exactQualifier)
Lists application templates.
|
void |
loadApplicationTemplate(File applicationFile)
Uploads a ZIP file and loads its application template.
|
void |
loadApplicationTemplate(String remoteFilePath)
Loads an application template from a file which was already uploaded (and unzipped) on the DM's machine.
|
void |
shutdownApplication(String applicationName)
Shutdowns an application.
|
public ManagementWsDelegate(com.sun.jersey.api.client.WebResource resource)
resource - a web resourcepublic void loadApplicationTemplate(File applicationFile) throws ManagementWsException, IOException
applicationFile - a ZIP archive fileManagementWsException - if a problem occurred with the applications managementIOException - if the file was not found or is invalidpublic void loadApplicationTemplate(String remoteFilePath) throws ManagementWsException
remoteFilePath - the file path of a directory containing the application on the DM's machineManagementWsException - if a problem occurred with the applications managementpublic List<net.roboconf.core.model.beans.ApplicationTemplate> listApplicationTemplates(String exactName, String exactQualifier) throws ManagementWsException
exactName - if specified, only the templates with this name will be returned (null to match all)
We only consider the application name, not the display name. It means that the parameter should not contain special characters.
exactQualifier - the exact qualifier to search (null to match all)ManagementWsException - if a problem occurred with the applications managementpublic List<net.roboconf.core.model.beans.ApplicationTemplate> listApplicationTemplates() throws ManagementWsException
Equivalent to listApplicationTemplates( null, null ).
ManagementWsException - if a problem occurred with the applications managementpublic void deleteApplicationTemplate(String templateName, String templateQualifier) throws ManagementWsException
templateName - the template nametemplateQualifier - the template qualifierManagementWsException - if a problem occurred with the applications managementpublic net.roboconf.core.model.beans.Application createApplication(String applicationName, String templateName, String templateQualifier) throws ManagementWsException
applicationName - the application nametemplateName - the template's nametemplateQualifier - the template's qualifierManagementWsException - if a problem occurred with the applications managementpublic List<net.roboconf.core.model.beans.Application> listApplications(String exactName) throws ManagementWsException
exactName - if not null, the result list will contain at most one application (with this name)ManagementWsException - if a problem occurred with the applications managementpublic List<net.roboconf.core.model.beans.Application> listApplications() throws ManagementWsException
Equivalent to listApplications( null ).
ManagementWsException - if a problem occurred with the applications managementpublic void shutdownApplication(String applicationName) throws ManagementWsException
applicationName - the application nameManagementWsException - if a problem occurred with the applications managementpublic void deleteApplication(String applicationName) throws ManagementWsException
applicationName - the application nameManagementWsException - if a problem occurred with the applications managementCopyright © 2017. All rights reserved.