Esempio n. 1
0
    def stop(self, port):
        filenames = self.workerScript.split("/")
        filename = filenames[-1]
        cmd = os.path.join(Conf.getNodeWorkerDir(),
                           "worker.sh") + " " + filename + " stop " + str(port)

        return os.system(cmd)
Esempio n. 2
0
 def stopAll(self):
     filenames = self.workerScript.split("/")
     filename = filenames[-1]
     cmd = os.path.join(Conf.getNodeWorkerDir(),"worker.sh")  + " " + filename + " stopAll";
     return os.system(cmd)
Esempio n. 3
0
 def start(self):
     cmd = os.path.join(Conf.getNodeWorkerDir(),"worker.sh") + " " + self.workerScript + " start " + self.host
     return os.system(cmd)
Esempio n. 4
0
 def start(self):
     cmd = os.path.join(
         Conf.getNodeWorkerDir(),
         "worker.sh") + " " + self.workerScript + " start " + self.host
     return os.system(cmd)