com.eurotech.framework.linux.util
Class LinuxProcessUtil
java.lang.Object
com.eurotech.framework.linux.util.LinuxProcessUtil
public class LinuxProcessUtil
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LinuxProcessUtil
public LinuxProcessUtil()
start
public static int start(String command,
boolean wait,
boolean background)
throws Exception
- Throws:
Exception
start
public static int start(String command)
throws Exception
- Throws:
Exception
start
public static int start(String command,
boolean wait)
throws Exception
- Throws:
Exception
start
public static int start(String[] command,
boolean wait)
throws Exception
- Throws:
Exception
startBackground
public static int startBackground(String command,
boolean wait)
throws Exception
- Throws:
Exception
startWithStats
public static ProcessStats startWithStats(String command)
throws Exception
- Throws:
Exception
startWithStats
public static ProcessStats startWithStats(String[] command)
throws Exception
- Throws:
Exception
getPid
public static int getPid(String command)
throws Exception
- Throws:
Exception
stop
public static boolean stop(int pid)
kill
public static boolean kill(int pid)
killAll
public static boolean killAll(String command)
Copyright © 2013. All Rights Reserved.