public final class JVMProcess extends Object implements EvaluatorProcess
setMemory(int) and addOption(String).
Runtimes can also set JVM options, but should not do so if users have set options by
checking isOptionSet().| Modifier and Type | Method and Description |
|---|---|
JVMProcess |
addOption(String option)
Add a JVM option.
|
List<String> |
getCommandLine() |
EvaluatorType |
getType() |
boolean |
isOptionSet()
Check whether custom options have been set for the process.
|
JVMProcess |
setConfigurationFileName(String configurationFileName)
Set the name of the configuration file for the Launcher.
|
JVMProcess |
setMemory(int megaBytes)
Set memory size of process in megabytes.
|
JVMProcess |
setStandardErr(String standardErr)
Names a file to which stderr will be redirected.
|
JVMProcess |
setStandardOut(String standardOut)
Names a file to which stdout will be redirected.
|
public List<String> getCommandLine()
getCommandLine in interface EvaluatorProcesspublic EvaluatorType getType()
getType in interface EvaluatorProcesspublic JVMProcess setMemory(int megaBytes)
EvaluatorProcesssetMemory in interface EvaluatorProcesspublic boolean isOptionSet()
EvaluatorProcessEvaluatorProcess.setMemory(int) and any other custom options
supported by the specific type of evaluator process.isOptionSet in interface EvaluatorProcesspublic JVMProcess setConfigurationFileName(String configurationFileName)
EvaluatorProcesssetConfigurationFileName in interface EvaluatorProcesspublic JVMProcess setStandardOut(String standardOut)
EvaluatorProcesssetStandardOut in interface EvaluatorProcesspublic JVMProcess setStandardErr(String standardErr)
EvaluatorProcesssetStandardErr in interface EvaluatorProcesspublic JVMProcess addOption(String option)
option - The full option, e.g. "-XX:+PrintGCDetails", "-Xms500m"Copyright © 2017 The Apache Software Foundation. All rights reserved.