Example #1
0
    def __init__(self, host, port):
        CommonHandler.__init__(self, host, port)

        self.dispatch_handlers.update({
            'ShutdownReq': self.shutdown,
            'NodeHypervisorReq': self.HypervisorReqHandler,
            })
Example #2
0
 def __init__(self, host, port):
     CommonHandler.__init__(self, host, port)
     self.dispatch_handlers.update({
         'RackAlgorithmReq': self.RackAlgorithm,
     })
     self.startup_functions.extend((
         self.sayHello, # hello function
     ))
Example #3
0
 def __init__(self, host, port):
     CommonHandler.__init__(self, host, port)
     self.dispatch_handlers.update({
         'GetAvailableClustersReq': self.GetAvailableClusters,
     })
     self.startup_functions.extend((
         self.periodlySampleFunction,
         self.normalSampleFunction, # It's a example to show how to add startup functions
     ))
Example #4
0
 def __init__(self, host, port):
     CommonHandler.__init__(self, host, port)
     # function name should change!!!
     self.dispatch_handlers.update({
         'Message.py function name': self.functionName,
     })
     self.startup_functions.extend((
         self.sayHello,               # hello function
     ))
Example #5
0
    def __init__(self, host, port):
        CommonHandler.__init__(self, host, port)

        self.dispatch_handlers.update({
            'ShutdownReq':
            self.shutdown,
            'NodeHypervisorReq':
            self.HypervisorReqHandler,
        })
Example #6
0
 def __init__(self, host, port):
     CommonHandler.__init__(self, host, port)
     self.dispatch_handlers.update({
         'DatabaseSubsystemCreateVMreq': self.DatabaseSubsystemCreateVM,
         'RackVirtualMachineManagerCreateVMres': self.RackVirtualMachineManagerCreateVM,
     })
     self.startup_functions.extend((
         self.sayHello, # hello function 
     ))
Example #7
0
    def __init__(self, host, port):

        CommonHandler.__init__(self, host, port)
        self.initCol()
        self.initLastTime()
        self.isStartup = False

        self.startup_functions.extend(  list()
           # ( self.periodlyCheckDB, ) 
        )
Example #8
0
 def __init__(self, host, port):
     CommonHandler.__init__(self, host, port)
     # function name should change!!!
     self.dispatch_handlers.update({
         'Message.py function name':
         self.functionName,
     })
     self.startup_functions.extend((
         self.sayHello,  # hello function
     ))
Example #9
0
    def __init__(self, host, port):

        CommonHandler.__init__(self, host, port)
        self.initCol()
        self.initLastTime()
        self.isStartup = False

        self.startup_functions.extend(
            list()
            # ( self.periodlyCheckDB, )
        )