hudson.plugins.slave_squatter.squatters
Class CronSquatter.Entry
java.lang.Object
hudson.plugins.slave_squatter.squatters.CronSquatter.Entry
- Enclosing class:
- CronSquatter
public static final class CronSquatter.Entry
- extends java.lang.Object
|
Field Summary |
hudson.scheduler.CronTab |
cron
|
long |
duration
Duration of the reservation, in milliseconds. |
int |
size
How many executors do we reserve? |
|
Constructor Summary |
CronSquatter.Entry(int size,
hudson.scheduler.CronTab cron,
long duration)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
cron
public final hudson.scheduler.CronTab cron
duration
public final long duration
- Duration of the reservation, in milliseconds.
size
public final int size
- How many executors do we reserve?
CronSquatter.Entry
public CronSquatter.Entry(int size,
hudson.scheduler.CronTab cron,
long duration)
sizeOfReservation
public int sizeOfReservation(long timestamp)
timeOfNextChange
public long timeOfNextChange(long timestamp)
Copyright © 2010. All Rights Reserved.