Package org.apache.wayang.profiler.util
Class ProfilingUtils
- java.lang.Object
-
- org.apache.wayang.profiler.util.ProfilingUtils
-
public class ProfilingUtils extends java.lang.Object
Utilities to fake Wayang internals etc..
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static JavaExecutor
fakeJavaExecutor()
Provides aJavaExecutor
.static Job
fakeJob(java.lang.String... udfJars)
Provides aJob
.static SparkExecutor
fakeSparkExecutor(java.lang.String... udfJars)
Provides aSparkExecutor
.static void
sleep(long millis)
Puts the currentThread
to 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 currentThread
to sleep for a given number of milliseconds. Notifies the user via theSystem.out
.
-
-