| { |
| "description": "Pi JSON Example that is intended to demonstrate the capability of specifying an app using JSON", |
| "operators": [ |
| { |
| "name": "rand", |
| "class": "org.apache.apex.malhar.lib.testbench.RandomEventGenerator", |
| "properties": { |
| "minvalue": 0, |
| "maxvalue": 30000 |
| } |
| }, |
| { |
| "name": "picalc", |
| "class": "com.datatorrent.examples.pi.PiCalculateOperator", |
| "properties": { |
| "base": 900000000 |
| } |
| }, |
| { |
| "name": "console", |
| "class": "org.apache.apex.malhar.lib.io.ConsoleOutputOperator" |
| } |
| ], |
| "streams": [ |
| { |
| "name": "rand_calc", |
| "source": { |
| "operatorName": "rand", |
| "portName": "integer_data" |
| }, |
| "sinks": [ |
| { |
| "operatorName": "picalc", |
| "portName": "input" |
| } |
| ] |
| }, |
| { |
| "name": "calc_console", |
| "source": { |
| "operatorName": "picalc", |
| "portName": "output" |
| }, |
| "sinks": [ |
| { |
| "operatorName": "console", |
| "portName": "input" |
| } |
| ] |
| } |
| ] |
| } |