Add health check amphora-driver-interface

Add the specs in amphora-driver-interface and driver_base and noop-driver under amphora driver

Change-Id: Ie97f4156ba1a6c7db0d59c202b752345be004cf3
This commit is contained in:
minwang 2015-04-03 13:02:32 -07:00
parent 39d20059ca
commit 86ec61f961
2 changed files with 41 additions and 1 deletions
octavia/amphorae/drivers
specs/version0.5

@ -158,6 +158,27 @@ class AmphoraLoadBalancerDriver(object):
"""
pass
def start_health_check(self, health_mixin):
"""start check health
:param health_mixin: health mixin object
:type amphora: object
Start listener process and calls HealthMixin to update
databases information.
"""
pass
def stop_health_check(self):
"""stop check health
Stop listener process and calls HealthMixin to update
databases information.
"""
pass
@six.add_metaclass(abc.ABCMeta)
class HealthMixin(object):
@ -201,4 +222,4 @@ class StatsMixin(object):
elements are named to keep it extsnsible for future versions
awesome update code and code to send to ceilometer
"""
pass
pass

@ -94,6 +94,25 @@ Establish a base class to model the desire functionality:
on that instance.
"""
def start_health_check(self, health_mixin):
"""start check health
:param health_mixin: health mixin object
:type amphora: object
Start listener process and calls HealthMixin to update
databases information.
"""
pass
def stop_health_check(self):
"""stop check health
Stop listener process and calls HealthMixin to update
databases information.
"""
pass
The referenced listener is a listener object and vip a vip as described
in our model. The model is detached from the DB so the driver can't write