public interface IEsfApplicationManagerService
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
SERVICE_NAME |
static java.lang.String |
TOPIC_INSTALL
MQTT topic to install a new application
|
static java.lang.String |
TOPIC_START
MQTT topic to start an application that has previously been installed via the application manager
|
static java.lang.String |
TOPIC_STOP
MQTT topic to stop an application that has previously been installed and started via the application manager
|
static java.lang.String |
TOPIC_UNINSTALL
MQTT topic to uninstall an application that has previously been
|
Modifier and Type | Method and Description |
---|---|
void |
install(java.io.File[] files)
Method used to install an application to the application manager.
|
boolean |
isInstalled(java.lang.String applicationName)
Checks to see if an application is currently installed via the IEsfApplicationManagerService.
|
boolean |
isRunning(java.lang.String applicationName)
Checks to see if an application is currently running via the IEsfApplicationManagerService.
|
void |
start(java.lang.String applicationName)
Starts an application by name.
|
void |
stop(java.lang.String applicationName)
Stops an application by name.
|
void |
uninstall(java.lang.String applicationName)
Uninstalls and application that has previously been installed via the IEsfApplicationManagerService.
|
static final java.lang.String SERVICE_NAME
static final java.lang.String TOPIC_INSTALL
static final java.lang.String TOPIC_START
static final java.lang.String TOPIC_STOP
static final java.lang.String TOPIC_UNINSTALL
void install(java.io.File[] files) throws java.lang.Exception
files
- A set of ESF jar files that make up the application plus an [application_name].md5 file containing the md5sums of the jar filesjava.lang.Exception
- If there is an error processing the application to be installedvoid start(java.lang.String applicationName) throws java.lang.Exception
applicationName
- The application name to start.java.lang.Exception
- If the application is unable to be started.void stop(java.lang.String applicationName) throws java.lang.Exception
applicationName
- The application name to stop.java.lang.Exception
- If the application can not be stoppedvoid uninstall(java.lang.String applicationName) throws java.lang.Exception
applicationName
- The application name to uninstall.java.lang.Exception
- If the application can not be uninstalled.boolean isInstalled(java.lang.String applicationName)
applicationName
- The application name to see if it is currently installed.boolean isRunning(java.lang.String applicationName)
applicationName
- The application name to see if it is currently runningCopyright © 2009 Eurotech Inc. All rights reserved.