Package com.caucho.env.repository

Examples of com.caucho.env.repository.RepositoryTagEntry


  {
    HashMap<String,String> map = new HashMap<String,String>();
   
    Map<String,RepositoryTagEntry> tagMap = getRepository().getTagMap();
   
    RepositoryTagEntry entry = tagMap.get(getId());
   
    if (entry == null && getAutoDeployTag() != null) {
      entry = tagMap.get(getAutoDeployTag());
    }
   
    if (entry != null) {
      map.putAll(entry.getAttributeMap());
    }
   
    return map;
  }
View Full Code Here


    commit.type(getIdType());
    commit.tagKey(getIdKey());

    String commitId = commit.getId();

    RepositoryTagEntry tagEntry = _repositorySpi.getTagMap().get(commitId);

    if (tagEntry != null
        && hash.equals(tagEntry.getAttributeMap().get("archive-digest"))) {
      return true;
    }

    commit.attribute("archive-digest", hash);
    commit.message(".war added to repository from "
View Full Code Here

    Collections.sort(tags);

    for (String tag : tags) {
      digest = Crc64.generate(digest, tag);

      RepositoryTagEntry entry = tagMap.get(tag);

      if (entry.getRoot() != null)
        digest = Crc64.generate(digest, entry.getRoot());
    }

    return digest;
  }
View Full Code Here

                      CopyTagQuery query)
  {
    String tag = query.getTag();
    String sourceTag = query.getSourceTag();

    RepositoryTagEntry entry = _repository.getTagMap().get(sourceTag);

    if (entry == null) {
      log.fine(this + " copyError dst='" + query.getTag() + "' src='" + query.getSourceTag() + "'");

      getBroker().queryError(id, from, to, query,
                                   new BamError(BamError.TYPE_CANCEL,
                                                  BamError.ITEM_NOT_FOUND,
                                                  "unknown tag"));
      return;
    }

    log.fine(this + " copy dst='" + query.getTag() + "' src='" + query.getSourceTag() + "'");
   
    String server = "default";
   
    TreeMap<String,String> metaDataMap = new TreeMap<String,String>();
   
    if (query.getAttributes() != null)
      metaDataMap.putAll(query.getAttributes());
   
    if (server != null)
      metaDataMap.put("server", server);

    boolean result = _repository.putTag(tag,
                                        entry.getRoot(),
                                        metaDataMap);

    getBroker().queryResult(id, from, to, result);
  }
View Full Code Here

TOP

Related Classes of com.caucho.env.repository.RepositoryTagEntry

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.