all: use strict(er) and more regular JSON schema

This commit is contained in:
Sebastien Binet 2016-11-10 14:22:11 +01:00 committed by Mohammad Al-Turany
parent 72eb775983
commit 6e8839e955
7 changed files with 154 additions and 154 deletions

View File

@ -4,36 +4,36 @@
"devices": "devices":
[{ [{
"id": "sampler1", "id": "sampler1",
"channel": "channels":
{ [{
"name": "data", "name": "data",
"socket": "sockets":
{ [{
"type": "push", "type": "push",
"method": "bind", "method": "bind",
"address": "tcp://*:5555", "address": "tcp://*:5555",
"sndBufSize": "1000", "sndBufSize": 1000,
"rcvBufSize": "1000", "rcvBufSize": 1000,
"rateLogging": "0" "rateLogging": 0
} }]
} }]
}, },
{ {
"id": "sink1", "id": "sink1",
"channel": "channels":
{ [{
"name": "data", "name": "data",
"socket": "sockets":
{ [{
"type": "pull", "type": "pull",
"method": "connect", "method": "connect",
"address": "tcp://localhost:5555", "address": "tcp://localhost:5555",
"sndBufSize": "1000", "sndBufSize": 1000,
"rcvBufSize": "1000", "rcvBufSize": 1000,
"rateLogging": "0" "rateLogging": 0
} }]
} }]
}] }]
} }
} }

View File

@ -4,63 +4,63 @@
"devices": "devices":
[{ [{
"id": "sampler1", "id": "sampler1",
"channel": "channels":
{ [{
"name": "data1", "name": "data1",
"socket": "sockets":
{ [{
"type": "push", "type": "push",
"method": "bind", "method": "bind",
"address": "tcp://*:5555", "address": "tcp://*:5555",
"sndBufSize": "1000", "sndBufSize": 1000,
"rcvBufSize": "1000", "rcvBufSize": 1000,
"rateLogging": "0" "rateLogging": 0
} }]
} }]
}, },
{ {
"key": "processor", "key": "processor",
"channels": "channels":
[{ [{
"name": "data1", "name": "data1",
"socket": "sockets":
{ [{
"type": "pull", "type": "pull",
"method": "connect", "method": "connect",
"address": "tcp://localhost:5555", "address": "tcp://localhost:5555",
"sndBufSize": "1000", "sndBufSize": 1000,
"rcvBufSize": "1000", "rcvBufSize": 1000,
"rateLogging": "0" "rateLogging": 0
} }]
}, },
{ {
"name": "data2", "name": "data2",
"socket": "sockets":
{ [{
"type": "push", "type": "push",
"method": "connect", "method": "connect",
"address": "tcp://localhost:5556", "address": "tcp://localhost:5556",
"sndBufSize": "1000", "sndBufSize": 1000,
"rcvBufSize": "1000", "rcvBufSize": 1000,
"rateLogging": "0" "rateLogging": 0
} }]
}] }]
}, },
{ {
"id": "sink1", "id": "sink1",
"channel": "channels":
{ [{
"name": "data2", "name": "data2",
"socket": "sockets":
{ [{
"type": "pull", "type": "pull",
"method": "bind", "method": "bind",
"address": "tcp://*:5556", "address": "tcp://*:5556",
"sndBufSize": "1000", "sndBufSize": 1000,
"rcvBufSize": "1000", "rcvBufSize": 1000,
"rateLogging": "0" "rateLogging": 0
} }]
} }]
}] }]
} }
} }

View File

@ -4,13 +4,13 @@
"devices": "devices":
[{ [{
"id": "sampler", "id": "sampler",
"channel": "channels":
{ [{
"name": "data1", "name": "data1",
"type": "push", "type": "push",
"method": "bind", "method": "bind",
"rateLogging": "0" "rateLogging": 0
} }]
}, },
{ {
"key": "processor", "key": "processor",
@ -19,24 +19,24 @@
"name": "data1", "name": "data1",
"type": "pull", "type": "pull",
"method": "connect", "method": "connect",
"rateLogging": "0" "rateLogging": 0
}, },
{ {
"name": "data2", "name": "data2",
"type": "push", "type": "push",
"method": "connect", "method": "connect",
"rateLogging": "0" "rateLogging": 0
}] }]
}, },
{ {
"id": "sink", "id": "sink",
"channel": "channels":
{ [{
"name": "data2", "name": "data2",
"type": "pull", "type": "pull",
"method": "bind", "method": "bind",
"rateLogging": "0" "rateLogging": 0
} }]
}] }]
} }
} }

View File

@ -4,59 +4,59 @@
"devices": "devices":
[{ [{
"id": "sampler1", "id": "sampler1",
"channel": "channels":
{ [{
"name": "data", "name": "data",
"sockets": "sockets":
[{ [{
"type": "push", "type": "push",
"method": "bind", "method": "bind",
"address": "tcp://*:5555", "address": "tcp://*:5555",
"sndBufSize": "1000", "sndBufSize": 1000,
"rcvBufSize": "1000", "rcvBufSize": 1000,
"rateLogging": "0" "rateLogging": 0
}, },
{ {
"type": "push", "type": "push",
"method": "bind", "method": "bind",
"address": "tcp://*:5556", "address": "tcp://*:5556",
"sndBufSize": "1000", "sndBufSize": 1000,
"rcvBufSize": "1000", "rcvBufSize": 1000,
"rateLogging": "0" "rateLogging": 0
}] }]
} }]
}, },
{ {
"id": "sink1", "id": "sink1",
"channel": "channels":
{ [{
"name": "data", "name": "data",
"socket": "sockets":
{ [{
"type": "pull", "type": "pull",
"method": "connect", "method": "connect",
"address": "tcp://localhost:5555", "address": "tcp://localhost:5555",
"sndBufSize": "1000", "sndBufSize": 1000,
"rcvBufSize": "1000", "rcvBufSize": 1000,
"rateLogging": "0" "rateLogging": 0
} }]
} }]
}, },
{ {
"id": "sink2", "id": "sink2",
"channel": "channels":
{ [{
"name": "data", "name": "data",
"socket": "sockets":
{ [{
"type": "pull", "type": "pull",
"method": "connect", "method": "connect",
"address": "tcp://localhost:5556", "address": "tcp://localhost:5556",
"sndBufSize": "1000", "sndBufSize": 1000,
"rcvBufSize": "1000", "rcvBufSize": 1000,
"rateLogging": "0" "rateLogging": 0
} }]
} }]
}] }]
} }
} }

