def dispatch_node(uri, control_uri, trace=False, attributes=None, barrier=True): """ Dispatch calvin runtime in new process. uri: list of uris for rt 2 rt comm control_uri: uri to control the rt trace: True/False attributes: dictionary according to documentation in AttributeResolver barrier: when True wait until managed to obtain the id of the runtime """ p = calvin_node.start_node(uri, control_uri, trace, attributes) return node_control(control_uri, barrier=barrier), p
def dispatch_node(uri, control_uri, trace=False, attributes=None): calvin_node.start_node(uri, control_uri, trace, attributes) return node_control(control_uri)