public class TestFile extends TestBase implements DataHandler
TestBase.ChildBASE_TEST_DIR, config, start, uniqueId| Constructor and Description |
|---|
TestFile() |
| Modifier and Type | Method and Description |
|---|---|
void |
checkPowerOff()
Check if the simulated power failure occurred.
|
void |
checkWritingAllowed()
Check if writing is allowed.
|
CompareMode |
getCompareMode()
Return compare mode.
|
java.lang.String |
getDatabasePath()
Get the database path.
|
JavaObjectSerializer |
getJavaObjectSerializer()
Return the serializer to be used for java objects being stored in
column of type OTHER.
|
java.lang.String |
getLobCompressionAlgorithm(int type)
Get the compression algorithm used for large objects.
|
SmallLRUCache<java.lang.String,java.lang.String[]> |
getLobFileListCache()
Get the lob file list cache if it is used.
|
LobStorageBackend |
getLobStorage()
Get the lob storage mechanism to use.
|
java.lang.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.
|
static void |
main(java.lang.String... a)
Run just this test.
|
FileStore |
openFile(java.lang.String name,
java.lang.String mode,
boolean mustExist)
Open a file at the given location.
|
int |
readLob(long lobId,
byte[] hmac,
long offset,
byte[] buff,
int off,
int length)
Read from a lob.
|
void |
test()
This method will be called by the test framework.
|
assertContains, assertEqualDatabases, assertEqualReaders, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEqualStreams, assertFalse, assertFalse, assertKnownException, assertKnownException, assertNull, assertResult, assertResultRowCount, assertResultSetMeta, assertResultSetOrdered, assertSingleValue, assertSmaller, assertStartsWith, assertThrows, assertThrows, assertThrows, assertThrows, assertTrue, assertTrue, buildChild, crash, createCaller, createClassProxy, createFailingStream, deleteDb, deleteDb, eatMemory, execute, execute, fail, fail, freeMemory, getBaseDir, getClassPath, getConnection, getConnection, getFilePassword, getMemoryUsed, getMemoryUsedBytes, getPassword, getPassword, getSize, getTestDir, getTestName, getURL, getUser, init, init, logError, logErrorMessage, println, printTime, printTimeMemory, readString, runTest, startServerIfRequired, throwException, trace, trace, traceMemorypublic static void main(java.lang.String... a)
throws java.lang.Exception
a - ignoredjava.lang.Exceptionpublic void test()
throws java.lang.Exception
TestBasepublic void checkPowerOff()
DataHandlercheckPowerOff in interface DataHandlerpublic void checkWritingAllowed()
DataHandlercheckWritingAllowed in interface DataHandlerpublic java.lang.String getDatabasePath()
DataHandlergetDatabasePath in interface DataHandlerpublic java.lang.String getLobCompressionAlgorithm(int type)
DataHandlergetLobCompressionAlgorithm in interface DataHandlertype - the data type (CLOB or BLOB)public java.lang.Object getLobSyncObject()
DataHandlergetLobSyncObject in interface DataHandlerpublic int getMaxLengthInplaceLob()
DataHandlergetMaxLengthInplaceLob in interface DataHandlerpublic FileStore openFile(java.lang.String name, java.lang.String mode, boolean mustExist)
DataHandleropenFile in interface DataHandlername - the file namemode - the modemustExist - whether the file must already existpublic SmallLRUCache<java.lang.String,java.lang.String[]> getLobFileListCache()
DataHandlergetLobFileListCache in interface DataHandlerpublic TempFileDeleter getTempFileDeleter()
DataHandlergetTempFileDeleter in interface DataHandlerpublic LobStorageBackend getLobStorage()
DataHandlergetLobStorage in interface DataHandlerpublic int readLob(long lobId,
byte[] hmac,
long offset,
byte[] buff,
int off,
int length)
DataHandlerreadLob in interface DataHandlerlobId - the lob idhmac - the message authentication codeoffset - the offset within the lobbuff - the target bufferoff - the offset within the target bufferlength - the number of bytes to readpublic JavaObjectSerializer getJavaObjectSerializer()
DataHandlergetJavaObjectSerializer in interface DataHandlerpublic CompareMode getCompareMode()
DataHandlergetCompareMode in interface DataHandler