Package org.pentaho.di.www
Class JobMap
- java.lang.Object
-
- 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
Constructors Constructor Description JobMap()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddJob(String jobName, String carteObjectId, Job job, JobConfiguration jobConfiguration)JobfindJob(String id)Find a job using the container/carte object ID.JobConfigurationgetConfiguration(String jobName)JobConfigurationgetConfiguration(CarteObjectEntry entry)CarteObjectEntrygetFirstCarteObjectEntry(String jobName)JobgetJob(String jobName)Find the first job in the list that comes to mind!JobgetJob(CarteObjectEntry entry)List<CarteObjectEntry>getJobObjects()SlaveServerConfiggetSlaveServerConfig()CarteObjectEntrygetUniqueCarteObjectEntry(String jobName)voidregisterJob(Job job, JobConfiguration jobConfiguration)voidremoveJob(CarteObjectEntry entry)voidreplaceJob(CarteObjectEntry entry, Job job, JobConfiguration jobConfiguration)voidsetSlaveServerConfig(SlaveServerConfig slaveServerConfig)
-
-
-
Method Detail
-
addJob
public void addJob(String jobName, String carteObjectId, Job job, JobConfiguration jobConfiguration)
-
registerJob
public void registerJob(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()
-
getFirstCarteObjectEntry
public CarteObjectEntry getFirstCarteObjectEntry(String jobName)
-
getUniqueCarteObjectEntry
public CarteObjectEntry getUniqueCarteObjectEntry(String jobName) throws DuplicateKeyException
- Throws:
DuplicateKeyException
-
getSlaveServerConfig
public SlaveServerConfig getSlaveServerConfig()
- Returns:
- the slaveServerConfig
-
setSlaveServerConfig
public void setSlaveServerConfig(SlaveServerConfig slaveServerConfig)
- Parameters:
slaveServerConfig- the slaveServerConfig to set
-
-