public enum UnixResources extends Enum<UnixResources>
Enum Constant and Description |
---|
RLIMIT_AS
9 Address space limit.
|
RLIMIT_CORE
4 Largest core file that can be created, in bytes.
|
RLIMIT_CPU
0 Per-process CPU limit, in seconds.
|
RLIMIT_DATA
2 Maximum size of data segment, in bytes.
|
RLIMIT_FSIZE
1 Largest file that can be created, in bytes.
|
RLIMIT_LOCKS
10 Maximum number of file locks.
|
RLIMIT_MEMLOCK
8 Locked-in-memory address space.
|
RLIMIT_MSGQUEUE
12 Maximum bytes in POSIX message queues.
|
RLIMIT_NICE
13 Maximum nice priority allowed to raise to.
|
RLIMIT_NLIMITS
16 Number of
rlimit values |
RLIMIT_NOFILE
7 Number of open files.
|
RLIMIT_NPROC
6 Number of processes.
|
RLIMIT_RSS
5 Largest resident set size, in bytes.
|
RLIMIT_RTPRIO
14
|
RLIMIT_RTTIME
15 Maximum CPU time in microseconds that a process scheduled under a real-time scheduling policy may consume
without making a blocking system call before being forcibly de-scheduled.
|
RLIMIT_SIGPENDING
11 Maximum number of pending signals.
|
RLIMIT_STACK
3 Maximum size of stack segment, in bytes.
|
Modifier and Type | Method and Description |
---|---|
int |
getGnuId() |
long |
getHardLimit() |
int |
getMacId() |
long |
getSoftLimit() |
void |
setLimits(long softLimit,
long hardlimit) |
void |
setSoftLimit(long limit) |
static UnixResources |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static UnixResources[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final UnixResources RLIMIT_CPU
public static final UnixResources RLIMIT_FSIZE
public static final UnixResources RLIMIT_DATA
public static final UnixResources RLIMIT_STACK
public static final UnixResources RLIMIT_CORE
public static final UnixResources RLIMIT_RSS
public static final UnixResources RLIMIT_NPROC
public static final UnixResources RLIMIT_NOFILE
public static final UnixResources RLIMIT_MEMLOCK
public static final UnixResources RLIMIT_AS
public static final UnixResources RLIMIT_LOCKS
public static final UnixResources RLIMIT_SIGPENDING
public static final UnixResources RLIMIT_MSGQUEUE
public static final UnixResources RLIMIT_NICE
public static final UnixResources RLIMIT_RTPRIO
public static final UnixResources RLIMIT_RTTIME
public static final UnixResources RLIMIT_NLIMITS
rlimit
valuespublic static UnixResources[] values()
for (UnixResources c : UnixResources.values()) System.out.println(c);
public static UnixResources 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 int getMacId()
public int getGnuId()
public long getSoftLimit() throws UnixException
UnixException
public void setSoftLimit(long limit) throws UnixException
UnixException
public void setLimits(long softLimit, long hardlimit) throws UnixException
UnixException
public long getHardLimit() throws UnixException
UnixException
Copyright © 2018 SPF4J. All rights reserved.