vgrid.web.dispenser
Class HttpDispenserSrvProxy

java.lang.Object
  extended by vgrid.web.AbstractHttpSrvProxy
      extended by vgrid.web.dispenser.HttpDispenserSrvProxy
All Implemented Interfaces:
DispenserServer

public class HttpDispenserSrvProxy
extends AbstractHttpSrvProxy
implements DispenserServer

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

HttpDispenserSrvProxy

public HttpDispenserSrvProxy(java.lang.String host,
                             java.lang.String port,
                             java.lang.String app)

HttpDispenserSrvProxy

public HttpDispenserSrvProxy(java.util.Properties props)
Method Detail

addNewTask

public void addNewTask(Task task)
                throws VgridException
Description copied from interface: DispenserServer
Adds a new task to the server to be executed.

Specified by:
addNewTask in interface DispenserServer
Throws:
VgridException

retrieveFinishedTasks

public java.util.Collection retrieveFinishedTasks(java.lang.String jobId)
                                           throws VgridException
Description copied from interface: DispenserServer
Returns a collection of tasks that are already finished. The finished tasks must have a taskid included in the taskIds collection.

Specified by:
retrieveFinishedTasks in interface DispenserServer
Throws:
VgridException

retrieveErrorneousTasks

public java.util.Collection retrieveErrorneousTasks(java.lang.String jobId)
                                             throws VgridException
Description copied from interface: DispenserServer
Returns a collection of tasks that are errorneus. The tasks must have a taskid included in the taskIds collection.

Specified by:
retrieveErrorneousTasks in interface DispenserServer
Throws:
VgridException

getId

public java.lang.String getId()
                       throws VgridException
Description copied from interface: DispenserServer
Returns a unique id that can be used as tasks id.

Specified by:
getId in interface DispenserServer
Throws:
VgridException

clear

public void clear()
Description copied from interface: DispenserServer
Clear. Removes all Tasks and libraries from the server.

Specified by:
clear in interface DispenserServer

addLibrary

public void addLibrary(java.io.File lib)
                throws VgridException
Description copied from interface: DispenserServer
Adds a library to the server.

Specified by:
addLibrary in interface DispenserServer
Throws:
VgridException


vgrid the vienna grid project