View File

@ -4,35 +4,35 @@
"devices": "devices":
[{ [{
"id": "client", "id": "client",
"channel": "channels":
{ [{
"name": "data", "name": "data",
"socket": "sockets":
{ [{
"type": "req", "type": "req",
"method": "connect", "method": "connect",
"address": "tcp://localhost:5005", "address": "tcp://localhost:5005",
"sndBufSize": "1000", "sndBufSize": 1000,
"rcvBufSize": "1000", "rcvBufSize": 1000,
"rateLogging": "0" "rateLogging": 0
} }]
} }]
}, },
{ {
"id": "server", "id": "server",
"channel": "channels":
{ [{
"name": "data", "name": "data",
"socket": "sockets":
{ [{
"type": "rep", "type": "rep",
"method": "bind", "method": "bind",
"address": "tcp://*:5005", "address": "tcp://*:5005",
"sndBufSize": "1000", "sndBufSize": 1000,
"rcvBufSize": "1000", "rcvBufSize": 1000,
"rateLogging": "0" "rateLogging": 0
} }]
} }]
}] }]
} }
} }

View File

@ -7,27 +7,27 @@
"channels": "channels":
[{ [{
"name": "data", "name": "data",
"socket": "sockets":
{ [{
"type": "push", "type": "push",
"method": "bind", "method": "bind",
"address": "tcp://*:5555", "address": "tcp://*:5555",
"sndBufSize": "1000", "sndBufSize": 1000,
"rcvBufSize": "1000", "rcvBufSize": 1000,
"rateLogging": "0" "rateLogging": 0
} }]
}, },
{ {
"name": "broadcast", "name": "broadcast",
"socket": "sockets":
{ [{
"type": "sub", "type": "sub",
"method": "connect", "method": "connect",
"address": "tcp://localhost:5005", "address": "tcp://localhost:5005",
"sndBufSize": "1000", "sndBufSize": 1000,
"rcvBufSize": "1000", "rcvBufSize": 1000,
"rateLogging": "0" "rateLogging": 0
} }]
}] }]
}, },
{ {
@ -35,44 +35,44 @@
"channels": "channels":
[{ [{
"name": "data", "name": "data",
"socket": "sockets":
{ [{
"type": "pull", "type": "pull",
"method": "connect", "method": "connect",
"address": "tcp://localhost:5555", "address": "tcp://localhost:5555",
"sndBufSize": "1000", "sndBufSize": 1000,
"rcvBufSize": "1000", "rcvBufSize": 1000,
"rateLogging": "0" "rateLogging": 0
} }]
}, },
{ {
"name": "broadcast", "name": "broadcast",
"socket": "sockets":
{ [{
"type": "sub", "type": "sub",
"method": "connect", "method": "connect",
"address": "tcp://localhost:5005", "address": "tcp://localhost:5005",
"sndBufSize": "1000", "sndBufSize": 1000,
"rcvBufSize": "1000", "rcvBufSize": 1000,
"rateLogging": "0" "rateLogging": 0
} }]
}] }]
}, },
{ {
"id": "broadcaster1", "id": "broadcaster1",
"channel": "channels":
{ [{
"name": "broadcast", "name": "broadcast",
"socket": "sockets":
{ [{
"type": "pub", "type": "pub",
"method": "bind", "method": "bind",
"address": "tcp://*:5005", "address": "tcp://*:5005",
"sndBufSize": "1000", "sndBufSize": 1000,
"rcvBufSize": "1000", "rcvBufSize": 1000,
"rateLogging": "0" "rateLogging": 0
} }]
} }]
}] }]
} }
} }

View File

@ -4,35 +4,35 @@
"devices": "devices":
[{ [{
"id": "sampler1", "id": "sampler1",
"channel": "channels":
{ [{
"name": "data-out", "name": "data-out",
"socket": "sockets":
{ [{
"type": "push", "type": "push",
"method": "bind", "method": "bind",
"address": "tcp://*:5555", "address": "tcp://*:5555",
"sndBufSize": "1000", "sndBufSize": 1000,
"rcvBufSize": "1000", "rcvBufSize": 1000,
"rateLogging": "0" "rateLogging": 0
} }]
} }]
}, },
{ {
"id": "sink1", "id": "sink1",
"channel": "channels":
{ [{
"name": "data-in", "name": "data-in",
"socket": "sockets":
{ [{
"type": "pull", "type": "pull",
"method": "connect", "method": "connect",
"address": "tcp://localhost:5555", "address": "tcp://localhost:5555",
"sndBufSize": "1000", "sndBufSize": 1000,
"rcvBufSize": "1000", "rcvBufSize": 1000,
"rateLogging": "0" "rateLogging": 0
} }]
} }]
}] }]
} }
} }