private static void OnMessageSend_Impl(SiloAddress sendingSilo, SiloAddress targetSilo, Message.Directions direction, int numTotalBytes, int headerBytes, int numMsgsInBatch) { MessagesSentTotal.IncrementBy(numMsgsInBatch); MessagesSentPerDirection[(int)direction].IncrementBy(numMsgsInBatch); TotalBytesSent.IncrementBy(numTotalBytes); HeaderBytesSent.IncrementBy(headerBytes); sentMsgSizeHistogram.AddData(numTotalBytes); FindCounter(perSiloSendCounters, new StatisticName(StatisticNames.MESSAGING_SENT_MESSAGES_PER_SILO, (targetSilo != null ? targetSilo.ToString() : "Null")), CounterStorage.LogOnly).IncrementBy(numMsgsInBatch); FindCounter(perSiloSendToCounters, new StatisticName(StatisticNames.MESSAGING_SENT_MESSAGES_PER_SILO_TO, (targetSilo != null ? targetSilo.ToString() : "Null"), (sendingSilo != null ? sendingSilo.ToString() : "Null")), CounterStorage.LogOnly).IncrementBy(numMsgsInBatch); }
internal static void OnPingReplyMissed(SiloAddress replier) { FindCounter(perSiloPingReplyMissedCounters, new StatisticName(StatisticNames.MESSAGING_PINGS_REPLYMISSED_PER_SILO, replier.ToString()), CounterStorage.LogOnly).Increment(); }
internal static void OnPingReceive(SiloAddress destination) { FindCounter(perSiloPingReceiveCounters, new StatisticName(StatisticNames.MESSAGING_PINGS_RECEIVED_PER_SILO, destination.ToString()), CounterStorage.LogOnly).Increment(); }
internal static void OnMessageReceive(Message msg, int headerBytes, int bodyBytes) { MessagesReceived.Increment(); MessagesReceivedPerDirection[(int)msg.Direction].Increment(); totalBytesReceived.IncrementBy(headerBytes + bodyBytes); headerBytesReceived.IncrementBy(headerBytes); receiveMsgSizeHistogram.AddData(headerBytes + bodyBytes); SiloAddress addr = msg.SendingSilo; FindCounter(perSiloReceiveCounters, new StatisticName(StatisticNames.MESSAGING_RECEIVED_MESSAGES_PER_SILO, (addr != null ? addr.ToString() : "Null")), CounterStorage.LogOnly).Increment(); }
internal static CounterStatistic GetMessageReceivedCounter(SiloAddress remoteSilo) { SiloAddress addr = remoteSilo; return(FindCounter(perSiloReceiveCounters, new StatisticName(StatisticNames.MESSAGING_RECEIVED_MESSAGES_PER_SILO, (addr != null ? addr.ToString() : "Null")), CounterStorage.LogOnly)); }
internal static CounterStatistic GetMessageSendCounter(SiloAddress remoteSilo) { if (remoteSilo is null) { return(null); } return(FindCounter(perSiloSendCounters, new StatisticName(StatisticNames.MESSAGING_SENT_MESSAGES_PER_SILO, (remoteSilo != null ? remoteSilo.ToString() : "Null")), CounterStorage.LogOnly)); }