public class Ulimit extends Object implements Serializable, Cloneable
The ulimit settings to pass to the container.
| Constructor and Description |
|---|
Ulimit() |
| Modifier and Type | Method and Description |
|---|---|
Ulimit |
clone() |
boolean |
equals(Object obj) |
Integer |
getHardLimit()
The hard limit for the ulimit type.
|
String |
getName()
The
type of the ulimit. |
Integer |
getSoftLimit()
The soft limit for the ulimit type.
|
int |
hashCode() |
void |
setHardLimit(Integer hardLimit)
The hard limit for the ulimit type.
|
void |
setName(String name)
The
type of the ulimit. |
void |
setName(UlimitName name)
The
type of the ulimit. |
void |
setSoftLimit(Integer softLimit)
The soft limit for the ulimit type.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
Ulimit |
withHardLimit(Integer hardLimit)
The hard limit for the ulimit type.
|
Ulimit |
withName(String name)
The
type of the ulimit. |
Ulimit |
withName(UlimitName name)
The
type of the ulimit. |
Ulimit |
withSoftLimit(Integer softLimit)
The soft limit for the ulimit type.
|
public String getName()
type of the ulimit.
Constraints:
Allowed Values: core, cpu, data, fsize, locks, memlock, msgqueue, nice, nofile, nproc, rss, rtprio, rttime, sigpending, stack
type of the ulimit.UlimitNamepublic void setName(String name)
type of the ulimit.
Constraints:
Allowed Values: core, cpu, data, fsize, locks, memlock, msgqueue, nice, nofile, nproc, rss, rtprio, rttime, sigpending, stack
name - The type of the ulimit.UlimitNamepublic Ulimit withName(String name)
type of the ulimit.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: core, cpu, data, fsize, locks, memlock, msgqueue, nice, nofile, nproc, rss, rtprio, rttime, sigpending, stack
name - The type of the ulimit.UlimitNamepublic void setName(UlimitName name)
type of the ulimit.
Constraints:
Allowed Values: core, cpu, data, fsize, locks, memlock, msgqueue, nice, nofile, nproc, rss, rtprio, rttime, sigpending, stack
name - The type of the ulimit.UlimitNamepublic Ulimit withName(UlimitName name)
type of the ulimit.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: core, cpu, data, fsize, locks, memlock, msgqueue, nice, nofile, nproc, rss, rtprio, rttime, sigpending, stack
name - The type of the ulimit.UlimitNamepublic Integer getSoftLimit()
public void setSoftLimit(Integer softLimit)
softLimit - The soft limit for the ulimit type.public Ulimit withSoftLimit(Integer softLimit)
Returns a reference to this object so that method calls can be chained together.
softLimit - The soft limit for the ulimit type.public Integer getHardLimit()
public void setHardLimit(Integer hardLimit)
hardLimit - The hard limit for the ulimit type.public Ulimit withHardLimit(Integer hardLimit)
Returns a reference to this object so that method calls can be chained together.
hardLimit - The hard limit for the ulimit type.public String toString()
toString in class ObjectObject.toString()Copyright © 2015. All rights reserved.