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

com.datastax.insight.core.driver.SparkConfig Maven / Gradle / Ivy

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

import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * User: Anders Hong
 * Date: 07/09/2016
 * Time: 16:34
 */
public class SparkConfig {
    private String appName="datastax-spark-app"+System.currentTimeMillis();
    private String master="local[*]";
    private String deployMode;
    private String appResource;
    private String mainClass;

    private Map confMap=new HashMap<>();
    private List appArgs;
    private boolean verbose;


    public String getAppName() {
        return appName;
    }

    public void setAppName(String appName) {
        this.appName = appName;
    }

    public String getMaster() {
        return master;
    }

    public void setMaster(String master) {
        this.master = master;
    }

    public String getAppResource() {
        return appResource;
    }

    public void setAppResource(String appResource) {
        this.appResource = appResource;
    }

    public String getMainClass() {
        return mainClass;
    }

    public void setMainClass(String mainClass) {
        this.mainClass = mainClass;
    }

    public Map getConfMap(){
        return confMap;
    }

    public void addConf(String key,String value) {
        confMap.put(key,value);
    }

    public List getAppArgs() {
        return appArgs;
    }

    public void setAppArgs(List appArgs) {
        this.appArgs = appArgs;
    }

    public boolean isVerbose() {
        return verbose;
    }

    public void setVerbose(boolean verbose) {
        this.verbose = verbose;
    }

    public String getDeployMode() {
        return deployMode;
    }

    public void setDeployMode(String deployMode) {
        this.deployMode = deployMode;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy