public final class PidTools extends Object
| Modifier and Type | Method and Description |
|---|---|
static int |
getPid()
Returns PID for current JVM under *nix OS or -1 if PID could not
determine.
|
static void |
logPid()
Writes PID of the current JVM to file set by "pidfile" System Property or
"logs/file" if property was not initialized.
|
static void |
main(String[] args) |
public static final int getPid()
public static void logPid()
public static void main(String[] args)
Copyright © 2010-2014 anotheria.net. All Rights Reserved.