gcs.put( "Serial GC", "-XX:+UseSerialGC" );
gcs.put( "Throughput GC", "-XX:+UseParallelGC" );
gcs.put( "Concurrent Low Pause GC", "-XX:+UseConcMarkSweepGC" );
gcs.put( "Incremental Low Pause GC", "-Xincgc" );
properties.add( new ServerPropertyRepresentation(
"jvm.garbagecollector", "Garbage collector",
"-XX:+UseSerialGC", PropertyType.JVM_ARGUMENT,
new ValueDefinition( "", "", gcs ) ) );
// Min heap size
properties.add( new ServerPropertyRepresentation(
"jvm.min_heap_size", "Min heap size", "512m",
PropertyType.JVM_ARGUMENT, new ValueDefinition( "-Xms", "" ) ) );
// Max heap size
properties.add( new ServerPropertyRepresentation(
"jvm.max_heap_size", "Max heap size", "512m",
PropertyType.JVM_ARGUMENT, new ValueDefinition( "-Xmx", "" ) ) );
// JVM server mode
if ( PlatformUtils.jvmServerModeIsAvailable() )
{
properties.add( new ServerPropertyRepresentation( "jvm.server",
"JVM server mode", "", PropertyType.JVM_ARGUMENT,
new ValueDefinition( "", "", "-server" ) ) );
}
}
//
// APP ARGS
//
// Static web content folder
properties.add( new HiddenServerPropertyRepresentation( "web.root",
"Web root", AdminServer.INSTANCE.getStaticPath(),
PropertyType.APP_ARGUMENT,
new ValueDefinition( "-webRoot=", "" ) ) );
// Database folder
properties.add( new ServerPropertyRepresentation( "db.root",
"Database location", DatabaseLocator.getDatabaseLocation(),
PropertyType.APP_ARGUMENT, new ValueDefinition( "-dbPath=", "" ) ) );
//
// CONFIG FILE ARGS
//
if ( DatabaseLocator.isLocalDatabase() )
{
// Logical logs
properties.add( new ServerPropertyRepresentation(
"keep_logical_logs", "Enable logical logs", "false",
PropertyType.CONFIG_PROPERTY, new ValueDefinition( "", "",
"true", "false" ) ) );
// Remote shell
properties.add( new ServerPropertyRepresentation(
"enable_remote_shell", "Enable remote shell", "false",
PropertyType.CONFIG_PROPERTY, new ValueDefinition( "", "",
"true", "false" ) ) );
// DB CREATION ARGS
properties.add( new ServerPropertyRepresentation(
"create.array_block_size", "Array block size", "133",
PropertyType.DB_CREATION_PROPERTY ) );
properties.add( new ServerPropertyRepresentation(
"create.string_block_size", "String block size", "133",
PropertyType.DB_CREATION_PROPERTY ) );
}
else
{
// JMX URI
properties.add( new ServerPropertyRepresentation(
"general.jmx.uri", "JMX URI", "",
PropertyType.GENERAL_PROPERTY ) );
}
//
// GENERAL SETTINGS
// Used directly by webadmin
// Backup path
properties.add( new ServerPropertyRepresentation(
"general.backup.path", "Backup path", "",
PropertyType.GENERAL_PROPERTY ) );
// Properties to list in data browser
properties.add( new ServerPropertyRepresentation(
"general.data.listfields", "Data browser list fields", "name",
PropertyType.GENERAL_PROPERTY ) );
return properties;
}