org.pentaho.di.www
Class JobMap

java.lang.Object
  extended by org.pentaho.di.www.JobMap

public class JobMap
extends Object

This is a map between the job name and the (running/waiting/finished) job.

Since:
26-SEP-2007, 3.0.0
Author:
Matt

Constructor Summary
JobMap()
           
 
Method Summary
 void addJob(String jobName, String carteObjectId, Job job, JobConfiguration jobConfiguration)
           
 JobConfiguration getConfiguration(CarteObjectEntry entry)
           
 JobConfiguration getConfiguration(String jobName)
           
 Map<CarteObjectEntry,JobConfiguration> getConfigurationMap()
           
 CarteObjectEntry getFirstCarteObjectEntry(String jobName)
           
 Job getJob(CarteObjectEntry entry)
           
 Job getJob(String jobName)
          Find the first job in the list that comes to mind!
 List<CarteObjectEntry> getJobObjects()
           
 SlaveServerConfig getSlaveServerConfig()
           
 void removeJob(CarteObjectEntry entry)
           
 void replaceJob(CarteObjectEntry entry, Job job, JobConfiguration jobConfiguration)
           
 void setConfigurationMap(Map<CarteObjectEntry,JobConfiguration> configurationMap)
           
 void setSlaveServerConfig(SlaveServerConfig slaveServerConfig)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JobMap

public JobMap()
Method Detail

addJob

public void addJob(String jobName,
                   String carteObjectId,
                   Job job,
                   JobConfiguration jobConfiguration)

replaceJob

public void replaceJob(CarteObjectEntry entry,
                       Job job,
                       JobConfiguration jobConfiguration)

getJob

public Job getJob(String jobName)
Find the first job in the list that comes to mind!

Parameters:
jobName -
Returns:
the first transformation with the specified name

getJob

public Job getJob(CarteObjectEntry entry)
Parameters:
entry - The Carte job object
Returns:
the job with the specified entry

getConfiguration

public JobConfiguration getConfiguration(String jobName)

getConfiguration

public JobConfiguration getConfiguration(CarteObjectEntry entry)
Parameters:
entry - The Carte job object
Returns:
the job configuration with the specified entry

removeJob

public void removeJob(CarteObjectEntry entry)

getJobObjects

public List<CarteObjectEntry> getJobObjects()

getConfigurationMap

public Map<CarteObjectEntry,JobConfiguration> getConfigurationMap()
Returns:
the configurationMap

setConfigurationMap

public void setConfigurationMap(Map<CarteObjectEntry,JobConfiguration> configurationMap)
Parameters:
configurationMap - the configurationMap to set

getFirstCarteObjectEntry

public CarteObjectEntry getFirstCarteObjectEntry(String jobName)

getSlaveServerConfig

public SlaveServerConfig getSlaveServerConfig()
Returns:
the slaveServerConfig

setSlaveServerConfig

public void setSlaveServerConfig(SlaveServerConfig slaveServerConfig)
Parameters:
slaveServerConfig - the slaveServerConfig to set