Examples of Refresher


Examples of com.couchbase.client.core.config.refresher.Refresher

     *
     * @param loaderType the type of the lader used to determine the proper refresher.
     * @param bucketConfig the config itself.
     */
    private void registerBucketForRefresh(final LoaderType loaderType, final BucketConfig bucketConfig) {
        Refresher refresher = refreshers.get(loaderType);
        if (refresher == null) {
            throw new IllegalStateException("Could not find refresher for loader type: " + loaderType);
        }

        refresher.registerBucket(bucketConfig.name(), bucketConfig.password()).subscribe();
    }
View Full Code Here

Examples of com.github.wolfie.refresher.Refresher

    phoneImageMessageLabel.setContentMode(Label.CONTENT_RAW);
    phoneImageMessageLabel.setStyleName("message-display");
    sentClearBut = createSentMsgsClearBut();
    receiveClearBut = createReceiveMsgsClearBut();

    refresher = new Refresher();
    refresher.setRefreshInterval(REFRESH_INTERVAL);
  }
View Full Code Here

Examples of com.google.gwt.editor.client.impl.Refresher

    @Override
    public void onSuccess(EntityProxy response) {
      @SuppressWarnings("unchecked")
      P cast = (P) response;
      setObject(cast);
      accept(new Refresher());
    }
View Full Code Here

Examples of com.google.gwt.editor.client.impl.Refresher

    @Override
    public void onSuccess(EntityProxy response) {
      @SuppressWarnings("unchecked")
      P cast = (P) response;
      setObject(cast);
      accept(new Refresher());
    }
View Full Code Here

Examples of org.candlepin.controller.Refresher

            throw new ImportConflictException(conflictExceptions);
        }

        // If the consumer has no entitlements, this products directory will end up empty.
        // This also implies there will be no entitlements to import.
        Refresher refresher = poolManager.getRefresher();
        Meta meta = mapper.readValue(metadata, Meta.class);
        if (importFiles.get(ImportFile.PRODUCTS.fileName()) != null) {
            ProductImporter importer = new ProductImporter(productCurator, contentCurator);

            Set<Product> productsToImport = importProducts(
                importFiles.get(ImportFile.PRODUCTS.fileName()).listFiles(),
                importer);

            Set<Product> modifiedProducts = importer.getChangedProducts(productsToImport);
            for (Product product : modifiedProducts) {
                refresher.add(product);
            }

            importer.store(productsToImport);

            meta = mapper.readValue(metadata, Meta.class);
            importEntitlements(owner, productsToImport, entitlements.listFiles(),
                consumer, meta);

            refresher.add(owner);
            refresher.run();
        }
        else {
            log.warn("No products found to import, skipping product import.");
            log.warn("No entitlements in manifest, removing all subscriptions for owner.");
            importEntitlements(owner, new HashSet<Product>(), new File[]{}, consumer, meta);
            refresher.add(owner);
            refresher.run();
        }
        return consumer;
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.