diff --git a/octavia/amphorae/drivers/driver_base.py b/octavia/amphorae/drivers/driver_base.py index fc29e2d519..83c6c4efe3 100644 --- a/octavia/amphorae/drivers/driver_base.py +++ b/octavia/amphorae/drivers/driver_base.py @@ -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 \ No newline at end of file diff --git a/specs/version0.5/amphora-driver-interface.rst b/specs/version0.5/amphora-driver-interface.rst index 55a2da8391..0c1cd7aff6 100755 --- a/specs/version0.5/amphora-driver-interface.rst +++ b/specs/version0.5/amphora-driver-interface.rst @@ -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