Skip to content

Commit

Permalink
expose get_status API to Service
Browse files Browse the repository at this point in the history
  • Loading branch information
kmaehashi committed Apr 27, 2016
1 parent d7c3ecb commit 3b2556b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions jubakit/base.py
Expand Up @@ -441,6 +441,13 @@ def load(self, name, path=None):
self._client().load(name)
# TODO copy source from `jubafetch` and make path option work.

def get_status(self):
"""
Returns the status of this server. In distributed mode, returns statuses
of all members.
"""
return self._client().get_status()

class _ServiceBackend(object):
"""
Service backend handles messy process-related things.
Expand Down

0 comments on commit 3b2556b

Please sign in to comment.