| Package | Description |
|---|---|
| net.timewalker.ffmq4.storage.data | |
| net.timewalker.ffmq4.storage.data.impl | |
| net.timewalker.ffmq4.storage.data.impl.journal |
| Modifier and Type | Class and Description |
|---|---|
class |
DataStoreFullException
DataStoreFullException
|
| Modifier and Type | Method and Description |
|---|---|
void |
DataStore.commitChanges()
Ensure everything's persisted (synchronous)
|
void |
DataStore.commitChanges(SynchronizationBarrier barrier)
Ensure everything's persisted (asynchronous)
|
int |
LinkedDataStore.delete(int handle)
Delete data associated to the given handle from the store
|
int |
LinkedDataStore.first()
Get the first data handle stored
|
void |
LinkedDataStore.init()
Initialize the data store
|
boolean |
LinkedDataStore.isLocked(int handle)
Check if the data associated with a given handle is locked
|
void |
LinkedDataStore.lock(int handle)
Lock the data associated to a given handle
|
int |
LinkedDataStore.next(int handle)
Get the next data handle after the given one
|
int |
LinkedDataStore.previous(int handle)
Get the previous data handle after the given one
|
int |
LinkedDataStore.replace(int handle,
Object obj)
Replace data in the store at the given position
|
Object |
LinkedDataStore.retrieve(int handle)
Retrieve the data associated to a given handle
|
int |
LinkedDataStore.store(Object obj,
int previousHandle)
Put some data under in the store after the previous handle data
|
void |
LinkedDataStore.unlock(int handle)
Unlock the data associated to a given handle
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
InMemoryLinkedDataStore.checkHandle(int handle) |
protected abstract void |
AbstractDataStore.checkHandle(int handle)
Check handle validity
|
protected void |
AbstractBlockBasedDataStore.checkHandle(int handle) |
void |
JournalingBlockBasedDataStore.commitChanges() |
void |
InMemoryLinkedDataStore.commitChanges() |
void |
BlockBasedDataStore.commitChanges() |
void |
JournalingBlockBasedDataStore.commitChanges(SynchronizationBarrier barrier) |
void |
InMemoryLinkedDataStore.commitChanges(SynchronizationBarrier barrier) |
void |
BlockBasedDataStore.commitChanges(SynchronizationBarrier barrier) |
static void |
BlockBasedDataStoreTools.create(String baseName,
File dataFolder,
int blockCount,
int blockSize,
boolean forceSync)
Create the filesystem for a new store
|
int |
InMemoryLinkedDataStore.delete(int handle) |
int |
AbstractBlockBasedDataStore.delete(int handle) |
static void |
BlockBasedDataStoreTools.delete(String baseName,
File dataFolder,
boolean force)
Delete the filesystem of a store
|
protected void |
JournalingBlockBasedDataStore.extendStoreFiles(int oldBlockCount,
int newBlockCount) |
protected abstract void |
AbstractBlockBasedDataStore.extendStoreFiles(int oldBlockCount,
int newBlockCount)
Extend the store files to newBlockCount
|
protected void |
BlockBasedDataStore.extendStoreFiles(int oldBlockCount,
int newBlockCount) |
int |
InMemoryLinkedDataStore.first() |
int |
AbstractBlockBasedDataStore.first() |
protected void |
JournalingBlockBasedDataStore.flush() |
protected abstract void |
AbstractBlockBasedDataStore.flush()
Flush internal buffers
|
protected void |
BlockBasedDataStore.flush() |
void |
InMemoryLinkedDataStore.init() |
void |
AbstractBlockBasedDataStore.init() |
protected void |
JournalingBlockBasedDataStore.initFilesystem() |
protected void |
AbstractBlockBasedDataStore.initFilesystem() |
protected void |
BlockBasedDataStore.initFilesystem() |
protected void |
AbstractBlockBasedDataStore.integrityCheck()
Run an integrity check on the store files and fix them as necessary
|
boolean |
AbstractDataStore.isLocked(int handle) |
void |
AbstractDataStore.lock(int handle) |
int |
InMemoryLinkedDataStore.next(int handle) |
int |
AbstractBlockBasedDataStore.next(int handle) |
int |
InMemoryLinkedDataStore.previous(int handle) |
int |
AbstractBlockBasedDataStore.previous(int handle) |
protected void |
JournalingBlockBasedDataStore.readDataBlock(byte[] data,
int offset,
int len,
int blockHandle) |
protected abstract void |
AbstractBlockBasedDataStore.readDataBlock(byte[] data,
int offset,
int len,
int blockHandle)
Read a data block to disk
|
protected void |
BlockBasedDataStore.readDataBlock(byte[] data,
int offset,
int len,
int blockHandle) |
int |
InMemoryLinkedDataStore.replace(int handle,
Object obj) |
int |
AbstractBlockBasedDataStore.replace(int handle,
Object obj) |
Object |
InMemoryLinkedDataStore.retrieve(int handle) |
Object |
AbstractBlockBasedDataStore.retrieve(int handle) |
byte[] |
AbstractBlockBasedDataStore.retrieveHeader(int handle,
int headerSize) |
int |
InMemoryLinkedDataStore.store(Object obj,
int previousHandle) |
int |
AbstractBlockBasedDataStore.store(Object obj,
int previousHandle) |
void |
AbstractDataStore.unlock(int handle) |
protected void |
JournalingBlockBasedDataStore.writeAllocationBlock(int blockIndex) |
protected abstract void |
AbstractBlockBasedDataStore.writeAllocationBlock(int blockIndex)
Write an allocation block to disk
|
protected void |
BlockBasedDataStore.writeAllocationBlock(int blockIndex) |
protected void |
JournalingBlockBasedDataStore.writeDataBlock(byte[] data,
int offset,
int len,
int blockHandle) |
protected abstract void |
AbstractBlockBasedDataStore.writeDataBlock(byte[] data,
int offset,
int len,
int blockHandle)
Write a data block to disk
|
protected void |
BlockBasedDataStore.writeDataBlock(byte[] data,
int offset,
int len,
int blockHandle) |
protected void |
JournalingBlockBasedDataStore.writeFirstBlock() |
protected abstract void |
AbstractBlockBasedDataStore.writeFirstBlock()
Write the first block index to disk
|
protected void |
BlockBasedDataStore.writeFirstBlock() |
| Modifier and Type | Class and Description |
|---|---|
class |
JournalException
JournalException
|
Copyright © 2021. All rights reserved.