Package org.apache.oodt.cas.filemgr.versioning

Examples of org.apache.oodt.cas.filemgr.versioning.Versioner


        LOG.log(Level.FINEST,
            "File Manager: ingest: no client transfer enabled, "
                + "server transfering product: [" + p.getProductName() + "]");

        // version the product
        Versioner versioner = null;
        try {
          versioner = GenericFileManagerObjectFactory
              .getVersionerFromClassName(p.getProductType().getVersioner());
          versioner.createDataStoreReferences(p, m);
        } catch (Exception e) {
          LOG.log(Level.SEVERE,
              "ingestProduct: VersioningException when versioning Product: "
                  + p.getProductName() + " with Versioner "
                  + p.getProductType().getVersioner() + ": Message: "
View Full Code Here


                }

                product.setProductId(productId);

                // version the product
                Versioner versioner = GenericFileManagerObjectFactory
                        .getVersionerFromClassName(product.getProductType()
                                .getVersioner());
                versioner.createDataStoreReferences(product, metadata);
               
                // add the newly versioned references to the data store
                try {
                    addProductReferences(product);
                } catch (CatalogException e) {
View Full Code Here

        assertNotNull(valLayer);

    }

    public void testGetVersionerFromClassName() {
        Versioner versioner = GenericFileManagerObjectFactory
                .getVersionerFromClassName(versionerClass);
        assertNotNull(versioner);

    }
View Full Code Here

                product.setProductId(productId);

                if (!Boolean.getBoolean("org.apache.oodt.cas.filemgr.serverside.versioning")) {
                  // version the product
                  Versioner versioner = GenericFileManagerObjectFactory
                          .getVersionerFromClassName(product.getProductType()
                                  .getVersioner());
                  versioner.createDataStoreReferences(product, metadata);
                 
                  // add the newly versioned references to the data store
                  try {
                      addProductReferences(product);
                  } catch (CatalogException e) {
View Full Code Here

      Metadata expandedMetdata = addMetadata(p, m);

      // version the product
      if (!clientTransfer || (clientTransfer
          && Boolean.getBoolean("org.apache.oodt.cas.filemgr.serverside.versioning"))) {
        Versioner versioner = null;
        try {
          versioner = GenericFileManagerObjectFactory
              .getVersionerFromClassName(p.getProductType().getVersioner());
          versioner.createDataStoreReferences(p, expandedMetdata);
        } catch (Exception e) {
          LOG.log(Level.SEVERE,
              "ingestProduct: VersioningException when versioning Product: "
                  + p.getProductName() + " with Versioner "
                  + p.getProductType().getVersioner() + ": Message: "
View Full Code Here

        LOG.log(Level.FINEST,
            "File Manager: ingest: no client transfer enabled, "
                + "server transfering product: [" + p.getProductName() + "]");

        // version the product
        Versioner versioner = null;
        try {
          versioner = GenericFileManagerObjectFactory
              .getVersionerFromClassName(p.getProductType().getVersioner());
          versioner.createDataStoreReferences(p, m);
        } catch (Exception e) {
          LOG.log(Level.SEVERE,
              "ingestProduct: VersioningException when versioning Product: "
                  + p.getProductName() + " with Versioner "
                  + p.getProductType().getVersioner() + ": Message: "
View Full Code Here

        assertNotNull(valLayer);

    }

    public void testGetVersionerFromClassName() {
        Versioner versioner = GenericFileManagerObjectFactory
                .getVersionerFromClassName(versionerClass);
        assertNotNull(versioner);

    }
View Full Code Here

  public Metadata doExtract(Product product, Metadata met)
      throws MetExtractionException {
    Metadata extractMet = new Metadata();
    merge(met, extractMet);
    // get the Versioner
    Versioner versioner = GenericFileManagerObjectFactory
        .getVersionerFromClassName(product.getProductType().getVersioner());
    try {
      versioner.createDataStoreReferences(product, met);
    } catch (VersioningException e) {
      throw new MetExtractionException(
          "Unable to generate final FileLocation: Reason: " + e.getMessage());
    }
View Full Code Here

                }

                product.setProductId(productId);

                // version the product
                Versioner versioner = GenericFileManagerObjectFactory
                        .getVersionerFromClassName(product.getProductType()
                                .getVersioner());
                versioner.createDataStoreReferences(product, metadata);
               
                // add the newly versioned references to the data store
                try {
                    addProductReferences(product);
                } catch (CatalogException e) {
View Full Code Here

                }

                product.setProductId(productId);

                // version the product
                Versioner versioner = GenericFileManagerObjectFactory
                        .getVersionerFromClassName(product.getProductType()
                                .getVersioner());
                versioner.createDataStoreReferences(product, metadata);
               
                // add the newly versioned references to the data store
                try {
                    addProductReferences(product);
                } catch (CatalogException e) {
View Full Code Here

TOP

Related Classes of org.apache.oodt.cas.filemgr.versioning.Versioner

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.