swarmrob.swarmrob.utils package

Submodules

swarmrob.swarmrob.utils.cmd_helper module

swarmrob.swarmrob.utils.cmd_parser module

class swarmrob.swarmrob.utils.cmd_parser.Argument

Bases: enum.Enum

Enum class for all possible command line arguments

ADVERTISE_ADDRESS = 2
COMPOSE_FILE = 6
DAEMONIZE = 12
INTERFACE = 3
LOG_FOLDER = 8
LOG_IDENTIFIER = 7
REPOSITORY = 1
SWARM_UUID = 11
UUID = 5
UUID_OPTIONAL = 4
VERBOSE = 0
WORKER_UUID = 9
WORKER_UUID_OPTIONAL = 10
class swarmrob.swarmrob.utils.cmd_parser.CMDParser(program_path=None, description=None, arguments=None, include_help=True)
parse_arguments()
Parses the command line parameters and returns their values
Returns:command line parameters

swarmrob.swarmrob.utils.config module

swarmrob.swarmrob.utils.errors module

exception swarmrob.swarmrob.utils.errors.CompositionException

Bases: swarmrob.swarmrob.utils.errors.SwarmRobException

Errors related to the experiment definition

exception swarmrob.swarmrob.utils.errors.DockerException

Bases: swarmrob.swarmrob.utils.errors.SwarmRobException

Errors related to problems with the docker daemon

exception swarmrob.swarmrob.utils.errors.NetworkException

Bases: swarmrob.swarmrob.utils.errors.SwarmRobException

Errors related to network communication

exception swarmrob.swarmrob.utils.errors.SwarmException

Bases: swarmrob.swarmrob.utils.errors.SwarmRobException

Errors related to a swarm

exception swarmrob.swarmrob.utils.errors.SwarmRobException

Bases: exceptions.Exception

General Exception for all other SwarmRob related exceptions

swarmrob.swarmrob.utils.network module

swarmrob.swarmrob.utils.process_helper module

Disk And Execution MONitor (Daemon)

Configurable daemon behaviors:

1.) The current working directory set to the “/” directory. 2.) The current file creation mode mask set to 0. 3.) Close all open files (1024). 4.) Redirect standard I/O streams to “/dev/null”.

A failed call to fork() now raises an exception.

References:
  1. Advanced Programming in the Unix Environment: W. Richard Stevens
  2. Unix Programming Frequently Asked Questions:
    http://www.erlenstar.demon.co.uk/unix/faq_toc.html
swarmrob.swarmrob.utils.process_helper.create_daemon()

Detach a process from the controlling terminal and run it in the background as a daemon.

swarmrob.swarmrob.utils.pyro_interface module

swarmrob.swarmrob.utils.table_builder module

Module contents