public class JVMOptionsTuner
extends java.lang.Object
Created by aagrawal on 8/23/17.
Modifier and Type | Field and Description |
---|---|
protected IConfiguration |
config |
Constructor and Description |
---|
JVMOptionsTuner(IConfiguration config) |
Modifier and Type | Method and Description |
---|---|
static java.util.Map<java.lang.String,JVMOption> |
parseJVMOptions(java.lang.String property)
Util function to parse comma separated list of jvm options to a Map (jvmOptionName,
JVMOption).
|
void |
updateAndSaveJVMOptions(java.lang.String outputFile)
Update the JVM options file and save to a file for cassandra by updating/removing JVM options
IConfiguration.getJVMExcludeSet() and IConfiguration.getJVMUpsertSet() ,
configuring GC IConfiguration.getGCType() etc. |
protected java.util.List<java.lang.String> |
updateJVMOptions()
Update the JVM options file for cassandra by updating/removing JVM options
IConfiguration.getJVMExcludeSet() and IConfiguration.getJVMUpsertSet() , configuring
GC IConfiguration.getGCType() etc. |
protected final IConfiguration config
@Inject public JVMOptionsTuner(IConfiguration config)
public void updateAndSaveJVMOptions(java.lang.String outputFile) throws java.lang.Exception
IConfiguration.getJVMExcludeSet()
and IConfiguration.getJVMUpsertSet()
,
configuring GC IConfiguration.getGCType()
etc.outputFile
- File name with which this configured JVM options should be written.java.lang.Exception
- when encountered with invalid configured GC type. IConfiguration.getGCType()
protected java.util.List<java.lang.String> updateJVMOptions() throws java.lang.Exception
IConfiguration.getJVMExcludeSet()
and IConfiguration.getJVMUpsertSet()
, configuring
GC IConfiguration.getGCType()
etc.java.lang.Exception
- when encountered with invalid configured GC type. IConfiguration.getGCType()
public static final java.util.Map<java.lang.String,JVMOption> parseJVMOptions(java.lang.String property)
property
- comma separated list of JVM options.