Source code for aj.plugins.services.api

from jadi import interface


[docs]class Service(object): def __init__(self, manager): self.id = None self.name = None self.manager = manager self.state = None self.running = None
[docs]class ServiceOperationError(Exception): def __init__(self, inner): self.inner = inner def __unicode__(self): return '[ServiceOperationError %s]' % self.inner
@interface
[docs]class ServiceManager(object): id = None name = None
[docs] def list(self): raise NotImplementedError
[docs] def get_service(self, _id): raise NotImplementedError
[docs] def start(self, _id): raise NotImplementedError
[docs] def stop(self, _id): raise NotImplementedError
[docs] def restart(self, _id): raise NotImplementedError

Comments

comments powered by Disqus