public enum LockCheck extends Enum<LockCheck>
| Modifier and Type | Method and Description |
|---|---|
static long |
getPID() |
static int |
getProcessForCpu(int core) |
static boolean |
isCpuFree(int cpu) |
static boolean |
isProcessRunning(long pid) |
static void |
releaseLock(int cpu) |
static LockCheck |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static LockCheck[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static LockCheck[] values()
for (LockCheck c : LockCheck.values()) System.out.println(c);
public static LockCheck valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic static long getPID()
public static boolean isCpuFree(int cpu)
public static boolean isProcessRunning(long pid)
public static int getProcessForCpu(int core)
throws IOException
IOExceptionpublic static void releaseLock(int cpu)
Copyright © 2024. All rights reserved.