1 ##############################################################################
2 # Copyright (c) 2017 ZTE Corporation and others.
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 ##############################################################################
13 @six.add_metaclass(abc.ABCMeta)
14 class BaseInspector(object):
16 def __init__(self, conf, log):
19 self._host_down_time = None
20 self._vm_down_time = None
23 def host_down_time(self):
24 return self._host_down_time
26 @host_down_time.setter
27 def host_down_time(self, host_down_time):
28 self._host_down_time = host_down_time
31 def vm_down_time(self):
32 return self._vm_down_time
35 def vm_down_time(self, vm_down_time):
36 self._vm_down_time = vm_down_time
39 def get_inspector_url(self):