| java.lang.Object org.hsqldb.ServerConfiguration
ServerConfiguration | final public class ServerConfiguration implements ServerConstants(Code) | | Assists with Server and WebServer configuration tasks.
author: boucherb@users version: 1.7.2 since: 1.7.2 |
getDefaultPort | public static int getDefaultPort(int protocol, boolean isTls)(Code) | | Retrieves the default port that a Server will try to use in the
abscence of an explicitly specified one, given the specified
value for whether or not to use secure sockets.
Parameters: protocol - the protcol specifier code of the Server Parameters: isTls - if true, retrieve the default port when using securesockets, else the default port when using plain sockets the default port used in the abscence of an explicitspecification. |
getPropertiesFromFile | public static HsqlProperties getPropertiesFromFile(String path)(Code) | | Retrieves a new HsqlProperties object, if possible, loaded from the
specified file.
Parameters: path - the file's path, without the .properties extention(which is added automatically) a new properties object loaded from the specified file |
listLocalInetAddressNames | public static String[] listLocalInetAddressNames()(Code) | | 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:
- InetAddress.getAllByName(InetAddress.getLocalHost().getHostAddress())
- InetAddress.getAllByName(InetAddress.getLocalHost().getHostName())
- InetAddress.getAllByName(InetAddress.getByName(null).getHostAddress())
- InetAddress.getAllByName(InetAddress.getByName(null).getHostName())
- InetAddress.getByName("loopback").getHostAddress()
- InetAddress.getByName("loopback").getHostname()
the distinct, known to be valid localInetAddress names for this machine |
newDefaultProperties | public static HsqlProperties newDefaultProperties(int protocol)(Code) | | Retrieves a new default properties object for a server of the
specified protocol
a new default properties object |
translateAddressProperty | public static void translateAddressProperty(HsqlProperties p)(Code) | | 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.
Parameters: p - The properties object upon which to perform the translation |
translateDefaultDatabaseProperty | public static void translateDefaultDatabaseProperty(HsqlProperties p)(Code) | | Translates the legacy default database form: database=...
to the 1.7.2 form: database.0=...
Parameters: p - The properties object upon which to perform the translation |
translateDefaultNoSystemExitProperty | public static void translateDefaultNoSystemExitProperty(HsqlProperties p)(Code) | | Tranlates unspecified no_system_exit property to false, the default
typically required when a Server is started from the command line.
Parameters: p - The properties object upon which to perform the translation |
|
|