Constructor and Description |
---|
Builder(long numCpus)
Constructor with parameters for the required properties of
Cpu . |
Modifier and Type | Method and Description |
---|---|
Cpu |
build() |
Cpu.Builder |
setLimit(java.lang.Long limit)
CPU limit in MHz
Is is optional to set a CPU limit.
|
Cpu.Builder |
setReservation(java.lang.Long reservation)
reservation in MHz
It is optional to set a CPU reservation.
|
Cpu.Builder |
setShares(java.lang.Long shares)
CPU shares
It is optional to specify CPU shares.
|
public Builder(long numCpus)
Cpu
.public Cpu.Builder setReservation(java.lang.Long reservation)
reservation
- New value for the property.public Cpu.Builder setLimit(java.lang.Long limit)
limit
- New value for the property.public Cpu.Builder setShares(java.lang.Long shares)
shares
- New value for the property.public Cpu build()