|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface ExecutingPlodderServer
The server interface allows accessing the server from the vendor as well as from the client side.
It allows the vendor to deploy tasks and the associated code, to query the progress of execution, to receive the results and finally to delete tasks and code if it is no longer needed on the server.
The client gets unfinished tasks for execution and may send back tasks as finished, unfinished or error weather the execution has finished, not finished or an error occured. It may also load the newest code from the server if it fails instantiating a task.
| Method Summary | |
|---|---|
void |
clear()
Removes all tasks and libraries from the server. |
void |
deleteLibrary(java.lang.String name)
Deletes a library from the server. |
void |
deleteTask(java.lang.String id)
Deletes a task from the server. |
java.lang.String |
getConfiguration()
A description of server, containing static information of the server. |
java.util.Collection |
getLibraryNames()
Returns a collection of library names. |
java.util.Collection |
getLibraryUrls()
Returns a collection of urls (java.net.URL) that describe the libraries deployed on the server. |
java.lang.String |
getNextId()
Returns a unique ID to be used as Job- or Taskid. |
java.lang.String |
getState()
A string describing the state of the server. |
java.io.InputStream |
getTask(java.lang.String id)
Downloads a specific task from the server. |
java.util.Collection |
getTaskIds(TaskState state)
Returns a collection of strings containing the task-ids beeing in a given state on the server. |
java.io.InputStream |
getUnfinishedTask()
Provides an unfinished task to be executed by a client. |
java.lang.String |
getVersion()
Returns the version of the server. |
void |
setErrorTask(java.io.InputStream in)
Sends a task to the server. |
void |
setFinishedTask(java.io.InputStream in)
Sends a task to the server. |
void |
setLibrary(java.lang.String name,
java.io.InputStream in)
Sends a library containing java classes in zipped form to the server. |
void |
setUnfinishedTask(java.io.InputStream in)
Sends a task to the server. |
| Method Detail |
|---|
java.io.InputStream getUnfinishedTask()
throws VgridException
VgridException
java.io.InputStream getTask(java.lang.String id)
throws VgridException
id - The id of the task to be downloaded.
VgridException
void deleteTask(java.lang.String id)
throws VgridException
id - The id of the task to be deleted.
VgridException
java.util.Collection getTaskIds(TaskState state)
throws VgridException
state - The state what whos ids should be requested. Possible values: Server.TASK_STATE_UNFINISHED,
Server.TASK_STATE_UNFINISHED, Server.TASK_STATE_REQUESTED, Server.TASK_STATE_ERROR, Server.TASK_STATE_ABSENT
VgridException
void setFinishedTask(java.io.InputStream in)
throws VgridException
in - The task in serialized form.
VgridException
void setUnfinishedTask(java.io.InputStream in)
throws VgridException
in - The task in serialized form.
VgridException
void setErrorTask(java.io.InputStream in)
throws VgridException
in - The task in serialized form.
VgridExceptionjava.lang.String getConfiguration()
java.lang.String getState()
void setLibrary(java.lang.String name,
java.io.InputStream in)
throws VgridException
name - The name of the library. E.g. mylib.jar, lib.jar, ... . The name must be unique. Therefore a prefix
spezifying the vendor and the vendor project should be used.in - A stream containing the library.
VgridException
java.util.Collection getLibraryUrls()
throws VgridException
VgridExceptionjava.util.Collection getLibraryNames()
void deleteLibrary(java.lang.String name)
throws VgridException
name - The name of the libray to be deleted.
VgridExceptionjava.lang.String getVersion()
java.lang.String getNextId()
throws VgridException
VgridExceptionvoid clear()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||