|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.pentaho.di.job.entry.JobEntryBase
public class JobEntryBase
Base class for the different types of job-entries...
Constructor Summary | |
---|---|
JobEntryBase()
|
|
JobEntryBase(String name,
String description)
|
Method Summary | |
---|---|
void |
check(List<CheckResultInterface> remarks,
JobMeta jobMeta)
Support for overrides not having to put in a check method |
void |
clear()
|
Object |
clone()
|
void |
copyVariablesFrom(VariableSpace space)
Copy the variables from another space, without initializing with the defaults. |
String |
environmentSubstitute(String aString)
Substitute the string using the current variable space. |
String[] |
environmentSubstitute(String[] aString)
Replaces environment variables in an array of strings. |
boolean |
equals(Object obj)
|
boolean |
evaluates()
check whether or not this job entry evaluates. |
String |
exportResources(VariableSpace space,
Map<String,ResourceDefinition> definitions,
ResourceNamingInterface namingInterface,
Repository repository)
|
boolean |
getBooleanValueOfVariable(String variableName,
boolean defaultValue)
This method returns a boolean for the new variable check boxes. |
String |
getContainerObjectId()
|
String |
getDescription()
|
String |
getDialogClassName()
This returns the expected name for the dialog that edits a job entry. |
String |
getFilename()
|
String |
getHolderType()
Gets the high-level type of resource holder. |
LogChannelInterface |
getLogChannel()
|
String |
getLogChannelId()
|
LogLevel |
getLogLevel()
|
String |
getName()
|
String |
getObjectCopy()
|
ObjectId |
getObjectId()
|
String |
getObjectName()
|
ObjectRevision |
getObjectRevision()
|
LoggingObjectType |
getObjectType()
|
LoggingObjectInterface |
getParent()
|
Job |
getParentJob()
|
VariableSpace |
getParentVariableSpace()
Get the parent of the variable space. |
String |
getPluginId()
|
String |
getRealFilename()
|
Date |
getRegistrationDate()
Stub |
Repository |
getRepository()
|
RepositoryDirectory |
getRepositoryDirectory()
|
List<ResourceReference> |
getResourceDependencies(JobMeta jobMeta)
Get a list of all the resource dependencies that the step is depending on. |
List<SQLStatement> |
getSQLStatements(Repository repository)
|
List<SQLStatement> |
getSQLStatements(Repository repository,
VariableSpace space)
|
String |
getTypeDesc()
|
String |
getTypeId()
Deprecated. in favor of getPluginId() |
DatabaseMeta[] |
getUsedDatabaseConnections()
This method returns all the database connections that are used by the job entry. |
String |
getVariable(String variableName)
Get the value of a variable. |
String |
getVariable(String variableName,
String defaultValue)
Get the value of a variable with a default in case the variable is not found. |
String |
getXML()
|
boolean |
hasChanged()
|
boolean |
hasRepositoryReferences()
|
void |
initializeVariablesFrom(VariableSpace parent)
Initialize variable space using the defaults, copy over the variables from the parent (using copyVariablesFrom()), after this the "injected" variables should be inserted (injectVariables()). |
void |
injectVariables(Map<String,String> prop)
Inject variables. |
boolean |
isBasic()
|
boolean |
isDebug()
|
boolean |
isDetailed()
|
boolean |
isDummy()
|
boolean |
isEvaluation()
|
boolean |
isFTP()
|
boolean |
isHTTP()
|
boolean |
isJob()
|
boolean |
isMail()
|
boolean |
isRowlevel()
|
boolean |
isSFTP()
|
boolean |
isShell()
|
boolean |
isSpecial()
|
boolean |
isStart()
|
boolean |
isTransformation()
|
boolean |
isUnconditional()
|
String[] |
listVariables()
List the variables (not the values) that are currently in the variable space. |
void |
loadRep(Repository rep,
ObjectId id_jobentry,
List<DatabaseMeta> databases,
List<SlaveServer> slaveServers)
|
void |
loadXML(Node entrynode,
List<DatabaseMeta> databases,
List<SlaveServer> slaveServers)
|
void |
logBasic(String message)
|
void |
logBasic(String message,
Object... arguments)
|
void |
logDebug(String message)
|
void |
logDebug(String message,
Object... arguments)
|
void |
logDetailed(String message)
|
void |
logDetailed(String message,
Object... arguments)
|
void |
logError(String message)
|
void |
logError(String message,
Object... arguments)
|
void |
logError(String message,
Throwable e)
|
void |
logMinimal(String message)
|
void |
logMinimal(String message,
Object... arguments)
|
void |
logRowlevel(String message)
|
void |
logRowlevel(String message,
Object... arguments)
|
void |
lookupRepositoryReferences(Repository repository)
Look up the references after import |
void |
parseRepositoryObjects(Repository rep)
|
boolean |
resetErrorsBeforeExecution()
|
void |
saveRep(Repository rep,
ObjectId id_job)
|
void |
setChanged()
|
void |
setChanged(boolean ch)
|
void |
setContainerObjectId(String containerObjectId)
|
void |
setDescription(String Description)
|
void |
setID(long id)
|
void |
setLogLevel(LogLevel logLevel)
|
void |
setName(String name)
|
void |
setObjectId(ObjectId id)
|
void |
setParentJob(Job parentJob)
|
void |
setParentVariableSpace(VariableSpace parent)
Set the parent variable space |
void |
setPluginId(String configId)
|
void |
setRepository(Repository repository)
|
void |
setTypeId(String typeId)
Deprecated. in favor of setPluginId() |
void |
setVariable(String variableName,
String variableValue)
Sets a variable in the Kettle Variables list. |
void |
shareVariablesWith(VariableSpace space)
Share a variable space from another variable space. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public JobEntryBase()
public JobEntryBase(String name, String description)
Method Detail |
---|
public boolean equals(Object obj)
equals
in class Object
public void clear()
public void setObjectId(ObjectId id)
public void setID(long id)
public ObjectId getObjectId()
getObjectId
in interface CheckResultSourceInterface
getObjectId
in interface LoggingObjectInterface
getObjectId
in interface ResourceHolderInterface
public String getTypeDesc()
public void setName(String name)
public String getName()
getName
in interface CheckResultSourceInterface
getName
in interface ResourceHolderInterface
public void setDescription(String Description)
public String getDescription()
getDescription
in interface CheckResultSourceInterface
getDescription
in interface ResourceHolderInterface
public void setChanged()
public void setChanged(boolean ch)
public boolean hasChanged()
public boolean isStart()
public boolean isDummy()
public boolean isEvaluation()
public boolean isJob()
public boolean isMail()
public boolean isShell()
public boolean isSpecial()
public boolean isTransformation()
public boolean isFTP()
public boolean isSFTP()
public boolean isHTTP()
public String getXML()
public void loadXML(Node entrynode, List<DatabaseMeta> databases, List<SlaveServer> slaveServers) throws KettleXMLException
KettleXMLException
public void parseRepositoryObjects(Repository rep) throws KettleException
KettleException
public void loadRep(Repository rep, ObjectId id_jobentry, List<DatabaseMeta> databases, List<SlaveServer> slaveServers) throws KettleException
KettleException
public void saveRep(Repository rep, ObjectId id_job) throws KettleException
KettleException
public Object clone()
clone
in class Object
public String toString()
toString
in class Object
public boolean resetErrorsBeforeExecution()
public boolean evaluates()
public boolean isUnconditional()
public List<SQLStatement> getSQLStatements(Repository repository) throws KettleException
KettleException
public List<SQLStatement> getSQLStatements(Repository repository, VariableSpace space) throws KettleException
KettleException
public String getFilename()
getFilename
in interface LoggingObjectInterface
public String getRealFilename()
public DatabaseMeta[] getUsedDatabaseConnections()
public void copyVariablesFrom(VariableSpace space)
VariableSpace
copyVariablesFrom
in interface VariableSpace
space
- the space to copy the variables from.public String environmentSubstitute(String aString)
VariableSpace
environmentSubstitute
in interface VariableSpace
aString
- The string to substitute.
public String[] environmentSubstitute(String[] aString)
VariableSpace
environmentSubstitute
in interface VariableSpace
aString
- The array of strings that wants its variables to be replaced.
public VariableSpace getParentVariableSpace()
VariableSpace
getParentVariableSpace
in interface VariableSpace
public void setParentVariableSpace(VariableSpace parent)
VariableSpace
setParentVariableSpace
in interface VariableSpace
parent
- The parent variable space to setpublic String getVariable(String variableName, String defaultValue)
VariableSpace
getVariable
in interface VariableSpace
variableName
- The name of the variabledefaultValue
- The default value in case the variable could not be
found
public String getVariable(String variableName)
VariableSpace
getVariable
in interface VariableSpace
variableName
- The name of the variable
public boolean getBooleanValueOfVariable(String variableName, boolean defaultValue)
VariableSpace
getBooleanValueOfVariable
in interface VariableSpace
variableName
- The variable to look up.defaultValue
- The default value to return.
static method ValueMeta.convertStringToBoolean()
public void initializeVariablesFrom(VariableSpace parent)
VariableSpace
initializeVariablesFrom
in interface VariableSpace
parent
- the parent to start from, or null if root.public String[] listVariables()
VariableSpace
listVariables
in interface VariableSpace
public void setVariable(String variableName, String variableValue)
VariableSpace
setVariable
in interface VariableSpace
variableName
- The name of the variable to setvariableValue
- The value of the variable to set. If the
variableValue is null, the variable is cleared
from the list.public void shareVariablesWith(VariableSpace space)
VariableSpace
shareVariablesWith
in interface VariableSpace
space
- Variable space to be shared.public void injectVariables(Map<String,String> prop)
VariableSpace
injectVariables
in interface VariableSpace
prop
- Properties object containing key-value pairs.public void check(List<CheckResultInterface> remarks, JobMeta jobMeta)
remarks
- CheckResults from checking the job entryjobMeta
- JobMeta information letting threading back to the JobMeta possiblepublic List<ResourceReference> getResourceDependencies(JobMeta jobMeta)
public String exportResources(VariableSpace space, Map<String,ResourceDefinition> definitions, ResourceNamingInterface namingInterface, Repository repository) throws KettleException
KettleException
public String getPluginId()
public void setPluginId(String configId)
public String getTypeId()
getTypeId
in interface CheckResultSourceInterface
getTypeId
in interface ResourceHolderInterface
public void setTypeId(String typeId)
public String getDialogClassName()
public String getHolderType()
ResourceHolderInterface
getHolderType
in interface ResourceHolderInterface
public void setRepository(Repository repository)
public Repository getRepository()
public void setParentJob(Job parentJob)
public Job getParentJob()
public boolean isBasic()
public boolean isDetailed()
public boolean isDebug()
public boolean isRowlevel()
public void logMinimal(String message)
public void logMinimal(String message, Object... arguments)
public void logBasic(String message)
public void logBasic(String message, Object... arguments)
public void logDetailed(String message)
public void logDetailed(String message, Object... arguments)
public void logDebug(String message)
public void logDebug(String message, Object... arguments)
public void logRowlevel(String message)
public void logRowlevel(String message, Object... arguments)
public void logError(String message)
public void logError(String message, Throwable e)
public void logError(String message, Object... arguments)
public LogChannelInterface getLogChannel()
public String getLogChannelId()
getLogChannelId
in interface LoggingObjectInterface
public String getObjectName()
getObjectName
in interface LoggingObjectInterface
public String getObjectCopy()
getObjectCopy
in interface LoggingObjectInterface
public ObjectRevision getObjectRevision()
getObjectRevision
in interface LoggingObjectInterface
public LoggingObjectType getObjectType()
getObjectType
in interface LoggingObjectInterface
public LoggingObjectInterface getParent()
getParent
in interface LoggingObjectInterface
public RepositoryDirectory getRepositoryDirectory()
getRepositoryDirectory
in interface LoggingObjectInterface
public LogLevel getLogLevel()
getLogLevel
in interface LoggingObjectInterface
public void setLogLevel(LogLevel logLevel)
public String getContainerObjectId()
getContainerObjectId
in interface LoggingObjectInterface
public void setContainerObjectId(String containerObjectId)
containerObjectId
- the carteObjectId to setpublic Date getRegistrationDate()
getRegistrationDate
in interface LoggingObjectInterface
public boolean hasRepositoryReferences()
public void lookupRepositoryReferences(Repository repository) throws KettleException
repository
- the repository to reference.
KettleException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |