public class JvmUtil extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
JvmUtil.TerminateBuilder
Builder to terminate the JVM
|
| Constructor and Description |
|---|
JvmUtil() |
| Modifier and Type | Method and Description |
|---|---|
static void |
addShutdownHook(Runnable task)
Null-safe shortcut to Runtime method, catching RuntimeExceptions.
|
static String |
getMachineName() |
static String |
getPid() |
static long |
getUptime() |
static JvmUtil.TerminateBuilder |
terminate() |
public static String getPid()
public static String getMachineName()
public static long getUptime()
public static JvmUtil.TerminateBuilder terminate()
public static void addShutdownHook(Runnable task)
Copyright © 2017. All rights reserved.