Recoded the code redesign. Recoded the function which retrieve the AccountingPersistenceBackend class to use.
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/accounting/accounting-lib@120271 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
92f5d42e48
commit
8e527e0325
|
@ -132,8 +132,6 @@ public abstract class AccountingPersistenceBackendFactory {
|
||||||
long now = Calendar.getInstance().getTimeInMillis();
|
long now = Calendar.getInstance().getTimeInMillis();
|
||||||
Long lastCheckTimestamp = fallbackLastCheck.get(scope);
|
Long lastCheckTimestamp = fallbackLastCheck.get(scope);
|
||||||
if(lastCheckTimestamp <= (now + FALLBACK_RETRY_TIME)){
|
if(lastCheckTimestamp <= (now + FALLBACK_RETRY_TIME)){
|
||||||
// Setting persistence to null so that the
|
|
||||||
// AccountingPersistenceBackend is rechecked
|
|
||||||
logger.debug("The {} for scope {} is {}. Is time to rediscover if there is another possibility.",
|
logger.debug("The {} for scope {} is {}. Is time to rediscover if there is another possibility.",
|
||||||
AccountingPersistenceBackend.class.getSimpleName(), scope, persistence.getClass().getSimpleName());
|
AccountingPersistenceBackend.class.getSimpleName(), scope, persistence.getClass().getSimpleName());
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue