Package ganeti :: Package impexpd :: Class CommandBuilder
[hide private]
[frames] | no frames]

Class CommandBuilder

source code


Instance Methods [hide private]
 
__init__(self, mode, opts, socat_stderr_fd, dd_stderr_fd, dd_pid_fd)
Initializes this class.
source code
 
_GetSocatCommand(self)
Returns the socat command.
source code
 
_GetMagicCommand(self)
Returns the command to read/write the magic value.
source code
 
_GetDdCommand(self)
Returns the command for measuring throughput.
source code
 
_GetTransportCommand(self)
Returns the command for the transport part of the daemon.
source code
 
GetCommand(self)
Returns the complete child process command.
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Static Methods [hide private]
 
GetBashCommand(cmd)
Prepares a command to be run in Bash.
source code
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, mode, opts, socat_stderr_fd, dd_stderr_fd, dd_pid_fd)
(Constructor)

source code 

Initializes this class.

Parameters:
  • mode - Daemon mode (import or export)
  • opts - Options object
  • socat_stderr_fd (int) - File descriptor socat should write its stderr to
  • dd_stderr_fd (int) - File descriptor dd should write its stderr to
  • dd_pid_fd (int) - File descriptor the child should write dd's PID to
Overrides: object.__init__