コード例 #1
0
 public override void MemberIsAvailable(string role, URI roleUri, StoreId storeId)
 {
     try
     {
         MemberIsAvailable message = new MemberIsAvailable(role, _myId, _serverClusterId, roleUri, storeId);
         Payload           payload = Serializer.broadcast(message);
         _atomicBroadcast.broadcast(payload);
     }
     catch (Exception e)
     {
         _log.warn("Could not distribute member availability", e);
     }
 }
コード例 #2
0
            public override void run()
            {
                AtomicBroadcast broadcast = _servers[server - 1].newClient(typeof(AtomicBroadcast));

                try
                {
                    broadcast.broadcast(serializer.broadcast(value));
                }
                catch (IOException e)
                {
                    Console.WriteLine(e.ToString());
                    Console.Write(e.StackTrace);
                }
            }
コード例 #3
0
 public override void Broadcast(Payload payload)
 {
     _broadcast.broadcast(payload);
 }