public class BsdSysctlUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static int |
sysctl(String name,
int def)
Executes a sysctl call with an int result
|
static long |
sysctl(String name,
long def)
Executes a sysctl call with a long result
|
static String |
sysctl(String name,
String def)
Executes a sysctl call with a String result
|
static boolean |
sysctl(String name,
com.sun.jna.Structure struct)
Executes a sysctl call with a Structure result
|
public static int sysctl(String name, int def)
name - name of the sysctldef - default int valuepublic static long sysctl(String name, long def)
name - name of the sysctldef - default long valuepublic static String sysctl(String name, String def)
name - name of the sysctldef - default String valuepublic static boolean sysctl(String name, com.sun.jna.Structure struct)
name - name of the sysctlstruct - structure for the resultCopyright © 2020. All rights reserved.