public class ResAllocsBuilder
extends java.lang.Object
ResAllocs
.Constructor and Description |
---|
ResAllocsBuilder(java.lang.String taskGroupName) |
Modifier and Type | Method and Description |
---|---|
ResAllocs |
build()
Builds a
ResAllocs object based on your builder method instructions. |
ResAllocsBuilder |
withCores(double cores)
Limits the number of cores the task group can use to the number you pass in to this method.
|
ResAllocsBuilder |
withDisk(double disk)
Limits the amount of disk space the task group can use to the number of MB you pass in to this method.
|
ResAllocsBuilder |
withMemory(double memory)
Limits the amount of memory the task group can use to the number of MB you pass in to this method.
|
ResAllocsBuilder |
withNetworkMbps(double networkMbps)
Limits the amount of bandwidth the task group can use to the number of megabits per second you pass in to
this method.
|
public ResAllocsBuilder withCores(double cores)
cores
- the maximum number of CPUsResAllocsBuilder
, modified accordinglypublic ResAllocsBuilder withMemory(double memory)
memory
- the maximum amount of memory, in MBResAllocsBuilder
, modified accordinglypublic ResAllocsBuilder withNetworkMbps(double networkMbps)
networkMbps
- the maximum about of bandwidth, in MbpsResAllocsBuilder
, modified accordinglypublic ResAllocsBuilder withDisk(double disk)
disk
- the maximum amount of disk space, in MBResAllocsBuilder
, modified accordingly