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

java.lang.Object
  extended by it.eng.spagobi.engines.talend.runtime.JavaJobRunner
All Implemented Interfaces:
IJobRunner

public class JavaJobRunner
extends java.lang.Object
implements IJobRunner

Author:
Andrea Gioia

Field Summary
static java.lang.String DEFAULT_CONTEXT
           
static java.lang.String DEFAULT_XMS_VALUE
           
static java.lang.String DEFAULT_XMX_VALUE
           
 
Method Summary
 java.util.Properties getContext(Job job)
          Gets the context.
 java.io.File getTempDir(Job job)
           
 void initContexts(Job job, java.util.Map parameters, java.io.File destDir)
           
 java.lang.String instantiateContext(Job job, java.util.Map parameters)
           
 void run(Job job, java.util.Map parameters)
          Run.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_CONTEXT

public static final java.lang.String DEFAULT_CONTEXT
See Also:
Constant Field Values

DEFAULT_XMS_VALUE

public static final java.lang.String DEFAULT_XMS_VALUE
See Also:
Constant Field Values

DEFAULT_XMX_VALUE

public static final java.lang.String DEFAULT_XMX_VALUE
See Also:
Constant Field Values
Method Detail

run

public void run(Job job,
                java.util.Map parameters)
         throws JobNotFoundException,
                ContextNotFoundException,
                JobExecutionException
Description copied from interface: IJobRunner
Run.

Specified by:
run in interface IJobRunner
Parameters:
job - the job
Throws:
JobNotFoundException - the job not found exception
ContextNotFoundException - the context not found exception
JobExecutionException - the job execution exception

initContexts

public void initContexts(Job job,
                         java.util.Map parameters,
                         java.io.File destDir)

getTempDir

public java.io.File getTempDir(Job job)

instantiateContext

public java.lang.String instantiateContext(Job job,
                                           java.util.Map parameters)
                                    throws ContextNotFoundException,
                                           java.io.IOException
Throws:
ContextNotFoundException
java.io.IOException

getContext

public java.util.Properties getContext(Job job)
Gets the context.

Parameters:
job - the job
Returns:
the context