vgrid.server
Class LocalDispenserServer

java.lang.Object
  extended by vgrid.server.LocalDispenserServer
All Implemented Interfaces:
DispenserServer

public class LocalDispenserServer
extends java.lang.Object
implements DispenserServer

Server Proxy that resides in the same VM as the Server itself.


Constructor Summary
LocalDispenserServer(ExecutingPlodderServer srv)
           
 
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 getDescription()
           
 java.lang.String getId()
          Returns a unique id that can be used as tasks id.
 ExecutingPlodderServer getPlodderServer()
           
 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.
 void setPlodderServer(ExecutingPlodderServer plodderServer)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LocalDispenserServer

public LocalDispenserServer(ExecutingPlodderServer srv)
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

addLibrary

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

Specified by:
addLibrary in interface DispenserServer

clear

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

Specified by:
clear in interface DispenserServer

getDescription

public java.lang.String getDescription()
Specified by:
getDescription in interface DispenserServer

getPlodderServer

public ExecutingPlodderServer getPlodderServer()

setPlodderServer

public void setPlodderServer(ExecutingPlodderServer plodderServer)


vgrid the vienna grid project