tests/Cluster.py
def killall(self, silent=True, allInstances=False):
        """Kill cluster myeosnode instances. allInstances will kill all myeosnode instances running on the system."""
        cmd="%s -k 9" % (Utils.EnuLauncherPath)
        if Utils.Debug: Utils.Print("cmd: %s" % (cmd))
        if 0 != subprocess.call(cmd.split(), stdout=Utils.FNull):
            if not silent: Utils.Print("Launcher failed to shut down myeos cluster.")

        if allInstances:
            # ocassionally the launcher cannot kill the myeos server
            cmd="pkill -9 %s" % (Utils.EnuServerName)
            if Utils.Debug: Utils.Print("cmd: %s" % (cmd))
            if 0 != subprocess.call(cmd.split(), stdout=Utils.FNull):
                if not silent: Utils.Print("Failed to shut down myeos cluster.")

        # another explicit nodes shutdown
        for node in self.nodes:
            try:
                if node.pid is not None:
                    os.kill(node.pid, signal.SIGKILL)
            except OSError as _:
                pass
Kill cluster myeosnode instances. allInstances will kill all myeosnode instances running on the system.
Kill cluster myeosnode instances. allInstances will kill all myeosnode instances running on the system.
Kill cluster myeosnode instances . allInstances will kill all myeosnode instances running on the system .
def killall(self, silent=True, allInstances=False):
        cmd="%s -k 9" % (Utils.EnuLauncherPath)
        if Utils.Debug: Utils.Print("cmd: %s" % (cmd))
        if 0 != subprocess.call(cmd.split(), stdout=Utils.FNull):
            if not silent: Utils.Print("Launcher failed to shut down myeos cluster.")
        if allInstances:
            cmd="pkill -9 %s" % (Utils.EnuServerName)
            if Utils.Debug: Utils.Print("cmd: %s" % (cmd))
            if 0 != subprocess.call(cmd.split(), stdout=Utils.FNull):
                if not silent: Utils.Print("Failed to shut down myeos cluster.")
        for node in self.nodes:
            try:
                if node.pid is not None:
                    os.kill(node.pid, signal.SIGKILL)
            except OSError as _:
                pass
def killall ( self , silent = True , allInstances = False ) : cmd = "%s -k 9" % ( Utils . EnuLauncherPath ) if Utils . Debug : Utils . Print ( "cmd: %s" % ( cmd ) ) if 0 != subprocess . call ( cmd . split ( ) , stdout = Utils . FNull ) : if not silent : Utils . Print ( "Launcher failed to shut down myeos cluster." ) if allInstances : cmd = "pkill -9 %s" % ( Utils . EnuServerName ) if Utils . Debug : Utils . Print ( "cmd: %s" % ( cmd ) ) if 0 != subprocess . call ( cmd . split ( ) , stdout = Utils . FNull ) : if not silent : Utils . Print ( "Failed to shut down myeos cluster." ) for node in self . nodes : try : if node . pid is not None : os . kill ( node . pid , signal . SIGKILL ) except OSError as _ : pass
Kill cluster myeosnode instances.
Kill cluster myeosnode instances .
"""Kill cluster myeosnode instances. allInstances will kill all myeosnode instances running on the system.""" # ocassionally the launcher cannot kill the myeos server # another explicit nodes shutdown
self
silent
allInstances