}
return refresher;
}
private AsyncMetadataVersionManager scheduleAsyncMetadataVersionManager(long interval) {
AsyncMetadataVersionManager asyncMetadataManager = null;
SystemStoreClient<String, String> versionStore = this.sysRepository.getMetadataVersionStore();
if(versionStore == null) {
logger.warn("Metadata version system store not found. Cannot run Metadata version check thread.");
} else {
// Create a callback for re-bootstrapping the client
Callable<Void> rebootstrapCallback = new Callable<Void>() {
public Void call() throws Exception {
bootStrap();
return null;
}
};
asyncMetadataManager = new AsyncMetadataVersionManager(this.sysRepository,
rebootstrapCallback,
this.storeName);
// schedule the job to run every 'checkInterval' period, starting
// now