public class FallbackPersistenceBackend extends AccountingPersistenceBackend
accountingPersistenceBackendMonitor, aggregationScheduler, fallbackPersistence| Modifier | Constructor and Description |
|---|---|
protected |
FallbackPersistenceBackend(File accountingFallbackFile) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
protected File |
getAccountingFallbackFile() |
void |
prepareConnection(AccountingPersistenceConfiguration configuration)
Prepare the connection to persistence.
|
void |
printLine(String line) |
protected void |
reallyAccount(UsageRecord usageRecord)
This method contains the code to save the
#UsageRecord |
account, accountWithFallback, flush, getAggregationScheduler, getFallbackPersistence, setAggregationScheduler, setFallback, validateAccountAggregateprotected FallbackPersistenceBackend(File accountingFallbackFile)
protected File getAccountingFallbackFile()
public void prepareConnection(AccountingPersistenceConfiguration configuration)
prepareConnection in class AccountingPersistenceBackendconfiguration - The configuration to create the connectionprotected void reallyAccount(UsageRecord usageRecord) throws Exception
#UsageRecord
This method is synchronized on File used, so any actions which
has to modify, rename or delete the file must be synchronized on this
file. To retrieve it use getAccountingFallbackFile() method.
This is intended for internal library usage only so that is protectedreallyAccount in class AccountingPersistenceBackendExceptionpublic void close()
throws Exception
close in class AccountingPersistenceBackendExceptionCopyright © 2015. All Rights Reserved.