Skip to content

Commit

Permalink
Docstring updates
Browse files Browse the repository at this point in the history
  • Loading branch information
dnaeon committed Jan 8, 2014
1 parent 19803e2 commit 1903b68
Showing 1 changed file with 14 additions and 5 deletions.
19 changes: 14 additions & 5 deletions src/vpoller/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,11 @@ class VPollerClient(object):
Defines methods for use by clients for sending out message requests.
Sends out messages to a VPoller Proxy server requesting properties of
different vSphere objects, e.g. datastores, hosts, etc.
Sends out messages to a VPoller Proxy or vPoller Worker requesting
properties of different vSphere objects, e.g. datastores, hosts, etc.
Returns:
The result message back.
The result message back to the client
"""
def __init__(self, endpoint, timeout=3000, retries=3):
Expand All @@ -59,8 +59,17 @@ def __init__(self, endpoint, timeout=3000, retries=3):
self.endpoint = endpoint

def run(self, msg):
# Partially based on the Lazy Pirate Pattern
# http://zguide.zeromq.org/py:all#Client-Side-Reliability-Lazy-Pirate-Pattern
"""
Main vPoller Client method
Partially based on the Lazy Pirate Pattern:
- http://zguide.zeromq.org/py:all#Client-Side-Reliability-Lazy-Pirate-Pattern
Args:
msg (dict): The client message to send
"""
self.zcontext = zmq.Context()

self.zclient = self.zcontext.socket(zmq.REQ)
Expand Down

0 comments on commit 1903b68

Please sign in to comment.