Exemple #1
0
        static void Main(string[] args)
        {
            JobStatusHelper.Initialize(8001);

            JobStatusHelper.SetJobProperty("Prop1", "0");
            int i = 0;

            for (int j = 0; j < 100000; j++)
            {
                for (int k = 0; k < 100000; k++)
                {
                    i += j;
                    i -= j;
                }
            }
            JobStatusHelper.SetJobProperty("Prop1", "1");
            JobStatusHelper.SetJobProperty("Prop2", "1");

            for (int j = 0; j < 100000; j++)
            {
                for (int k = 0; k < 100000; k++)
                {
                    i += j;
                    i -= j;
                }
            }
            JobStatusHelper.SetJobProperty("Prop1", "2");

            for (int j = 0; j < 100000; j++)
            {
                for (int k = 0; k < 100000; k++)
                {
                    i += j;
                    i -= j;
                }
            }

            JobStatusHelper.SetJobProperty(GalaxyJobProperties.ms_strJobStatusPropName, GalaxyJobProperties.ms_strPropValueOfSucJob);
        }