Ignore:
Timestamp:
03/29/13 14:27:09 (11 years ago)
Author:
jripsl
Message:
  • add sample.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Monitoring/Failover/failover

    r841 r842  
    1515from smon import dao 
    1616 
     17CSTE_SIMULATION_STATUS_OK="2.2" 
     18 
    1719class Failover(): 
     20        running=true 
    1821 
    1922        @classmethod 
    2023        def controlLoop(cls): 
    21                 simulation=dao.get_simulation() 
    2224 
    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 
    2533def main(): 
    2634 
Note: See TracChangeset for help on using the changeset viewer.