Skip to content

inzh-studio/talend-job-manager-java

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Talend Job Manager

A tool for manage Talend job (zip format) for your application.

Minimum Java Version Talend Version

Build your job

On first, you need to build your job with Talend, tested with Talend Open Studio.

Just right click on your job and select in menu:

Menu image example

File output example:

myjobname_0.1.zip

Development:

You can use directly executor class in your code, for example:

  • For add or update job in repository
import inzh.talend.job.manager.executor.SimpleJobExecutor;

Path path = Paths.get("myjobname_0.1.zip"); // Your job zip file  
Path repositoryPath = Paths.get("jobs"); // Your repository path

SimpleJobExecutor.put(path, repositoryPath);
  • To run the latest version of job :
import inzh.talend.job.manager.executor.SimpleJobExecutor;

String jobName = "myjobname"; // Your job name
Path repositoryPath = Paths.get("jobs"); // Your repository path

Map parameters = new HashMap(){{
    put("contextparam1", "value1");
    put("contextparam2", "value2");
}}; // Context parameters passed to job

SimpleJobExecutor.execute(jobName, parameters, repositoryPath);
  • To run the specific version of job :
import inzh.talend.job.manager.executor.SimpleJobExecutor;

String jobName = "myjobname"; // Your job name
Path repositoryPath = Paths.get("jobs"); // Your repository path
Double version = 0.1;

Map parameters = new HashMap(){{
    put("contextparam1", "value1");
    put("contextparam2", "value2");
}}; // Context parameters passed to job

SimpleJobExecutor.execute(jobName, parameters, repositoryPath, version);

© 2011-2023 [InZH] Studio.

About

Tool for manage and run Talend job

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages