|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectvgrid.web.AbstractHttpSrvProxy
vgrid.web.dispenser.HttpDispenserSrvProxy
public class HttpDispenserSrvProxy
Accesses the actual server via HTTP implementing the ServerForVendor Interface.
| Field Summary |
|---|
| Fields inherited from class vgrid.web.AbstractHttpSrvProxy |
|---|
app, host, LIB, logger, port, RECEIVE_COMMAND, RECEIVE_ERROR_TASK, RECEIVE_FINISHED_TASK, RECEIVE_LIB, RECEIVE_UNFINISHED_TASK, sutil |
| Constructor Summary | |
|---|---|
HttpDispenserSrvProxy(java.util.Properties props)
|
|
HttpDispenserSrvProxy(java.lang.String host,
java.lang.String port,
java.lang.String app)
|
|
| Method Summary | |
|---|---|
void |
addLibrary(java.io.File lib)
Adds a library to the server. |
void |
addNewTask(Task task)
Adds a new task to the server to be executed. |
void |
clear()
Clear. |
java.lang.String |
getId()
Returns a unique id that can be used as tasks id. |
java.util.Collection |
retrieveErrorneousTasks(java.lang.String jobId)
Returns a collection of tasks that are errorneus. |
java.util.Collection |
retrieveFinishedTasks(java.lang.String jobId)
Returns a collection of tasks that are already finished. |
| Methods inherited from class vgrid.web.AbstractHttpSrvProxy |
|---|
getApp, getDescription, getHost, getLibraryUrls, getPort, info, performCommandRequest, performCommandRequest, performGetTaskRequest, performSetStreamRequest, setApp, setErrorTask, setFinishedTask, setHost, setPort, setUnfinishedTask |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface vgrid.dispense.DispenserServer |
|---|
getDescription |
| Constructor Detail |
|---|
public HttpDispenserSrvProxy(java.lang.String host,
java.lang.String port,
java.lang.String app)
public HttpDispenserSrvProxy(java.util.Properties props)
| Method Detail |
|---|
public void addNewTask(Task task)
throws VgridException
DispenserServer
addNewTask in interface DispenserServerVgridException
public java.util.Collection retrieveFinishedTasks(java.lang.String jobId)
throws VgridException
DispenserServer
retrieveFinishedTasks in interface DispenserServerVgridException
public java.util.Collection retrieveErrorneousTasks(java.lang.String jobId)
throws VgridException
DispenserServer
retrieveErrorneousTasks in interface DispenserServerVgridException
public java.lang.String getId()
throws VgridException
DispenserServer
getId in interface DispenserServerVgridExceptionpublic void clear()
DispenserServer
clear in interface DispenserServer
public void addLibrary(java.io.File lib)
throws VgridException
DispenserServer
addLibrary in interface DispenserServerVgridException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||