public class ConcourseServerPreferences extends PreferencesHandler
concourse.prefs file that is used to
configure the server.
Instantiate using open(String)
| Modifier and Type | Method and Description |
|---|---|
static ConcourseServerPreferences |
from(Path... files)
Return a
ConcourseServerPreferences handler that is sourced from
the files. |
String |
getBufferDirectory()
The absolute path to the directory where the Buffer data is stored.
|
long |
getBufferPageSize()
The size for each page in the Buffer.
|
int |
getClientPort()
The listener port (1-65535) for client connections.
|
String |
getDatabaseDirectory()
The absolute path to the directory where the Database record and index
files are stored.
|
String |
getDefaultEnvironment()
The default environment that is automatically loaded when the server
starts and is used whenever a client does not specify an environment for
its connection.
|
boolean |
getEnableConsoleLogging()
Determine whether log messages should also be printed to the console
(STDOUT).
|
int |
getJmxPort()
The listener port (1-65535) for management commands via JMX.
|
Level |
getLogLevel()
# The amount of runtime information logged by the system.
|
int |
getShutdownPort()
The listener port (1-65535) for shutdown commands.
|
static ConcourseServerPreferences |
open(String file)
Deprecated.
use
from(Path...) instead |
void |
setBufferDirectory(String bufferDirectory)
Set the value associated with the
buffer_directory key. |
void |
setBufferPageSize(long sizeInBytes)
Set the value associated with the
buffer_page_size key. |
void |
setClientPort(int clientPort)
Set the value associated with the
client_port key. |
void |
setDatabaseDirectory(String databaseDirectory)
Set the value associated with the
database_directory key. |
void |
setDefaultEnvironment(String defaultEnvironment)
Set the value associated with the
default_environment key. |
void |
setEnableConsoleLogging(boolean enableConsoleLogging)
Set the value associated with the
enable_console_logging key. |
void |
setJmxPort(int port)
Set the value associated with the
jmx_port key. |
void |
setLogLevel(Level level)
Set the value associated with the
log_level key. |
void |
setShutdownPort(int shutdownPort)
Set the value associated with the
shutdown_port key. |
getEnum, getSize@Deprecated public static ConcourseServerPreferences open(String file)
from(Path...) insteadConcourseServerPreferences handler that is backed by the
configuration information in file.file - the absolute path to the preferences file (relative paths
will resolve to the user's home directory)public static ConcourseServerPreferences from(Path... files)
ConcourseServerPreferences handler that is sourced from
the files.files - public String getBufferDirectory()
public long getBufferPageSize()
public int getClientPort()
public String getDatabaseDirectory()
public String getDefaultEnvironment()
public boolean getEnableConsoleLogging()
public int getJmxPort()
public Level getLogLevel()
ERROR: critical information when the system reaches a potentially fatal state and may not operate normally.
WARN: useful information when the system reaches a less than ideal state but can continue to operate normally.
INFO: status information about the system that can be used for sanity checking.
DEBUG: detailed information about the system that can be used to diagnose bugs.
Logging is important, but may cause performance degradation. Only use the DEBUG level for staging environments or instances when detailed information is needed to diagnose a bug. Otherwise use the WARN or INFO levels.
public int getShutdownPort()
public void setBufferDirectory(String bufferDirectory)
buffer_directory key.bufferDirectory - public void setBufferPageSize(long sizeInBytes)
buffer_page_size key.public void setClientPort(int clientPort)
client_port key.clientPort - public void setDatabaseDirectory(String databaseDirectory)
database_directory key.databaseDirectory - public void setDefaultEnvironment(String defaultEnvironment)
default_environment key.defaultEnvironment - public void setEnableConsoleLogging(boolean enableConsoleLogging)
enable_console_logging key.enableConsoleLogging - public void setJmxPort(int port)
jmx_port key.port - public void setLogLevel(Level level)
log_level key.level - public void setShutdownPort(int shutdownPort)
shutdown_port key.shutdownPort -