Methods Summary |
---|
public static native java.lang.String | defaultEncoding(long pool)Get the name of the system default characer set.
|
public static native java.lang.String | expand(java.lang.String str)Expand environment variables.
|
public static native int | info(long[] inf)Gather system info.
On exit the inf array will be filled with:
inf[0] - Total usable main memory size
inf[1] - Available memory size
inf[2] - Total page file/swap space size
inf[3] - Page file/swap space still available
inf[4] - Amount of shared memory
inf[5] - Memory used by buffers
inf[6] - Memory Load
inf[7] - Idle Time in microseconds
inf[8] - Kernel Time in microseconds
inf[9] - User Time in microseconds
inf[10] - Process creation time (apr_time_t)
inf[11] - Process Kernel Time in microseconds
inf[12] - Process User Time in microseconds
inf[13] - Current working set size.
inf[14] - Peak working set size.
inf[15] - Number of page faults.
|
private static native boolean | is(int type)Check for OS type.
|
public static native java.lang.String | localeEncoding(long pool)Get the name of the current locale character set.
Defers to apr_os_default_encoding if the current locale's
data can't be retreved on this system.
|
public static native int | random(byte[] buf, int len)Generate random bytes.
|
public static native void | syslog(int level, java.lang.String message)Log message.
|
public static native void | sysloginit(java.lang.String domain)Initialize system logging.
|