예제 #1
0
 public void AddOperator(Replica replica)
 {
     replica.Run();
     this.Operators.Add(replica);
 }
예제 #2
0
        public Uri resolveRouting(Replica replica, TupleStream tuple)
        {
            int r = this.RandomGen.Next(0, replica.Nodes.Count);

            return(replica.Nodes[r]);
        }
예제 #3
0
        public Uri resolveRouting(Replica replica, TupleStream tuple)
        {
            var index = Math.Abs(tuple.Elems[this.fieldNum].GetHashCode() % replica.Nodes.Count);

            return(replica.Nodes[index]);
        }
예제 #4
0
 public Uri resolveRouting(Replica replica, TupleStream tuple)
 {
     return(replica.Nodes[0]);
 }