public void Register() { if (networkDir == NetworkDirection.Secondary_To_Primary) { networkLatency = new EventLatency(networkDir.ToString()); /* * mode 4:Occurs after the dequeued message reaches Replica layer and before sending to transport (UCS). Only message routing actions between mode 3 and 4 */ networkLatency.primaryEvents. Add(new EventWithMode(EventMetaData.xEvent.hadr_receive_harden_lsn_message, 1)); //mode=1 or 2. 1 means Occurs when receiving new log block message from transport (UCS) networkLatency.secondaryEvents. Add(new EventWithMode(EventMetaData.xEvent.hadr_send_harden_lsn_message, 3)); //Add it to xeloader XELoader.AddEventLatency(networkLatency); } }
public void Register() { if (networkDir == NetworkDirection.Primary_To_Secondary) { networkLatency = new EventLatency(networkDir.ToString()); /* * mode 4:Occurs after the dequeued message reaches Replica layer and before sending to transport (UCS). Only message routing actions between mode 3 and 4 * using 2 because some xevent doesn't have mode=4 */ networkLatency.primaryEvents. Add(new EventWithMode(EventMetaData.xEvent.hadr_capture_log_block, 2)); //mode=1 or 2. 1 means Occurs when receiving new log block message from transport (UCS) networkLatency.secondaryEvents. Add(new EventWithMode(EventMetaData.xEvent.hadr_transport_receive_log_block_message, 1)); //Add it to xeloader XELoader.AddEventLatency(networkLatency); } }