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

Class DiskImport

source code


Instance Methods [hide private]
 
__init__(self, lu, node_uuid, opts, instance, component, dest, dest_args, timeouts, cbs, private=None)
Initializes this class.
source code
 
listen_port(self)
Returns the port the daemon is listening on.
source code
 
_StartDaemon(self)
Starts the import daemon.
source code
bool
CheckListening(self)
Checks whether the daemon is listening.
source code
 
_GetConnectedCheckEpoch(self)
Returns the time since we started listening.
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 = "import"
hash(x)
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, lu, node_uuid, opts, instance, component, dest, dest_args, timeouts, cbs, private=None)
(Constructor)

source code 

Initializes this class.

Parameters:
  • lu - Logical unit instance
  • node_uuid (string) - Node name for import
  • opts (objects.ImportExportOptions) - Import/export daemon options
  • instance (objects.Instance) - Instance object
  • component (string) - which part of the instance is being imported
  • dest - I/O destination
  • dest_args - I/O arguments
  • timeouts (ImportExportTimeouts) - Timeouts for this import
  • cbs (ImportExportCbBase) - Callbacks
  • private - Private data for callback functions
Overrides: object.__init__

listen_port(self)

source code 

Returns the port the daemon is listening on.

Decorators:
  • @property

_StartDaemon(self)

source code 

Starts the import daemon.

Overrides: _DiskImportExportBase._StartDaemon

CheckListening(self)

source code 

Checks whether the daemon is listening.

Returns: bool
Whether the daemon is listening
Overrides: _DiskImportExportBase.CheckListening

_GetConnectedCheckEpoch(self)

source code 

Returns the time since we started listening.

Overrides: _DiskImportExportBase._GetConnectedCheckEpoch