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 EvaluatorProcess
public EvaluatorType getType()
getType
in interface EvaluatorProcess
public JVMProcess setMemory(int megaBytes)
EvaluatorProcess
setMemory
in interface EvaluatorProcess
public boolean isOptionSet()
EvaluatorProcess
EvaluatorProcess.setMemory(int)
and any other custom options
supported by the specific type of evaluator process.isOptionSet
in interface EvaluatorProcess
public JVMProcess setConfigurationFileName(String configurationFileName)
EvaluatorProcess
setConfigurationFileName
in interface EvaluatorProcess
public JVMProcess setStandardOut(String standardOut)
EvaluatorProcess
setStandardOut
in interface EvaluatorProcess
public JVMProcess setStandardErr(String standardErr)
EvaluatorProcess
setStandardErr
in interface EvaluatorProcess
public JVMProcess addOption(String option)
option
- The full option, e.g. "-XX:+PrintGCDetails", "-Xms500m"Copyright © 2016 The Apache Software Foundation. All rights reserved.