|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectvgrid.server.InMemoryExecutiongPlodderServer
public class InMemoryExecutiongPlodderServer
A Server that keeps the managed tasks i the main Memeory. Mainly for testing purposes.
| Constructor Summary | |
|---|---|
InMemoryExecutiongPlodderServer()
|
|
| 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. |
java.lang.String |
toDescriptionString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public InMemoryExecutiongPlodderServer()
| Method Detail |
|---|
public java.io.InputStream getUnfinishedTask()
throws VgridException
ExecutingPlodderServer
getUnfinishedTask in interface ExecutingPlodderServerVgridException
public java.io.InputStream getTask(java.lang.String id)
throws VgridException
ExecutingPlodderServer
getTask in interface ExecutingPlodderServerid - The id of the task to be downloaded.
VgridException
public void deleteTask(java.lang.String id)
throws VgridException
ExecutingPlodderServer
deleteTask in interface ExecutingPlodderServerid - The id of the task to be deleted.
VgridException
public java.util.Collection getTaskIds(TaskState state)
throws VgridException
ExecutingPlodderServer
getTaskIds in interface ExecutingPlodderServerstate - 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
public void setFinishedTask(java.io.InputStream in)
throws VgridException
ExecutingPlodderServer
setFinishedTask in interface ExecutingPlodderServerin - The task in serialized form.
VgridException
public void setErrorTask(java.io.InputStream in)
throws VgridException
ExecutingPlodderServer
setErrorTask in interface ExecutingPlodderServerin - The task in serialized form.
VgridException
public void setUnfinishedTask(java.io.InputStream in)
throws VgridException
ExecutingPlodderServer
setUnfinishedTask in interface ExecutingPlodderServerin - The task in serialized form.
VgridExceptionpublic java.lang.String getConfiguration()
ExecutingPlodderServer
getConfiguration in interface ExecutingPlodderServerpublic java.lang.String toDescriptionString()
public void setLibrary(java.lang.String name,
java.io.InputStream in)
throws VgridException
ExecutingPlodderServer
setLibrary in interface ExecutingPlodderServername - 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
public java.util.Collection getLibraryUrls()
throws VgridException
ExecutingPlodderServer
getLibraryUrls in interface ExecutingPlodderServerVgridExceptionpublic java.util.Collection getLibraryNames()
ExecutingPlodderServer
getLibraryNames in interface ExecutingPlodderServer
public void deleteLibrary(java.lang.String name)
throws VgridException
ExecutingPlodderServer
deleteLibrary in interface ExecutingPlodderServername - The name of the libray to be deleted.
VgridExceptionpublic java.lang.String getVersion()
ExecutingPlodderServer
getVersion in interface ExecutingPlodderServer
public java.lang.String getNextId()
throws VgridException
ExecutingPlodderServer
getNextId in interface ExecutingPlodderServerVgridExceptionpublic void clear()
ExecutingPlodderServer
clear in interface ExecutingPlodderServerpublic java.lang.String getState()
ExecutingPlodderServer
getState in interface ExecutingPlodderServer
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||