@@ -31,18 +31,18 @@ curl -l -H "Content-type: application/json" -X DELETE -d 'foo_job' http://elasti
31
31
1. Java启动方式作业注册:
32
32
33
33
curl -l -H "Content-type: application/json" -X POST -d '{"jobName":"test_job_simple","jobType":"SIMPLE","jobClass":"com.dangdang.ddframe.job.example.job.simple.JavaSimpleJob","cron":"0/10 * * * * ?","shardingTotalCount":3,"cpuCount":0.1,"memoryMB":64.0,"jobExecutionType":"TRANSIENT",
34
- "appURL":"http://localhost:8080/elastic-job-example-cloud-2.0.3-SNAPSHOT .tar.gz","failover":false,"misfire":true,"jobParameter":"java_simple","bootstrapScript":"bin/start.sh"}' http://localhost:8899/job/register
34
+ "appURL":"http://localhost:8080/elastic-job-example-cloud-2.0.3.tar.gz","failover":false,"misfire":true,"jobParameter":"java_simple","bootstrapScript":"bin/start.sh"}' http://localhost:8899/job/register
35
35
36
36
curl -l -H "Content-type: application/json" -X POST -d '{"jobName":"test_job_dataflow","jobType":"DATAFLOW","jobClass":"com.dangdang.ddframe.job.example.job.dataflow.JavaDataflowJob","cron":"0/10 * * * * ?","shardingTotalCount":3,"cpuCount":0.1,"memoryMB":64.0,"jobExecutionType":"TRANSIENT",
37
- "appURL":"http://localhost:8080/elastic-job-example-cloud-2.0.3-SNAPSHOT .tar.gz","failover":false,"misfire":true,"jobParameter":"java_dataflow","bootstrapScript":"bin/start.sh"}' http://localhost:8899/job/register
37
+ "appURL":"http://localhost:8080/elastic-job-example-cloud-2.0.3.tar.gz","failover":false,"misfire":true,"jobParameter":"java_dataflow","bootstrapScript":"bin/start.sh"}' http://localhost:8899/job/register
38
38
39
39
curl -l -H "Content-type: application/json" -X POST -d '{"jobName":"test_job_script","jobType":"SCRIPT","cron":"0/10 * * * * ?","shardingTotalCount":3,"cpuCount":0.1,"memoryMB":64.0,"jobExecutionType":"TRANSIENT",
40
40
"appURL":"http://localhost:8080/demo.sh","failover":false,"misfire":true,"jobParameter":"script","bootstrapScript":"./demo.sh"}' http://localhost:8899/job/register
41
41
42
42
2. Spring启动方式作业注册:
43
43
44
44
curl -l -H "Content-type: application/json" -X POST -d '{"jobName":"test_job_simple_spring","jobType":"SIMPLE","jobClass":"com.dangdang.ddframe.job.example.job.simple.SpringSimpleJob","beanName":"springSimpleJob","applicationContext":"classpath:META-INF/applicationContext.xml","cron":"0/10 * * * * ?","shardingTotalCount":3,"cpuCount":0.1,"memoryMB":64.0,"jobExecutionType":"TRANSIENT",
45
- "appURL":"http://localhost:8080/elastic-job-example-cloud-2.0.3-SNAPSHOT .tar.gz","failover":false,"misfire":true,"jobParameter":"java_simple","bootstrapScript":"bin/start.sh"}' http://localhost:8899/job/register
45
+ "appURL":"http://localhost:8080/elastic-job-example-cloud-2.0.3.tar.gz","failover":false,"misfire":true,"jobParameter":"java_simple","bootstrapScript":"bin/start.sh"}' http://localhost:8899/job/register
46
46
47
47
curl -l -H "Content-type: application/json" -X POST -d '{"jobName":"test_job_dataflow_spring","jobType":"DATAFLOW","jobClass":"com.dangdang.ddframe.job.example.job.dataflow.SpringDataflowJob","beanName":"springDataflowJob","applicationContext":"classpath:META-INF/applicationContext.xml","cron":"0/10 * * * * ?","shardingTotalCount":3,"cpuCount":0.1,"memoryMB":64.0,"jobExecutionType":"TRANSIENT",
48
- "appURL":"http://localhost:8080/elastic-job-example-cloud-2.0.3-SNAPSHOT .tar.gz","failover":false,"misfire":true,"jobParameter":"java_simple","bootstrapScript":"bin/start.sh"}' http://localhost:8899/job/register
48
+ "appURL":"http://localhost:8080/elastic-job-example-cloud-2.0.3.tar.gz","failover":false,"misfire":true,"jobParameter":"java_simple","bootstrapScript":"bin/start.sh"}' http://localhost:8899/job/register
0 commit comments