Package ganeti :: Package masterd :: Module instance :: Class DiskExport
[hide private]
[frames] | no frames]

Class DiskExport

source code


Instance Methods [hide private]
 
__init__(self, lu, node_name, opts, dest_host, dest_port, instance, source, source_args, timeouts, cbs, private=None)
Initializes this class.
source code
 
_StartDaemon(self)
Starts the export daemon.
source code
 
CheckListening(self)
Checks whether the daemon is listening.
source code
 
_GetConnectedCheckEpoch(self)
Returns the time since the daemon started.
source code

Inherited from _DiskImportExportBase: Abort, CheckConnected, CheckDaemon, CheckFinished, Finalize, GetDaemonName, SetDaemonData, SetLoop, active, loop, magic, progress, recent_output

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

Class Variables [hide private]
  MODE_TEXT = "export"
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, lu, node_name, opts, dest_host, dest_port, instance, source, source_args, timeouts, cbs, private=None)
(Constructor)

source code 

Initializes this class.

Parameters:
  • lu - Logical unit instance
  • node_name (string) - Node name for import
  • opts (objects.ImportExportOptions) - Import/export daemon options
  • dest_host (string) - Destination host name or IP address
  • dest_port (number) - Destination port number
  • instance (objects.Instance) - Instance object
  • source - I/O source
  • source_args - I/O source
  • timeouts (ImportExportTimeouts) - Timeouts for this import
  • cbs (ImportExportCbBase) - Callbacks
  • private - Private data for callback functions
Overrides: object.__init__

_StartDaemon(self)

source code 

Starts the export daemon.

Overrides: _DiskImportExportBase._StartDaemon

CheckListening(self)

source code 

Checks whether the daemon is listening.

Overrides: _DiskImportExportBase.CheckListening

_GetConnectedCheckEpoch(self)

source code 

Returns the time since the daemon started.

Overrides: _DiskImportExportBase._GetConnectedCheckEpoch