| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static int | Returns: the default port used in the absence of an explicit specification.the protocol specifier code of the Server protocol, boolean if true, retrieve the default port when using secure
sockets, else the default port when using plain sockets isTls)Retrieves the default port that a Server will try to use in the absence of an explicitly specified one, given the specified value for whether or not to use secure sockets. |
| public static ServerProperties | Returns: a new properties object loaded from the specified fileint protocol, String the file's path, without the .properties extension (which is
added automatically) path, String String extension)Retrieves a new HsqlProperties object, if possible, loaded from the specified file. |
| public static String[] | Returns: the distinct, known to be valid local InetAddress names for this machineRetrieves an array of Strings naming the distinct, known to be valid local InetAddress names for this machine. |
| public static ServerProperties | Returns: a new default properties objectint protocol)Retrieves a new default properties object for a server of the specified protocol |
| public static void | translateAddressProperty(HsqlProperties
The properties object upon which to perform the translation p)Translates null or zero length value for address key to the special value ServerConstants.SC_DEFAULT_ADDRESS which causes ServerSockets to be constructed without specifying an InetAddress. |
| public static void | translateDefaultDatabaseProperty(HsqlProperties
The properties object upon which to perform the translation p)Translates the legacy default database form: database=... |
| public static void | translateDefaultNoSystemExitProperty(HsqlProperties
The properties object upon which to perform the translation p)Translates unspecified no_system_exit property to false, the default typically required when a Server is started from the command line. |
| ServerConfiguration | back to summary |
|---|---|
| private ServerConfiguration() | |
| getDefaultPort | back to summary |
|---|---|
| public static int getDefaultPort(int protocol, boolean isTls) Retrieves the default port that a Server will try to use in the absence of an explicitly specified one, given the specified value for whether or not to use secure sockets.
| |
| getPropertiesFromFile | back to summary |
|---|---|
| public static ServerProperties getPropertiesFromFile(int protocol, String path, String extension) Retrieves a new HsqlProperties object, if possible, loaded from the specified file.
| |
| listLocalInetAddressNames | back to summary |
|---|---|
| public static String[] listLocalInetAddressNames() Retrieves an array of Strings naming the distinct, known to be valid local InetAddress names for this machine. The process is to collect and return the union of the following sets:
| |
| newDefaultProperties | back to summary |
|---|---|
| public static ServerProperties newDefaultProperties(int protocol) Retrieves a new default properties object for a server of the specified protocol
| |
| translateAddressProperty | back to summary |
|---|---|
| public static void translateAddressProperty(HsqlProperties p) Translates null or zero length value for address key to the special value ServerConstants.SC_DEFAULT_ADDRESS which causes ServerSockets to be constructed without specifying an InetAddress.
| |
| translateDefaultDatabaseProperty | back to summary |
|---|---|
| public static void translateDefaultDatabaseProperty(HsqlProperties p) Translates the legacy default database form: database=... to the 1.7.2 form: database.0=...
| |
| translateDefaultNoSystemExitProperty | back to summary |
|---|---|
| public static void translateDefaultNoSystemExitProperty(HsqlProperties p) Translates unspecified no_system_exit property to false, the default typically required when a Server is started from the command line.
| |