hudson.plugins.slave_squatter
Class NodePropertyImpl

java.lang.Object
  extended by hudson.slaves.NodeProperty<hudson.model.Node>
      extended by hudson.plugins.slave_squatter.NodePropertyImpl
All Implemented Interfaces:
hudson.ExtensionPoint, hudson.model.Describable<hudson.slaves.NodeProperty<?>>

public class NodePropertyImpl
extends hudson.slaves.NodeProperty<hudson.model.Node>

Records SlaveSquatters for the node.

Author:
Kohsuke Kawaguchi

Nested Class Summary
static class NodePropertyImpl.DescriptorImpl
           
 
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
hudson.ExtensionPoint.LegacyInstancesAreScopedToHudson
 
Field Summary
 
Fields inherited from class hudson.slaves.NodeProperty
node
 
Constructor Summary
NodePropertyImpl(List<? extends SlaveSquatter> squatters)
           
 
Method Summary
 hudson.util.DescribableList<SlaveSquatter,SlaveSquatterDescriptor> getSquatters()
           
 int sizeOfReservation(hudson.model.Computer c, long timestamp)
           
 long timeOfNextChange(hudson.model.Computer c, long timestamp)
           
 
Methods inherited from class hudson.slaves.NodeProperty
all, canTake, for_, getDescriptor, setNode, setUp
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NodePropertyImpl

@DataBoundConstructor
public NodePropertyImpl(List<? extends SlaveSquatter> squatters)
                 throws IOException
Throws:
IOException
Method Detail

getSquatters

public hudson.util.DescribableList<SlaveSquatter,SlaveSquatterDescriptor> getSquatters()

sizeOfReservation

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

timeOfNextChange

public long timeOfNextChange(hudson.model.Computer c,
                             long timestamp)


Copyright © 2004-2011. All Rights Reserved.