public final class LocalProcess extends Object
Modifier and Type | Class and Description |
---|---|
static class |
LocalProcess.Signal |
Constructor and Description |
---|
LocalProcess(int processId) |
Modifier and Type | Method and Description |
---|---|
static boolean |
isLocalAddress(InetAddress address) |
static void |
main(String[] args) |
void |
send(LocalProcess.Signal signal) |
static LocalProcess |
serving(URL url)
Identify a local process via the given URL.
|
public static void main(String[] args)
public static LocalProcess serving(URL 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 processpublic void send(LocalProcess.Signal signal)
signal
- the POSIX signal to be send to the processpublic static boolean isLocalAddress(InetAddress address)
Copyright © 2003–2020 Atlassian. All rights reserved.