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":
[{
"id": "sampler1",
"channel":
{
"channels":
[{
"name": "data",
"socket":
{
"sockets":
[{
"type": "push",
"method": "bind",
"address": "tcp://*:5555",
"sndBufSize": "1000",
"rcvBufSize": "1000",
"rateLogging": "0"
}
}
"sndBufSize": 1000,
"rcvBufSize": 1000,
"rateLogging": 0
}]
}]
},
{
"id": "sink1",
"channel":
{
"channels":
[{
"name": "data",
"socket":
{
"sockets":
[{
"type": "pull",
"method": "connect",
"address": "tcp://localhost:5555",
"sndBufSize": "1000",
"rcvBufSize": "1000",
"rateLogging": "0"
}
}
"sndBufSize": 1000,
"rcvBufSize": 1000,
"rateLogging": 0
}]
}]
}]
}
}

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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