hudson.slaves
Class NodeProvisioner

java.lang.Object
  extended by hudson.slaves.NodeProvisioner

public class NodeProvisioner
extends Object

Uses the LoadStatistics and determines when we need to allocate new NodeProvisioner.PlannedNodes through Cloud.

Author:
Kohsuke Kawaguchi

Nested Class Summary
static class NodeProvisioner.NodeProvisionerInvoker
          Periodically invoke NodeProvisioners
static class NodeProvisioner.PlannedNode
          The node addition activity in progress.
 
Constructor Summary
NodeProvisioner(Label label, LoadStatistics loadStatistics)
           
 
Method Summary
 List<NodeProvisioner.PlannedNode> getPendingLaunches()
          Nodes that are being launched.
 void suggestReviewNow()
          Give the NodeProvisioner a hint that now would be a good time to think about provisioning some nodes.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NodeProvisioner

public NodeProvisioner(Label label,
                       LoadStatistics loadStatistics)
Method Detail

getPendingLaunches

public List<NodeProvisioner.PlannedNode> getPendingLaunches()
Nodes that are being launched.

Returns:
Can be empty but never null
Since:
1.401

suggestReviewNow

public void suggestReviewNow()
Give the NodeProvisioner a hint that now would be a good time to think about provisioning some nodes. The hint will be ignored if subjected to excessive pestering by callers.

Since:
1.415


Copyright © 2004-2013. All Rights Reserved.