vgrid.test
Class WrappedServer

java.lang.Object
  extended by vgrid.test.WrappedServer

public class WrappedServer
extends java.lang.Object

A wrapper around servers that does all the serializing and deserializing of tasks. Used for testing of server implementations.


Constructor Summary
WrappedServer(ExecutingPlodderServer srv)
           
 
Method Summary
 ExecutingPlodderServer getServer()
           
 Task getTask(java.lang.String id)
          Returns a task from the included server.
 Task getUnfinishedTask()
          Returns a task to be executed from the surrounding server.
 void setErrorTask(Task t)
          Sends an error task to the server.
 void setFinishedTask(Task t)
          Sends a finished task to the included server.
 void setUnfinishedTask(Task t)
          Sends an unfinished task to the server.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WrappedServer

public WrappedServer(ExecutingPlodderServer srv)
Method Detail

getUnfinishedTask

public Task getUnfinishedTask()
                       throws VgridException
Returns a task to be executed from the surrounding server. Should be used from clients.

Throws:
VgridException

getTask

public Task getTask(java.lang.String id)
             throws VgridException
Returns a task from the included server. To be used from vendors.

Throws:
VgridException

setFinishedTask

public void setFinishedTask(Task t)
                     throws VgridException
Sends a finished task to the included server. To be used by clients.

Throws:
VgridException

setUnfinishedTask

public void setUnfinishedTask(Task t)
                       throws VgridException
Sends an unfinished task to the server. To be used by clients.

Throws:
VgridException

setErrorTask

public void setErrorTask(Task t)
                  throws VgridException
Sends an error task to the server. To be used by clients.

Throws:
VgridException

getServer

public ExecutingPlodderServer getServer()


vgrid the vienna grid project