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

Class _RemoteImportCb

source code


Instance Methods [hide private]
 
__init__(self, feedback_fn, cds, x509_cert_pem, disk_count, external_address)
Initializes this class.
source code
 
disk_results(self)
Returns per-disk results.
source code
 
_CheckAllListening(self)
Checks whether all daemons are listening.
source code
 
ReportListening(self, ie, private, _)
Called when daemon started listening.
source code
 
ReportConnected(self, ie, private)
Called when a connection has been established.
source code
 
ReportFinished(self, ie, private)
Called when a transfer has finished.
source code

Inherited from ImportExportCbBase: ReportProgress

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

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, feedback_fn, cds, x509_cert_pem, disk_count, external_address)
(Constructor)

source code 

Initializes this class.

Parameters:
  • cds (string) - Cluster domain secret
  • x509_cert_pem (string) - CA used for signing import key
  • disk_count (number) - Number of disks
  • external_address (string) - External address of destination node
Overrides: object.__init__

disk_results(self)

source code 

Returns per-disk results.

Decorators:
  • @property

_CheckAllListening(self)

source code 

Checks whether all daemons are listening.

If all daemons are listening, the information is sent to the client.

ReportListening(self, ie, private, _)

source code 

Called when daemon started listening.

Parameters:
  • ie - Import/export object
  • private - Private data passed to import/export object
  • component - transfer component name
Overrides: ImportExportCbBase.ReportListening

ReportConnected(self, ie, private)

source code 

Called when a connection has been established.

Parameters:
  • ie - Import/export object
  • private - Private data passed to import/export object
Overrides: ImportExportCbBase.ReportConnected

ReportFinished(self, ie, private)

source code 

Called when a transfer has finished.

Parameters:
  • ie - Import/export object
  • private - Private data passed to import/export object
Overrides: ImportExportCbBase.ReportFinished