com.eurotech.framework.linux.util
Class LinuxProcessUtil

java.lang.Object
  extended by com.eurotech.framework.linux.util.LinuxProcessUtil

public class LinuxProcessUtil
extends Object


Constructor Summary
LinuxProcessUtil()
           
 
Method Summary
static int getPid(String command)
           
static boolean kill(int pid)
           
static boolean killAll(String command)
           
static int start(String command)
           
static int start(String[] command, boolean wait)
           
static int start(String command, boolean wait)
           
static int start(String command, boolean wait, boolean background)
           
static int startBackground(String command, boolean wait)
           
static ProcessStats startWithStats(String command)
           
static ProcessStats startWithStats(String[] command)
           
static boolean stop(int pid)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LinuxProcessUtil

public LinuxProcessUtil()
Method Detail

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.