Package org.apache.heron.simulator.utils
Class XORManager
- java.lang.Object
-
- org.apache.heron.simulator.utils.XORManager
-
public class XORManager extends Object
-
-
Constructor Summary
Constructors Constructor Description XORManager(org.apache.heron.common.basics.WakeableLooper looper, TopologyManager topologyManager, int nBuckets)
Get an XORManager for all spouts for the topology.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
anchor(int taskId, long key, long value)
void
create(int taskId, long key, long value)
protected Map<Integer,RotatingMap>
getSpoutTasksToRotatingMap()
boolean
remove(int taskId, long key)
protected void
rotate()
-
-
-
Constructor Detail
-
XORManager
public XORManager(org.apache.heron.common.basics.WakeableLooper looper, TopologyManager topologyManager, int nBuckets)
Get an XORManager for all spouts for the topology.- Parameters:
looper
- The WakeableLooper to execute timer eventtopologyManager
- The manager which contains a topology protobufnBuckets
- number of buckets to divide the message timeout seconds
-
-
Method Detail
-
create
public void create(int taskId, long key, long value)
-
anchor
public boolean anchor(int taskId, long key, long value)
-
remove
public boolean remove(int taskId, long key)
-
rotate
protected void rotate()
-
getSpoutTasksToRotatingMap
protected Map<Integer,RotatingMap> getSpoutTasksToRotatingMap()
-
-