blob: 90eb64327139ae9e759bd7a38d08403f43f366e6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
import abc
import six
@six.add_metaclass(abc.ABCMeta)
class HPA_DiscoveryBase(object):
"""Base class for example plugin used in the tutorial.
"""
def __init__(self):
"""do nothing"""
@abc.abstractmethod
def get_hpa_capabilities(self, data):
"""Get cpupinning capabilities.
:param data: A dictionary with string keys and simple types as
values.
:type data: dict(str:?)
:returns: Iterable producing the formatted text.
"""
|