Revision c41eea6e lib/hypervisor/hv_base.py
b/lib/hypervisor/hv_base.py | ||
---|---|---|
57 | 57 |
def GetInstanceInfo(self, instance_name): |
58 | 58 |
"""Get instance properties. |
59 | 59 |
|
60 |
Args: |
|
61 |
instance_name: the instance name |
|
60 |
@param instance_name: the instance name |
|
62 | 61 |
|
63 |
Returns: |
|
64 |
(name, id, memory, vcpus, state, times) |
|
62 |
@return: tuple (name, id, memory, vcpus, state, times) |
|
65 | 63 |
|
66 | 64 |
""" |
67 | 65 |
raise NotImplementedError |
... | ... | |
69 | 67 |
def GetAllInstancesInfo(self): |
70 | 68 |
"""Get properties of all instances. |
71 | 69 |
|
72 |
Returns:
|
|
73 |
[(name, id, memory, vcpus, stat, times),...] |
|
70 |
@return: list of tuples (name, id, memory, vcpus, stat, times)
|
|
71 |
|
|
74 | 72 |
""" |
75 | 73 |
raise NotImplementedError |
76 | 74 |
|
77 | 75 |
def GetNodeInfo(self): |
78 | 76 |
"""Return information about the node. |
79 | 77 |
|
80 |
The return value is a dict, which has to have the following items: |
|
81 |
(all values in MiB) |
|
82 |
- memory_total: the total memory size on the node |
|
83 |
- memory_free: the available memory on the node for instances |
|
84 |
- memory_dom0: the memory used by the node itself, if available |
|
78 |
@return: a dict with the following keys (values in MiB): |
|
79 |
- memory_total: the total memory size on the node |
|
80 |
- memory_free: the available memory on the node for instances |
|
81 |
- memory_dom0: the memory used by the node itself, if available |
|
85 | 82 |
|
86 | 83 |
""" |
87 | 84 |
raise NotImplementedError |
Also available in: Unified diff