Package org.hyperic.sigar

Examples of org.hyperic.sigar.Sigar.kill()


    public void kill(String signalName) throws SigarException {
        int signalNumber = getSignalNumber(signalName);
        // TODO: Should we check if the process is even running and throw a special exception if it's not?
        Sigar fullSigar = new Sigar();
        try {
            fullSigar.kill(pid, signalNumber);
        } finally {
            fullSigar.close();
        }
    }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.