public final class LocalProcess
- extends Object
Represents a local process on a *nix operating system.
|Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public LocalProcess(int processId)
public static void main(String args)
public static LocalProcess serving(URL url)
- Identify a local process via the given URL.
The URL has to resolve to the localhost and the protocol has to be mappable to a known port if no port is set.
Assumes that the lsof (list open files) command is installed.
url - the URL served from the localhost in order to identify the serving process
- the serving process
public void send(LocalProcess.Signal signal)
signal - the POSIX signal to be send to the process
public static boolean isLocalAddress(InetAddress address)
Copyright © 2003–2015 Atlassian. All rights reserved.