org.gridbus.broker.farming.common
Class FarmingEngine

java.lang.Object
  extended by org.gridbus.broker.farming.common.FarmingEngine
Direct Known Subclasses:
GridbusFarmingEngine

public class FarmingEngine
extends java.lang.Object

This is a simple Farming Engine class. A Farming Engine is just a place holder for the jobs and (computational)servers. It should be possible to add jobs, add servers and add whole collections of jobs and servers.

Author:
Srikumar Venugopal(srikumar@cs.mu.oz.au)

Constructor Summary
FarmingEngine()
          Constructor - intializes the job and server collections.
 
Method Summary
 void addJob(Job j)
          Add a job to the Collection
 void addServer(ComputeServer s)
          Add a computational server to the Collection
 java.util.Collection getJobs()
           
 java.util.Collection getServers()
           
 void setJobs(java.util.Collection jobs)
           
 void setServers(java.util.Collection servers)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FarmingEngine

public FarmingEngine()
Constructor - intializes the job and server collections.

Method Detail

getJobs

public java.util.Collection getJobs()
Returns:
jobs - Collection of jobs available with the farming engine

getServers

public java.util.Collection getServers()
Returns:
servers - Collection of computational servers available with the farming engine

setJobs

public void setJobs(java.util.Collection jobs)
Parameters:
jobs - - Collection object of jobs

setServers

public void setServers(java.util.Collection servers)
Parameters:
servers - - Collection object of servers

addJob

public void addJob(Job j)
Add a job to the Collection

Parameters:
j - - the job to be added

addServer

public void addServer(ComputeServer s)
Add a computational server to the Collection

Parameters:
s - - the server to be added.