You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iota.apache.org by to...@apache.org on 2016/07/11 20:15:05 UTC
incubator-iota git commit: refactoring the fey-examples directory
Repository: incubator-iota
Updated Branches:
refs/heads/master 244502ee0 -> da22c8026
refactoring the fey-examples directory
Project: http://git-wip-us.apache.org/repos/asf/incubator-iota/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-iota/commit/da22c802
Tree: http://git-wip-us.apache.org/repos/asf/incubator-iota/tree/da22c802
Diff: http://git-wip-us.apache.org/repos/asf/incubator-iota/diff/da22c802
Branch: refs/heads/master
Commit: da22c80260407872fbb4b7cd6e422957937dd8e3
Parents: 244502e
Author: tonyfaustini <to...@yahoo.com>
Authored: Mon Jul 11 13:15:01 2016 -0700
Committer: tonyfaustini <to...@yahoo.com>
Committed: Mon Jul 11 13:15:01 2016 -0700
----------------------------------------------------------------------
fey-examples/README.md | 1 +
.../active-configuration/fey-configuration.conf | 5 +
fey-examples/active-json-repo/timestamp.json | 27 ++
fey-examples/fey-json-samples/raspberry-pi.json | 368 +++++++++++++++++++
fey-examples/fey-json-samples/temperature.json | 28 ++
5 files changed, 429 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-iota/blob/da22c802/fey-examples/README.md
----------------------------------------------------------------------
diff --git a/fey-examples/README.md b/fey-examples/README.md
new file mode 100644
index 0000000..017eb69
--- /dev/null
+++ b/fey-examples/README.md
@@ -0,0 +1 @@
+How to run fey-examples
http://git-wip-us.apache.org/repos/asf/incubator-iota/blob/da22c802/fey-examples/active-configuration/fey-configuration.conf
----------------------------------------------------------------------
diff --git a/fey-examples/active-configuration/fey-configuration.conf b/fey-examples/active-configuration/fey-configuration.conf
new file mode 100644
index 0000000..9c5c71d
--- /dev/null
+++ b/fey-examples/active-configuration/fey-configuration.conf
@@ -0,0 +1,5 @@
+fey-global-configuration{
+ json-repository = ${IOTA_HOME}"/fey-examples/active-json-repo"
+ jar-repository = ${IOTA_HOME}"/fey-examples/active-jar-repo"
+ enable-checkpoint = false
+}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/incubator-iota/blob/da22c802/fey-examples/active-json-repo/timestamp.json
----------------------------------------------------------------------
diff --git a/fey-examples/active-json-repo/timestamp.json b/fey-examples/active-json-repo/timestamp.json
new file mode 100644
index 0000000..36a82a8
--- /dev/null
+++ b/fey-examples/active-json-repo/timestamp.json
@@ -0,0 +1,27 @@
+{
+ "guid": "Orch2",
+ "command": "CREATE",
+ "timestamp": "591997890",
+ "name": "DESCRIPTION",
+ "ensembles": [
+ {
+ "guid": "En2",
+ "command": "NONE",
+ "performers": [
+ {
+ "guid": "S2",
+ "schedule": 1000,
+ "backoff": 0,
+ "source": {
+ "name": "fey-stream.jar",
+ "classPath": "org.apache.iota.fey.performer.Timestamp",
+ "parameters": {
+ }
+ }
+ }
+ ],
+ "connections": [
+ ]
+ }
+ ]
+}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/incubator-iota/blob/da22c802/fey-examples/fey-json-samples/raspberry-pi.json
----------------------------------------------------------------------
diff --git a/fey-examples/fey-json-samples/raspberry-pi.json b/fey-examples/fey-json-samples/raspberry-pi.json
new file mode 100644
index 0000000..3e5f9a7
--- /dev/null
+++ b/fey-examples/fey-json-samples/raspberry-pi.json
@@ -0,0 +1,368 @@
+{
+ "guid": "RaspberryPi",
+ "command": "CREATE",
+ "timestamp": "1467731017",
+ "name": "RaspberryPi",
+ "ensembles": [
+ {
+ "guid": "TEMPERATURE",
+ "command": "NONE",
+ "performers": [
+ {
+ "guid": "Heartbeat",
+ "schedule": 30000,
+ "backoff": 0,
+ "source": {
+ "name": "fey-stream.jar",
+ "classPath": "org.apache.iota.fey.performer.Heartbeat",
+ "parameters": {
+ }
+ }
+ },
+ {
+ "guid": "Cherry",
+ "schedule": 1000,
+ "backoff": 0,
+ "source": {
+ "name": "fey-cherry-rp.jar",
+ "classPath": "org.apache.iota.fey.performer.CherryRP",
+ "parameters": {
+ "cherry": "{\"op\":\"cov\", \"args\":[{\"string\":\"1ed6aed2b028486fa478b3d3f6e7ee61\"}, {\"float\":0.5} ]}",
+ "lrns": "[\"1ed6aed2b028486fa478b3d3f6e7ee61\"]",
+ "host": "192.168.0.17"
+ }
+ }
+ },
+ {
+ "guid": "ZMQPublisher",
+ "schedule": 0,
+ "backoff": 0,
+ "source": {
+ "name": "fey-zmq.jar",
+ "classPath": "org.apache.iota.fey.performer.ZMQPublisher",
+ "parameters": {
+ "zmq_port": "5559",
+ "zmq_target": "192.168.0.139"
+ }
+ }
+ }
+ ],
+ "connections": [
+ {
+ "Heartbeat": [
+ "Cherry"
+ ]
+ },
+ {
+ "Cherry": [
+ "ZMQPublisher"
+ ]
+ }
+ ]
+ },
+ {
+ "guid": "PRESSURE",
+ "command": "NONE",
+ "performers": [
+ {
+ "guid": "Heartbeat",
+ "schedule": 10000,
+ "backoff": 0,
+ "source": {
+ "name": "fey-stream.jar",
+ "classPath": "org.apache.iota.fey.performer.Heartbeat",
+ "parameters": {
+ }
+ }
+ },
+ {
+ "guid": "Cherry",
+ "schedule": 1000,
+ "backoff": 0,
+ "source": {
+ "name": "fey-cherry-rp.jar",
+ "classPath": "org.apache.iota.fey.performer.CherryRP",
+ "parameters": {
+ "cherry": "{\"op\":\"cov\", \"args\":[{\"string\":\"3fd7aed2b028486fa478b3d3f6e7ee61\"}, {\"float\":0.1} ]}",
+ "lrns": "[\"3fd7aed2b028486fa478b3d3f6e7ee61\"]",
+ "host": "192.168.0.17"
+ }
+ }
+ },
+ {
+ "guid": "ZMQPublisher",
+ "schedule": 0,
+ "backoff": 0,
+ "source": {
+ "name": "fey-zmq.jar",
+ "classPath": "org.apache.iota.fey.performer.ZMQPublisher",
+ "parameters": {
+ "zmq_port": "5559",
+ "zmq_target": "192.168.0.139"
+ }
+ }
+ }
+ ],
+ "connections": [
+ {
+ "Heartbeat": [
+ "Cherry"
+ ]
+ },
+ {
+ "Cherry": [
+ "ZMQPublisher"
+ ]
+ }
+ ]
+ },
+ {
+ "guid": "HUMIDITY",
+ "command": "NONE",
+ "performers": [
+ {
+ "guid": "Heartbeat",
+ "schedule": 30000,
+ "backoff": 0,
+ "source": {
+ "name": "fey-stream.jar",
+ "classPath": "org.apache.iota.fey.performer.Heartbeat",
+ "parameters": {
+ }
+ }
+ },
+ {
+ "guid": "Cherry",
+ "schedule": 1000,
+ "backoff": 0,
+ "source": {
+ "name": "fey-cherry-rp.jar",
+ "classPath": "org.apache.iota.fey.performer.CherryRP",
+ "parameters": {
+ "cherry": "{\"op\":\"cov\", \"args\":[{\"string\":\"2fd6aed2b028486fa478b3d3f6e7ee61\"}, {\"float\":5.0} ]}",
+ "lrns": "[\"2fd6aed2b028486fa478b3d3f6e7ee61\"]",
+ "host": "192.168.0.17"
+ }
+ }
+ },
+ {
+ "guid": "ZMQPublisher",
+ "schedule": 0,
+ "backoff": 0,
+ "source": {
+ "name": "fey-zmq.jar",
+ "classPath": "org.apache.iota.fey.performer.ZMQPublisher",
+ "parameters": {
+ "zmq_port": "5559",
+ "zmq_target": "192.168.0.139"
+ }
+ }
+ }
+ ],
+ "connections": [
+ {
+ "Heartbeat": [
+ "Cherry"
+ ]
+ },
+ {
+ "Cherry": [
+ "ZMQPublisher"
+ ]
+ }
+ ]
+ },
+ {
+ "guid": "SOUNDDB",
+ "command": "NONE",
+ "performers": [
+ {
+ "guid": "Heartbeat",
+ "schedule": 10000,
+ "backoff": 0,
+ "source": {
+ "name": "fey-stream.jar",
+ "classPath": "org.apache.iota.fey.performer.Heartbeat",
+ "parameters": {
+ }
+ }
+ },
+ {
+ "guid": "Cherry",
+ "schedule": 1000,
+ "backoff": 0,
+ "source": {
+ "name": "fey-cherry-rp.jar",
+ "classPath": "org.apache.iota.fey.performer.CherryRP",
+ "parameters": {
+ "cherry": "{\"op\":\"cov\", \"args\":[{\"string\":\"7fd6aed2b028486fa478b3d3f6e7ee61\"}, {\"float\":3.0} ]}",
+ "lrns": "[\"7fd6aed2b028486fa478b3d3f6e7ee61\"]",
+ "host": "192.168.0.17"
+ }
+ }
+ },
+ {
+ "guid": "ZMQPublisher",
+ "schedule": 0,
+ "backoff": 0,
+ "source": {
+ "name": "fey-zmq.jar",
+ "classPath": "org.apache.iota.fey.performer.ZMQPublisher",
+ "parameters": {
+ "zmq_port": "5559",
+ "zmq_target": "192.168.0.139"
+ }
+ }
+ }
+ ],
+ "connections": [
+ {
+ "Heartbeat": [
+ "Cherry"
+ ]
+ },
+ {
+ "Cherry": [
+ "ZMQPublisher"
+ ]
+ }
+ ]
+ },
+ {
+ "guid": "VIBRATION_AGGREGATE",
+ "command": "NONE",
+ "performers": [
+ {
+ "guid": "Heartbeat",
+ "schedule": 10000,
+ "backoff": 0,
+ "source": {
+ "name": "fey-stream.jar",
+ "classPath": "org.apache.iota.fey.performer.Heartbeat",
+ "parameters": {
+ }
+ }
+ },
+ {
+ "guid": "Cherry",
+ "schedule": 1000,
+ "backoff": 0,
+ "source": {
+ "name": "fey-cherry-rp.jar",
+ "classPath": "org.apache.iota.fey.performer.CherryRP",
+ "parameters": {
+ "cherry": "{\"op\":\"cov\", \"args\":[{\"string\":\"5fd6aed2b028486fa478b3d3f6e7ee61\"}, {\"float\":0.02} ]}",
+ "lrns": "[\"5fd6aed2b028486fa478b3d3f6e7ee61\"]",
+ "host": "192.168.0.17"
+ }
+ }
+ },
+ {
+ "guid": "ZMQPublisher",
+ "schedule": 0,
+ "backoff": 0,
+ "source": {
+ "name": "fey-zmq.jar",
+ "classPath": "org.apache.iota.fey.performer.ZMQPublisher",
+ "parameters": {
+ "zmq_port": "5559",
+ "zmq_target": "192.168.0.139"
+ }
+ }
+ }
+ ],
+ "connections": [
+ {
+ "Heartbeat": [
+ "Cherry"
+ ]
+ },
+ {
+ "Cherry": [
+ "ZMQPublisher"
+ ]
+ }
+ ]
+ },
+ {
+ "guid": "VIBRATION",
+ "command": "NONE",
+ "performers": [
+ {
+ "guid": "VibrationStream",
+ "schedule": 1000,
+ "backoff": 0,
+ "source": {
+ "name": "fey-cherry-rp.jar",
+ "classPath": "org.apache.iota.fey.performer.CherryRP",
+ "parameters": {
+ "cherry": "{\"didVibrationChange\":\"6fd6aed2b028486fa478b3d3f6e7ee61\"}",
+ "lrns": "[\"6fd6aed2b028486fa478b3d3f6e7ee61\"]",
+ "host": "192.168.0.17"
+ }
+ }
+ },
+ {
+ "guid": "ZMQPublisher",
+ "schedule": 0,
+ "backoff": 0,
+ "source": {
+ "name": "fey-zmq.jar",
+ "classPath": "org.apache.iota.fey.performer.ZMQPublisher",
+ "parameters": {
+ "zmq_port": "5559",
+ "zmq_target": "192.168.0.139"
+ }
+ }
+ }
+ ],
+ "connections": [
+ {
+ "VibrationStream": [
+ "ZMQPublisher"
+ ]
+ }
+ ]
+ },
+ {
+ "guid": "SOUND_WAV",
+ "command": "NONE",
+ "performers": [
+ {
+ "guid": "Cherry",
+ "schedule": 3000,
+ "backoff": 0,
+ "source": {
+ "name": "fey-cherry-rp.jar",
+ "classPath": "org.apache.iota.fey.performer.CherryRP",
+ "parameters": {
+ "cherry": "{\"didSoundChange\":\"9fd6aed2b028486fa478b3d3f6e7ee61\"}",
+ "lrns": "[\"9fd6aed2b028486fa478b3d3f6e7ee61\"]",
+ "host": "192.168.0.17"
+ }
+ }
+ },
+ {
+ "guid": "ZMQPublisher",
+ "schedule": 0,
+ "backoff": 0,
+ "source": {
+ "name": "fey-zmq.jar",
+ "classPath": "org.apache.iota.fey.performer.ZMQPublisher",
+ "parameters": {
+ "zmq_port": "5559",
+ "zmq_target": "192.168.0.139"
+ }
+ }
+ }
+ ],
+ "connections": [
+ {
+ "Cherry": [
+ "ZMQPublisher"
+ ]
+ }
+ ]
+ }
+ ]
+}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/incubator-iota/blob/da22c802/fey-examples/fey-json-samples/temperature.json
----------------------------------------------------------------------
diff --git a/fey-examples/fey-json-samples/temperature.json b/fey-examples/fey-json-samples/temperature.json
new file mode 100644
index 0000000..00db835
--- /dev/null
+++ b/fey-examples/fey-json-samples/temperature.json
@@ -0,0 +1,28 @@
+{
+ "guid": "Orch1",
+ "command": "CREATE",
+ "timestamp": "591997890",
+ "name": "DESCRIPTION",
+ "ensembles": [
+ {
+ "guid": "En1",
+ "command": "NONE",
+ "performers": [
+ {
+ "guid": "S1",
+ "schedule": 5000,
+ "backoff": 0,
+ "source": {
+ "name": "fey-virtual-sensors.jar",
+ "classPath": "org.apache.iota.fey.performer.Sensor",
+ "parameters": {
+ "exceptions": "[ {\"start_time\":[9,28,30],\"end_time\":[9,29,0],\"expected_value\":900}, {\"start_time\":[11,0,0],\"end_time\":[11,21,3],\"expected_value\":99.0} ]"
+ }
+ }
+ }
+ ],
+ "connections": [
+ ]
+ }
+ ]
+}
\ No newline at end of file