示例#1
0
  public static Config getDefaultMiscellaneous() {
    Config.Builder cb = Config.newBuilder();

    cb.put(Keys.verbose(), Defaults.verbose());
    cb.put(Keys.schedulerService(), Defaults.schedulerService());
    return cb.build();
  }
示例#2
0
  public static Config getSandboxBinaries() {
    Config.Builder cb = Config.newBuilder();

    cb.put(Keys.executorSandboxBinary(), Defaults.executorSandboxBinary());
    cb.put(Keys.stmgrSandboxBinary(), Defaults.stmgrSandboxBinary());
    cb.put(Keys.tmasterSandboxBinary(), Defaults.tmasterSandboxBinary());
    cb.put(Keys.shellSandboxBinary(), Defaults.shellSandboxBinary());
    return cb.build();
  }
示例#3
0
  public static Config getDefaultResources() {
    Config.Builder cb = Config.newBuilder();

    cb.put(Keys.stmgrRam(), Defaults.stmgrRam());
    cb.put(Keys.instanceCpu(), Defaults.instanceCpu());
    cb.put(Keys.instanceRam(), Defaults.instanceRam());
    cb.put(Keys.instanceDisk(), Defaults.instanceDisk());
    return cb.build();
  }
示例#4
0
  public static Config getSandboxHome() {
    Config.Builder cb = Config.newBuilder();

    cb.put(Keys.heronSandboxHome(), Defaults.heronSandboxHome());
    cb.put(Keys.heronSandboxBin(), Defaults.heronSandboxBin());
    cb.put(Keys.heronSandboxConf(), Defaults.heronSandboxConf());
    cb.put(Keys.heronSandboxLib(), Defaults.heronSandboxLib());
    cb.put(Keys.javaSandboxHome(), Defaults.javaSandboxHome());
    return cb.build();
  }
示例#5
0
  public static Config getSandboxDefaults() {
    Config.Builder cb = Config.newBuilder();

    cb.putAll(getSandboxHome());
    cb.putAll(getSandboxBinaries());
    cb.putAll(getSandboxJars());
    cb.putAll(getSandboxFilesAndPaths());
    cb.putAll(getDefaultResources());
    return cb.build();
  }
示例#6
0
  public static Config getDefaults() {
    Config.Builder cb = Config.newBuilder();

    cb.putAll(getDefaultHome());
    cb.putAll(getDefaultJars());
    cb.putAll(getDefaultFilesAndPaths());
    cb.putAll(getDefaultResources());
    cb.putAll(getDefaultMiscellaneous());
    return cb.build();
  }
示例#7
0
  public static Config getSandboxFilesAndPaths() {
    Config.Builder cb = Config.newBuilder();

    cb.put(Keys.instanceSandboxClassPath(), Defaults.instanceSandboxClassPath());
    cb.put(Keys.metricsManagerSandboxClassPath(), Defaults.metricsManagerSandboxClassPath());
    cb.put(Keys.packingSandboxClassPath(), Defaults.packingSandboxClassPath());
    cb.put(Keys.schedulerSandboxClassPath(), Defaults.schedulerSandboxClassPath());
    cb.put(Keys.stateManagerSandboxClassPath(), Defaults.stateManagerSandboxClassPath());
    cb.put(Keys.uploaderSandboxClassPath(), Defaults.uploaderSandboxClassPath());
    return cb.build();
  }
示例#8
0
  public static Config getDefaultHome() {
    Config.Builder cb = Config.newBuilder();

    cb.put(Keys.heronHome(), Defaults.heronHome());
    cb.put(Keys.heronBin(), Defaults.heronBin());
    cb.put(Keys.heronConf(), Defaults.heronConf());
    cb.put(Keys.heronDist(), Defaults.heronDist());
    cb.put(Keys.heronEtc(), Defaults.heronEtc());
    cb.put(Keys.heronLib(), Defaults.heronLib());
    cb.put(Keys.javaHome(), Defaults.javaHome());
    return cb.build();
  }
示例#9
0
  public static Config getSandboxDefaultFiles() {
    Config.Builder cb = Config.newBuilder();

    cb.put(Keys.clusterSandboxFile(), Defaults.clusterSandboxFile());
    cb.put(Keys.defaultsSandboxFile(), Defaults.defaultsSandboxFile());
    cb.put(Keys.metricsSinksSandboxFile(), Defaults.metricsSinksSandboxFile());
    cb.put(Keys.packingSandboxFile(), Defaults.packingSandboxFile());
    cb.put(Keys.schedulerSandboxFile(), Defaults.schedulerSandboxFile());
    cb.put(Keys.stateManagerSandboxFile(), Defaults.stateManagerSandboxFile());
    cb.put(Keys.systemSandboxFile(), Defaults.systemSandboxFile());
    cb.put(Keys.uploaderSandboxFile(), Defaults.uploaderSandboxFile());
    return cb.build();
  }
示例#10
0
  public static Config getDefaultFilesAndPaths() {
    Config.Builder cb = Config.newBuilder();

    cb.put(Keys.corePackageUri(), Defaults.corePackageUri());
    // cb.put(Keys.logDirectory(), Defaults.logDirectory());

    cb.put(Keys.instanceClassPath(), Defaults.instanceClassPath());
    cb.put(Keys.metricsManagerClassPath(), Defaults.metricsManagerClassPath());
    cb.put(Keys.packingClassPath(), Defaults.packingClassPath());
    cb.put(Keys.schedulerClassPath(), Defaults.schedulerClassPath());
    cb.put(Keys.stateManagerClassPath(), Defaults.stateManagerClassPath());
    cb.put(Keys.uploaderClassPath(), Defaults.uploaderClassPath());
    return cb.build();
  }
示例#11
0
  public static Config getSandboxJars() {
    Config.Builder cb = Config.newBuilder();

    cb.put(Keys.schedulerSandboxJar(), Defaults.schedulerSandboxJar());
    return cb.build();
  }