public class KettleDatabaseRepositoryJobDelegate extends KettleDatabaseRepositoryBaseDelegate
| Modifier and Type | Field and Description |
|---|---|
static String |
JOB_ATTRIBUTE_PREFIX |
log, repository| Constructor and Description |
|---|
KettleDatabaseRepositoryJobDelegate(KettleDatabaseRepository repository) |
| Modifier and Type | Method and Description |
|---|---|
int |
countJobParameter(ObjectId id_job)
Count the number of parameters of a job.
|
boolean |
existsJobMeta(String name,
RepositoryDirectoryInterface repositoryDirectory,
RepositoryObjectType objectType) |
RowMetaAndData |
getJob(ObjectId id_job) |
boolean |
getJobAttributeBoolean(ObjectId id_job,
int nr,
String code) |
long |
getJobAttributeInteger(ObjectId id_job,
int nr,
String code) |
String |
getJobAttributeString(ObjectId id_job,
int nr,
String code) |
RowMetaAndData |
getJobHop(ObjectId id_job_hop) |
ObjectId |
getJobHopID(ObjectId id_job,
ObjectId id_jobentry_copy_from,
ObjectId id_jobentry_copy_to) |
ObjectId |
getJobID(String name,
ObjectId id_directory) |
String |
getJobParameterDefault(ObjectId id_job,
int nr)
Get a job parameter default.
|
String |
getJobParameterDescription(ObjectId id_job,
int nr)
Get a job parameter description.
|
String |
getJobParameterKey(ObjectId id_job,
int nr)
Get a job parameter key.
|
String[] |
getJobsWithIDList(List<Object[]> list,
RowMetaInterface rowMeta) |
String[] |
getJobsWithIDList(ObjectId[] ids) |
int |
getNrJobHops(ObjectId id_job) |
int |
getNrJobs() |
int |
getNrJobs(ObjectId id_directory) |
ObjectId |
insertJobHop(ObjectId id_job,
ObjectId id_jobentry_copy_from,
ObjectId id_jobentry_copy_to,
boolean enabled,
boolean evaluation,
boolean unconditional) |
void |
insertJobParameter(ObjectId id_job,
long nr,
String key,
String defValue,
String description)
Insert a parameter for a job in the repository.
|
JobHopMeta |
loadJobHopMeta(ObjectId id_job_hop,
List<JobEntryCopy> jobcopies) |
JobMeta |
loadJobMeta(String jobname,
RepositoryDirectoryInterface repdir)
Load a job from the repository
|
JobMeta |
loadJobMeta(String jobname,
RepositoryDirectoryInterface repdir,
ProgressMonitorListener monitor)
Load a job in a directory
|
void |
moveJob(String jobname,
ObjectId id_directory_from,
ObjectId id_directory_to) |
void |
readDatabases(JobMeta jobMeta)
Read the database connections in the repository and add them to this job if they are not yet present.
|
void |
readDatabases(JobMeta jobMeta,
boolean overWriteShared)
Read the database connections in the repository and add them to this job if they are not yet present.
|
SharedObjects |
readSharedObjects(JobMeta jobMeta) |
void |
readSlaves(JobMeta jobMeta,
boolean overWriteShared)
Read the slave servers in the repository and add them to this transformation if they are not yet present.
|
void |
renameJob(ObjectId id_job,
RepositoryDirectoryInterface newParentDir,
String newname) |
void |
saveJob(JobMeta jobMeta,
String versionComment,
ProgressMonitorListener monitor,
boolean overwrite)
Stored a job in the repository
|
void |
saveJobHopMeta(JobHopMeta hop,
ObjectId id_job) |
quote, quoteTablepublic static final String JOB_ATTRIBUTE_PREFIX
public KettleDatabaseRepositoryJobDelegate(KettleDatabaseRepository repository)
public RowMetaAndData getJob(ObjectId id_job) throws KettleException
KettleExceptionpublic RowMetaAndData getJobHop(ObjectId id_job_hop) throws KettleException
KettleExceptionpublic ObjectId getJobHopID(ObjectId id_job, ObjectId id_jobentry_copy_from, ObjectId id_jobentry_copy_to) throws KettleException
KettleExceptionpublic void saveJob(JobMeta jobMeta, String versionComment, ProgressMonitorListener monitor, boolean overwrite) throws KettleException
jobMeta - The job to storemonitor - the (optional) UI progress monitoroverwrite - Overwrite existing object(s)?KettleException - in case some IO error occurs.public boolean existsJobMeta(String name, RepositoryDirectoryInterface repositoryDirectory, RepositoryObjectType objectType) throws KettleException
KettleExceptionpublic JobMeta loadJobMeta(String jobname, RepositoryDirectoryInterface repdir) throws KettleException
jobname - The name of the jobrepdir - The directory in which the job resides.KettleExceptionpublic JobMeta loadJobMeta(String jobname, RepositoryDirectoryInterface repdir, ProgressMonitorListener monitor) throws KettleException
log - the logging channelrep - The Repositoryjobname - The name of the jobrepdir - The directory in which the job resides.KettleExceptionpublic String getJobParameterKey(ObjectId id_job, int nr) throws KettleException
id_job - job idnr - number of the parameterKettleException - Upon any error.public String getJobParameterDefault(ObjectId id_job, int nr) throws KettleException
id_job - job idnr - number of the parameterKettleException - Upon any error.public String getJobParameterDescription(ObjectId id_job, int nr) throws KettleException
id_job - job idnr - number of the parameterKettleException - Upon any error.public void insertJobParameter(ObjectId id_job, long nr, String key, String defValue, String description) throws KettleException
id_job - job idnr - number of the parameter to insertkey - key to insertdefValue - default value for keydescription - description to insertKettleException - Upon any error.public int countJobParameter(ObjectId id_job) throws KettleException
id_job - job idKettleException - Upon any error.public JobHopMeta loadJobHopMeta(ObjectId id_job_hop, List<JobEntryCopy> jobcopies) throws KettleException
KettleExceptionpublic void saveJobHopMeta(JobHopMeta hop, ObjectId id_job) throws KettleException
KettleExceptionpublic void readDatabases(JobMeta jobMeta) throws KettleException
jobMeta - the job to put the database connections inKettleExceptionpublic void readDatabases(JobMeta jobMeta, boolean overWriteShared) throws KettleException
jobMeta - the job to put the database connections inoverWriteShared - set to true if you want to overwrite shared connections while loading.KettleExceptionpublic void readSlaves(JobMeta jobMeta, boolean overWriteShared) throws KettleException
jobMeta - The job to put the slave servers inoverWriteShared - if an object with the same name exists, overwriteKettleExceptionpublic SharedObjects readSharedObjects(JobMeta jobMeta) throws KettleException
KettleExceptionpublic ObjectId getJobID(String name, ObjectId id_directory) throws KettleException
KettleExceptionpublic int getNrJobs()
throws KettleException
KettleExceptionpublic int getNrJobs(ObjectId id_directory) throws KettleException
KettleExceptionpublic int getNrJobHops(ObjectId id_job) throws KettleException
KettleExceptionpublic String[] getJobsWithIDList(List<Object[]> list, RowMetaInterface rowMeta) throws KettleException
KettleExceptionpublic String[] getJobsWithIDList(ObjectId[] ids) throws KettleException
KettleExceptionpublic ObjectId insertJobHop(ObjectId id_job, ObjectId id_jobentry_copy_from, ObjectId id_jobentry_copy_to, boolean enabled, boolean evaluation, boolean unconditional) throws KettleException
KettleExceptionpublic String getJobAttributeString(ObjectId id_job, int nr, String code) throws KettleException
KettleExceptionpublic long getJobAttributeInteger(ObjectId id_job, int nr, String code) throws KettleException
KettleExceptionpublic boolean getJobAttributeBoolean(ObjectId id_job, int nr, String code) throws KettleException
KettleExceptionpublic void moveJob(String jobname, ObjectId id_directory_from, ObjectId id_directory_to) throws KettleException
KettleExceptionpublic void renameJob(ObjectId id_job, RepositoryDirectoryInterface newParentDir, String newname) throws KettleException
KettleExceptionCopyright © 2018 Hitachi Vantara. All rights reserved.