/// <summary>Print a console message describing a topology event notification</summary> /// <param name="topologyEvent">the received event</param> /// <param name="prefix">a string describing the type of event</param> private void WriteEvent(TopologyEvent topologyEvent, string prefix) { string s1 = JPPFDotnetDemo.GetName(topologyEvent.getDriver()); string s2 = JPPFDotnetDemo.GetName(topologyEvent.getNodeOrPeer()); Console.WriteLine("[.Net TopologyManager] " + prefix + " for driver=" + s1 + " and node=" + s2); }
/// <summary>Print a console message describing a received event notification</summary> /// <param name="topologyEvent">the received event</param> /// <param name="type">a string describing the type of event notification</param> private void WriteEvent(TopologyEvent topologyEvent, string type) { TopologyDriver driver = topologyEvent.getDriver(); string s1 = "none"; if (driver != null) { s1 = driver.getDisplayName(); } TopologyNode node = topologyEvent.getNodeOrPeer(); string s2 = "none"; if (node != null) { s2 = node.getDisplayName(); } Console.WriteLine("[.Net] dispatcher: topology event '" + type + "' for driver=" + s1 + " and node=" + s2); }