Пример #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(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);
        }
 /// <summary>Print a console message describing a received event notification</summary>
 /// <param name="jobEvent">the received event</param>
 /// <param name="type">a string describing the type of event notification</param>
 private void WriteEvent(JobMonitoringEvent jobEvent, string type)
 {
     Console.WriteLine("[.Net] job dispatcher: job monitoring event '" + type + "' for driver=" + GetName(jobEvent.getJobDriver()) +
                       ", job=" + GetName(jobEvent.getJob()) + " and dispatch=" + GetName(jobEvent.getJobDispatch()));
 }