You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@slider.apache.org by st...@apache.org on 2014/05/20 15:57:04 UTC

svn commit: r1596247 - /incubator/slider/trunk/slider-core/src/main/java/org/apache/slider/server/services/utility/CompoundLaunchedService.java

Author: stevel
Date: Tue May 20 13:57:03 2014
New Revision: 1596247

URL: http://svn.apache.org/r1596247
Log:
remove dependency on SliderUtils as precursor to migration to YARN; use of config exception still an issue

Modified:
    incubator/slider/trunk/slider-core/src/main/java/org/apache/slider/server/services/utility/CompoundLaunchedService.java

Modified: incubator/slider/trunk/slider-core/src/main/java/org/apache/slider/server/services/utility/CompoundLaunchedService.java
URL: http://svn.apache.org/viewvc/incubator/slider/trunk/slider-core/src/main/java/org/apache/slider/server/services/utility/CompoundLaunchedService.java?rev=1596247&r1=1596246&r2=1596247&view=diff
==============================================================================
--- incubator/slider/trunk/slider-core/src/main/java/org/apache/slider/server/services/utility/CompoundLaunchedService.java (original)
+++ incubator/slider/trunk/slider-core/src/main/java/org/apache/slider/server/services/utility/CompoundLaunchedService.java Tue May 20 13:57:03 2014
@@ -19,9 +19,9 @@
 package org.apache.slider.server.services.utility;
 
 import com.google.common.base.Preconditions;
+import org.apache.commons.lang.StringUtils;
 import org.apache.hadoop.conf.Configuration;
 import org.apache.hadoop.service.Service;
-import org.apache.slider.common.tools.SliderUtils;
 import org.apache.slider.core.exceptions.BadCommandArgumentsException;
 import org.apache.slider.core.main.LauncherExitCodes;
 import org.apache.slider.core.main.RunService;
@@ -52,11 +52,11 @@ public class CompoundLaunchedService ext
    * @return
    */
   protected static boolean isUnset(String s) {
-    return SliderUtils.isUnset(s);
+    return StringUtils.isEmpty(s);
   }
 
   protected static boolean isSet(String s) {
-    return SliderUtils.isSet(s);
+    return StringUtils.isNotEmpty(s);
   }
 
   protected String[] getArgv() {