archipelplatformrequestdefaultcomputingunit :: computingunit :: TNDefaultComputingUnit :: Class TNDefaultComputingUnit
[hide private]
[frames] | no frames]

Class TNDefaultComputingUnit

source code

                                                                      object --+    
                                                                               |    
archipelcentralagentplatformrequest.scorecomputing.TNBasicPlatformScoreComputing --+
                                                                                   |
                                                                                  TNDefaultComputingUnit

Instance Methods [hide private]
 
__init__(self)
Initialize the TNBasicPlatformScoreComputing.
source code
list
score(self, database, limit=10)
Perform the score.
source code

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

Static Methods [hide private]
dict
plugin_info()
Return informations about the plugin.
source code
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self)
(Constructor)

source code 

Initialize the TNBasicPlatformScoreComputing.

Overrides: object.__init__

plugin_info()
Static Method

source code 

Return informations about the plugin.

Returns: dict
dictionary contaning plugin informations
Overrides: archipelcentralagentplatformrequest.scorecomputing.TNBasicPlatformScoreComputing.plugin_info

score(self, database, limit=10)

source code 

Perform the score. The highest is the score, the highest chance you got to perform the action. If you want to decline the performing of the action, return 0.0 or None. the max score you can return is 1.0 (so basically see it as a percentage).

Parameters:
  • limit (integer) - the number of potential hypervisors to suggest
Returns: list
scores of the top hypervisors
Overrides: archipelcentralagentplatformrequest.scorecomputing.TNBasicPlatformScoreComputing.score