|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IEsfApplicationManagerService
The Application Manager Service provides an API for software components to install, start, stop, and uninstall applications. An application is defined as one or more bundles that provide some business level functionality. There is also a hook to the MQTT client to allow bundles to be installed, started, stopped, or uninstalled via the MQTT interface. Copyright (c) 2011 Eurotech Inc. All rights reserved.
Field Summary | |
---|---|
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 |
Method Summary | |
---|---|
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. |
Field Detail |
---|
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
Method Detail |
---|
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 files
java.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 running
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |