Top Description Fields Constructors Methods
org.hsqldb.server

public Class ServerProperties

extends HsqlProperties
Class Inheritance
Imports
java.io.File, .FileInputStream, .IOException, java.util.Enumeration, org.hsqldb.lib.HashMap, .IntKeyHashMap, .Iterator, .OrderedHashSet, org.hsqldb.persist.HsqlProperties

A subclass HsqlProperties with functionality needed for the HSQLDB Server implementations.

A property object is checked once and all the errors are stored in collections to be used Meta records specify accepted keys and policies for the expected values.

Policy for defaults:

If a range is specified in the Meta record, then the value is checked against the range.

If a set of values specified in the Meta record, then the value is checked against the set.

Author
Fred Toussi (fredt@users dot sourceforge.net)
Since
1.9.0
Version
2.7.4

Field Summary

Modifier and TypeField and Description
pack-priv IntKeyHashMap<String>
pack-priv IntKeyHashMap<String>
protected boolean
pack-priv static final OrderedHashSet<String>
pack-priv final int
pack-priv static final String
pack-priv static final String
pack-priv static final String
pack-priv static final String
pack-priv static final String
pack-priv static final String
pack-priv static final String
pack-priv static final String
pack-priv static final String
pack-priv static final String
pack-priv static final String
pack-priv static final String
pack-priv static final String
pack-priv static final String
pack-priv static final String
pack-priv static final String
pack-priv static final String
pack-priv static final String
pack-priv static final String
pack-priv static final String
pack-priv static final String
pack-priv static final String
pack-priv static final String
pack-priv static final String
pack-priv static final int
pack-priv static final int
pack-priv static final HashMap<String, HsqlProperties.PropertyMeta>
pack-priv static final int
Inherited from org.hsqldb.persist.HsqlProperties:
ANY_ERRORerrorCodeserrorKeysfafileExtensionfileNameNO_VALUE_FOR_KEYstringProps

Constructor Summary

AccessConstructor and Description
public
ServerProperties(int protocol, File file)

pack-priv
ServerProperties(int protocol)

pack-priv
ServerProperties(int protocol, String path, String extension)

Method Summary

Modifier and TypeMethod and Description
pack-priv HsqlProperties.PropertyMeta
public void
validate()

Overrides org.hsqldb.persist.HsqlProperties.validate.

Validates according to Meta map, and sets System Properties for those properties with names matching the requisite pattern.

pack-priv String
validateMultiProperty(String key, HsqlProperties.PropertyMeta meta)

Checks an alias or database path.

pack-priv String
validateSystemProperty(String key, HsqlProperties.PropertyMeta meta)

System properties are currently not checked, as different libraries in the environment may need different names?

Inherited from org.hsqldb.persist.HsqlProperties:
addErroraddPropertiesaddPropertiesargArrayToPropsdelimitedArgPairsToPropsgetErrorKeysgetIntegerPropertygetIntegerPropertygetPropertiesgetPropertygetPropertyisEmptyisPropertyTrueisPropertyTrueloadnewMetanewMetanewMetanewMetanewMetanewMetapropertiesFileExistspropertyNamesremovePropertysavesavesetFileNamesetPropertysetPropertysetPropertysetPropertyIfNotExiststoStringvalidateProperty

Field Detail

idToAliasMapback to summary
pack-priv IntKeyHashMap<String> idToAliasMap
idToPathMapback to summary
pack-priv IntKeyHashMap<String> idToPathMap
initialisedback to summary
protected boolean initialised
prefixesback to summary
pack-priv static final OrderedHashSet<String> prefixes
protocolback to summary
pack-priv final int protocol
sc_default_web_mimeback to summary
pack-priv static final String sc_default_web_mime
sc_default_web_pageback to summary
pack-priv static final String sc_default_web_page
sc_default_web_rootback to summary
pack-priv static final String sc_default_web_root
sc_key_aclback to summary
pack-priv static final String sc_key_acl
sc_key_addressback to summary
pack-priv static final String sc_key_address
sc_key_autorestart_serverback to summary
pack-priv static final String sc_key_autorestart_server
sc_key_daemonback to summary
pack-priv static final String sc_key_daemon
sc_key_databaseback to summary
pack-priv static final String sc_key_database
sc_key_dbnameback to summary
pack-priv static final String sc_key_dbname
sc_key_http_portback to summary
pack-priv static final String sc_key_http_port
sc_key_max_connectionsback to summary
pack-priv static final String sc_key_max_connections
sc_key_max_databasesback to summary
pack-priv static final String sc_key_max_databases
sc_key_max_waitback to summary
pack-priv static final String sc_key_max_wait
sc_key_no_system_exitback to summary
pack-priv static final String sc_key_no_system_exit
sc_key_portback to summary
pack-priv static final String sc_key_port
sc_key_prefixback to summary
pack-priv static final String sc_key_prefix
sc_key_propsback to summary
pack-priv static final String sc_key_props
sc_key_remote_open_dbback to summary
pack-priv static final String sc_key_remote_open_db
sc_key_silentback to summary
pack-priv static final String sc_key_silent
sc_key_systemback to summary
pack-priv static final String sc_key_system
sc_key_tlsback to summary
pack-priv static final String sc_key_tls
sc_key_traceback to summary
pack-priv static final String sc_key_trace
sc_key_web_default_pageback to summary
pack-priv static final String sc_key_web_default_page
sc_key_web_rootback to summary
pack-priv static final String sc_key_web_root
SERVER_MULTI_PROPERTYback to summary
pack-priv static final int SERVER_MULTI_PROPERTY
SERVER_PROPERTYback to summary
pack-priv static final int SERVER_PROPERTY
serverMetaback to summary
pack-priv static final HashMap<String, HsqlProperties.PropertyMeta> serverMeta
SYSTEM_PROPERTYback to summary
pack-priv static final int SYSTEM_PROPERTY

Constructor Detail

ServerPropertiesback to summary
public ServerProperties(int protocol, File file) throws IOException
ServerPropertiesback to summary
pack-priv ServerProperties(int protocol)
ServerPropertiesback to summary
pack-priv ServerProperties(int protocol, String path, String extension)

Method Detail

getPrefixedMetadataback to summary
pack-priv HsqlProperties.PropertyMeta getPrefixedMetadata(String key)
validateback to summary
public void validate()

Overrides org.hsqldb.persist.HsqlProperties.validate.

Validates according to Meta map, and sets System Properties for those properties with names matching the requisite pattern.

validateMultiPropertyback to summary
pack-priv String validateMultiProperty(String key, HsqlProperties.PropertyMeta meta)

Checks an alias or database path. Duplicates are checked as duplicate numbering may result from different strings (e.g. 02 and 2).

validateSystemPropertyback to summary
pack-priv String validateSystemProperty(String key, HsqlProperties.PropertyMeta meta)

System properties are currently not checked, as different libraries in the environment may need different names?