All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.datastax.insight.core.api.ShellApi Maven / Gradle / Ivy

The newest version!
package com.datastax.insight.core.api;

import com.datastax.insight.core.operator.shell.JavaShell;
import com.datastax.insight.core.operator.shell.PythonShell;
import com.datastax.insight.core.operator.shell.SparkShell;

public class ShellApi {

    @Api(name = "Java Shell", description = "Java Shell")
    public static void executeJavaShell(
            @Arguement(name = "jar文件", description = "jar文件") String jarFile,
            @Arguement(name = "程序执行入口类", description = "带有main函数的Java入口类") String mainClass,
            @Arguement(name = "参数", description = "执行参数") String args) {
        JavaShell.execute(jarFile, mainClass, args);
    }

    public static void executePythonShell(String pyFile,String args) {
        PythonShell.execute(pyFile, args);
    }

    public static void executeSparkShell(String appResource,String mainClass,String args) throws Exception {
        SparkShell.execute(appResource, mainClass, args);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy