| java.lang.Object org.apache.derby.impl.store.raw.RawStore
RawStore | final public class RawStore implements RawStoreFactory,ModuleControl,ModuleSupportable,PrivilegedExceptionAction(Code) | | A Raw store that implements the RawStoreFactory module by delegating all the
work to the lower modules TransactionFactory, LogFactory and DataFactory.
String TransactionFactoryId=
Class is final as it has methods with privilege blocks
and implements PrivilegedExceptionAction.
|
Method Summary | |
public void | backup(String backupDir, boolean wait) Backup the database to a backup directory.
Parameters: backupDir - the name of the directory where the backup should bestored. | public synchronized void | backup(Transaction t, File backupDir) | public void | backupAndEnableLogArchiveMode(String backupDir, boolean deleteOnlineArchivedLogFiles, boolean 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.
Parameters: backupDir - the name of the directory where the backup should bestored. | public void | boot(boolean create, Properties properties) | public boolean | canSupport(Properties startParams) We use this RawStore for all databases. | public Serializable | changeBootPassword(Properties properties, Serializable changePassword) | public void | checkpoint() | public void | configureDatabaseForEncryption(Properties properties, CipherFactory newCipherFactory) | public void | createFinished() | public int | decrypt(byte[] ciphertext, int offset, int length, byte[] cleartext, int outputOffset) Decrypt cleartext from ciphertext. | public void | disableLogArchiveMode(boolean deleteOnlineArchivedLogFiles) | public int | encrypt(byte[] cleartext, int offset, int length, byte[] ciphertext, int outputOffset, boolean newEngine) Encrypt cleartext into ciphertext. | public Transaction | findUserTransaction(ContextManager contextMgr, String transName) | public void | freeze() | public void | freezePersistentStore() Freeze persistent store. | public DaemonService | getDaemon() | public String | getDataFactoryModule() | public int | getEncryptionBlockSize() | public LockFactory | getLockFactory() | public String | getLogFactoryModule() | public long | getMaxContainerId() 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. | public void | getRawStoreProperties(PersistentSet set) | public String | getTransactionFactoryModule() | public TransactionInfo[] | getTransactionInfo() | public Object | getXAResourceManager() | public TransactionFactory | getXactFactory() Get the Transaction Factory to use with this store. | public void | handleIncompleteDatabaseEncryption(Properties properties) Engine might have crashed during encryption of un-encrypted datbase
or while re-encryptin an already encrypted database with a new key
after all the containers or (re) encrypted. | public void | idle() | public boolean | isReadOnly() Is the store read-only. | public StandardException | markCorrupt(StandardException originalError) | public ScanHandle | openFlushedScan(DatabaseInstant start, int groupsIWant) | protected boolean | privCopyDirectory(StorageFile from, File to) | protected boolean | privCopyDirectory(File from, StorageFile to) | public int | random() | final public Object | run() | public Transaction | startGlobalTransaction(ContextManager contextMgr, int format_id, byte[] global_id, byte[] branch_id) | public Transaction | startInternalTransaction(ContextManager contextMgr) | public Transaction | startNestedReadOnlyUserTransaction(Object compatibilitySpace, ContextManager contextMgr, String transName) | public Transaction | startNestedUpdateUserTransaction(ContextManager contextMgr, String transName) | public Transaction | startTransaction(ContextManager contextMgr, String transName) | public void | stop() | public void | unfreeze() | public void | unfreezePersistentStore() Freeze persistent store. |
TEST_REENCRYPT_CRASH_AFTER_CHECKPOINT | final public static String TEST_REENCRYPT_CRASH_AFTER_CHECKPOINT(Code) | | |
TEST_REENCRYPT_CRASH_AFTER_COMMT | final public static String TEST_REENCRYPT_CRASH_AFTER_COMMT(Code) | | |
TEST_REENCRYPT_CRASH_AFTER_RECOVERY_UNDO_LOGFILE_DELETE | final public static String TEST_REENCRYPT_CRASH_AFTER_RECOVERY_UNDO_LOGFILE_DELETE(Code) | | |
TEST_REENCRYPT_CRASH_AFTER_RECOVERY_UNDO_REVERTING_KEY | final public static String TEST_REENCRYPT_CRASH_AFTER_RECOVERY_UNDO_REVERTING_KEY(Code) | | |
TEST_REENCRYPT_CRASH_AFTER_SWITCH_TO_NEWKEY | final public static String TEST_REENCRYPT_CRASH_AFTER_SWITCH_TO_NEWKEY(Code) | | |
TEST_REENCRYPT_CRASH_BEFORE_COMMT | final public static String TEST_REENCRYPT_CRASH_BEFORE_COMMT(Code) | | (re) encryption testing debug flags that are used to
simulate error/crash conditions for testing purposes.
When any one of the following flags are set to true
in the debug mode, re-encryption will fail at that point.
|
TEST_REENCRYPT_CRASH_BEFORE_RECOVERY_FINAL_CLEANUP | final public static String TEST_REENCRYPT_CRASH_BEFORE_RECOVERY_FINAL_CLEANUP(Code) | | |
RawStore | public RawStore()(Code) | | |
backup | public void backup(String backupDir, boolean wait) throws StandardException(Code) | | Backup the database to a backup directory.
Parameters: backupDir - the name of the directory where the backup should bestored. This directory will be created if it does not exist. Parameters: wait - if true, waits for all the backup blocking operations in progress to finish. exception: StandardException - thrown on error |
backupAndEnableLogArchiveMode | public void backupAndEnableLogArchiveMode(String backupDir, boolean deleteOnlineArchivedLogFiles, boolean wait) throws StandardException(Code) | | 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.
Parameters: backupDir - the name of the directory where the backup should bestored. This directory will be created if it does not exist. Parameters: deleteOnlineArchivedLogFiles - If true deletes online archived log files that exist before this backup, delete will occur only after the backup is complete. Parameters: wait - if true, waits for all the backup blocking operations in progress to finish. exception: StandardException - thrown on error. |
canSupport | public boolean canSupport(Properties startParams)(Code) | | We use this RawStore for all databases.
|
disableLogArchiveMode | public void disableLogArchiveMode(boolean deleteOnlineArchivedLogFiles) throws StandardException(Code) | | |
freezePersistentStore | public void freezePersistentStore() throws StandardException(Code) | | Freeze persistent store. Reads can still happen, only cannot write.
exception: StandardException - Standard Cloudscape Error Policy |
getDataFactoryModule | public String getDataFactoryModule()(Code) | | |
getEncryptionBlockSize | public int getEncryptionBlockSize()(Code) | | Returns the encryption block size used by the algorithm at time of
creation of an encrypted database
|
getLogFactoryModule | public String getLogFactoryModule()(Code) | | |
getMaxContainerId | public long getMaxContainerId() throws StandardException(Code) | | 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.
The an id which can be used to create a container. exception: StandardException - Standard exception policy. |
getTransactionFactoryModule | public String getTransactionFactoryModule()(Code) | | |
handleIncompleteDatabaseEncryption | public void handleIncompleteDatabaseEncryption(Properties properties) throws StandardException(Code) | | Engine might have crashed during encryption of un-encrypted datbase
or while re-encryptin an already encrypted database with a new key
after all the containers or (re) encrypted. If crash has occured
before all containers are encrypted, recovery wil un-do re-encryption
using the transaction log, nothing to be done here.
If crash has occured after database encryption status flag
(RawStoreFactory.DB_ENCRYPTION_STATUS) is set, this method
will do any cleanup necessary for the recovery to correctly
perform the rollback if required.
Parameters: properties - properties related to this database. exception: StandardException - Standard Derby Error Policy |
random | public int random()(Code) | | |
unfreezePersistentStore | public void unfreezePersistentStore() throws StandardException(Code) | | Freeze persistent store. Reads can still happen, only cannot write.
exception: StandardException - Standard Cloudscape Error Policy |
|
|