예제 #1
0
        static void Main(string[] args)
        {
            RaftEnv re = new RaftEnv();
            Node    l = new Node(re);  Node f = new Node(re);

            l.SetPartner(f);  f.SetPartner(l);
            re.AssignLeader(l); re.AddFollower(f);
            l.Step();
            re.Run();
        }
예제 #2
0
 public void Execute(RaftEnv re)
 {
     re.Time = this.time;
     InnerExecute();
     re.Run();
 }