-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcontrol-bus.html
More file actions
479 lines (479 loc) · 50.6 KB
/
control-bus.html
File metadata and controls
479 lines (479 loc) · 50.6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=edge"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<meta name="description" content="JobStreamer : JobStreamer site."/>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/semantic-ui/2.1.8/semantic.min.css" type="text/css"/>
<link rel="stylesheet" href="css/basic.css" type="text/css"/>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/prism/1.5.0/themes/prism.css" type="text/css"/>
</head>
<body>
<div class="ui fixed inverted teal menu">
<div class="title item"><a href="./index.html"><b>Job Streamer</b></a></div>
</div>
<div/>
<div id="main_content_wrap" class="main ui grid content">
<div class="four wide column">
<div class="ui vertical fluid tabular menu">
<a class="item" href="get-started-quickly.html">
Getting Started
</a>
<div class="item">
<div class="header">Guide</div>
<div class="menu">
<a class="item" href="auth.html">
Authentication and authorization
</a>
<a class="item" href="deploy-batch-components.html">
Deploy batch components
</a>
<a class="item" href="create-a-job.html">
Create job
</a>
<a class="item" href="execute-the-job.html">
Execute job
</a>
<a class="item" href="schedule-job.html">
Schedule job
</a>
<a class="item" href="job-config.html">
Job config
</a>
<a class="item" href="notificator-config.html">
Notificator config
</a>
<a class="item" href="import-export.html">
Import and export
</a>
<a class="item" href="test-mode.html">
Test mode
</a>
<a class="item" href="healthcheck.html">
Healthcheck
</a>
</div>
</div>
<div class="item">
<div class="header">Components</div>
<div class="menu">
<a class="item" href="control-bus.html">
Control bus
</a>
<a class="item" href="agent.html">
Agent
</a>
<a class="item" href="console.html">
Management console
</a>
<a class="item" href="notificator.html">
Notificator
</a>
</div>
</div>
<div class="item">
<div class=" header">For contributers</div>
<div class="menu">
<a class="item" href="get-started-developer.html">
Getting Started for contributers
</a>
<a class="item" href="developer-guide.html">
Developer guide for contributers
</a>
</div>
</div>
</div> </div>
<div class="twelve wide stretched column">
<h1><a href="#control-bus" name="control-bus">Control bus</a></h1><p>Control-bus controls API calls.<br/>All API calls are executed via Control-bus.<br/>In this reason, direct API access like console -> agent never occurs.</p><h2><a href="#what-control-bus-can-do" name="what-control-bus-can-do">What Control bus can do</a></h2>
<ul>
<li>Deploy batch components</li>
<li>Regist job</li>
<li>Delete job</li>
<li>Change job</li>
<li><p>Execute job</p></li>
<li>Stop job</li>
<li>Restart job</li>
<li><p>Regist calendar</p></li>
<li>Delete calendar</li>
<li>Change calendar</li>
<li><p>Schedule job</p></li>
<li>Stop job schedule</li>
<li>Delete job schedule</li>
</ul><h2><a href="#control-bus-api" name="control-bus-api">Control bus API</a></h2><p>Control-bus provides REST API.<br/>POST/PUT parameters correspond to end format and JSON format.</p><h3><a href="#authentication" name="authentication">Authentication</a></h3><p>All API calls need authentication.<br/>Please refer to <a href="./auth.html#authentification-in-api-execution">Authentification and authorization#Authentification in API execution</a> about it.</p><h3><a href="#create-application" name="create-application">Create application</a></h3>
<pre><code>POST /apps
</code></pre><h4><a href="#example" name="example">Example</a></h4>
<pre><code class="clojure">{
:name "batch-example"
:description "Batch example"
:classpath [
"file:///home/app/target/classes"
"file:///var/m2/repository/xxx/xxx.jar"
"file:///var/m2/repository/yyy/yyy.jar"
"file:///var/m2/repository/zzz/zzz.jar"
]
}
</code></pre><p><code>NOTICE</code></p>
<blockquote><p>Now, JobStreamer corresponds to only single application (named “default”).</p>
</blockquote><h3><a href="#list-jobs" name="list-jobs">List jobs</a></h3>
<pre><code>GET /:app-name/jobs
</code></pre><h4><a href="#search" name="search">Search</a></h4><p>If you want to search jobs with a condition, you can specify URL parameters like following.</p>
<pre><code>GET /:app-name/jobs?q=[query]&with=[with]&sort-by=[sort-by]&limit=[limit]&offset=[offset]
</code></pre><h5>1. query</h5><p>If you specify this, you can perform partial match search by job name with space delimiters.<br/>You can perform various searchs by using following prefixes.</p>
<table>
<thead>
<tr>
<th>prefix</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td>exit-status:</td>
<td>Whther or not the exit-status of the latest execution matches the specified value.</td>
</tr>
<tr>
<td>since:</td>
<td>Whther or not the start date of the latest execution is after the specified value.</td>
</tr>
<tr>
<td>until:</td>
<td>Whther or not the finish date of the latest execution is before the specified value.</td>
</tr>
</tbody>
</table>
<ul>
<li>Example</li>
</ul>
<pre><code>query=send mail since:2000-01-01 until:2100-01-01
</code></pre><h5>2. with</h5><p>Specify job attribute names you want to get as result with space delimiters.<br/>You can specify following attribute names.</p><p>||Description|<br/>|—-|———–|<br/>| execution |Get executions of the job|<br/>| schedule |Get schedule of the job|<br/>| notation |Get xml and svg notations of the job|<br/>| settings |Get settings of the job|</p>
<ul>
<li>Example</li>
</ul>
<pre><code>with=execution,schedule
</code></pre><h5>3. sort-by</h5><p>Specify sort key.<br/>Specify key name and asc/desc as a set of collon sperated value.<br/>If you specify multiple sort keys, join them in order priority with comma separators.<br/>You can specify following sort keys.</p><p>||Description|<br/>|—-|———–|<br/>| name | Job name |<br/>| last-execution-started | Start date time of the latest execution |<br/>| last-execution-duration | Duration of the latest execution |<br/>| last-execution-status | Exit status of the latest execution |<br/>| next-execution-start | Start date time of the next execution |</p>
<ul>
<li>Example</li>
</ul>
<pre><code>sort-by=name:asc,last-execution-status:desc
</code></pre><h5>4. limit</h5><p>Search limit.</p><h5>5. offset</h5><p>Search offset to implemant paging.</p><h5><a href="#example" name="example">Example</a></h5><p>A query that searchs job whoes name includes “send” or “mail” and whose latest execution is between 2000-01-01 and 2100-01-01.</p>
<pre><code>send mail since:2000-01-01 until:2100-01-01
</code></pre><p>You have to encode it when calling API.</p>
<pre><code>GET /:app-name/jobs?q=send%20mail%20since%3a2000%2d01%2d01%20until%3a2100%2d01%2d01
</code></pre><h3><a href="#create-job" name="create-job">Create job</a></h3>
<pre><code>POST /:app-name/jobs
</code></pre><h4><a href="#parameter" name="parameter">Parameter</a></h4>
<table>
<thead>
<tr>
<th>Name </th>
<th>Type </th>
<th>Description </th>
</tr>
</thead>
<tbody>
<tr>
<td>job/name </td>
<td>String </td>
<td>Required. Job name </td>
</tr>
<tr>
<td>job/bpmn-xml-notation </td>
<td>String </td>
<td>Required. Job body formatted as BPMN </td>
</tr>
<tr>
<td>job/svg-notation </td>
<td>String </td>
<td>Required. Job svg string </td>
</tr>
</tbody>
</table><h5>Ecample: edn format</h5>
<pre><code class="clojure">{
:job/name "example-job"
:job/bpmn-xml-notation "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<bpmn:definitions xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:bpmn=\"http://www.omg.org/spec/BPMN/20100524/MODEL\" xmlns:jsr352=\"http://jsr352/\" xmlns:bpmndi=\"http://www.omg.org/spec/BPMN/20100524/DI\" xmlns:dc=\"http://www.omg.org/spec/DD/20100524/DC\" xmlns:di=\"http://www.omg.org/spec/DD/20100524/DI\" id=\"Definitions_1\" targetNamespace=\"http://bpmn.io/schema/bpmn\">\n <jsr352:job id=\"Job_1\" bpmn:name=\"test\" isExecutable=\"false\">\n <jsr352:start id=\"Start_1\">\n <bpmn:outgoing>Transition_1i7cmsw</bpmn:outgoing>\n </jsr352:start>\n <jsr352:step id=\"Step_1j4854h\">\n <bpmn:incoming>Transition_1i7cmsw</bpmn:incoming>\n </jsr352:step>\n <jsr352:transition id=\"Transition_1i7cmsw\" sourceRef=\"Start_1\" targetRef=\"Step_1j4854h\" />\n </jsr352:job>\n <bpmndi:BPMNDiagram id=\"BPMNDiagram_1\">\n <bpmndi:BPMNPlane id=\"BPMNPlane_1\" bpmnElement=\"Job_1\">\n <bpmndi:BPMNShape id=\"_BPMNShape_Start_2\" bpmnElement=\"Start_1\">\n <dc:Bounds x=\"173\" y=\"102\" width=\"36\" height=\"36\" />\n </bpmndi:BPMNShape>\n <bpmndi:BPMNShape id=\"Step_1j4854h_di\" bpmnElement=\"Step_1j4854h\">\n <dc:Bounds x=\"241\" y=\"110\" width=\"120\" height=\"100\" />\n </bpmndi:BPMNShape>\n <bpmndi:BPMNEdge id=\"Transition_1i7cmsw_di\" bpmnElement=\"Transition_1i7cmsw\">\n <di:waypoint xsi:type=\"dc:Point\" x=\"209\" y=\"120\" />\n <di:waypoint xsi:type=\"dc:Point\" x=\"225\" y=\"120\" />\n <di:waypoint xsi:type=\"dc:Point\" x=\"225\" y=\"152\" />\n <di:waypoint xsi:type=\"dc:Point\" x=\"241\" y=\"152\" />\n <bpmndi:BPMNLabel>\n <dc:Bounds x=\"240\" y=\"126\" width=\"0\" height=\"0\" />\n </bpmndi:BPMNLabel>\n </bpmndi:BPMNEdge>\n </bpmndi:BPMNPlane>\n </bpmndi:BPMNDiagram>\n</bpmn:definitions>\n"
:job/svg-notation "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<!-- created with bpmn-js / http://bpmn.io -->\n<!DOCTYPE svg PUBLIC \"-//W3C//DTD SVG 1.1//EN\" \"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd\">\n<svg xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" width=\"200\" height=\"120\" viewBox=\"167 96 200 120\" version=\"1.1\"><defs><marker id=\"sequenceflow-end\" viewBox=\"0 0 20 20\" refX=\"11\" refY=\"10\" markerWidth=\"10\" markerHeight=\"10\" orient=\"auto\"><path d=\"M 1 5 L 11 10 L 1 15 Z\" style=\"fill: black; stroke-width: 1px; stroke-linecap: round; stroke-dasharray: 10000, 1;\"></path></marker><marker id=\"messageflow-start\" viewBox=\"0 0 20 20\" refX=\"6\" refY=\"6\" markerWidth=\"20\" markerHeight=\"20\" orient=\"auto\"><circle cx=\"6\" cy=\"6\" r=\"3.5\" style=\"fill: white; stroke-width: 1px; stroke-linecap: round; stroke-dasharray: 10000, 1; stroke: black;\"></circle></marker><marker id=\"messageflow-end\" viewBox=\"0 0 20 20\" refX=\"8.5\" refY=\"5\" markerWidth=\"20\" markerHeight=\"20\" orient=\"auto\"><path d=\"m 1 5 l 0 -3 l 7 3 l -7 3 z\" style=\"fill: white; stroke-width: 1px; stroke-linecap: butt; stroke-dasharray: 10000, 1; stroke: black;\"></path></marker><marker id=\"association-start\" viewBox=\"0 0 20 20\" refX=\"1\" refY=\"10\" markerWidth=\"10\" markerHeight=\"10\" orient=\"auto\"><path d=\"M 11 5 L 1 10 L 11 15\" style=\"fill: none; stroke-width: 1.5px; stroke-linecap: round; stroke-dasharray: 10000, 1; stroke: black;\"></path></marker><marker id=\"association-end\" viewBox=\"0 0 20 20\" refX=\"12\" refY=\"10\" markerWidth=\"10\" markerHeight=\"10\" orient=\"auto\"><path d=\"M 1 5 L 11 10 L 1 15\" style=\"fill: none; stroke-width: 1.5px; stroke-linecap: round; stroke-dasharray: 10000, 1; stroke: black;\"></path></marker><marker id=\"conditional-flow-marker\" viewBox=\"0 0 20 20\" refX=\"-1\" refY=\"10\" markerWidth=\"10\" markerHeight=\"10\" orient=\"auto\"><path d=\"M 0 10 L 8 6 L 16 10 L 8 14 Z\" style=\"fill: white; stroke-width: 1px; stroke-linecap: round; stroke-dasharray: 10000, 1; stroke: black;\"></path></marker><marker id=\"conditional-default-flow-marker\" viewBox=\"0 0 20 20\" refX=\"-5\" refY=\"10\" markerWidth=\"10\" markerHeight=\"10\" orient=\"auto\"><path d=\"M 1 4 L 5 16\" style=\"fill: black; stroke-width: 1px; stroke-linecap: round; stroke-dasharray: 10000, 1; stroke: black;\"></path></marker></defs><g class=\"djs-group\"><g class=\"djs-element djs-shape\" data-element-id=\"Start_1\" style=\"display: block;\" transform=\"translate(173 102)\"><g class=\"djs-visual\"><circle cx=\"18\" cy=\"18\" r=\"18\" style=\"stroke: black; stroke-width: 2px; fill: white;\"/></g><rect x=\"0\" y=\"0\" width=\"36\" height=\"36\" class=\"djs-hit\" style=\"fill: none; stroke-opacity: 0; stroke: white; stroke-width: 15px;\"/><rect x=\"-6\" y=\"-6\" width=\"48\" height=\"48\" class=\"djs-outline\" style=\"fill: none;\"/></g></g><g class=\"djs-group\"><g class=\"djs-element djs-shape\" data-element-id=\"Start_1_label\" style=\"display: none;\" transform=\"translate(191 138)\"><g class=\"djs-visual\"><text class=\"djs-label\" transform=\"translate(0,0)\" style=\"font-family: Arial, sans-serif; font-size: 11px;\"><tspan x=\"45\" y=\"12\"/></text></g><rect x=\"0\" y=\"0\" width=\"0\" height=\"0\" class=\"djs-hit\" style=\"fill: none; stroke-opacity: 0; stroke: white; stroke-width: 15px;\"/><rect x=\"-6\" y=\"-6\" width=\"12\" height=\"12\" class=\"djs-outline\" style=\"fill: none;\"/></g></g><g class=\"djs-group\"><g class=\"djs-element djs-shape\" data-element-id=\"Step_1j4854h\" style=\"display: block;\" transform=\"translate(241 110)\"><g class=\"djs-visual\"><rect x=\"0\" y=\"0\" width=\"120\" height=\"100\" rx=\"10\" ry=\"10\" style=\"stroke: black; stroke-width: 2px; fill: white;\"/><rect x=\"0\" y=\"0\" width=\"40\" height=\"20\" rx=\"0\" ry=\"0\" style=\"stroke: black; stroke-width: 2px; fill: white;\"/><text style=\"font-family: Arial, sans-serif; font-size: 12px; fill: rgb(0, 0, 0);\"><tspan x=\"7.5\" y=\"13.5\">Step</tspan></text><text style=\"font-family: Arial, sans-serif; font-size: 12px;\"><tspan x=\"60\" y=\"15\"/></text></g><rect x=\"0\" y=\"0\" width=\"120\" height=\"100\" class=\"djs-hit\" style=\"fill: none; stroke-opacity: 0; stroke: white; stroke-width: 15px;\"/><rect x=\"-6\" y=\"-6\" width=\"132\" height=\"112\" class=\"djs-outline\" style=\"fill: none;\"/></g></g><g class=\"djs-group\"><g class=\"djs-element djs-connection\" data-element-id=\"Transition_1i7cmsw\" style=\"display: block;\"><g class=\"djs-visual\"><path d=\"m 209,120L225,120 L225,152 L241,152 \" style=\"fill: none; stroke-width: 2px; stroke: black; stroke-linejoin: round; marker-end: url('#sequenceflow-end');\"/></g><polyline points=\"209,120 225,120 225,152 241,152 \" class=\"djs-hit\" style=\"fill: none; stroke-opacity: 0; stroke: white; stroke-width: 15px;\"/><rect x=\"203\" y=\"114\" width=\"44\" height=\"44\" class=\"djs-outline\" style=\"fill: none;\"/></g></g><g class=\"djs-group\"><g class=\"djs-element djs-shape\" data-element-id=\"Transition_1i7cmsw_label\" style=\"display: none;\" transform=\"translate(240 126)\"><g class=\"djs-visual\"><text class=\"djs-label\" transform=\"translate(0,0)\" style=\"font-family: Arial, sans-serif; font-size: 11px;\"><tspan x=\"45\" y=\"12\"/></text></g><rect x=\"0\" y=\"0\" width=\"0\" height=\"0\" class=\"djs-hit\" style=\"fill: none; stroke-opacity: 0; stroke: white; stroke-width: 15px;\"/><rect x=\"-6\" y=\"-6\" width=\"12\" height=\"12\" class=\"djs-outline\" style=\"fill: none;\"/></g></g></svg>"}
}
</code></pre><h5>Example: JSON format</h5>
<pre><code class="JSON">{
"job/name": "example-job",
"job/bpmn-xml-notation": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<bpmn:definitions xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:bpmn=\"http://www.omg.org/spec/BPMN/20100524/MODEL\" xmlns:jsr352=\"http://jsr352/\" xmlns:bpmndi=\"http://www.omg.org/spec/BPMN/20100524/DI\" xmlns:dc=\"http://www.omg.org/spec/DD/20100524/DC\" xmlns:di=\"http://www.omg.org/spec/DD/20100524/DI\" id=\"Definitions_1\" targetNamespace=\"http://bpmn.io/schema/bpmn\">\n <jsr352:job id=\"Job_1\" bpmn:name=\"test\" isExecutable=\"false\">\n <jsr352:start id=\"Start_1\">\n <bpmn:outgoing>Transition_1i7cmsw</bpmn:outgoing>\n </jsr352:start>\n <jsr352:step id=\"Step_1j4854h\">\n <bpmn:incoming>Transition_1i7cmsw</bpmn:incoming>\n </jsr352:step>\n <jsr352:transition id=\"Transition_1i7cmsw\" sourceRef=\"Start_1\" targetRef=\"Step_1j4854h\" />\n </jsr352:job>\n <bpmndi:BPMNDiagram id=\"BPMNDiagram_1\">\n <bpmndi:BPMNPlane id=\"BPMNPlane_1\" bpmnElement=\"Job_1\">\n <bpmndi:BPMNShape id=\"_BPMNShape_Start_2\" bpmnElement=\"Start_1\">\n <dc:Bounds x=\"173\" y=\"102\" width=\"36\" height=\"36\" />\n </bpmndi:BPMNShape>\n <bpmndi:BPMNShape id=\"Step_1j4854h_di\" bpmnElement=\"Step_1j4854h\">\n <dc:Bounds x=\"241\" y=\"110\" width=\"120\" height=\"100\" />\n </bpmndi:BPMNShape>\n <bpmndi:BPMNEdge id=\"Transition_1i7cmsw_di\" bpmnElement=\"Transition_1i7cmsw\">\n <di:waypoint xsi:type=\"dc:Point\" x=\"209\" y=\"120\" />\n <di:waypoint xsi:type=\"dc:Point\" x=\"225\" y=\"120\" />\n <di:waypoint xsi:type=\"dc:Point\" x=\"225\" y=\"152\" />\n <di:waypoint xsi:type=\"dc:Point\" x=\"241\" y=\"152\" />\n <bpmndi:BPMNLabel>\n <dc:Bounds x=\"240\" y=\"126\" width=\"0\" height=\"0\" />\n </bpmndi:BPMNLabel>\n </bpmndi:BPMNEdge>\n </bpmndi:BPMNPlane>\n </bpmndi:BPMNDiagram>\n</bpmn:definitions>\n",
"job/svg-notation": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<!-- created with bpmn-js / http://bpmn.io -->\n<!DOCTYPE svg PUBLIC \"-//W3C//DTD SVG 1.1//EN\" \"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd\">\n<svg xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" width=\"200\" height=\"120\" viewBox=\"167 96 200 120\" version=\"1.1\"><defs><marker id=\"sequenceflow-end\" viewBox=\"0 0 20 20\" refX=\"11\" refY=\"10\" markerWidth=\"10\" markerHeight=\"10\" orient=\"auto\"><path d=\"M 1 5 L 11 10 L 1 15 Z\" style=\"fill: black; stroke-width: 1px; stroke-linecap: round; stroke-dasharray: 10000, 1;\"></path></marker><marker id=\"messageflow-start\" viewBox=\"0 0 20 20\" refX=\"6\" refY=\"6\" markerWidth=\"20\" markerHeight=\"20\" orient=\"auto\"><circle cx=\"6\" cy=\"6\" r=\"3.5\" style=\"fill: white; stroke-width: 1px; stroke-linecap: round; stroke-dasharray: 10000, 1; stroke: black;\"></circle></marker><marker id=\"messageflow-end\" viewBox=\"0 0 20 20\" refX=\"8.5\" refY=\"5\" markerWidth=\"20\" markerHeight=\"20\" orient=\"auto\"><path d=\"m 1 5 l 0 -3 l 7 3 l -7 3 z\" style=\"fill: white; stroke-width: 1px; stroke-linecap: butt; stroke-dasharray: 10000, 1; stroke: black;\"></path></marker><marker id=\"association-start\" viewBox=\"0 0 20 20\" refX=\"1\" refY=\"10\" markerWidth=\"10\" markerHeight=\"10\" orient=\"auto\"><path d=\"M 11 5 L 1 10 L 11 15\" style=\"fill: none; stroke-width: 1.5px; stroke-linecap: round; stroke-dasharray: 10000, 1; stroke: black;\"></path></marker><marker id=\"association-end\" viewBox=\"0 0 20 20\" refX=\"12\" refY=\"10\" markerWidth=\"10\" markerHeight=\"10\" orient=\"auto\"><path d=\"M 1 5 L 11 10 L 1 15\" style=\"fill: none; stroke-width: 1.5px; stroke-linecap: round; stroke-dasharray: 10000, 1; stroke: black;\"></path></marker><marker id=\"conditional-flow-marker\" viewBox=\"0 0 20 20\" refX=\"-1\" refY=\"10\" markerWidth=\"10\" markerHeight=\"10\" orient=\"auto\"><path d=\"M 0 10 L 8 6 L 16 10 L 8 14 Z\" style=\"fill: white; stroke-width: 1px; stroke-linecap: round; stroke-dasharray: 10000, 1; stroke: black;\"></path></marker><marker id=\"conditional-default-flow-marker\" viewBox=\"0 0 20 20\" refX=\"-5\" refY=\"10\" markerWidth=\"10\" markerHeight=\"10\" orient=\"auto\"><path d=\"M 1 4 L 5 16\" style=\"fill: black; stroke-width: 1px; stroke-linecap: round; stroke-dasharray: 10000, 1; stroke: black;\"></path></marker></defs><g class=\"djs-group\"><g class=\"djs-element djs-shape\" data-element-id=\"Start_1\" style=\"display: block;\" transform=\"translate(173 102)\"><g class=\"djs-visual\"><circle cx=\"18\" cy=\"18\" r=\"18\" style=\"stroke: black; stroke-width: 2px; fill: white;\"/></g><rect x=\"0\" y=\"0\" width=\"36\" height=\"36\" class=\"djs-hit\" style=\"fill: none; stroke-opacity: 0; stroke: white; stroke-width: 15px;\"/><rect x=\"-6\" y=\"-6\" width=\"48\" height=\"48\" class=\"djs-outline\" style=\"fill: none;\"/></g></g><g class=\"djs-group\"><g class=\"djs-element djs-shape\" data-element-id=\"Start_1_label\" style=\"display: none;\" transform=\"translate(191 138)\"><g class=\"djs-visual\"><text class=\"djs-label\" transform=\"translate(0,0)\" style=\"font-family: Arial, sans-serif; font-size: 11px;\"><tspan x=\"45\" y=\"12\"/></text></g><rect x=\"0\" y=\"0\" width=\"0\" height=\"0\" class=\"djs-hit\" style=\"fill: none; stroke-opacity: 0; stroke: white; stroke-width: 15px;\"/><rect x=\"-6\" y=\"-6\" width=\"12\" height=\"12\" class=\"djs-outline\" style=\"fill: none;\"/></g></g><g class=\"djs-group\"><g class=\"djs-element djs-shape\" data-element-id=\"Step_1j4854h\" style=\"display: block;\" transform=\"translate(241 110)\"><g class=\"djs-visual\"><rect x=\"0\" y=\"0\" width=\"120\" height=\"100\" rx=\"10\" ry=\"10\" style=\"stroke: black; stroke-width: 2px; fill: white;\"/><rect x=\"0\" y=\"0\" width=\"40\" height=\"20\" rx=\"0\" ry=\"0\" style=\"stroke: black; stroke-width: 2px; fill: white;\"/><text style=\"font-family: Arial, sans-serif; font-size: 12px; fill: rgb(0, 0, 0);\"><tspan x=\"7.5\" y=\"13.5\">Step</tspan></text><text style=\"font-family: Arial, sans-serif; font-size: 12px;\"><tspan x=\"60\" y=\"15\"/></text></g><rect x=\"0\" y=\"0\" width=\"120\" height=\"100\" class=\"djs-hit\" style=\"fill: none; stroke-opacity: 0; stroke: white; stroke-width: 15px;\"/><rect x=\"-6\" y=\"-6\" width=\"132\" height=\"112\" class=\"djs-outline\" style=\"fill: none;\"/></g></g><g class=\"djs-group\"><g class=\"djs-element djs-connection\" data-element-id=\"Transition_1i7cmsw\" style=\"display: block;\"><g class=\"djs-visual\"><path d=\"m 209,120L225,120 L225,152 L241,152 \" style=\"fill: none; stroke-width: 2px; stroke: black; stroke-linejoin: round; marker-end: url('#sequenceflow-end');\"/></g><polyline points=\"209,120 225,120 225,152 241,152 \" class=\"djs-hit\" style=\"fill: none; stroke-opacity: 0; stroke: white; stroke-width: 15px;\"/><rect x=\"203\" y=\"114\" width=\"44\" height=\"44\" class=\"djs-outline\" style=\"fill: none;\"/></g></g><g class=\"djs-group\"><g class=\"djs-element djs-shape\" data-element-id=\"Transition_1i7cmsw_label\" style=\"display: none;\" transform=\"translate(240 126)\"><g class=\"djs-visual\"><text class=\"djs-label\" transform=\"translate(0,0)\" style=\"font-family: Arial, sans-serif; font-size: 11px;\"><tspan x=\"45\" y=\"12\"/></text></g><rect x=\"0\" y=\"0\" width=\"0\" height=\"0\" class=\"djs-hit\" style=\"fill: none; stroke-opacity: 0; stroke: white; stroke-width: 15px;\"/><rect x=\"-6\" y=\"-6\" width=\"12\" height=\"12\" class=\"djs-outline\" style=\"fill: none;\"/></g></g></svg>"
}
</code></pre><h3><a href="#get-a-single-job" name="get-a-single-job">Get a single job</a></h3>
<pre><code>GET /:app-name/job/:job-name
</code></pre><h4><a href="#response" name="response">Response</a></h4>
<pre><code class="clojure">{:db/id 17592186062189
:job/name "test"
:job/next-execution nil
:job/exclusive? false
:job/stats {:total 12
:success 12
:failure 0
:average 27/4}
:job/bpmn-xml-notation "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<bpmn:definitions xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:bpmn=\"http://www.omg.org/spec/BPMN/20100524/MODEL\" xmlns:jsr352=\"http://jsr352/\" xmlns:bpmndi=\"http://www.omg.org/spec/BPMN/20100524/DI\" xmlns:dc=\"http://www.omg.org/spec/DD/20100524/DC\" xmlns:di=\"http://www.omg.org/spec/DD/20100524/DI\" id=\"Definitions_1\" targetNamespace=\"http://bpmn.io/schema/bpmn\">\n <jsr352:job id=\"Job_1\" bpmn:name=\"test\" isExecutable=\"false\">\n <jsr352:start id=\"Start_1\">\n <bpmn:outgoing>Transition_1i7cmsw</bpmn:outgoing>\n </jsr352:start>\n <jsr352:step id=\"Step_1j4854h\">\n <bpmn:incoming>Transition_1i7cmsw</bpmn:incoming>\n </jsr352:step>\n <jsr352:transition id=\"Transition_1i7cmsw\" sourceRef=\"Start_1\" targetRef=\"Step_1j4854h\" />\n </jsr352:job>\n <bpmndi:BPMNDiagram id=\"BPMNDiagram_1\">\n <bpmndi:BPMNPlane id=\"BPMNPlane_1\" bpmnElement=\"Job_1\">\n <bpmndi:BPMNShape id=\"_BPMNShape_Start_2\" bpmnElement=\"Start_1\">\n <dc:Bounds x=\"173\" y=\"102\" width=\"36\" height=\"36\" />\n </bpmndi:BPMNShape>\n <bpmndi:BPMNShape id=\"Step_1j4854h_di\" bpmnElement=\"Step_1j4854h\">\n <dc:Bounds x=\"241\" y=\"110\" width=\"120\" height=\"100\" />\n </bpmndi:BPMNShape>\n <bpmndi:BPMNEdge id=\"Transition_1i7cmsw_di\" bpmnElement=\"Transition_1i7cmsw\">\n <di:waypoint xsi:type=\"dc:Point\" x=\"209\" y=\"120\" />\n <di:waypoint xsi:type=\"dc:Point\" x=\"225\" y=\"120\" />\n <di:waypoint xsi:type=\"dc:Point\" x=\"225\" y=\"152\" />\n <di:waypoint xsi:type=\"dc:Point\" x=\"241\" y=\"152\" />\n <bpmndi:BPMNLabel>\n <dc:Bounds x=\"240\" y=\"126\" width=\"0\" height=\"0\" />\n </bpmndi:BPMNLabel>\n </bpmndi:BPMNEdge>\n </bpmndi:BPMNPlane>\n </bpmndi:BPMNDiagram>\n</bpmn:definitions>\n"
:job/svg-notation "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<!-- created with bpmn-js / http://bpmn.io -->\n<!DOCTYPE svg PUBLIC \"-//W3C//DTD SVG 1.1//EN\" \"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd\">\n<svg xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" width=\"200\" height=\"120\" viewBox=\"167 96 200 120\" version=\"1.1\"><defs><marker id=\"sequenceflow-end\" viewBox=\"0 0 20 20\" refX=\"11\" refY=\"10\" markerWidth=\"10\" markerHeight=\"10\" orient=\"auto\"><path d=\"M 1 5 L 11 10 L 1 15 Z\" style=\"fill: black; stroke-width: 1px; stroke-linecap: round; stroke-dasharray: 10000, 1;\"></path></marker><marker id=\"messageflow-start\" viewBox=\"0 0 20 20\" refX=\"6\" refY=\"6\" markerWidth=\"20\" markerHeight=\"20\" orient=\"auto\"><circle cx=\"6\" cy=\"6\" r=\"3.5\" style=\"fill: white; stroke-width: 1px; stroke-linecap: round; stroke-dasharray: 10000, 1; stroke: black;\"></circle></marker><marker id=\"messageflow-end\" viewBox=\"0 0 20 20\" refX=\"8.5\" refY=\"5\" markerWidth=\"20\" markerHeight=\"20\" orient=\"auto\"><path d=\"m 1 5 l 0 -3 l 7 3 l -7 3 z\" style=\"fill: white; stroke-width: 1px; stroke-linecap: butt; stroke-dasharray: 10000, 1; stroke: black;\"></path></marker><marker id=\"association-start\" viewBox=\"0 0 20 20\" refX=\"1\" refY=\"10\" markerWidth=\"10\" markerHeight=\"10\" orient=\"auto\"><path d=\"M 11 5 L 1 10 L 11 15\" style=\"fill: none; stroke-width: 1.5px; stroke-linecap: round; stroke-dasharray: 10000, 1; stroke: black;\"></path></marker><marker id=\"association-end\" viewBox=\"0 0 20 20\" refX=\"12\" refY=\"10\" markerWidth=\"10\" markerHeight=\"10\" orient=\"auto\"><path d=\"M 1 5 L 11 10 L 1 15\" style=\"fill: none; stroke-width: 1.5px; stroke-linecap: round; stroke-dasharray: 10000, 1; stroke: black;\"></path></marker><marker id=\"conditional-flow-marker\" viewBox=\"0 0 20 20\" refX=\"-1\" refY=\"10\" markerWidth=\"10\" markerHeight=\"10\" orient=\"auto\"><path d=\"M 0 10 L 8 6 L 16 10 L 8 14 Z\" style=\"fill: white; stroke-width: 1px; stroke-linecap: round; stroke-dasharray: 10000, 1; stroke: black;\"></path></marker><marker id=\"conditional-default-flow-marker\" viewBox=\"0 0 20 20\" refX=\"-5\" refY=\"10\" markerWidth=\"10\" markerHeight=\"10\" orient=\"auto\"><path d=\"M 1 4 L 5 16\" style=\"fill: black; stroke-width: 1px; stroke-linecap: round; stroke-dasharray: 10000, 1; stroke: black;\"></path></marker></defs><g class=\"djs-group\"><g class=\"djs-element djs-shape\" data-element-id=\"Start_1\" style=\"display: block;\" transform=\"translate(173 102)\"><g class=\"djs-visual\"><circle cx=\"18\" cy=\"18\" r=\"18\" style=\"stroke: black; stroke-width: 2px; fill: white;\"/></g><rect x=\"0\" y=\"0\" width=\"36\" height=\"36\" class=\"djs-hit\" style=\"fill: none; stroke-opacity: 0; stroke: white; stroke-width: 15px;\"/><rect x=\"-6\" y=\"-6\" width=\"48\" height=\"48\" class=\"djs-outline\" style=\"fill: none;\"/></g></g><g class=\"djs-group\"><g class=\"djs-element djs-shape\" data-element-id=\"Start_1_label\" style=\"display: none;\" transform=\"translate(191 138)\"><g class=\"djs-visual\"><text class=\"djs-label\" transform=\"translate(0,0)\" style=\"font-family: Arial, sans-serif; font-size: 11px;\"><tspan x=\"45\" y=\"12\"/></text></g><rect x=\"0\" y=\"0\" width=\"0\" height=\"0\" class=\"djs-hit\" style=\"fill: none; stroke-opacity: 0; stroke: white; stroke-width: 15px;\"/><rect x=\"-6\" y=\"-6\" width=\"12\" height=\"12\" class=\"djs-outline\" style=\"fill: none;\"/></g></g><g class=\"djs-group\"><g class=\"djs-element djs-shape\" data-element-id=\"Step_1j4854h\" style=\"display: block;\" transform=\"translate(241 110)\"><g class=\"djs-visual\"><rect x=\"0\" y=\"0\" width=\"120\" height=\"100\" rx=\"10\" ry=\"10\" style=\"stroke: black; stroke-width: 2px; fill: white;\"/><rect x=\"0\" y=\"0\" width=\"40\" height=\"20\" rx=\"0\" ry=\"0\" style=\"stroke: black; stroke-width: 2px; fill: white;\"/><text style=\"font-family: Arial, sans-serif; font-size: 12px; fill: rgb(0, 0, 0);\"><tspan x=\"7.5\" y=\"13.5\">Step</tspan></text><text style=\"font-family: Arial, sans-serif; font-size: 12px;\"><tspan x=\"60\" y=\"15\"/></text></g><rect x=\"0\" y=\"0\" width=\"120\" height=\"100\" class=\"djs-hit\" style=\"fill: none; stroke-opacity: 0; stroke: white; stroke-width: 15px;\"/><rect x=\"-6\" y=\"-6\" width=\"132\" height=\"112\" class=\"djs-outline\" style=\"fill: none;\"/></g></g><g class=\"djs-group\"><g class=\"djs-element djs-connection\" data-element-id=\"Transition_1i7cmsw\" style=\"display: block;\"><g class=\"djs-visual\"><path d=\"m 209,120L225,120 L225,152 L241,152 \" style=\"fill: none; stroke-width: 2px; stroke: black; stroke-linejoin: round; marker-end: url('#sequenceflow-end');\"/></g><polyline points=\"209,120 225,120 225,152 241,152 \" class=\"djs-hit\" style=\"fill: none; stroke-opacity: 0; stroke: white; stroke-width: 15px;\"/><rect x=\"203\" y=\"114\" width=\"44\" height=\"44\" class=\"djs-outline\" style=\"fill: none;\"/></g></g><g class=\"djs-group\"><g class=\"djs-element djs-shape\" data-element-id=\"Transition_1i7cmsw_label\" style=\"display: none;\" transform=\"translate(240 126)\"><g class=\"djs-visual\"><text class=\"djs-label\" transform=\"translate(0,0)\" style=\"font-family: Arial, sans-serif; font-size: 11px;\"><tspan x=\"45\" y=\"12\"/></text></g><rect x=\"0\" y=\"0\" width=\"0\" height=\"0\" class=\"djs-hit\" style=\"fill: none; stroke-opacity: 0; stroke: white; stroke-width: 15px;\"/><rect x=\"-6\" y=\"-6\" width=\"12\" height=\"12\" class=\"djs-outline\" style=\"fill: none;\"/></g></g></svg>"
:job/dynamic-parameters #{}
:job/latest-execution{:db/id 17592189204505
:job-execution/start-time #inst "2017-03-27T01:10:36.339-00:00"
:job-execution/end-time #inst "2017-03-27T01:10:36.350-00:00"
:job-execution/create-time #inst "2017-03-27T01:09:09.964-00:00"
:job-execution/exit-status "COMPLETED"
:job-execution/batch-status {:db/ident :batch-status/completed}
:job-execution/agent {:agent/name "ip-10-0-2-175"
:agent/instance-id #uuid "5c6e27ba-037b-42aa-91cc-b55eec159bd0"}}}
</code></pre><h3><a href="#change-job" name="change-job">Change job</a></h3>
<pre><code>PUT /:app-name/job/:job-name
</code></pre><h4><a href="#parameter" name="parameter">Parameter</a></h4><p>Please refer to [Create job](#Create job).</p><h3><a href="#delete-job" name="delete-job">Delete job</a></h3>
<pre><code>DELETE /:app-name/job/:job-name
</code></pre><h3><a href="#create-calendar" name="create-calendar">Create calendar</a></h3>
<pre><code>POST /calendars
</code></pre><h4><a href="#parameter" name="parameter">Parameter</a></h4>
<table>
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td>calendar/name</td>
<td>String</td>
<td>Required. Name of calenar.</td>
</tr>
<tr>
<td>calendar/weekly-holiday</td>
<td>Array</td>
<td>Required. Weekly holiday of calendar.</td>
</tr>
<tr>
<td>calendar/holidays</td>
<td>Array</td>
<td>Not Required. Holidays of calendar.</td>
</tr>
<tr>
<td>calendar/day-start</td>
<td>String</td>
<td>Not Required (default: 00:00). Time when a day start.</td>
</tr>
</tbody>
</table><h5>Example: edn format</h5>
<pre><code class="clojure">{
:calendar/name "example"
:calendar/weekly-holiday [true false false false false false true]
:calendar/holidays [#inst "2016-09-15T15:00:00.000-00:00"]
:calendar/day-start "01:00"
:new? true
}
</code></pre><h5>Example: JSON format</h5>
<pre><code class="JSON">{
"calendar/name": "example",
"calendar/weekly-holiday": [true false false false false false true],
"calendar/holidays" ["2016-09-15"],
"calendar/day-start": "01:00",
:new? true
}
</code></pre><h3><a href="#list-calendars" name="list-calendars">List calendars</a></h3>
<pre><code>GET /calendars
</code></pre><h3><a href="#change-calendar" name="change-calendar">Change calendar</a></h3>
<pre><code>PUT /calendar/:calendar-name
</code></pre><h3><a href="#delete-calendar" name="delete-calendar">Delete calendar</a></h3>
<pre><code>DELETE /calendar/:calendar-name
</code></pre><h4><a href="#parameter" name="parameter">Parameter</a></h4><p>[Create calendar](#Create calendar) を参照してください。</p><h3><a href="#create-job-schedule" name="create-job-schedule">Create job schedule</a></h3><p>You can create job execution calendar.<br/>Please refer to <a href="./schedule-job.html">Schedule job</a> for details.</p>
<pre><code>POST /:app-name/job/:job-name/schedule
</code></pre><h4><a href="#parameter" name="parameter">Parameter</a></h4>
<table>
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td>schedule/cron-notation</td>
<td>String</td>
<td>Required. Cron notation of the schedule.</td>
</tr>
<tr>
<td>schedule/calendar</td>
<td>Map</td>
<td>Not Required. Calendar of the schedule.</td>
</tr>
<tr>
<td>calendar/name</td>
<td>String</td>
<td>Not Required. Name of the calendar.</td>
</tr>
</tbody>
</table><h5>Example: edn format</h5>
<pre><code class="clojure">{
:schedule/cron-notation "0 0 * * * ?", :schedule/calendar {:calendar/name "example"}
}
</code></pre><h5>Example: JSON format</h5>
<pre><code class="JSON">{
"schedule/cron-notation": "0 0 * * * ?",
":schedule/calendar":{
"calendar/name": "example"
}
}
</code></pre><h3><a href="#execute-job" name="execute-job">Execute job</a></h3>
<pre><code>POST /:app-name/job/:job-name/executions
</code></pre><h4><a href="#parameter" name="parameter">Parameter</a></h4><p>If target job has parameters, you can submit them as a POST body.<br/>Refer to <a href="./create-a-job.html">Create job</a> about how to set job parameter.</p>
<table>
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td>[parameter name]</td>
<td>String</td>
<td>Not Required. Parameter for job</td>
</tr>
</tbody>
</table><h5>Example: edn format</h5>
<pre><code class="clojure">{
:job-param1 "test"
:job-param2 "test"
}
</code></pre><h5>Example: JSON format</h5>
<pre><code class="JSON">{
"job-param1": "test",
"job-param2": "test"
}
</code></pre><h3><a href="#list-job-execution-histories" name="list-job-execution-histories">List job execution histories</a></h3>
<pre><code>GET /:app-name/job/:job-name/executions
</code></pre><h4><a href="#response" name="response">Response</a></h4>
<pre><code class="clojure">[
{
:db/id 17592186045455
:job-execution/execution-id 119
:job-execution/create-time #inst "2015-04-08T04:54:15.703-00:00"
:job-execution/start-time #inst "2015-04-08T04:55:01.694-00:00"
:job-execution/end-time #inst "2015-04-08T04:55:01.796-00:00"
:job-execution/agent {
:agent/name "agent-1"
:agent/instance-id #uuid "5424c784-a145-4d3e-96f3-b9d99858611a"
}
:job-execution/batch-status {:db/ident :batch-status/completed}
:job-execution/job-parameters "{}"
}
]
</code></pre><h3><a href="#delete-job-execution-history" name="delete-job-execution-history">Delete job execution history</a></h3>
<pre><code>DELETE /:app-name/job/:job-name/executions
</code></pre><h3><a href="#get-job-execution-history" name="get-job-execution-history">Get job execution history</a></h3>
<pre><code>GET /:app-name/job/:job-name/execution/:execution-id
</code></pre><h3><a href="#stop-job-execution" name="stop-job-execution">Stop job execution</a></h3>
<pre><code>PUT /:app-name/job/:job-name/execution/:execution-id/stop
</code></pre><h3><a href="#restart-job-execution" name="restart-job-execution">Restart job execution</a></h3>
<pre><code>PUT /:app-name/job/:job-name/execution/:execution-id/restart
</code></pre><h3><a href="#abandon-job-execution" name="abandon-job-execution">Abandon job execution</a></h3>
<pre><code>PUT /:app-name/job/:job-name/execution/:execution-id/abandon
</code></pre><h3><a href="#list-execution-agents" name="list-execution-agents">List execution agents</a></h3>
<pre><code>GET /agents
</code></pre><h4><a href="#response" name="response">Response</a></h4>
<pre><code class="clojure">[{
:agent/name "agent-1"
:agent/port 4510
:agent/jobs {:running 0}
:command :ready
:agent/instance-id #uuid "d7dd0172-d272-41a4-aad2-56318b2234ee"
:agent/cpu-arch "amd64"
:agent/cpu-core 4
:agent/os-name "Linux"
:agent/stats {
:memory {
:physical {
:free 1070014464
:total 8281976832
}
:swap {
:free 34325999616
:total 34359734272
}
}
:cpu {
:process {
:load 0.024032586558044806
:time 13050000000
}
:system {
:load 0.07780040733197556
:load-average 2.43
}
}
}
:agent/os-version "3.19.3-3-ARCH"
:agent/host "127.0.0.1"
:agent/executions []
}]
</code></pre><h3><a href="#get-execution-agent" name="get-execution-agent">Get execution agent</a></h3>
<pre><code>GET /agent/:instance-id
</code></pre><h4><a href="#response" name="response">Response</a></h4>
<pre><code class="clojure">{
:agent/name "agent-1"
:agent/port 4510
:agent/jobs {:running 0}
:command :ready
:agent/instance-id #uuid "d7dd0172-d272-41a4-aad2-56318b2234ee"
:agent/cpu-arch "amd64"
:agent/cpu-core 4
:agent/os-name "Linux"
:agent/stats {
:memory {
:physical {
:free 1070014464
:total 8281976832
}
:swap {
:free 34325999616
:total 34359734272
}
}
:cpu {
:process {
:load 0.024032586558044806
:time 13050000000
}
:system {
:load 0.07780040733197556
:load-average 2.43
}
}
}
:agent/os-version "3.19.3-3-ARCH"
:agent/host "127.0.0.1"
:agent/executions []
}
</code></pre><h3>Get Control-bus statictics information</h3>
<pre><code>GET /:app-name/stats
</code></pre><h4><a href="#response" name="response">Response</a></h4>
<pre><code class="clojure">{:agents 0, :jobs 3}
</code></pre><h2><a href="#github" name="github">GitHub</a></h2><p><a href="https://github.com/job-streamer/job-streamer-control-bus">https://github.com/job-streamer/job-streamer-control-bus</a></p>
</div>
</div>
<div class="ui inverted teal footer vertical segment">
<div class="container">
<div class="ui stackable divided relaxed grid">
<div class="sixteen wide column">
<p>Copyright @ 2015-2016 kawasima & contributors.</p>
<p>Released under the EPL license.</p>
</div>
</div>
</div>
</div>
<script src="https://cdn.jsdelivr.net/jquery/1.12.3/jquery.min.js"></script>
<script src="https://cdn.jsdelivr.net/prism/1.5.0/prism.js"></script>
<script src="https://cdn.jsdelivr.net/prism/1.5.0/components/prism-java.min.js"></script>
<script src="https://cdn.jsdelivr.net/prism/1.5.0/components/prism-bash.min.js"></script>
<script src="https://cdn.jsdelivr.net/prism/1.5.0/plugins/line-numbers/prism-line-numbers.min.js"></script>
<script src="https://cdn.jsdelivr.net/semantic-ui/2.1.8/semantic.min.js"> </script>
</body>
</html>