Changeset 842 for trunk/Monitoring
- Timestamp:
- 03/29/13 14:27:09 (11 years ago)
- Location:
- trunk/Monitoring
- Files:
-
- 4 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Monitoring/Failover/failover
r841 r842 15 15 from smon import dao 16 16 17 CSTE_SIMULATION_STATUS_OK="2.2" 18 17 19 class Failover(): 20 running=true 18 21 19 22 @classmethod 20 23 def controlLoop(cls): 21 simulation=dao.get_simulation()22 24 23 pass 24 25 while cls.running is True: 26 27 simulation=dao.get_simulation() 28 29 if simulation.status 30 31 sleep 20 32 25 33 def main(): 26 34 -
trunk/Monitoring/smon/types.py
r840 r842 11 11 # @license CeCILL (http://dods.ipsl.jussieu.fr/jripsl/smon/LICENSE) 12 12 ################################## 13 14 import networkx as nx 15 import pickle 13 16 14 17 CSTE_SAMPLE="2.2" … … 36 39 37 40 def __init__(self,**kw): 38 pass 41 dg = nx.DiGraph() 42 43 def update(cls): 44 dg.add_edge('a','b') 45 46 def print(cls): 47 print dg.edges() 48 49 def write(cls): 50 pickle.dump(dg, open('/tmp/graph.txt', 'w')) 51 52 def read(cls): 53 dg = pickle.load(open('/tmp/graph.txt')) 39 54 40 55 def __str__(self):
Note: See TracChangeset
for help on using the changeset viewer.