sawtooth.manage.wrap module

class sawtooth.manage.wrap.WrappedNodeController(controller, data_dir=None, clean_data_dir=None)[source]

Bases: sawtooth.manage.node.NodeController

archive(archive_name)[source]
clean()[source]
is_running(node_name)[source]

In addition to discovering authoritatively whether the node is currently running, runs important resource deallocation if it discovers a node name is not running but was at one time. We do this deallocation here rather than is stop or kill so that stop and kill can be non-blocking. :param node_name: :type node_name: str

Returns:

create_genesis_block(node_args)[source]
start(node_args)[source]

Opens file descriptors for subprocess’ stdout and stderr and passes these to subprocess.do_start. It then remembers the file handles for when we discover we’ve lost a node (via a False return from ‘is_running’, which is the only real authority on whether or not the process is running). There may be a way to make this polymorphic with docker and daemon NodeControllers, but that needs more investigation. :param node_args: :type node_args: NodeArguments

stop(node_name)[source]
kill(node_name)[source]
get_node_names()[source]
get_data_dir()[source]