class documentation

class CommandBuilder(object):

View In Hierarchy

Undocumented

Static Method GetBashCommand Prepares a command to be run in Bash.
Method __init__ Initializes this class.
Method GetCommand Returns the complete child process command.
Class Method _GetSocatVersion Returns the socat version, as a tuple of ints.
Method _GetDdCommand Returns the command for measuring throughput.
Method _GetMagicCommand Returns the command to read/write the magic value.
Method _GetSocatCommand Returns the socat command.
Method _GetTransportCommand Returns the command for the transport part of the daemon.
Constant _SOCAT_VERSION Undocumented
Instance Variable _dd_pid_fd Undocumented
Instance Variable _dd_stderr_fd Undocumented
Instance Variable _mode Undocumented
Instance Variable _opts Undocumented
Instance Variable _socat_stderr_fd Undocumented
@staticmethod
def GetBashCommand(cmd):

Prepares a command to be run in Bash.

def __init__(self, mode, opts, socat_stderr_fd, dd_stderr_fd, dd_pid_fd):

Initializes this class.

Parameters
modeDaemon mode (import or export)
optsOptions object
socat_stderr_fd:intFile descriptor socat should write its stderr to
dd_stderr_fd:intFile descriptor dd should write its stderr to
dd_pid_fd:intFile descriptor the child should write dd's PID to
def GetCommand(self):

Returns the complete child process command.

@classmethod
def _GetSocatVersion(cls):

Returns the socat version, as a tuple of ints.

The version is memoized in a class variable for future use.

def _GetDdCommand(self):

Returns the command for measuring throughput.

def _GetMagicCommand(self):

Returns the command to read/write the magic value.

def _GetSocatCommand(self):

Returns the socat command.

def _GetTransportCommand(self):

Returns the command for the transport part of the daemon.

_SOCAT_VERSION: tuple[int, ...] =

Undocumented

Value
(0)
_dd_pid_fd =

Undocumented

_dd_stderr_fd =

Undocumented

_mode =

Undocumented

_opts =

Undocumented

_socat_stderr_fd =

Undocumented