public class PidFileUtil extends java.lang.Object
|Constructor and Description|
|Modifier and Type||Method and Description|
Determines the process identifier (PID) for the currently active Java process and writes this PID to the given file.
Determines the PID for the current Java process.
Determines whether a process is running, based on the given PID file.
public static int getProcessPid()
This is a non-trivial action, since Java does not offer an easy API. This method tries to
determine the PID using two different methods
getProcessPidImpl2() (if the first one fails) and returns the PID it it succeeds.
public static void createPidFile(java.io.File pidFile) throws java.io.IOException
Syncany is an open-source cloud storage and filesharing application.
Code located at https://github.com/syncany/syncany
JavaDoc for version 0.4.9-alpha generated based on commit 2ab2a6f at Thu May 25 10:14:24 UTC 2017
Copyright © 2011-2015 Philipp C. Heckel