ConcourseServerConfiguration instead@Deprecated public abstract 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)
Deprecated.
Return a
ConcourseServerPreferences handler that is sourced from
the files. |
abstract String |
getBufferDirectory()
Deprecated.
The absolute path to the directory where the Buffer data is stored.
|
abstract long |
getBufferPageSize()
Deprecated.
The size for each page in the Buffer.
|
abstract int |
getClientPort()
Deprecated.
The listener port (1-65535) for client connections.
|
abstract String |
getDatabaseDirectory()
Deprecated.
The absolute path to the directory where the Database record and index
files are stored.
|
abstract String |
getDefaultEnvironment()
Deprecated.
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.
|
abstract boolean |
getEnableConsoleLogging()
Deprecated.
Determine whether log messages should also be printed to the console
(STDOUT).
|
abstract int |
getJmxPort()
Deprecated.
The listener port (1-65535) for management commands via JMX.
|
abstract Level |
getLogLevel()
Deprecated.
# The amount of runtime information logged by the system.
|
abstract int |
getShutdownPort()
Deprecated.
The listener port (1-65535) for shutdown commands.
|
static ConcourseServerPreferences |
open(String file)
Deprecated.
use
from(Path...) instead |
abstract void |
setBufferDirectory(String bufferDirectory)
Deprecated.
Set the value associated with the
buffer_directory key. |
abstract void |
setBufferPageSize(long sizeInBytes)
Deprecated.
Set the value associated with the
buffer_page_size key. |
abstract void |
setClientPort(int clientPort)
Deprecated.
Set the value associated with the
client_port key. |
abstract void |
setDatabaseDirectory(String databaseDirectory)
Deprecated.
Set the value associated with the
database_directory key. |
abstract void |
setDefaultEnvironment(String defaultEnvironment)
Deprecated.
Set the value associated with the
default_environment key. |
abstract void |
setEnableConsoleLogging(boolean enableConsoleLogging)
Deprecated.
Set the value associated with the
enable_console_logging key. |
abstract void |
setJmxPort(int port)
Deprecated.
Set the value associated with the
jmx_port key. |
abstract void |
setLogLevel(Level level)
Deprecated.
Set the value associated with the
log_level key. |
abstract void |
setShutdownPort(int shutdownPort)
Deprecated.
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 abstract String getBufferDirectory()
public abstract long getBufferPageSize()
public abstract int getClientPort()
public abstract String getDatabaseDirectory()
public abstract String getDefaultEnvironment()
public abstract boolean getEnableConsoleLogging()
public abstract int getJmxPort()
public abstract 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 abstract int getShutdownPort()
public abstract void setBufferDirectory(String bufferDirectory)
buffer_directory key.bufferDirectory - public abstract void setBufferPageSize(long sizeInBytes)
buffer_page_size key.public abstract void setClientPort(int clientPort)
client_port key.clientPort - public abstract void setDatabaseDirectory(String databaseDirectory)
database_directory key.databaseDirectory - public abstract void setDefaultEnvironment(String defaultEnvironment)
default_environment key.defaultEnvironment - public abstract void setEnableConsoleLogging(boolean enableConsoleLogging)
enable_console_logging key.enableConsoleLogging - public abstract void setJmxPort(int port)
jmx_port key.port - public abstract void setLogLevel(Level level)
log_level key.level - public abstract void setShutdownPort(int shutdownPort)
shutdown_port key.shutdownPort -