Package org.apache.wayang.profiler.util
Class ProfilingUtils
- java.lang.Object
-
- org.apache.wayang.profiler.util.ProfilingUtils
-
public class ProfilingUtils extends java.lang.ObjectUtilities to fake Wayang internals etc..
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static JavaExecutorfakeJavaExecutor()Provides aJavaExecutor.static JobfakeJob(java.lang.String... udfJars)Provides aJob.static SparkExecutorfakeSparkExecutor(java.lang.String... udfJars)Provides aSparkExecutor.static voidsleep(long millis)Puts the currentThreadto sleep for a given number of milliseconds.
-
-
-
Method Detail
-
fakeJob
public static Job fakeJob(java.lang.String... udfJars)
Provides aJob.- Parameters:
udfJars- paths to JAR files needed to run the UDFs (seeReflectionUtils.getDeclaringJar(Class))
-
fakeSparkExecutor
public static SparkExecutor fakeSparkExecutor(java.lang.String... udfJars)
Provides aSparkExecutor.- Parameters:
udfJars- paths to JAR files needed to run the UDFs (seeReflectionUtils.getDeclaringJar(Class))
-
fakeJavaExecutor
public static JavaExecutor fakeJavaExecutor()
Provides aJavaExecutor.
-
sleep
public static void sleep(long millis)
Puts the currentThreadto sleep for a given number of milliseconds. Notifies the user via theSystem.out.
-
-