~barryprice/juju-deployer/LP1892423

« back to all changes in this revision

Viewing changes to deployer/env/mem.py

  • Committer: Adam Gandelman
  • Date: 2013-09-03 20:44:14 UTC
  • mfrom: (69.3.45 darwin)
  • Revision ID: adamg@canonical.com-20130903204414-xsqqz2gp83dp5d2o
MergeĀ lp:juju-deployer/darwin.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
 
 
2
 
 
3
class MemoryEnvironment(object):
 
4
 
 
5
    def __init__(self):
 
6
        self.data = {}
 
7
 
 
8
    def add_units(self, service_name, num_units):
 
9
        """Add units
 
10
        """
 
11
        for n in range(num_units):
 
12
            self.data['services'][service_name]
 
13
 
 
14
    def _get_service(self, service_name):
 
15
        if not service_name in self.data['services']:
 
16
            raise EnvError("Invalid service name")
 
17
        idx = self.data['services'][service_name]['unit_sequence']
 
18
        return
 
19
 
 
20
    def add_relation(self, endpoint_a, endpoint_b):
 
21
        """Add relations
 
22
        """
 
23
 
 
24
    def close(self):
 
25
        """
 
26
        """
 
27
 
 
28
    def connect(self):
 
29
        """
 
30
        """
 
31
 
 
32
    def get_config(self, svc_name):
 
33
        pass
 
34
 
 
35
    def get_constraints(self, svc_name):
 
36
        pass
 
37
 
 
38
    def get_cli_status(self):
 
39
        pass
 
40
 
 
41
    def reset(self):
 
42
        pass
 
43
 
 
44
    def resolve_errors(self, retry_count=0, timeout=600, watch=False, delay=5):
 
45
        pass
 
46
 
 
47
    def status(self):
 
48
        pass
 
49
 
 
50
    def wait_for_units(
 
51
            self, timeout, goal_state="started", watch=False, no_exit=False):
 
52
        pass