|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecthudson.slaves.NodeProvisioner.PlannedNode
public static class NodeProvisioner.PlannedNode
The node addition activity in progress.
Field Summary | |
---|---|
String |
displayName
Used to display this planned node to UI. |
Future<Node> |
future
Used to launch and return a Node object. |
int |
numExecutors
The number of executors that will be provided by the Node launched by
this object. |
Constructor Summary | |
---|---|
NodeProvisioner.PlannedNode(String displayName,
Future<Node> future,
int numExecutors)
Construct a PlannedNode instance without Cloud callback for finalization. |
Method Summary | |
---|---|
void |
spent()
Indicate that this NodeProvisioner.PlannedNode is being finalized. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public final String displayName
public final Future<Node> future
Node
object. NodeProvisioner
will check
this Future
's isDone() method to determine when to finalize this object.
public final int numExecutors
Node
launched by
this object. This is used for capacity planning in NodeProvisioner.update()
.
Constructor Detail |
---|
public NodeProvisioner.PlannedNode(String displayName, Future<Node> future, int numExecutors)
Cloud
callback for finalization.
displayName
- Used to display this object in the UI.future
- Used to launch a @{link Node} object.numExecutors
- The number of executors that will be provided by the launched Node
.Method Detail |
---|
public void spent()
NodeProvisioner.PlannedNode
is being finalized.
NodeProvisioner
will call this method when it's done with NodeProvisioner.PlannedNode
.
This indicates that the NodeProvisioner.PlannedNode
's work has been completed
(successfully or otherwise) and it is about to be removed from the list of pending
Node
s to be launched.
Create a subtype of this class and override this method to add any necessary behaviour.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |