hudson.plugins.slave_squatter.squatters
Class CronSquatter.Entry

java.lang.Object
  extended by 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)
           
 
Method Summary
 int sizeOfReservation(long timestamp)
           
 long timeOfNextChange(long timestamp)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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?

Constructor Detail

CronSquatter.Entry

public CronSquatter.Entry(int size,
                          hudson.scheduler.CronTab cron,
                          long duration)
Method Detail

sizeOfReservation

public int sizeOfReservation(long timestamp)

timeOfNextChange

public long timeOfNextChange(long timestamp)


Copyright © 2010. All Rights Reserved.