public class OS extends Object
Modifier and Type | Class and Description |
---|---|
static class |
OS.Unmapper |
Modifier and Type | Field and Description |
---|---|
static String |
HOST_NAME |
static String |
TARGET |
static String |
USER_NAME |
Constructor and Description |
---|
OS() |
Modifier and Type | Method and Description |
---|---|
static long |
getPidMax() |
static int |
getProcessId() |
static boolean |
is64Bit() |
static boolean |
isWindows()
This may or may not be the OS thread id, but should be unique across processes
|
static long |
map(FileChannel fileChannel,
FileChannel.MapMode mode,
long start,
long size) |
static long |
mapAlign(long size) |
static Memory |
memory() |
static int |
pageSize() |
static long |
spaceUsed(String filename) |
static void |
unmap(long address,
long size) |
public static final String TARGET
public static final String HOST_NAME
public static final String USER_NAME
public static Memory memory()
public static int pageSize()
public static long mapAlign(long size)
public static boolean is64Bit()
public static int getProcessId()
public static boolean isWindows()
public static long getPidMax()
public static long map(FileChannel fileChannel, FileChannel.MapMode mode, long start, long size) throws IOException
IOException
public static void unmap(long address, long size) throws IOException
IOException
public static long spaceUsed(String filename)
Copyright © 2015. All rights reserved.