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); } }
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); } }
public override void Broadcast(Payload payload) { _broadcast.broadcast(payload); }