public interface DataHandler
Modifier and Type | Method and Description |
---|---|
void |
checkPowerOff()
Check if the simulated power failure occurred.
|
void |
checkWritingAllowed()
Check if writing is allowed.
|
void |
freeUpDiskSpace()
Free up disk space if possible.
|
String |
getDatabasePath()
Get the database path.
|
String |
getLobCompressionAlgorithm(int type)
Get the compression algorithm used for large objects.
|
Connection |
getLobConnection()
Get a database connection to be used for LOB access.
|
SmallLRUCache<String,String[]> |
getLobFileListCache()
Get the lob file list cache if it is used.
|
LobStorage |
getLobStorage()
Get the lob storage mechanism to use.
|
Object |
getLobSyncObject()
Get the synchronization object for lob operations.
|
int |
getMaxLengthInplaceLob()
Get the maximum length of a in-place large object
|
TempFileDeleter |
getTempFileDeleter()
Get the temp file deleter mechanism.
|
FileStore |
openFile(String name,
String mode,
boolean mustExist)
Open a file at the given location.
|
String getDatabasePath()
FileStore openFile(String name, String mode, boolean mustExist)
name
- the file namemode
- the modemustExist
- whether the file must already existvoid checkPowerOff() throws DbException
DbException
- if the simulated power failure occurredvoid checkWritingAllowed() throws DbException
DbException
- if it is not allowedvoid freeUpDiskSpace() throws DbException
DbException
- if no more space could be freedint getMaxLengthInplaceLob()
String getLobCompressionAlgorithm(int type)
type
- the data type (CLOB or BLOB)TempFileDeleter getTempFileDeleter()
Object getLobSyncObject()
SmallLRUCache<String,String[]> getLobFileListCache()
LobStorage getLobStorage()
Connection getLobConnection()
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.