public final class RuntimeUtils
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static java.util.Optional<java.lang.String> |
getPortOwner(int port)
Get the PID of the listening port.
|
static boolean |
listenByOther(int port)
Check whether the port is listening to by other process.
|
public static boolean listenByOther(int port)
port - the portpublic static java.util.Optional<java.lang.String> getPortOwner(int port)
port - the portCopyright © 2023 The Apache Software Foundation. All rights reserved.