Exemplo n.º 1
0
 def __init__(self, id, node, pid_filename):
     super(ServiceInstanceStopTask, self).__init__()
     self.id = id
     self.node = node
     self.pid_filename = pid_filename
     self.buffer_store = actioncommand.StringBufferStore()
     self.command = None
Exemplo n.º 2
0
 def __init__(self, id, node, interval, pid_filename):
     super(ServiceInstanceMonitorTask, self).__init__()
     self.interval = interval or 0
     self.node = node
     self.id = id
     self.pid_filename = pid_filename
     self.action = actioncommand.CompletedActionCommand
     self.callback = eventloop.UniqueCallback(self.interval, self.run)
     self.hang_check_callback = create_hang_check(self.interval, self.fail)
     self.buffer_store = actioncommand.StringBufferStore()
Exemplo n.º 3
0
 def __init__(self, id, node):
     super(ServiceInstanceStartTask, self).__init__()
     self.id = id
     self.node = node
     self.buffer_store = actioncommand.StringBufferStore()