Package voldemort.client.scheduler

Examples of voldemort.client.scheduler.AsyncMetadataVersionManager


            // Giving enough time to complete the above put.
            Thread.sleep(500);

            // Starting the Version Metadata Manager
            this.asyncCheckMetadata = new AsyncMetadataVersionManager(this.repository,
                                                                      rebootstrapCallback,
                                                                      null);
            scheduler.schedule(asyncCheckMetadata.getClass().getName(),
                               asyncCheckMetadata,
                               new Date(),
View Full Code Here


            // Giving enough time to complete the above put.
            Thread.sleep(500);

            // Starting the Version Metadata Manager
            this.asyncCheckMetadata = new AsyncMetadataVersionManager(this.repository,
                                                                      rebootstrapCallback,
                                                                      storeVersionKey);
            scheduler.schedule(asyncCheckMetadata.getClass().getName(),
                               asyncCheckMetadata,
                               new Date(),
View Full Code Here

            // Giving enough time to complete the above put.
            Thread.sleep(500);

            // Starting the Version Metadata Managers
            for(int i = 0; i < 3; i++) {
                AsyncMetadataVersionManager versionManager = new AsyncMetadataVersionManager(this.repository,
                                                                                             rebootstrapCallbacks.get(i),
                                                                                             storeVersionKeys[i]);
                asyncVersionManagers.add(versionManager);

                scheduler.schedule(versionManager.getClass().getName(),
                                   versionManager,
                                   new Date(),
                                   500);
            }
View Full Code Here

                    initializeAllFatClients();
                    return null;
                }

            };
            asyncMetadataManager = new AsyncMetadataVersionManager(sysRepository,
                                                                   rebootstrapCallback,
                                                                   null);

            schedulerService = new SchedulerService(1, SystemTime.INSTANCE, true);
            schedulerService.schedule(asyncMetadataManager.getClass().getName(),
View Full Code Here

                return null;
            }
        };

        // Starting the Version Metadata Manager
        this.asyncCheckMetadata = new AsyncMetadataVersionManager(this.repository,
                                                                  rebootstrapCallback,
                                                                  null);
        scheduler.schedule(asyncCheckMetadata.getClass().getName(),
                           asyncCheckMetadata,
                           new Date(),
View Full Code Here

        }
        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
View Full Code Here

TOP

Related Classes of voldemort.client.scheduler.AsyncMetadataVersionManager

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.