public void AddOperator(Replica replica) { replica.Run(); this.Operators.Add(replica); }
public Uri resolveRouting(Replica replica, TupleStream tuple) { int r = this.RandomGen.Next(0, replica.Nodes.Count); return(replica.Nodes[r]); }
public Uri resolveRouting(Replica replica, TupleStream tuple) { var index = Math.Abs(tuple.Elems[this.fieldNum].GetHashCode() % replica.Nodes.Count); return(replica.Nodes[index]); }
public Uri resolveRouting(Replica replica, TupleStream tuple) { return(replica.Nodes[0]); }