Repository: reef
Updated Branches:
  refs/heads/master 35b48e1ea -> 9f98435e0


[REEF-1678] Remove unused MaximumNumberOfEvaluatorFailuresExceededException

JIRA:
  [REEF-1678](https://issues.apache.org/jira/browse/REEF-1678)

Pull request:
  This closes #1191


Project: http://git-wip-us.apache.org/repos/asf/reef/repo
Commit: http://git-wip-us.apache.org/repos/asf/reef/commit/9f98435e
Tree: http://git-wip-us.apache.org/repos/asf/reef/tree/9f98435e
Diff: http://git-wip-us.apache.org/repos/asf/reef/diff/9f98435e

Branch: refs/heads/master
Commit: 9f98435e023c14af8d1fc56d0d41d1448469305c
Parents: 35b48e1
Author: Mariia Mykhailova <[email protected]>
Authored: Wed Nov 23 17:23:33 2016 -0800
Committer: Markus Weimer <[email protected]>
Committed: Wed Nov 23 21:01:48 2016 -0800

----------------------------------------------------------------------
 ...NumberOfEvalutorFailuresExceededException.cs | 47 --------------------
 .../Org.Apache.REEF.IMRU.csproj                 |  1 -
 2 files changed, 48 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/reef/blob/9f98435e/lang/cs/Org.Apache.REEF.IMRU/OnREEF/Driver/MaximumNumberOfEvalutorFailuresExceededException.cs
----------------------------------------------------------------------
diff --git 
a/lang/cs/Org.Apache.REEF.IMRU/OnREEF/Driver/MaximumNumberOfEvalutorFailuresExceededException.cs
 
b/lang/cs/Org.Apache.REEF.IMRU/OnREEF/Driver/MaximumNumberOfEvalutorFailuresExceededException.cs
deleted file mode 100644
index df3c5ea..0000000
--- 
a/lang/cs/Org.Apache.REEF.IMRU/OnREEF/Driver/MaximumNumberOfEvalutorFailuresExceededException.cs
+++ /dev/null
@@ -1,47 +0,0 @@
-// Licensed to the Apache Software Foundation (ASF) under one
-// or more contributor license agreements.  See the NOTICE file
-// distributed with this work for additional information
-// regarding copyright ownership.  The ASF licenses this file
-// to you under the Apache License, Version 2.0 (the
-// "License"); you may not use this file except in compliance
-// with the License.  You may obtain a copy of the License at
-//
-//   http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing,
-// software distributed under the License is distributed on an
-// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-// KIND, either express or implied.  See the License for the
-// specific language governing permissions and limitations
-// under the License.
-
-using System;
-using Org.Apache.REEF.Utilities.Logging;
-
-namespace Org.Apache.REEF.IMRU.OnREEF.Driver
-{
-    /// <summary>
-    /// Type of exception thrown when number of failed evaluators reach the 
-    /// maximum allowed limit.
-    /// </summary>
-    public sealed class MaximumNumberOfEvaluatorFailuresExceededException : 
Exception
-    {
-        private static readonly Logger Logger =
-            
Logger.GetLogger(typeof(MaximumNumberOfEvaluatorFailuresExceededException));
-
-        /// <summary>
-        /// Constructor for throwing exception when the number of evaluator 
failures reaches maximum limit.
-        /// </summary>
-        /// <param name="maximumAllowedEvaluatorFailures">maximum number of 
evaluators allowed to fail</param>
-        public MaximumNumberOfEvaluatorFailuresExceededException(int 
maximumAllowedEvaluatorFailures)
-            : base(CreateMessage(maximumAllowedEvaluatorFailures))
-        {
-        }
-
-        private static string CreateMessage(int 
maximumAllowedEvaluatorFailures)
-        {
-            return string.Format("Exiting IMRU. Number of failed evaluators 
reach the maximum allowed limit of {0}",
-                maximumAllowedEvaluatorFailures);
-        }
-    }
-}

http://git-wip-us.apache.org/repos/asf/reef/blob/9f98435e/lang/cs/Org.Apache.REEF.IMRU/Org.Apache.REEF.IMRU.csproj
----------------------------------------------------------------------
diff --git a/lang/cs/Org.Apache.REEF.IMRU/Org.Apache.REEF.IMRU.csproj 
b/lang/cs/Org.Apache.REEF.IMRU/Org.Apache.REEF.IMRU.csproj
index 86d7785..330f4a0 100644
--- a/lang/cs/Org.Apache.REEF.IMRU/Org.Apache.REEF.IMRU.csproj
+++ b/lang/cs/Org.Apache.REEF.IMRU/Org.Apache.REEF.IMRU.csproj
@@ -82,7 +82,6 @@ under the License.
     <Compile Include="OnREEF\Driver\IJobLifeCycleManager.cs" />
     <Compile Include="OnREEF\Driver\JobCancelled.cs" />
     <Compile Include="OnREEF\Driver\JobLifeCycleManager.cs" />
-    <Compile 
Include="OnREEF\Driver\MaximumNumberOfEvalutorFailuresExceededException.cs" />
     <Compile Include="OnREEF\Driver\IMRUSystemException.cs" />
     <Compile Include="OnREEF\Driver\IMRUConstants.cs" />
     <Compile Include="OnREEF\Driver\IMRUDriver.cs" />

Reply via email to