Class FailedReportingAttemptChecker
java.lang.Object
java.util.TimerTask
edu.ucsb.nceas.metacat.dataone.quota.FailedReportingAttemptChecker
- All Implemented Interfaces:
Runnable
This class periodically gets reporting usages which were failed to be reported to the
remote book keeper service (e.g. the failure of the network) and report them again.
The indicator of the failed reporting is that the reported_date is null in the local usage table.
- Author:
- tao
-
Constructor Summary
ConstructorDescriptionFailedReportingAttemptChecker
(ExecutorService executor, BookKeeperClient bookkeeperClient) Constructor -
Method Summary
Modifier and TypeMethodDescriptionvoid
run()
It will get the list of unreported usages and re-submit them to the book keeper server again.Methods inherited from class java.util.TimerTask
cancel, scheduledExecutionTime
-
Constructor Details
-
FailedReportingAttemptChecker
Constructor- Parameters:
executor
- the executor which will accept the runnable reporting classesbookkeeperClient
- the book keeper client which will access the remote the server
-
-
Method Details