|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Thread
org.pentaho.di.job.Job
public class Job
This class executes a JobInfo object.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class java.lang.Thread |
---|
Thread.State, Thread.UncaughtExceptionHandler |
Field Summary | |
---|---|
static String |
CONFIGURATION_IN_EXPORT_FILENAME
|
Fields inherited from class java.lang.Thread |
---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Constructor Summary | |
---|---|
Job()
Empty constructor, for Class.newInstance() |
|
Job(Repository repository,
JobMeta jobMeta)
|
|
Job(Repository repository,
JobMeta jobMeta,
org.pentaho.di.core.logging.LoggingObjectInterface parentLogging)
|
|
Job(String name,
String file,
String[] args)
|
Method Summary | |
---|---|
void |
activateParameters()
|
void |
addErrors(int nrToAdd)
Add a number of errors to the total number of erros that occured during execution. |
void |
addJobEntryListener(JobEntryListener jobEntryListener)
|
void |
addJobListener(JobListener jobListener)
Add a job listener to the job |
void |
addParameterDefinition(String key,
String defValue,
String description)
|
boolean |
beginProcessing()
Handle logging at start |
void |
clearParameters()
|
void |
copyParametersFrom(org.pentaho.di.core.parameters.NamedParams params)
|
void |
copyVariablesFrom(org.pentaho.di.core.variables.VariableSpace space)
|
static Job |
createJobWithNewClassLoader()
|
String |
environmentSubstitute(String aString)
|
String[] |
environmentSubstitute(String[] aString)
|
void |
eraseParameters()
|
org.pentaho.di.core.Result |
execute(int nr,
org.pentaho.di.core.Result result)
Execute a job with previous results passed in. Execute called by JobEntryJob: don't clear the jobEntryResults. |
void |
fireJobListeners()
Sets the finished flag. Then launch all the job listeners and call the jobFinished method for each. |
Map<JobEntryCopy,JobEntryJob> |
getActiveJobEntryJobs()
|
Map<JobEntryCopy,JobEntryTrans> |
getActiveJobEntryTransformations()
|
long |
getBatchId()
|
boolean |
getBooleanValueOfVariable(String variableName,
boolean defaultValue)
|
String |
getContainerObjectId()
|
Date |
getCurrentDate()
|
Date |
getDepDate()
|
Date |
getEndDate()
|
int |
getErrors()
Get the number of errors that happened in the job. |
String |
getFilename()
|
List<JobEntryListener> |
getJobEntryListeners()
|
List<JobEntryResult> |
getJobEntryResults()
|
List<JobListener> |
getJobListeners()
|
JobMeta |
getJobMeta()
|
String |
getJobname()
|
JobTracker |
getJobTracker()
|
org.pentaho.di.core.logging.LogChannelInterface |
getLogChannel()
|
String |
getLogChannelId()
|
Date |
getLogDate()
|
List<org.pentaho.di.core.logging.LoggingHierarchy> |
getLoggingHierarchy()
|
org.pentaho.di.core.logging.LogLevel |
getLogLevel()
|
String |
getObjectCopy()
|
org.pentaho.di.repository.ObjectId |
getObjectId()
|
String |
getObjectName()
|
org.pentaho.di.repository.ObjectRevision |
getObjectRevision()
|
org.pentaho.di.core.logging.LoggingObjectType |
getObjectType()
|
String |
getParameterDefault(String key)
|
String |
getParameterDescription(String key)
|
String |
getParameterValue(String key)
|
org.pentaho.di.core.logging.LoggingObjectInterface |
getParent()
|
Job |
getParentJob()
|
org.pentaho.di.core.logging.LoggingObjectInterface |
getParentLoggingObject()
|
org.pentaho.di.core.variables.VariableSpace |
getParentVariableSpace()
|
long |
getPassedBatchId()
|
Date |
getRegistrationDate()
Stub |
Repository |
getRep()
|
org.pentaho.di.repository.RepositoryDirectoryInterface |
getRepositoryDirectory()
|
org.pentaho.di.core.Result |
getResult()
|
SocketRepository |
getSocketRepository()
|
List<org.pentaho.di.core.RowMetaAndData> |
getSourceRows()
|
Date |
getStartDate()
|
JobEntryCopy |
getStartJobEntryCopy()
|
String |
getStatus()
|
Thread |
getThread()
|
String |
getVariable(String variableName)
|
String |
getVariable(String variableName,
String defaultValue)
|
void |
init()
|
void |
initializeVariablesFrom(org.pentaho.di.core.variables.VariableSpace parent)
|
void |
injectVariables(Map<String,String> prop)
|
boolean |
isActive()
|
boolean |
isFinished()
|
boolean |
isInitialized()
|
boolean |
isInteractive()
|
boolean |
isStopped()
|
String[] |
listParameters()
|
String[] |
listVariables()
|
void |
removeJobEntryListener(JobEntryListener jobEntryListener)
Remove a job entry listener from the job |
void |
removeJobListener(JobListener jobListener)
Remove a job listener from the job |
void |
resetErrors()
Set the number of occured errors to 0. |
void |
run()
|
static String |
sendToSlaveServer(JobMeta jobMeta,
JobExecutionConfiguration executionConfiguration,
Repository repository)
|
void |
setBatchId(long batchId)
|
void |
setContainerObjectId(String containerObjectId)
|
void |
setFinished(boolean finished)
|
void |
setInteractive(boolean interactive)
|
void |
setInternalKettleVariables(org.pentaho.di.core.variables.VariableSpace var)
|
void |
setJobTracker(JobTracker jobTracker)
|
void |
setLogLevel(org.pentaho.di.core.logging.LogLevel logLevel)
|
void |
setParameterValue(String key,
String value)
|
void |
setParentJob(Job parentJob)
|
void |
setParentVariableSpace(org.pentaho.di.core.variables.VariableSpace parent)
|
void |
setPassedBatchId(long jobBatchId)
|
void |
setRepository(Repository rep)
|
void |
setResult(org.pentaho.di.core.Result result)
|
void |
setSocketRepository(SocketRepository socketRepository)
|
void |
setSourceRows(List<org.pentaho.di.core.RowMetaAndData> sourceRows)
|
void |
setStartJobEntryCopy(JobEntryCopy startJobEntryCopy)
|
void |
setStopped(boolean stopped)
|
void |
setVariable(String variableName,
String variableValue)
|
void |
shareVariablesWith(org.pentaho.di.core.variables.VariableSpace space)
|
void |
stopAll()
|
String |
toString()
|
void |
waitUntilFinished()
Wait until this job has finished. |
void |
waitUntilFinished(long maxMiliseconds)
Wait until this job has finished. |
Methods inherited from class java.lang.Thread |
---|
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, yield |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final String CONFIGURATION_IN_EXPORT_FILENAME
Constructor Detail |
---|
public Job(String name, String file, String[] args)
public Job(Repository repository, JobMeta jobMeta)
public Job(Repository repository, JobMeta jobMeta, org.pentaho.di.core.logging.LoggingObjectInterface parentLogging)
public Job()
Method Detail |
---|
public void init()
public String toString()
toString
in class Thread
public static final Job createJobWithNewClassLoader() throws org.pentaho.di.core.exception.KettleException
org.pentaho.di.core.exception.KettleException
public String getJobname()
public void setRepository(Repository rep)
public void run()
run
in interface Runnable
run
in class Thread
public org.pentaho.di.core.Result execute(int nr, org.pentaho.di.core.Result result) throws org.pentaho.di.core.exception.KettleException
nr
- The job entry numberresult
- the result of the previous execution
org.pentaho.di.core.exception.KettleJobException
org.pentaho.di.core.exception.KettleException
public void fireJobListeners() throws org.pentaho.di.core.exception.KettleException
org.pentaho.di.core.exception.KettleException
JobListener.jobFinished(Job)
public void waitUntilFinished()
public void waitUntilFinished(long maxMiliseconds)
maxMiliseconds
- the maximum number of ms to waitpublic int getErrors()
public void resetErrors()
public void addErrors(int nrToAdd)
nrToAdd
- nr of errors to add.public boolean beginProcessing() throws org.pentaho.di.core.exception.KettleException
org.pentaho.di.core.exception.KettleException
public boolean isActive()
public void stopAll()
public void setStopped(boolean stopped)
public boolean isStopped()
public Date getStartDate()
public Date getEndDate()
public Date getCurrentDate()
public Date getDepDate()
public Date getLogDate()
public JobMeta getJobMeta()
public Repository getRep()
public Thread getThread()
public JobTracker getJobTracker()
public void setJobTracker(JobTracker jobTracker)
jobTracker
- The jobTracker to set.public void setSourceRows(List<org.pentaho.di.core.RowMetaAndData> sourceRows)
public List<org.pentaho.di.core.RowMetaAndData> getSourceRows()
public Job getParentJob()
public void setParentJob(Job parentJob)
parentJob
- The parentJob to set.public org.pentaho.di.core.Result getResult()
public void setResult(org.pentaho.di.core.Result result)
public boolean isInitialized()
public long getBatchId()
public void setBatchId(long batchId)
batchId
- The batchId to set.public long getPassedBatchId()
public void setPassedBatchId(long jobBatchId)
jobBatchId
- the jobBatchId to setpublic void setInternalKettleVariables(org.pentaho.di.core.variables.VariableSpace var)
public void copyVariablesFrom(org.pentaho.di.core.variables.VariableSpace space)
copyVariablesFrom
in interface org.pentaho.di.core.variables.VariableSpace
public String environmentSubstitute(String aString)
environmentSubstitute
in interface org.pentaho.di.core.variables.VariableSpace
public String[] environmentSubstitute(String[] aString)
environmentSubstitute
in interface org.pentaho.di.core.variables.VariableSpace
public org.pentaho.di.core.variables.VariableSpace getParentVariableSpace()
getParentVariableSpace
in interface org.pentaho.di.core.variables.VariableSpace
public void setParentVariableSpace(org.pentaho.di.core.variables.VariableSpace parent)
setParentVariableSpace
in interface org.pentaho.di.core.variables.VariableSpace
public String getVariable(String variableName, String defaultValue)
getVariable
in interface org.pentaho.di.core.variables.VariableSpace
public String getVariable(String variableName)
getVariable
in interface org.pentaho.di.core.variables.VariableSpace
public boolean getBooleanValueOfVariable(String variableName, boolean defaultValue)
getBooleanValueOfVariable
in interface org.pentaho.di.core.variables.VariableSpace
public void initializeVariablesFrom(org.pentaho.di.core.variables.VariableSpace parent)
initializeVariablesFrom
in interface org.pentaho.di.core.variables.VariableSpace
public String[] listVariables()
listVariables
in interface org.pentaho.di.core.variables.VariableSpace
public void setVariable(String variableName, String variableValue)
setVariable
in interface org.pentaho.di.core.variables.VariableSpace
public void shareVariablesWith(org.pentaho.di.core.variables.VariableSpace space)
shareVariablesWith
in interface org.pentaho.di.core.variables.VariableSpace
public void injectVariables(Map<String,String> prop)
injectVariables
in interface org.pentaho.di.core.variables.VariableSpace
public String getStatus()
public static String sendToSlaveServer(JobMeta jobMeta, JobExecutionConfiguration executionConfiguration, Repository repository) throws org.pentaho.di.core.exception.KettleException
org.pentaho.di.core.exception.KettleException
public void addJobListener(JobListener jobListener)
jobListener
- the job listener to addpublic void addJobEntryListener(JobEntryListener jobEntryListener)
public void removeJobListener(JobListener jobListener)
jobListener
- the job listener to removepublic void removeJobEntryListener(JobEntryListener jobEntryListener)
jobListener
- the job entry listener to removepublic List<JobEntryListener> getJobEntryListeners()
public List<JobListener> getJobListeners()
public boolean isFinished()
public void setFinished(boolean finished)
finished
- the finished to setpublic void addParameterDefinition(String key, String defValue, String description) throws org.pentaho.di.core.parameters.DuplicateParamException
addParameterDefinition
in interface org.pentaho.di.core.parameters.NamedParams
org.pentaho.di.core.parameters.DuplicateParamException
public String getParameterDescription(String key) throws org.pentaho.di.core.parameters.UnknownParamException
getParameterDescription
in interface org.pentaho.di.core.parameters.NamedParams
org.pentaho.di.core.parameters.UnknownParamException
public String getParameterDefault(String key) throws org.pentaho.di.core.parameters.UnknownParamException
getParameterDefault
in interface org.pentaho.di.core.parameters.NamedParams
org.pentaho.di.core.parameters.UnknownParamException
public String getParameterValue(String key) throws org.pentaho.di.core.parameters.UnknownParamException
getParameterValue
in interface org.pentaho.di.core.parameters.NamedParams
org.pentaho.di.core.parameters.UnknownParamException
public String[] listParameters()
listParameters
in interface org.pentaho.di.core.parameters.NamedParams
public void setParameterValue(String key, String value) throws org.pentaho.di.core.parameters.UnknownParamException
setParameterValue
in interface org.pentaho.di.core.parameters.NamedParams
org.pentaho.di.core.parameters.UnknownParamException
public void eraseParameters()
eraseParameters
in interface org.pentaho.di.core.parameters.NamedParams
public void clearParameters()
clearParameters
in interface org.pentaho.di.core.parameters.NamedParams
public void activateParameters()
activateParameters
in interface org.pentaho.di.core.parameters.NamedParams
public void copyParametersFrom(org.pentaho.di.core.parameters.NamedParams params)
copyParametersFrom
in interface org.pentaho.di.core.parameters.NamedParams
public void setSocketRepository(SocketRepository socketRepository)
public SocketRepository getSocketRepository()
public org.pentaho.di.core.logging.LogChannelInterface getLogChannel()
getLogChannel
in interface HasLogChannelInterface
public String getObjectName()
getObjectName
in interface org.pentaho.di.core.logging.LoggingObjectInterface
public String getObjectCopy()
getObjectCopy
in interface org.pentaho.di.core.logging.LoggingObjectInterface
public String getFilename()
getFilename
in interface org.pentaho.di.core.logging.LoggingObjectInterface
public String getLogChannelId()
getLogChannelId
in interface org.pentaho.di.core.logging.LoggingObjectInterface
public org.pentaho.di.repository.ObjectId getObjectId()
getObjectId
in interface org.pentaho.di.core.logging.LoggingObjectInterface
public org.pentaho.di.repository.ObjectRevision getObjectRevision()
getObjectRevision
in interface org.pentaho.di.core.logging.LoggingObjectInterface
public org.pentaho.di.core.logging.LoggingObjectType getObjectType()
getObjectType
in interface org.pentaho.di.core.logging.LoggingObjectInterface
public org.pentaho.di.core.logging.LoggingObjectInterface getParent()
getParent
in interface org.pentaho.di.core.logging.LoggingObjectInterface
public org.pentaho.di.repository.RepositoryDirectoryInterface getRepositoryDirectory()
getRepositoryDirectory
in interface org.pentaho.di.core.logging.LoggingObjectInterface
public org.pentaho.di.core.logging.LogLevel getLogLevel()
getLogLevel
in interface org.pentaho.di.core.logging.LoggingObjectInterface
public void setLogLevel(org.pentaho.di.core.logging.LogLevel logLevel)
public List<org.pentaho.di.core.logging.LoggingHierarchy> getLoggingHierarchy()
public boolean isInteractive()
public void setInteractive(boolean interactive)
interactive
- the interactive to setpublic Map<JobEntryCopy,JobEntryTrans> getActiveJobEntryTransformations()
public Map<JobEntryCopy,JobEntryJob> getActiveJobEntryJobs()
public List<JobEntryResult> getJobEntryResults()
public String getContainerObjectId()
getContainerObjectId
in interface org.pentaho.di.core.logging.LoggingObjectInterface
public void setContainerObjectId(String containerObjectId)
containerObjectId
- the execution container object id to setpublic org.pentaho.di.core.logging.LoggingObjectInterface getParentLoggingObject()
public Date getRegistrationDate()
getRegistrationDate
in interface org.pentaho.di.core.logging.LoggingObjectInterface
public JobEntryCopy getStartJobEntryCopy()
public void setStartJobEntryCopy(JobEntryCopy startJobEntryCopy)
startJobEntryCopy
- the startJobEntryCopy to set
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |