public class ManagementWsDelegate extends Object
| Constructor and Description |
|---|
ManagementWsDelegate(com.sun.jersey.api.client.WebResource resource)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
deleteApplication(String applicationName)
Deletes an application.
|
List<net.roboconf.core.model.beans.Application> |
listApplications()
Lists applications.
|
void |
loadApplication(File applicationFile)
Uploads a ZIP file and loads its application.
|
void |
loadApplication(String remoteFilePath)
Loads an application from a file which was already uploaded 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 loadApplication(File applicationFile) throws ManagementException, IOException
applicationFile - a ZIP archive filecom.sun.jersey.api.client.UniformInterfaceException - if something went wrongcom.sun.jersey.api.client.ClientHandlerException - if something went wrongManagementException - if a problem occurred with the applications managementIOException - if the file was not found or is invalidpublic void loadApplication(String remoteFilePath) throws ManagementException
applicationFile - a ZIP archive filecom.sun.jersey.api.client.UniformInterfaceException - if something went wrongcom.sun.jersey.api.client.ClientHandlerException - if something went wrongManagementException - if a problem occurred with the applications managementpublic List<net.roboconf.core.model.beans.Application> listApplications() throws ManagementException
com.sun.jersey.api.client.UniformInterfaceException - if something went wrongcom.sun.jersey.api.client.ClientHandlerException - if something went wrongManagementException - if a problem occurred with the applications managementpublic void shutdownApplication(String applicationName) throws ManagementException
applicationName - the application namecom.sun.jersey.api.client.UniformInterfaceException - if something went wrongcom.sun.jersey.api.client.ClientHandlerException - if something went wrongManagementException - if a problem occurred with the applications managementpublic void deleteApplication(String applicationName) throws ManagementException
applicationName - the application namecom.sun.jersey.api.client.UniformInterfaceException - if something went wrongcom.sun.jersey.api.client.ClientHandlerException - if something went wrongManagementException - if a problem occurred with the applications managementCopyright © 2015. All rights reserved.