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 Object


Field Summary
 hudson.scheduler.CronTab cron
           
 long duration
          Duration of the reservation, in milliseconds.
 
Constructor Summary
CronSquatter.Entry(int size, hudson.scheduler.CronTab cron, long duration)
           
 
Method Summary
 int getReservationSize(hudson.model.Computer c)
           
 int sizeOfReservation(hudson.model.Computer c, 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.

Constructor Detail

CronSquatter.Entry

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

getReservationSize

public int getReservationSize(hudson.model.Computer c)

sizeOfReservation

public int sizeOfReservation(hudson.model.Computer c,
                             long timestamp)

timeOfNextChange

public long timeOfNextChange(long timestamp)


Copyright © 2004-2011. All Rights Reserved.