Class LocalProcess
java.lang.Object
com.atlassian.confluence.it.system.LocalProcess
Represents a local process on a *nix operating system.
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanisLocalAddress(InetAddress address) static voidvoidsend(LocalProcess.Signal signal) static LocalProcessIdentify a local process via the given URL.
-
Constructor Details
-
LocalProcess
public LocalProcess(int processId)
-
-
Method Details
-
main
-
serving
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.
- Parameters:
url- the URL served from the localhost in order to identify the serving process- Returns:
- the serving process
-
send
- Parameters:
signal- the POSIX signal to be send to the process
-
isLocalAddress
-