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

java.lang.Object
  extended by it.eng.spagobi.engines.talend.runtime.TalendWork
All Implemented Interfaces:
commonj.work.Work, java.lang.Runnable

public class TalendWork
extends java.lang.Object
implements commonj.work.Work


Field Summary
static java.lang.String BIOBJECT_ID
           
static java.lang.String DOCUMENT_EXECUTION_END
           
static java.lang.String DOCUMENT_EXECUTION_START
           
static java.lang.String EVENT_TYPE
           
static java.lang.String EVENTS_MANAGER_URL
           
static java.lang.String START_EVENT_ID
           
static java.lang.String TALEND_PRESENTAION_HANDLER_CLASS_NAME
           
static java.lang.String TALEND_ROLES_HANDLER_CLASS_NAME
           
static java.lang.String USER_NAME
           
 
Constructor Summary
TalendWork(java.lang.String command, java.lang.String[] envr, java.io.File executableJobDir, java.util.List filesToBeDeletedAfterJobExecution, java.util.Map parameters)
          Instantiates a new talend work.
 
Method Summary
 boolean isCompleteWithoutError()
          Checks if is complete without error.
 boolean isDaemon()
           
 void release()
           
 void run()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TALEND_ROLES_HANDLER_CLASS_NAME

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

TALEND_PRESENTAION_HANDLER_CLASS_NAME

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

START_EVENT_ID

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

BIOBJECT_ID

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

USER_NAME

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

EVENTS_MANAGER_URL

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

EVENT_TYPE

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

DOCUMENT_EXECUTION_START

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

DOCUMENT_EXECUTION_END

public static final java.lang.String DOCUMENT_EXECUTION_END
See Also:
Constant Field Values
Constructor Detail

TalendWork

public TalendWork(java.lang.String command,
                  java.lang.String[] envr,
                  java.io.File executableJobDir,
                  java.util.List filesToBeDeletedAfterJobExecution,
                  java.util.Map parameters)
Instantiates a new talend work.

Parameters:
command - the command
envr - the envr
executableJobDir - the executable job dir
filesToBeDeletedAfterJobExecution - the files to be deleted after job execution
auditAccessUtils - the audit access utils
auditId - the audit id
parameters - the parameters
session - the session
Method Detail

isCompleteWithoutError

public boolean isCompleteWithoutError()
Checks if is complete without error.

Returns:
true, if is complete without error

run

public void run()
Specified by:
run in interface java.lang.Runnable

isDaemon

public boolean isDaemon()
Specified by:
isDaemon in interface commonj.work.Work

release

public void release()
Specified by:
release in interface commonj.work.Work