public class NodePoolJobHistory extends Object implements Iterable<NodePoolJob>
Constructor and Description |
---|
NodePoolJobHistory() |
NodePoolJobHistory(int maxHistoryLenth) |
Modifier and Type | Method and Description |
---|---|
void |
add(NodePoolJob job)
Add job and prune the historical list if necessary.
|
Iterator<NodePoolJob> |
iterator() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
public NodePoolJobHistory()
public NodePoolJobHistory(int maxHistoryLenth)
public void add(NodePoolJob job)
job
- a jobpublic Iterator<NodePoolJob> iterator()
iterator
in interface Iterable<NodePoolJob>
Copyright © 2016–2018. All rights reserved.