⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 property.java

📁 derby database source code.good for you.
💻 JAVA
📖 第 1 页 / 共 2 页
字号:
/*   Derby - Class org.apache.derby.iapi.reference.Property   Copyright 1998, 2004 The Apache Software Foundation or its licensors, as applicable.   Licensed under the Apache License, Version 2.0 (the "License");   you may not use this file except in compliance with the License.   You may obtain a copy of the License at      http://www.apache.org/licenses/LICENSE-2.0   Unless required by applicable law or agreed to in writing, software   distributed under the License is distributed on an "AS IS" BASIS,   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.   See the License for the specific language governing permissions and   limitations under the License. */package org.apache.derby.iapi.reference;/**	List of all properties understood by the system. It also has some other static fields.	<P>	This class exists for two reasons	<Ol>	<LI> To act as the internal documentation for the properties. 	<LI> To remove the need to declare a java static field for the property	name in the protocol/implementation class. This reduces the footprint as	the string is final and thus can be included simply as a String constant pool entry.	</OL>	<P>	This class should not be shipped with the product.	<P>	This class has no methods, all it contains are String's which by	are public, static and final since they are declared in an interface.*/public interface Property { 	/**	 * Name of the file that contains system wide properties. Has to be located	 * in ${derby.system.home} if set, otherwise ${user.dir}	 */	public static final String PROPERTIES_FILE = "derby.properties";	/**		By convention properties that must not be stored any persistent form of		service properties start with this prefix.	*/	public static final String PROPERTY_RUNTIME_PREFIX = "derby.__rt.";	/*	** derby.service.* and related properties	*/	/*	** derby.stream.* and related properties	*/		/**		derby.stream.error.logSeverityLevel=integerValue		<BR>		Indicates the minimum level of severity for errors that are reported to the error stream.		Default to 0 in a "sane" server, and SESSION_SEVERITY in the insane (and product) server.		@see org.apache.derby.iapi.error.ExceptionSeverity#SESSION_SEVERITY	*/	String LOG_SEVERITY_LEVEL = "derby.stream.error.logSeverityLevel";        /**		derby.stream.error.file=<absolute or relative error log filename>		Takes precendence over derby.stream.error.method.		Takes precendence over derby.stream.error.field	*/		String ERRORLOG_FILE_PROPERTY = "derby.stream.error.file";        /**		derby.stream.error.method=			<className>.<methodName> returning an OutputStream or Writer object		Takes precendence over derby.stream.error.field	*/		String ERRORLOG_METHOD_PROPERTY = "derby.stream.error.method";        /**		derby.stream.error.field=			<className>.<fieldName> returning an OutputStream or Writer object>	*/		String ERRORLOG_FIELD_PROPERTY = "derby.stream.error.field";	/** 	derby.infolog.append={true,false}	<BR>	* If the info stream goes to a file and the file already exist, it can	* either delete the existing file or append to it.  User can specifiy	* whether info log file should append or not by setting	* derby.infolog.append={true/false}	*	* The default behavior is that the exiting file will be deleted when a new	* info stream is started.  	*/	String LOG_FILE_APPEND = "derby.infolog.append";	/*	** derby.service.* and related properties	*/	/**		derby.system.home		<BR>		Property name for the home directory. Any relative path in the		system should be accessed though this property	*/	String SYSTEM_HOME_PROPERTY = "derby.system.home";	/**		derby.system.bootAll		<BR>		Automatically boot any services at start up time. When set to true		this services will  be booted at startup, otherwise services		will be booted on demand.	*/	String BOOT_ALL = "derby.system.bootAll";	/**		derby.database.noAutoBoot		<BR>		Don't automatically boot this service at start up time. When set to true		this service will only be booted on demand, otherwise the service		will be booted at startup time if possible.	*/	String NO_AUTO_BOOT = "derby.database.noAutoBoot";    	/**		derby.__deleteOnCreate		<BR>		Before creating this service delete any remenants (e.g. the directory)		of a previous service at the same location.		<P>		<B>INTERNAL USE ONLY</B> 	*/	String DELETE_ON_CREATE = "derby.__deleteOnCreate";	/**        derby.database.forceDatabaseLock		<BR>        Cloudscape attempts to prevent two instances of Cloudscape from booting        the same database with the use of a file called db.lck inside the         database directory.        On some platforms, Cloudscape can successfully prevent a second         instance of Cloudscape from booting the database, and thus prevents         corruption. If this is the case, you will see an SQLException like the        following:        ERROR XJ040: Failed to start database 'toursDB', see the next exception        for details.        ERROR XSDB6: Another instance of Cloudscape may have already booted the        database C:\databases\toursDB.        The error is also written to the information log.        On other platforms, Cloudscape issues a warning message if an instance        of Cloudscape attempts to boot a database that may already have a        running instance of Cloudscape attached to it.        However, it does not prevent the second instance from booting, and thus        potentially corrupting, the database.        If a warning message has been issued, corruption may already have         occurred.        NOTE: When you are using Cloudview, error messages appear in the         console or operating system window from which Cloudview was started.        The warning message looks like this:        WARNING: Cloudscape (instance 80000000-00d2-3265-de92-000a0a0a0200) is        attempting to boot the database /export/home/sky/wombat even though        Cloudscape (instance 80000000-00d2-3265-8abf-000a0a0a0200) may still be        active. Only one instance of Cloudscape        should boot a database at a time. Severe and non-recoverable corruption        can result and may have already occurred.        The warning is also written to the information log.        This warning is primarily a Technical Support aid to determine the         cause of corruption. However, if you see this warning, your best         choice is to close the connection and exit the JVM. This minimizes the        risk of a corruption. Close all instances of Cloudscape, then restart        one instance of Cloudscape and shut down the database properly so that        the db.lck file can be removed. The warning message continues to appear        until a proper shutdown of the Cloudscape system can delete the db.lck        file.        If the "derby.database.forceDatabaseLock" property is set to true        then this default behavior is altered on systems where cloudscape cannot        prevent this dual booting.  If the to true, then if the platform does        not provide the ability for cloudscape to guarantee no double boot, and        if cloudscape finds a db.lck file when it boots, it will throw an         exception (TODO - mikem - add what exception), leave the db.lck file        in place and not boot the system.  At this point the system will not         boot until the db.lck file is removed by hand.  Note that this         situation can arise even when 2 VM's are not accessing the same        cloudscape system.  Also note that if the db.lck file is removed by         hand while a VM is still accessing a derby.database, then there         is no way for cloudscape to prevent a second VM from starting up and         possibly corrupting the database.  In this situation no warning         message will be logged to the error log.        To disable the default behavior of the db.lck file set property as         follows:        derby.database.forceDatabaseLock=true	*/	String FORCE_DATABASE_LOCK = "derby.database.forceDatabaseLock";	/*	** derby.locks.* and related properties	*/	String LOCKS_INTRO = "derby.locks.";	/**		derby.locks.escalationThreshold		<BR>		The number of row locks on a table after which we escalate to		table locking.  Also used by the optimizer to decide when to		start with table locking.  The String value must be convertible		to an int.	 */	String LOCKS_ESCALATION_THRESHOLD = "derby.locks.escalationThreshold";	/**		The default value for LOCKS_ESCALATION_THRESHOLD	 */	int DEFAULT_LOCKS_ESCALATION_THRESHOLD = 5000;	/**		The minimum value for LOCKS_ESCALATION_THRESHOLD	 */	int MIN_LOCKS_ESCALATION_THRESHOLD = 100;	/**		Configuration parameter for deadlock timeouts, set in seconds.	*/	public static final String DEADLOCK_TIMEOUT = "derby.locks.deadlockTimeout";	/**		Default value for deadlock timesouts (20 seconds)	*/	public static final int DEADLOCK_TIMEOUT_DEFAULT = 20;	/**		Default value for wait timeouts (60 seconds)	*/	public static final int WAIT_TIMEOUT_DEFAULT = 60;	/**		Turn on lock monitor to help debug deadlocks.  Default value is OFF.		With this property turned on, all deadlocks will cause a tracing to be		output to the db2j.LOG file.		<BR>		This property takes effect dynamically.	 */	public static final String DEADLOCK_MONITOR = "derby.locks.monitor";	/**		Turn on deadlock trace to help debug deadlocks.                Effect 1: This property only takes effect if DEADLOCK_MONITOR is turned        ON for deadlock trace.  With this property turned on, each lock object        involved in a deadlock will output its stack trace to db2j.LOG.                Effect 2: When a timeout occurs, a lockTable dump will also be output        to db2j.LOG.  This acts independent of DEADLOCK_MONITOR.		<BR>		This property takes effect dynamically.	 */	public static final String DEADLOCK_TRACE = "derby.locks.deadlockTrace";	/**		Configuration parameter for lock wait timeouts, set in seconds.	*/	public static final String LOCKWAIT_TIMEOUT = "derby.locks.waitTimeout";	/*	** db2j.database.*	*/		/**		derby.database.classpath		<BR>		Consists of a series of two part jar names.	*/	String DATABASE_CLASSPATH = "derby.database.classpath";	/**		internal use only, passes the database classpathinto the class manager	*/	String BOOT_DB_CLASSPATH = PROPERTY_RUNTIME_PREFIX + "database.classpath";	/**		derby.database.propertiesOnly	*/	String DATABASE_PROPERTIES_ONLY = "derby.database.propertiesOnly";	/*	** derby.storage.*	*/    /**     * Creation of an access factory should be done with no logging.	 * This is a run-time property that should not make it to disk	 * in the service.properties file.     **/	public static final String CREATE_WITH_NO_LOG =		PROPERTY_RUNTIME_PREFIX + "storage.createWithNoLog";    /**     * The page size to create a table or index with.  Must be a multiple     * of 2k, usual choices are: 2k, 4k, 8k, 16k, 32k, 64k.  The default     * if property is not set is 4k.     **/    public static final String PAGE_SIZE_PARAMETER = "derby.storage.pageSize";    /**     * The default page size to use for tables that contain a long column.     **/    public static final String PAGE_SIZE_DEFAULT_LONG = "32768";    /**     * The bump threshold for pages sizes for create tables     * If the approximate column sizes of a table is greater than this     * threshold, the page size for the tbl is bumped to PAGE_SIZE_DEFAULT_LONG     * provided the page size is not already specified as a property     **/    public static final int TBL_PAGE_SIZE_BUMP_THRESHOLD = 4096;    /**     * The bump threshold for pages size for index.     * If the approximate key columns of an index is greater than this     * threshold, the page size for the index is bumped to PAGE_SIZE_DEFAULT_LONG     * provided the page size is not already specified as a property     **/    public static final int IDX_PAGE_SIZE_BUMP_THRESHOLD = 1024;    /**     * In cloudscape products which support Row Level Locking (rll), use this      * property to disable rll.  Application's which use rll will use more      * system resources, so if an application knows that it does not need rll      * then it can use this system property to force all locking in the system      * to lock at the table level.     *      * This property can be set to the boolean values "true" or "false".  

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -