Ignore:
Timestamp:
03/28/13 11:44:36 (11 years ago)
Author:
jripsl
Message:
  • add static class initialisation function.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Monitoring/Failover/failover

    r840 r841  
    1616 
    1717class Failover(): 
    18         pass 
     18 
     19        @classmethod 
     20        def controlLoop(cls): 
     21                simulation=dao.get_simulation() 
     22 
     23                pass 
    1924  
    2025def main(): 
     
    2934                sys.exit(1) 
    3035 
    31         # open DB connections 
    32          
    33         # initialize logger 
     36        SMON.init_singleton() 
    3437 
    35         #  
     38        Failover.controlLoop() 
    3639 
    37  
    38         # close DB connections 
     40        SMON.free_singleton() 
    3941 
    4042 
Note: See TracChangeset for help on using the changeset viewer.