Refactor worker logic.

Worker logic is now moved to a new controller class. Add initial
support for new 'hpcs_action' and 'hpcs_response' JSON elements.
Drivers now have the option of supporting SUSPEND, ENABLE, DELETE
and UPDATE actions.
This commit is contained in:
David Shrewsbury
2012-10-08 16:38:29 -04:00
parent 5d0b5ea028
commit 2f9d2c847c
4 changed files with 199 additions and 51 deletions

View File

@@ -41,3 +41,15 @@ class LoadBalancerDriver(object):
def activate(self):
""" Activate any changes made. """
raise NotImplementedError()
def suspend(self):
""" Suspend the load balancer. """
raise NotImplementedError()
def enable(self):
""" Enable a suspended load balancer. """
raise NotImplementedError()
def delete(self):
""" Delete a load balancer. """
raise NotImplementedError()