Segments are identified by integer identifiers that are unique within a RawStoreFactory.
Containers are also identified by unique integer identifiers within a RawStoreFactory, but will overlap with segment identifiers.
LIMITS
This is a list of (hopefully) all limits within the raw store. Where a size
has more than one limit all are documented (rather than just the most
restrictive) so that the correct limit can be found if the most restictive
is every removed.
Access and RawStore work together to provide the ACID properties of transactions. On a high level, RawStore deals with anything that directly impacts persistency. On a more detailed level, RawStore provides logging, rollback and recovery, data management on page, page allocation and deallocation, container allocation and deallocation.
RawStore is organized as 3 branches, transaction, data, and logging. These branches each have its own "factory", the transaction factory hands out transactions, the data factory hands out containers, and the log factory hands out logger (or log buffers) for transactions to write on. For a more detailed description on these factories, please see their corresponding javadocs. MT - Thread Safe
ContainerHandle
| Modifier and Type | Field and Description |
|---|---|
| public static final int | CONTAINER_CACHE_SIZE_DEFAULT
Default value for CONTAINER_CACHE_SIZE_PARAMETER (100). |
| public static final int | CONTAINER_CACHE_SIZE_MAXIMUM
Maximum container cache size we will accept (MAXINT). |
| public static final int | CONTAINER_CACHE_SIZE_MINIMUM
Minimum container cache size accepted (2). |
| public static final String | CONTAINER_CACHE_SIZE_PARAMETER
Property name for the number of open files to maintain associated with the page cache. |
| public static final String | CONTAINER_INITIAL_PAGES
Property name for container which attempts to be created with an initial size of this many pages. |
| public static final String | CRYPTO_OLD_EXTERNAL_KEY_VERIFY_FILE
A File used to save the old copy of the verify key (Attribute.CRYPTO_EXTERNAL_KEY_VERIFY_FILE) file during re-encryption of the database. |
| public static final String | DATA_ENCRYPT_ALGORITHM_VERSION
This variable is used to store the encryption scheme to allow for any future changes in encryption schemes of data This property has been introduced in version 10 Value starts at 1 |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final String | DB_ENCRYPTION_STATUS
Tracks the status of any database-wide cryptographic operations. |
| public static final int | DEFAULT_ENCRYPTION_BLOCKSIZE
default encryption block size In old existing databases (ie 5.1.x), the default encryption block size used is 8. |
| public static final int | DERBY_STORE_MAJOR_VERSION_10
Derby 10 Store Major version |
| public static final int | DERBY_STORE_MINOR_VERSION_1
Derby Store Minor Version (1) |
| public static final int | DERBY_STORE_MINOR_VERSION_10
Derby Store Minor Version (10) |
| public static final int | DERBY_STORE_MINOR_VERSION_2
Derby Store Minor Version (2) |
| public static final int | DERBY_STORE_MINOR_VERSION_3
Derby Store Minor Version (3) |
| public static final int | DERBY_STORE_MINOR_VERSION_4
Derby Store Minor Version (4) |
| public static final String | ENCRYPTED_KEY
If dataEncryption is true, store the encrypted key in services.properties file. |
| public static final int | ENCRYPTION_ALIGNMENT
encryption alignment requirement. |
| public static final String | ENCRYPTION_BLOCKSIZE
encryption block size used during creation of encrypted database This property is not set by the user; it is set by the engine when RawStore boots up during creation of an encrypted database |
| public static final String | KEEP_TRANSACTION_LOG
for debugging, keep all transaction logs intact. |
| public static final String | LOG_ENCRYPT_ALGORITHM_VERSION
Store the encryption scheme used for logging This will allow for any future changes in encryption schemes of logs This variable has been introduced in version 10 and value starts at 1. |
| public static final short | MAX_CONTAINER_INITIAL_PAGES
Maximum number of initial pages when a container is created |
| public static final int | MINIMUM_RECORD_SIZE_DEFAULT
Default value for MINIMUM_RECORD_SIZE_PARAMETER for heap tables that allow overflow. |
| public static final int | MINIMUM_RECORD_SIZE_MINIMUM
Minimum value for MINIMUM_RECORD_SIZE_PARAMETER (1). |
| public static final String | MINIMUM_RECORD_SIZE_PARAMETER
Property name for the default minimum record size to be used in the storage area. |
| public static final String | MODULE
module name |
| public static final String | OLD_ENCRYPTED_KEY
When the datbase is getting re-encrypted old encrypted key is stored in the service.properties until re-encyrption successfully completes or rolled back. |
| public static final int | PAGE_CACHE_SIZE_DEFAULT
Default value for PAGE_CACHE_SIZE_PARAMETER (1000). |
| public static final int | PAGE_CACHE_SIZE_MAXIMUM
Maximum page cache size we will accept (MAXINT). |
| public static final int | PAGE_CACHE_SIZE_MINIMUM
Minimum page cache size we will accept (40). |
| public static final String | PAGE_CACHE_SIZE_PARAMETER
Property name for the page cache size to be used in the storage area. |
| public static final String | PAGE_RESERVED_SPACE_PARAMETER
Property name for percentage of space to leave free on page for updates. |
| public static final String | |
| public static final String | PAGE_REUSABLE_RECORD_ID
Property name for container which reuses recordId when a page is reused. |
| public static final int | PAGE_SIZE_DEFAULT
Default value for PAGE_SIZE_PARAMETER (4096). |
| public static final int | PAGE_SIZE_MINIMUM
Minimum page size we will accept (1024). |
| public static final String | |
| public static final String | PATCH_INITPAGE_RECOVER_ERROR
The following is a to enable patch for databases with recovery errors during redo of InitPage. |
| public static final String | PRE_ALLOCATE_PAGE
Property name for the number of pages we try to pre-allocate in one /** synchronous I/O |
| public static final int | STREAM_FILE_BUFFER_SIZE_DEFAULT
Default value for STREAM_FILE_BUFFER_SIZE_PARAMETER (16384). |
| public static final int | STREAM_FILE_BUFFER_SIZE_MAXIMUM
Maximum stream file buffer size we will accept (MAXINT). |
| public static final int | STREAM_FILE_BUFFER_SIZE_MINIMUM
Minimum stream file buffer size we will accept (1024). |
| public static final String | STREAM_FILE_BUFFER_SIZE_PARAMETER
Property name for buffer size to be used in the stream file container. |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | backupAndEnableLogArchiveMode(String
the directory name where the
database backup should go. This
directory will be created if not it
does not exist. backupDir, boolean If true deletes online archived log
files that exist before this backup,
delete will occur only after backup
is complete. deleteOnlineArchivedLogFiles, boolean if true, waits for all the backup blocking
operations in progress to finish. wait)Backup the database to a backup directory and enable the log archive mode that will keep the archived log files required for roll-forward from this version backup. |
| public Serializable | |
| public void | |
| public boolean | Returns: true if the database has been upgraded to
the required level, false otherwise.required database Engine major version requiredMajorVersion, int required database Engine minor version requiredMinorVersion, String Non-null to throw an exception, null to
return the state of the version match. feature)Check to see if a database has been upgraded to the required level in order to use a store feature. |
| public void | createDataWarningFile()
Use the available storage factory handle to create a readme file in "seg0" directory warning users to not edit/delete any files in the directory to avoid database corruption. |
| public void | |
| public int | decrypt(byte[] ciphertext, int offset, int length, byte[] cleartext, int outputOffset)
Decrypt cleartext from ciphertext. |
| public void | disableLogArchiveMode(boolean
If true deletes all online archived
log files that exist before this
call immediately; Only restore that
can be performed after disabling
log archive mode is version
recovery. deleteOnlineArchivedLogFiles)disables the log archival process, i.e No old log files will be kept around for a roll-forward recovery. |
| public int | encrypt(byte[] cleartext, int offset, int length, byte[] ciphertext, int outputOffset, boolean newEngine)
Encrypt cleartext into ciphertext. |
| public void | |
| public Transaction | findUserTransaction(ContextManager
the context manager to use. An exception will be
thrown if context is not the current context. contextMgr, String If a new transaction is started, it will be given
this name.
The name is displayed in the transactiontable VTI. transName)Find a user transaction in the context manager, which must be the current context manager. |
| public void | |
| public void | |
| public DaemonService | |
| public String | |
| public int | getEncryptionBlockSize()
Returns the encryption block size used during creation of the encrypted database |
| public LockFactory | |
| public String | |
| public long | Returns: The an id which can be used to create a container.Return an id which can be used to create a container. |
| public void | |
| public String | |
| public TransactionInfo[] | |
| public TransactionFactory | |
| public Object | |
| public void | |
| public boolean | |
| public ScanHandle | openFlushedScan(DatabaseInstant
The instant for the beginning of the scan. start, int log record groups the caller wants to scan. groupsIWant)Get a flushed scan. |
| public int | random()
Returns a secure random number for this raw store - if database is not encrypted, returns 0. |
| public void | |
| public Transaction | startGlobalTransaction(ContextManager
is the context manager to use. An exception will be
thrown if context is not the current context. contextMgr, int the format id part of the Xid - ie. Xid.getFormatId(). format_id, byte[] the global transaction identifier part of XID - ie.
Xid.getGlobalTransactionId(). global_id, byte[] The branch qualifier of the Xid - ie.
Xid.getBranchQaulifier() local_id)Create a global user transaction, almost all work within the raw store is performed in the context of a transaction. |
| public Transaction | |
| public Transaction | startNestedReadOnlyUserTransaction(Transaction
parent transaction parentTransaction, CompatibilitySpace compatibility space to use for locks. compatibilitySpace, ContextManager is the context manager to use. An exception will be
thrown if context is not the current context. contextMgr, String is the name of the transaction. This name will be
displayed by the transactiontable VTI. transName)Create a nested user transaction, almost all work within the raw store is performed in the context of a transaction. |
| public Transaction | startNestedUpdateUserTransaction(Transaction
parent transaction parentTransaction, ContextManager is the context manager to use. An exception will be
thrown if context is not the current context. contextMgr, String is the name of the transaction. This name will be
displayed by the transactiontable VTI. transName, boolean By default should the transaction
commit and abort be synced to the log. Normal usage should pick true,
unless there is specific performance need and usage works correctly if
a commit can be lost on system crash. flush_log_on_xact_end)Create a nested user transaction, almost all work within the raw store is performed in the context of a transaction. |
| public void | startReplicationMaster(String
The master database that is being replicated. dbmaster, String The hostname for the slave host, int The port the slave is listening on port, String The type of replication contract.
Currently only asynchronous replication is supported, but
1-safe/2-safe/very-safe modes may be added later. replicationMode)Start the replication master role for this database |
| public Transaction | startTransaction(ContextManager
is the context manager to use. An exception will be
thrown if context is not the current context. contextMgr, String is the name of the transaction. Thsi name will be displayed
by the transactiontable VTI. transName)Create a user transaction, almost all work within the raw store is performed in the context of a transaction. |
| public void | |
| public void | |
| public void |
| CONTAINER_CACHE_SIZE_DEFAULT | back to summary |
|---|---|
| public static final int CONTAINER_CACHE_SIZE_DEFAULT Default value for CONTAINER_CACHE_SIZE_PARAMETER (100). | |
| CONTAINER_CACHE_SIZE_MAXIMUM | back to summary |
|---|---|
| public static final int CONTAINER_CACHE_SIZE_MAXIMUM Maximum container cache size we will accept (MAXINT). | |
| CONTAINER_CACHE_SIZE_MINIMUM | back to summary |
|---|---|
| public static final int CONTAINER_CACHE_SIZE_MINIMUM Minimum container cache size accepted (2). | |
| CONTAINER_CACHE_SIZE_PARAMETER | back to summary |
|---|---|
| public static final String CONTAINER_CACHE_SIZE_PARAMETER Property name for the number of open files to maintain associated with the page cache. Internally this is referred to as the "ContainerCache". Each object in this cache maps to a java level "open" file on a file in the database directory. Although actual implementation depends on JVM implementation, this usually maps to underlying open file resources in the underlying operating system. Setting this number too high may result in I/O failures reported by Derby, which are the result of hitting some user and/or OS limit on the number of open files allowed. These I/O errors may happen during read, write and/or open operations. Sometimes these limits can be avoided simply by executing an OS specific command to raise the maximum open files allowed by whatever mechanism is used to control resources allowed to be consumed by the JVM. Derby may also open other files separate from this cache, so exausting the open file resource may cause other operations than I/O to data pages to fail. A partial list of these operations includes: recovery logging, error logging, external sorting, and LOB disk overflow. The default maximum size of this cache is 100 open files. The minimum size of this cache is 2 open files, attempting to set this cache to a smaller size or a negative number will result in a size 2 cache. Setting the cache size to a number bigger than an INT, or any sort of illegal format number will result in a cache size of 100 open files. Equal to 'derby.storage.fileCacheSize' | |
| CONTAINER_INITIAL_PAGES | back to summary |
|---|---|
| public static final String CONTAINER_INITIAL_PAGES Property name for container which attempts to be created with an
initial size of this many pages. Defaults to 1 page.
| |
| CRYPTO_OLD_EXTERNAL_KEY_VERIFY_FILE | back to summary |
|---|---|
| public static final String CRYPTO_OLD_EXTERNAL_KEY_VERIFY_FILE A File used to save the old copy of the verify key (Attribute.CRYPTO_EXTERNAL_KEY_VERIFY_FILE) file during re-encryption of the database. | |
| DATA_ENCRYPT_ALGORITHM_VERSION | back to summary |
|---|---|
| public static final String DATA_ENCRYPT_ALGORITHM_VERSION This variable is used to store the encryption scheme to allow for any future changes in encryption schemes of data This property has been introduced in version 10 Value starts at 1 | |
| DB_ENCRYPTION_IN_CLEANUP | back to summary |
|---|---|
| public static final int DB_ENCRYPTION_IN_CLEANUP | |
| DB_ENCRYPTION_IN_PROGRESS | back to summary |
|---|---|
| public static final int DB_ENCRYPTION_IN_PROGRESS | |
| DB_ENCRYPTION_IN_UNDO | back to summary |
|---|---|
| public static final int DB_ENCRYPTION_IN_UNDO | |
| DB_ENCRYPTION_STATUS | back to summary |
|---|---|
| public static final String DB_ENCRYPTION_STATUS Tracks the status of any database-wide cryptographic operations. The relevant operations are encryption, re-encryption and decryption. THe property is required to be able to bring the database back to state it was in before the cryptographic operation started in case the transformation of the database is aborted. | |
| DEFAULT_ENCRYPTION_BLOCKSIZE | back to summary |
|---|---|
| public static final int DEFAULT_ENCRYPTION_BLOCKSIZE default encryption block size In old existing databases (ie 5.1.x), the default encryption block size used is 8. Do not change this value unless you account for downgrade issues | |
| DERBY_STORE_MAJOR_VERSION_10 | back to summary |
|---|---|
| public static final int DERBY_STORE_MAJOR_VERSION_10 Derby 10 Store Major version | |
| DERBY_STORE_MINOR_VERSION_1 | back to summary |
|---|---|
| public static final int DERBY_STORE_MINOR_VERSION_1 Derby Store Minor Version (1) | |
| DERBY_STORE_MINOR_VERSION_10 | back to summary |
|---|---|
| public static final int DERBY_STORE_MINOR_VERSION_10 Derby Store Minor Version (10) | |
| DERBY_STORE_MINOR_VERSION_2 | back to summary |
|---|---|
| public static final int DERBY_STORE_MINOR_VERSION_2 Derby Store Minor Version (2) | |
| DERBY_STORE_MINOR_VERSION_3 | back to summary |
|---|---|
| public static final int DERBY_STORE_MINOR_VERSION_3 Derby Store Minor Version (3) | |
| DERBY_STORE_MINOR_VERSION_4 | back to summary |
|---|---|
| public static final int DERBY_STORE_MINOR_VERSION_4 Derby Store Minor Version (4) | |
| ENCRYPTED_KEY | back to summary |
|---|---|
| public static final String ENCRYPTED_KEY If dataEncryption is true, store the encrypted key in services.properties file. It is really the encrypted key, but the property key is called the encryptedBootPassword. | |
| ENCRYPTION_ALIGNMENT | back to summary |
|---|---|
| public static final int ENCRYPTION_ALIGNMENT encryption alignment requirement. | |
| ENCRYPTION_BLOCKSIZE | back to summary |
|---|---|
| public static final String ENCRYPTION_BLOCKSIZE encryption block size used during creation of encrypted database This property is not set by the user; it is set by the engine when RawStore boots up during creation of an encrypted database | |
| KEEP_TRANSACTION_LOG | back to summary |
|---|---|
| public static final String KEEP_TRANSACTION_LOG for debugging, keep all transaction logs intact. | |
| LOG_ENCRYPT_ALGORITHM_VERSION | back to summary |
|---|---|
| public static final String LOG_ENCRYPT_ALGORITHM_VERSION Store the encryption scheme used for logging This will allow for any future changes in encryption schemes of logs This variable has been introduced in version 10 and value starts at 1. | |
| MAX_CONTAINER_INITIAL_PAGES | back to summary |
|---|---|
| public static final short MAX_CONTAINER_INITIAL_PAGES Maximum number of initial pages when a container is created | |
| MINIMUM_RECORD_SIZE_DEFAULT | back to summary |
|---|---|
| public static final int MINIMUM_RECORD_SIZE_DEFAULT Default value for MINIMUM_RECORD_SIZE_PARAMETER for heap tables that allow overflow. By setting minimumRecordSize to 12 bytes, we guarantee there is enough space to update the a head row even if there is not enough space on the page. The 12 bytes of user data along with the existing space in the record header will guarantee there is room to write an overflow row header which will use the same initial portion of the record header and at most 12 additional bytes for an overflow pointer (page + id). Note that this is the "user" portion of the record. The record also will contain space for the "non-user" portion which includes the offset table and the record header. | |
| MINIMUM_RECORD_SIZE_MINIMUM | back to summary |
|---|---|
| public static final int MINIMUM_RECORD_SIZE_MINIMUM Minimum value for MINIMUM_RECORD_SIZE_PARAMETER (1). | |
| MINIMUM_RECORD_SIZE_PARAMETER | back to summary |
|---|---|
| public static final String MINIMUM_RECORD_SIZE_PARAMETER Property name for the default minimum record size to be used in the storage area. Minimum record size is the minimum number of bytes that a record will reserve on disk. | |
| MODULE | back to summary |
|---|---|
| public static final String MODULE module name | |
| OLD_ENCRYPTED_KEY | back to summary |
|---|---|
| public static final String OLD_ENCRYPTED_KEY When the datbase is getting re-encrypted old encrypted key is stored in the service.properties until re-encyrption successfully completes or rolled back. It is really the old encryptedkey, but the property key is called the OldEncryptedBootPassword. | |
| PAGE_CACHE_SIZE_DEFAULT | back to summary |
|---|---|
| public static final int PAGE_CACHE_SIZE_DEFAULT Default value for PAGE_CACHE_SIZE_PARAMETER (1000). | |
| PAGE_CACHE_SIZE_MAXIMUM | back to summary |
|---|---|
| public static final int PAGE_CACHE_SIZE_MAXIMUM Maximum page cache size we will accept (MAXINT). | |
| PAGE_CACHE_SIZE_MINIMUM | back to summary |
|---|---|
| public static final int PAGE_CACHE_SIZE_MINIMUM Minimum page cache size we will accept (40). | |
| PAGE_CACHE_SIZE_PARAMETER | back to summary |
|---|---|
| public static final String PAGE_CACHE_SIZE_PARAMETER Property name for the page cache size to be used in the storage area. Equal to 'derby.storage.pageCacheSize' | |
| PAGE_RESERVED_SPACE_PARAMETER | back to summary |
|---|---|
| public static final String PAGE_RESERVED_SPACE_PARAMETER Property name for percentage of space to leave free on page for updates. | |
| PAGE_RESERVED_ZERO_SPACE_STRING | back to summary |
|---|---|
| public static final String PAGE_RESERVED_ZERO_SPACE_STRING | |
| PAGE_REUSABLE_RECORD_ID | back to summary |
|---|---|
| public static final String PAGE_REUSABLE_RECORD_ID Property name for container which reuses recordId when a page is reused. Defaults to false, which means recordId is never reused. This property should NOT be set by the end user, only Access should set it for special conglomerates which does not count on permanant unique recordIds for all records. | |
| PAGE_SIZE_DEFAULT | back to summary |
|---|---|
| public static final int PAGE_SIZE_DEFAULT Default value for PAGE_SIZE_PARAMETER (4096). | |
| PAGE_SIZE_MINIMUM | back to summary |
|---|---|
| public static final int PAGE_SIZE_MINIMUM Minimum page size we will accept (1024). | |
| PAGE_SIZE_STRING | back to summary |
|---|---|
| public static final String PAGE_SIZE_STRING | |
| PATCH_INITPAGE_RECOVER_ERROR | back to summary |
|---|---|
| public static final String PATCH_INITPAGE_RECOVER_ERROR The following is a to enable patch for databases with recovery errors during redo of InitPage. If this property is set and the page on the disk is corrupted and is getting exceptions like invalid page format ids, we cook up the page during the recovery time. We have seen this kind of problem with 1.5.1 databases from customer Tridium ( Bug no: 3813). This patch needs to be kept unless we find the problem is during recovery process. If we discover this problem is actaully happening at the recovery then this patch should be backed out. | |
| PRE_ALLOCATE_PAGE | back to summary |
|---|---|
| public static final String PRE_ALLOCATE_PAGE Property name for the number of pages we try to pre-allocate in one /** synchronous I/O | |
| STREAM_FILE_BUFFER_SIZE_DEFAULT | back to summary |
|---|---|
| public static final int STREAM_FILE_BUFFER_SIZE_DEFAULT Default value for STREAM_FILE_BUFFER_SIZE_PARAMETER (16384). | |
| STREAM_FILE_BUFFER_SIZE_MAXIMUM | back to summary |
|---|---|
| public static final int STREAM_FILE_BUFFER_SIZE_MAXIMUM Maximum stream file buffer size we will accept (MAXINT). | |
| STREAM_FILE_BUFFER_SIZE_MINIMUM | back to summary |
|---|---|
| public static final int STREAM_FILE_BUFFER_SIZE_MINIMUM Minimum stream file buffer size we will accept (1024). | |
| STREAM_FILE_BUFFER_SIZE_PARAMETER | back to summary |
|---|---|
| public static final String STREAM_FILE_BUFFER_SIZE_PARAMETER Property name for buffer size to be used in the stream file container. Equal to 'derby.storage.streamFileBufferSize' | |
| backup | back to summary |
|---|---|
| public void backup(String backupDir, boolean wait) throws StandardException Backup the database to backupDir. Please see Derby on line documentation on backup and restore.
| |
| backupAndEnableLogArchiveMode | back to summary |
|---|---|
| public void backupAndEnableLogArchiveMode(String backupDir, boolean deleteOnlineArchivedLogFiles, boolean wait) throws StandardException Backup the database to a backup directory and enable the log archive mode that will keep the archived log files required for roll-forward from this version backup.
| |
| changeBootPassword | back to summary |
|---|---|
| public Serializable changeBootPassword(Properties properties, Serializable changePassword) throws StandardException Change the boot password. Return the encrypted form of the secret key. The new value must be a String of the form: oldBootPassword, newBootPassword
| |
| checkpoint | back to summary |
|---|---|
| public void checkpoint() throws StandardException Checkpoint the database. The raw store will wait for any current checkpoints to complete. It will start a new checkpoint and not return until that checkpoint completes.
| |
| checkVersion | back to summary |
|---|---|
| public boolean checkVersion(int requiredMajorVersion, int requiredMinorVersion, String feature) throws StandardException Check to see if a database has been upgraded to the required level in order to use a store feature.
| |
| createDataWarningFile | back to summary |
|---|---|
| public void createDataWarningFile() throws StandardException Use the available storage factory handle to create a readme file in "seg0" directory warning users to not edit/delete any files in the directory to avoid database corruption. | |
| createFinished | back to summary |
|---|---|
| public void createFinished() throws StandardException | |
| decrypt | back to summary |
|---|---|
| public int decrypt(byte[] ciphertext, int offset, int length, byte[] cleartext, int outputOffset) throws StandardException Decrypt cleartext from ciphertext.
| |
| disableLogArchiveMode | back to summary |
|---|---|
| public void disableLogArchiveMode(boolean deleteOnlineArchivedLogFiles) throws StandardException disables the log archival process, i.e No old log files will be kept around for a roll-forward recovery.
| |
| encrypt | back to summary |
|---|---|
| public int encrypt(byte[] cleartext, int offset, int length, byte[] ciphertext, int outputOffset, boolean newEngine) throws StandardException Encrypt cleartext into ciphertext.
| |
| failover | back to summary |
|---|---|
| public void failover(String dbname) throws StandardException Start failover for this database.
| |
| findUserTransaction | back to summary |
|---|---|
| public Transaction findUserTransaction(ContextManager contextMgr, String transName) throws StandardException Find a user transaction in the context manager, which must be the current context manager. If a user transaction does not already exist, then create one @see #startTransaction
| |
| freeze | back to summary |
|---|---|
| public void freeze() throws StandardException Freeze the database temporarily so a backup can be taken. Please see Derby on line documentation on backup and restore.
| |
| freezePersistentStore | back to summary |
|---|---|
| public void freezePersistentStore() throws StandardException Freeze the database from altering any persistent storage.
| |
| getDaemon | back to summary |
|---|---|
| public DaemonService getDaemon() If this raw store has a daemon that services its need, return the daemon. If not, return null | |
| getDataFactoryModule | back to summary |
|---|---|
| public String getDataFactoryModule() | |
| getEncryptionBlockSize | back to summary |
|---|---|
| public int getEncryptionBlockSize() Returns the encryption block size used during creation of the encrypted database | |
| getLockFactory | back to summary |
|---|---|
| public LockFactory getLockFactory() Get the LockFactory to use with this store. | |
| getLogFactoryModule | back to summary |
|---|---|
| public String getLogFactoryModule() | |
| getMaxContainerId | back to summary |
|---|---|
| public long getMaxContainerId() throws StandardException Return an id which can be used to create a container. Return an id number with is greater than any existing container in the current database. Caller will use this to allocate future container numbers - most likely caching the value and then incrementing it as it is used.
| |
| getRawStoreProperties | back to summary |
|---|---|
| public void getRawStoreProperties(PersistentSet tc) throws StandardException Get JBMS properties relevant to raw store
| |
| getTransactionFactoryModule | back to summary |
|---|---|
| public String getTransactionFactoryModule() | |
| getTransactionInfo | back to summary |
|---|---|
| public TransactionInfo[] getTransactionInfo() | |
| getXactFactory | back to summary |
|---|---|
| public TransactionFactory getXactFactory() Get the Transaction Factory to use with this store. | |
| getXAResourceManager | back to summary |
|---|---|
| public Object getXAResourceManager() throws StandardException | |
| idle | back to summary |
|---|---|
| public void idle() throws StandardException Idle the raw store as much as possible.
| |
| isReadOnly | back to summary |
|---|---|
| public boolean isReadOnly() Is the store read-only. | |
| openFlushedScan | back to summary |
|---|---|
| public ScanHandle openFlushedScan(DatabaseInstant start, int groupsIWant) throws StandardException Get a flushed scan.
| |
| random | back to summary |
|---|---|
| public int random() Returns a secure random number for this raw store - if database is not encrypted, returns 0. | |
| setUndoInsertEventHandler | back to summary |
|---|---|
| public void setUndoInsertEventHandler(UndoHandler undo_handle) throws StandardException Register a handler class for insert undo events. Register a class to be called when an undo of an insert is executed. When an undo of an event is executed by the raw store UndoHandler.insertUndoNotify() will be called, allowing upper level callers to execute code as necessary. The initial need is for the access layer to be able to queue post commit reclaim space in the case of inserts which are aborted (including the normal case of inserts failed for duplicate key violations) (see DERBY-4057)
| |
| startGlobalTransaction | back to summary |
|---|---|
| public Transaction startGlobalTransaction(ContextManager contextMgr, int format_id, byte[] global_id, byte[] local_id) throws StandardException Create a global user transaction, almost all work within the raw store is performed in the context of a transaction. The (format_id, global_id, branch_id) triplet is meant to come exactly from a javax.transaction.xa.Xid. We don't use Xid so that the system can be delivered on a non-1.2 vm system and not require the javax classes in the path. Starting a transaction always performs the following steps.
Raw Store Transaction Context Behaviour
| |
| startInternalTransaction | back to summary |
|---|---|
| public Transaction startInternalTransaction(ContextManager contextMgr) throws StandardException Create an internal transaction. Starting an internal transaction always performs the following steps.
AN internal transaction is identical to a user transaction with the exception that
Raw Store Internal Transaction Context Behaviour
| |
| startNestedReadOnlyUserTransaction | back to summary |
|---|---|
| public Transaction startNestedReadOnlyUserTransaction(Transaction parentTransaction, CompatibilitySpace compatibilitySpace, ContextManager contextMgr, String transName) throws StandardException Create a nested user transaction, almost all work within the raw store is performed in the context of a transaction. A nested user transaction is exactly the same as a user transaction, except that one can specify a compatibility space to associate with the transaction. Starting a transaction always performs the following steps.
Raw Store Transaction Context Behaviour
| |
| startNestedUpdateUserTransaction | back to summary |
|---|---|
| public Transaction startNestedUpdateUserTransaction(Transaction parentTransaction, ContextManager contextMgr, String transName, boolean flush_log_on_xact_end) throws StandardException Create a nested user transaction, almost all work within the raw store is performed in the context of a transaction. A nested user transaction is exactly the same as a user transaction, except that one can specify a compatibility space to associate with the transaction. Starting a transaction always performs the following steps.
Raw Store Transaction Context Behaviour
| |
| startReplicationMaster | back to summary |
|---|---|
| public void startReplicationMaster(String dbmaster, String host, int port, String replicationMode) throws StandardException Start the replication master role for this database
| |
| startTransaction | back to summary |
|---|---|
| public Transaction startTransaction(ContextManager contextMgr, String transName) throws StandardException Create a user transaction, almost all work within the raw store is performed in the context of a transaction. Starting a transaction always performs the following steps.
Raw Store Transaction Context Behaviour
| |
| stopReplicationMaster | back to summary |
|---|---|
| public void stopReplicationMaster() throws StandardException Stop the replication master role for this database.
| |
| unfreeze | back to summary |
|---|---|
| public void unfreeze() throws StandardException Unfreeze the database after a backup has been taken. Please see Derby on line documentation on backup and restore.
| |
| unfreezePersistentStore | back to summary |
|---|---|
| public void unfreezePersistentStore() throws StandardException Unfreeze the database, persistent storage can now be altered.
| |