Package org.jppf.client.balancer
Class TaskStateMap
- All Implemented Interfaces:
Serializable,Cloneable,Map<Integer,,org.jppf.node.protocol.TaskState> NavigableMap<Integer,,org.jppf.node.protocol.TaskState> SortedMap<Integer,org.jppf.node.protocol.TaskState>
This map counts the number of each enum value that is put as a map value.
- Author:
- Laurent Cohen
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K extends Object,V extends Object>, AbstractMap.SimpleImmutableEntry<K extends Object, V extends Object> -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.util.TreeMap
ceilingEntry, ceilingKey, clone, comparator, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, descendingKeySet, descendingMap, entrySet, firstEntry, firstKey, floorEntry, floorKey, forEach, get, headMap, headMap, higherEntry, higherKey, keySet, lastEntry, lastKey, lowerEntry, lowerKey, merge, navigableKeySet, pollFirstEntry, pollLastEntry, putAll, putIfAbsent, replace, replace, replaceAll, size, subMap, subMap, tailMap, tailMap, valuesMethods inherited from class java.util.AbstractMap
equals, hashCode, isEmpty, toString
-
Constructor Details
-
TaskStateMap
public TaskStateMap()Initialize this map.
-
-
Method Details
-
put
-
remove
-
getStateCount
public int getStateCount(org.jppf.node.protocol.TaskState state) Get the number of tasks in the specified state.- Parameters:
state- the state for which to get a count.- Returns:
- the number of tasks that have this state.
-
clear
public void clear()
-