|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ApplicationService
ApplicationService provides a framework of methods for managing mote applications.
Method Summary | |
---|---|
boolean |
deregister(int appId)
Deregister an Application with the server. |
JarFile |
get(int appId)
Receive the jar file for the given application ID. |
Application |
getApplication(int appId)
Receive an Application object from the server |
Collection<Integer> |
list()
Receive a collection of the Application objects currently running in the network. |
Collection<Integer> |
listRegistered()
Receive a list of mote applications registered with the server |
int |
register(Application jarFile)
Register an Application with the server |
boolean |
run(int appId)
Instruct the server to run the specified Application in the network. |
boolean |
stop(int appId)
Instruct the server to terminate the specified Application from running in the network. |
Method Detail |
---|
int register(Application jarFile) throws IOException
jarFile
-
IOException
boolean deregister(int appId) throws IOException
appId
-
IOException
Collection<Integer> listRegistered() throws IOException
IOException
Application getApplication(int appId) throws IOException
appId
- of the requeested Application
IOException
boolean run(int appId) throws ApplicationException, IOException
appId
- of the Application to be run in the network
ApplicationException
IOException
boolean stop(int appId) throws ApplicationException, IOException
appId
- of the Application to stop
ApplicationException
IOException
Collection<Integer> list() throws IOException
IOException
JarFile get(int appId) throws IOException
appId
- of the requested Application
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |