def start(self): oldstatus = self.status super().start() if oldstatus in Status.going(): logger.info("{} is already {}, so start has no effect". format(self, self.status.name)) else: self.startNodestack() self.bootstrap()
def start(self): oldstatus = self.status super().start() if oldstatus in Status.going(): logger.info("{} is already {}, so start has no effect". format(self, self.status.name)) else: self.startNodestack() self.startClientstack() self.elector = self.newPrimaryDecider() # if first time running this node if not self.nodestack.remotes: logger.info("{} first time running; waiting for key sharing..." "".format(self)) else: self.bootstrap()
def isGoing(self): """ Is the status in Status.going()? """ return self.status in Status.going()
def isReady(self): """ Is the status in Status.ready()? """ return self.status in Status.ready()