inzh/talend-job-manager 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

inzh/talend-job-manager

最新稳定版本:v1.0.0

Composer 安装命令:

composer require inzh/talend-job-manager

包简介

Tool for manage and run Talend job

README 文档

README

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

Minimum PHP Version Talend Version

Installation

You can install this lib in your PHP project using composer:

composer require inzh/talend-job-manager

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
use inzh\talend\job\manager\executor\SimpleJobExecutor;

$path = "myjobname_0.1.zip"; // Your job zip file 
$repositoryPath = "jobs"; // Your repository path

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

$jobName = "myjobname"; // Your job name
$repositoryPath = "jobs"; // Your repository path
$parameters = ["contextparam1" => "value1", "contextparam2" => "value2"]; // Context parameters passed to job

$output = SimpleJobExecutor::execute($jobName, $parameters, $repositoryPath);
print_r($output);
  • To run the specific version of job :
use inzh\talend\job\manager\executor\SimpleJobExecutor;

$jobName = "myjobname"; // Your job name
$repositoryPath = "jobs"; // Your repository path
$parameters = ["contextparam1" => "value1", "contextparam2" => "value2"]; // Context parameters passed to job
$version = 0.1;

$output = SimpleJobExecutor::execute($jobName, $parameters, $repositoryPath, $version);
print_r($output);

© 2011-2022 [InZH] Studio.

统计信息

  • 总下载量: 19
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 2
  • 点击次数: 2
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 2
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: CC-BY-4.0
  • 更新时间: 2022-09-15

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固