Add parallel execution and shortcut notification to inspector design guideline
[doctor.git] / tests / inspector / base.py
1 ##############################################################################
2 # Copyright (c) 2017 ZTE Corporation and others.
3 #
4 # All rights reserved. This program and the accompanying materials
5 # are made available under the terms of the Apache License, Version 2.0
6 # which accompanies this distribution, and is available at
7 # http://www.apache.org/licenses/LICENSE-2.0
8 ##############################################################################
9 import abc
10 import six
11
12
13 @six.add_metaclass(abc.ABCMeta)
14 class BaseInspector(object):
15
16     def __init__(self, conf, log):
17         self.conf = conf
18         self.log = log
19
20     @abc.abstractmethod
21     def get_inspector_url(self):
22         pass
23
24     @abc.abstractmethod
25     def start(self):
26         pass
27
28     @abc.abstractmethod
29     def stop(self):
30         pass