示例#1
0
        /// <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);
        }
示例#2
0
        /// <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(JobMonitoringEvent jobEvent, string prefix)
        {
            string s1 = JPPFDotnetDemo.GetName(jobEvent.getJobDriver());
            string s2 = JPPFDotnetDemo.GetName(jobEvent.getJob());
            string s3 = JPPFDotnetDemo.GetName(jobEvent.getJobDispatch());

            Console.WriteLine("[.Net JobMonitor] " + prefix + " for driver=" + s1 + ", job=" + s2 + " and dispatch=" + s3);
        }