Skip to content
Marvin edited this page Aug 23, 2013 · 9 revisions

ModuleConfig

{
    "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 of port and
    • address: an IPv4 or IPv6 address or hostname
    • interface: an interface name. Will listen on all addresses configured on the device
    • neither addressnor interface: 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.
Clone this wiki locally