public class ConcourseServerConfiguration extends ConcourseServerPreferences
Instantiate using from(Path...);
providing paths to files in order from lowest to highest priority.
| Modifier and Type | Method and Description |
|---|---|
static ConcourseServerConfiguration |
from(Path... files)
Return a
ConcourseServerConfiguration 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).
|
String |
getJavaHome()
The absolute path to the Java installation that Concourse Server should
use.
|
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.
|
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 |
setJavaHome(String javaHome)
Set the value associated with the
java_home 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. |
opengetEnum, getSizepublic static ConcourseServerConfiguration from(Path... files)
ConcourseServerConfiguration handler that is sourced
from the files.files - public String getBufferDirectory()
getBufferDirectory in class ConcourseServerPreferencespublic long getBufferPageSize()
getBufferPageSize in class ConcourseServerPreferencespublic int getClientPort()
getClientPort in class ConcourseServerPreferencespublic String getDatabaseDirectory()
getDatabaseDirectory in class ConcourseServerPreferencespublic String getDefaultEnvironment()
getDefaultEnvironment in class ConcourseServerPreferencespublic boolean getEnableConsoleLogging()
getEnableConsoleLogging in class ConcourseServerPreferencespublic String getJavaHome()
null if not configuredpublic int getJmxPort()
getJmxPort in class ConcourseServerPreferencespublic 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.
getLogLevel in class ConcourseServerPreferencespublic int getShutdownPort()
getShutdownPort in class ConcourseServerPreferencespublic void setBufferDirectory(String bufferDirectory)
buffer_directory key.setBufferDirectory in class ConcourseServerPreferencesbufferDirectory - public void setBufferPageSize(long sizeInBytes)
buffer_page_size key.setBufferPageSize in class ConcourseServerPreferencespublic void setClientPort(int clientPort)
client_port key.setClientPort in class ConcourseServerPreferencesclientPort - public void setDatabaseDirectory(String databaseDirectory)
database_directory key.setDatabaseDirectory in class ConcourseServerPreferencesdatabaseDirectory - public void setDefaultEnvironment(String defaultEnvironment)
default_environment key.setDefaultEnvironment in class ConcourseServerPreferencesdefaultEnvironment - public void setEnableConsoleLogging(boolean enableConsoleLogging)
enable_console_logging key.setEnableConsoleLogging in class ConcourseServerPreferencesenableConsoleLogging - public void setJavaHome(String javaHome)
java_home key.javaHome - the absolute path to the Java installationpublic void setJmxPort(int port)
jmx_port key.setJmxPort in class ConcourseServerPreferencesport - public void setLogLevel(Level level)
log_level key.setLogLevel in class ConcourseServerPreferenceslevel - public void setShutdownPort(int shutdownPort)
shutdown_port key.setShutdownPort in class ConcourseServerPreferencesshutdownPort -