|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecthudson.model.AbstractDescribableImpl<SlaveSquatter>
hudson.plugins.slave_squatter.SlaveSquatter
public abstract class SlaveSquatter
| Constructor Summary | |
|---|---|
SlaveSquatter()
|
|
| Method Summary | |
|---|---|
abstract int |
sizeOfReservation(long timestamp)
Returns the number of executors that should be reserved at the specified time. |
abstract long |
timeOfNextChange(long timestamp)
Given the timestamp, return the nearest future timestamp (including itself --- the ceil semantics) when the size of the reservation changes. |
| Methods inherited from class hudson.model.AbstractDescribableImpl |
|---|
getDescriptor |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SlaveSquatter()
| Method Detail |
|---|
public abstract int sizeOfReservation(long timestamp)
The timestamp is the same format as Date.getTime(). The precision is 1 minute,
and thus the caller should set the second and millisecond portion to 00.000.
public abstract long timeOfNextChange(long timestamp)
Hudson uses this information to figure out the scheduling that takes the future capacity change into account.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||