-
Notifications
You must be signed in to change notification settings - Fork 0
Module config
Marvin edited this page Aug 23, 2013
·
9 revisions
{
"name": "Foobar",
"uuid": "12345678-9abc-def0-1234-56789abcdef0",
"maxAppthreads": 14,
"allowNIO": true,
"announceInterval": 5,
"listen":
[
{
"address": "127.0.0.1",
"port": 4221
},
{
"interface": "wlan0",
"port": 4221
}
],
"announce":
[
{
"address": "127.0.0.1",
"port": 4221
},
{
"address": "foo.bar",
"port": 4221
}
],
"multicast":
[
{
"address": "224.0.0.1",
"port": 4221,
"interface": "wlan0"
}
],
"allowedblocks":
{
"amount": 9,
"children":
[
{
"type": "testblock1",
"amount": 3
},
{
"amount": 7
"children":
[
{
"type": "testsubblock1",
"amount": 4
},
{
"type": "testsubblock2",
"amount": 4
},
]
}
]
}
-
name
: The name of the Module -
uuid
: The UUID that should be used by the Module. A random one will be used if none is specified -
maxAppthreads
: the maximum amount of threads allowed to be executed on this module per application. -
allowNIO
: whether using Java New IO is permitted for networking. -
announceInterval
: the time between sending of announcement beacons by multicast in seconds. -
listen
: Configures which ports to listen on for incoming connections. Each element consists ofport
and-
address
: an IPv4 or IPv6 address or hostname -
interface
: an interface name. Will listen on all addresses configured on the device - neither
address
norinterface
: listen on all addresses of all interfaces
-
-
announce
: Configures which addresses will be announced via UDP multicast. Each element consists of-
address
: an IPv4 or IPv6 address or hostname -
port
: a port number
-
-
multicast
: Sets the multicast addresses and interfaces that should be used to announce this module. Each element consists of:-
address
: an IPv4 or IPv6 multicast address -
port
: a port number -
interface
: the interface to use
-
-
allowedblocks
: a tree of block types that can be run on this module. Each element consists of:-
amount
: Optional. How many of the given type respectively of the subtypes under this node can be run. If not specified or negative the amount is not limited. - One of:
-
type
: the type of function block given as a valid Java RegEx. -
children
: the subtypes of this node. If a type is listed under multiple parents each listing will be treated separately. Which one is used first by a deployed block depends on used deployment algorithm.
-
-