Package org.pentaho.di.job
Class JobExecutionConfiguration
- java.lang.Object
-
- org.pentaho.di.job.JobExecutionConfiguration
-
- All Implemented Interfaces:
Cloneable
,ExecutionConfiguration
public class JobExecutionConfiguration extends Object implements ExecutionConfiguration
-
-
Constructor Summary
Constructors Constructor Description JobExecutionConfiguration()
JobExecutionConfiguration(Node trecNode)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
clone()
Repository
connectRepository(String repositoryName, String username, String password)
Repository
connectRepository(RepositoriesMeta repositoriesMeta, String repositoryName, String username, String password)
Map<String,String>
getArguments()
String[]
getArgumentStrings()
Map<String,String>
getExtensionOptions()
org.pentaho.di.core.logging.LogLevel
getLogLevel()
Map<String,String>
getParams()
Long
getPassedBatchId()
org.pentaho.di.core.Result
getPreviousResult()
SlaveServer
getRemoteServer()
Date
getReplayDate()
Repository
getRepository()
String
getRunConfiguration()
String
getStartCopyName()
int
getStartCopyNr()
void
getUsedArguments(JobMeta jobMeta, String[] commandLineArguments, org.pentaho.metastore.api.IMetaStore metaStore)
void
getUsedVariables(JobMeta jobMeta)
Map<String,String>
getVariables()
String
getXML()
boolean
isClearingLog()
boolean
isExecutingLocally()
boolean
isExecutingRemotely()
boolean
isExpandingRemoteJob()
boolean
isGatheringMetrics()
boolean
isPassingExport()
boolean
isSafeModeEnabled()
void
setArguments(Map<String,String> arguments)
void
setArgumentStrings(String[] arguments)
void
setClearingLog(boolean clearingLog)
void
setExecutingLocally(boolean localExecution)
void
setExecutingRemotely(boolean remoteExecution)
void
setExpandingRemoteJob(boolean expandingRemoteJob)
void
setExtensionOptions(Map<String,String> extensionOptions)
void
setGatheringMetrics(boolean gatheringMetrics)
void
setLogLevel(org.pentaho.di.core.logging.LogLevel logLevel)
void
setParams(Map<String,String> params)
void
setPassedBatchId(Long passedBatchId)
void
setPassingExport(boolean passingExport)
void
setPreviousResult(org.pentaho.di.core.Result previousResult)
void
setRemoteServer(SlaveServer remoteServer)
void
setReplayDate(Date replayDate)
void
setRepository(Repository repository)
void
setRunConfiguration(String runConfiguration)
void
setSafeModeEnabled(boolean usingSafeMode)
void
setStartCopyName(String startCopyName)
void
setStartCopyNr(int startCopyNr)
void
setVariables(Map<String,String> variables)
void
setVariables(org.pentaho.di.core.variables.VariableSpace space)
-
-
-
Field Detail
-
XML_TAG
public static final String XML_TAG
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
JobExecutionConfiguration
public JobExecutionConfiguration()
-
JobExecutionConfiguration
public JobExecutionConfiguration(Node trecNode) throws org.pentaho.di.core.exception.KettleException
- Throws:
org.pentaho.di.core.exception.KettleException
-
-
Method Detail
-
clone
public Object clone()
- Specified by:
clone
in interfaceExecutionConfiguration
- Overrides:
clone
in classObject
-
getArguments
public Map<String,String> getArguments()
- Specified by:
getArguments
in interfaceExecutionConfiguration
- Returns:
- the arguments
-
setArguments
public void setArguments(Map<String,String> arguments)
- Specified by:
setArguments
in interfaceExecutionConfiguration
- Parameters:
arguments
- the arguments to set
-
setParams
public void setParams(Map<String,String> params)
- Specified by:
setParams
in interfaceExecutionConfiguration
- Parameters:
params
- the parameters to set
-
getParams
public Map<String,String> getParams()
- Specified by:
getParams
in interfaceExecutionConfiguration
- Returns:
- the parameters.
-
setArgumentStrings
public void setArgumentStrings(String[] arguments)
- Specified by:
setArgumentStrings
in interfaceExecutionConfiguration
- Parameters:
arguments
- the arguments to set
-
getVariables
public Map<String,String> getVariables()
- Specified by:
getVariables
in interfaceExecutionConfiguration
- Returns:
- the variables
-
setVariables
public void setVariables(Map<String,String> variables)
- Specified by:
setVariables
in interfaceExecutionConfiguration
- Parameters:
variables
- the variables to set
-
setVariables
public void setVariables(org.pentaho.di.core.variables.VariableSpace space)
- Specified by:
setVariables
in interfaceExecutionConfiguration
-
isExecutingRemotely
public boolean isExecutingRemotely()
- Specified by:
isExecutingRemotely
in interfaceExecutionConfiguration
- Returns:
- the remoteExecution
-
setExecutingRemotely
public void setExecutingRemotely(boolean remoteExecution)
- Specified by:
setExecutingRemotely
in interfaceExecutionConfiguration
- Parameters:
remoteExecution
- the remoteExecution to set
-
isExecutingLocally
public boolean isExecutingLocally()
- Specified by:
isExecutingLocally
in interfaceExecutionConfiguration
- Returns:
- the localExecution
-
setExecutingLocally
public void setExecutingLocally(boolean localExecution)
- Specified by:
setExecutingLocally
in interfaceExecutionConfiguration
- Parameters:
localExecution
- the localExecution to set
-
getRemoteServer
public SlaveServer getRemoteServer()
- Specified by:
getRemoteServer
in interfaceExecutionConfiguration
- Returns:
- the remoteServer
-
setRemoteServer
public void setRemoteServer(SlaveServer remoteServer)
- Specified by:
setRemoteServer
in interfaceExecutionConfiguration
- Parameters:
remoteServer
- the remoteServer to set
-
getUsedVariables
public void getUsedVariables(JobMeta jobMeta)
-
getReplayDate
public Date getReplayDate()
- Specified by:
getReplayDate
in interfaceExecutionConfiguration
- Returns:
- the replayDate
-
setReplayDate
public void setReplayDate(Date replayDate)
- Specified by:
setReplayDate
in interfaceExecutionConfiguration
- Parameters:
replayDate
- the replayDate to set
-
isSafeModeEnabled
public boolean isSafeModeEnabled()
- Specified by:
isSafeModeEnabled
in interfaceExecutionConfiguration
- Returns:
- the usingSafeMode
-
setSafeModeEnabled
public void setSafeModeEnabled(boolean usingSafeMode)
- Specified by:
setSafeModeEnabled
in interfaceExecutionConfiguration
- Parameters:
usingSafeMode
- the usingSafeMode to set
-
getRunConfiguration
public String getRunConfiguration()
- Specified by:
getRunConfiguration
in interfaceExecutionConfiguration
-
setRunConfiguration
public void setRunConfiguration(String runConfiguration)
- Specified by:
setRunConfiguration
in interfaceExecutionConfiguration
-
getLogLevel
public org.pentaho.di.core.logging.LogLevel getLogLevel()
- Specified by:
getLogLevel
in interfaceExecutionConfiguration
- Returns:
- the logLevel
-
setLogLevel
public void setLogLevel(org.pentaho.di.core.logging.LogLevel logLevel)
- Specified by:
setLogLevel
in interfaceExecutionConfiguration
- Parameters:
logLevel
- the logLevel to set
-
getXML
public String getXML() throws IOException
- Specified by:
getXML
in interfaceExecutionConfiguration
- Throws:
IOException
-
connectRepository
public Repository connectRepository(String repositoryName, String username, String password) throws org.pentaho.di.core.exception.KettleException
- Throws:
org.pentaho.di.core.exception.KettleException
-
connectRepository
public Repository connectRepository(RepositoriesMeta repositoriesMeta, String repositoryName, String username, String password) throws org.pentaho.di.core.exception.KettleException
- Specified by:
connectRepository
in interfaceExecutionConfiguration
- Throws:
org.pentaho.di.core.exception.KettleException
-
getArgumentStrings
public String[] getArgumentStrings()
- Specified by:
getArgumentStrings
in interfaceExecutionConfiguration
-
getPreviousResult
public org.pentaho.di.core.Result getPreviousResult()
- Specified by:
getPreviousResult
in interfaceExecutionConfiguration
- Returns:
- the previousResult
-
setPreviousResult
public void setPreviousResult(org.pentaho.di.core.Result previousResult)
- Specified by:
setPreviousResult
in interfaceExecutionConfiguration
- Parameters:
previousResult
- the previousResult to set
-
getRepository
public Repository getRepository()
- Specified by:
getRepository
in interfaceExecutionConfiguration
- Returns:
- the repository
-
setRepository
public void setRepository(Repository repository)
- Specified by:
setRepository
in interfaceExecutionConfiguration
- Parameters:
repository
- the repository to set
-
isClearingLog
public boolean isClearingLog()
- Specified by:
isClearingLog
in interfaceExecutionConfiguration
- Returns:
- the clearingLog
-
setClearingLog
public void setClearingLog(boolean clearingLog)
- Specified by:
setClearingLog
in interfaceExecutionConfiguration
- Parameters:
clearingLog
- the clearingLog to set
-
isPassingExport
public boolean isPassingExport()
- Specified by:
isPassingExport
in interfaceExecutionConfiguration
- Returns:
- the passingExport
-
setPassingExport
public void setPassingExport(boolean passingExport)
- Specified by:
setPassingExport
in interfaceExecutionConfiguration
- Parameters:
passingExport
- the passingExport to set
-
getStartCopyName
public String getStartCopyName()
- Returns:
- the startCopyName
-
setStartCopyName
public void setStartCopyName(String startCopyName)
- Parameters:
startCopyName
- the startCopyName to set
-
getStartCopyNr
public int getStartCopyNr()
- Returns:
- the startCopyNr
-
setStartCopyNr
public void setStartCopyNr(int startCopyNr)
- Parameters:
startCopyNr
- the startCopyNr to set
-
isGatheringMetrics
public boolean isGatheringMetrics()
- Specified by:
isGatheringMetrics
in interfaceExecutionConfiguration
- Returns:
- the gatheringMetrics
-
setGatheringMetrics
public void setGatheringMetrics(boolean gatheringMetrics)
- Specified by:
setGatheringMetrics
in interfaceExecutionConfiguration
- Parameters:
gatheringMetrics
- the gatheringMetrics to set
-
setExpandingRemoteJob
public void setExpandingRemoteJob(boolean expandingRemoteJob)
-
isExpandingRemoteJob
public boolean isExpandingRemoteJob()
-
getPassedBatchId
public Long getPassedBatchId()
- Specified by:
getPassedBatchId
in interfaceExecutionConfiguration
-
setPassedBatchId
public void setPassedBatchId(Long passedBatchId)
- Specified by:
setPassedBatchId
in interfaceExecutionConfiguration
-
-