it.eng.spagobi.engines.talend.runtime
Class RuntimeRepository

java.lang.Object
  extended by it.eng.spagobi.engines.talend.runtime.RuntimeRepository

public class RuntimeRepository
extends java.lang.Object

Author:
Andrea Gioia

Constructor Summary
RuntimeRepository(java.io.File rootDir)
          Instantiates a new runtime repository.
 
Method Summary
 boolean containsJob(Job job)
          Contains job.
 void deployJob(JobDeploymentDescriptor jobDeploymentDescriptor, java.util.zip.ZipFile executableJobFiles)
          Deploy job.
 java.io.File getExecutableJobDir(Job job)
          Gets the executable job dir.
 java.io.File getExecutableJobFile(Job job)
          Gets the executable job file.
 java.io.File getExecutableJobProjectDir(Job job)
          Gets the executable job project dir.
 IJobRunner getJobRunner(java.lang.String jobLanguage)
          Gets the job runner.
 java.io.File getRootDir()
          Gets the root dir.
static void main(java.lang.String[] args)
          The main method.
 void runJob(Job job, java.util.Map env)
          Run job.
 void setRootDir(java.io.File rootDir)
          Sets the root dir.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RuntimeRepository

public RuntimeRepository(java.io.File rootDir)
Instantiates a new runtime repository.

Parameters:
rootDir - the root dir
Method Detail

deployJob

public void deployJob(JobDeploymentDescriptor jobDeploymentDescriptor,
                      java.util.zip.ZipFile executableJobFiles)
Deploy job.

Parameters:
jobDeploymentDescriptor - the job deployment descriptor
executableJobFiles - the executable job files

runJob

public void runJob(Job job,
                   java.util.Map env)
            throws JobNotFoundException,
                   ContextNotFoundException,
                   JobExecutionException
Run job.

Parameters:
job - the job
env - the environment
Throws:
JobNotFoundException - the job not found exception
ContextNotFoundException - the context not found exception
JobExecutionException - the job execution exception

getJobRunner

public IJobRunner getJobRunner(java.lang.String jobLanguage)
Gets the job runner.

Parameters:
jobLanguage - the job language
Returns:
the job runner

getRootDir

public java.io.File getRootDir()
Gets the root dir.

Returns:
the root dir

setRootDir

public void setRootDir(java.io.File rootDir)
Sets the root dir.

Parameters:
rootDir - the new root dir

getExecutableJobProjectDir

public java.io.File getExecutableJobProjectDir(Job job)
Gets the executable job project dir.

Parameters:
job - the job
Returns:
the executable job project dir

getExecutableJobDir

public java.io.File getExecutableJobDir(Job job)
Gets the executable job dir.

Parameters:
job - the job
Returns:
the executable job dir

getExecutableJobFile

public java.io.File getExecutableJobFile(Job job)
Gets the executable job file.

Parameters:
job - the job
Returns:
the executable job file

containsJob

public boolean containsJob(Job job)
Contains job.

Parameters:
job - the job
Returns:
true, if successful

main

public static void main(java.lang.String[] args)
                 throws java.util.zip.ZipException,
                        java.io.IOException
The main method.

Parameters:
args - the arguments
Throws:
java.util.zip.ZipException - the zip exception
java.io.IOException - Signals that an I/O exception has occurred.