Examples of RepositoryKey


Examples of org.eclipse.jgit.storage.dht.RepositoryKey

    return out;
  }

  public boolean compareAndPut(RefKey refKey, RefData oldData, RefData newData)
      throws DhtException, TimeoutException {
    RepositoryKey repo = refKey.getRepositoryKey();
    return table.compareAndSet( //
        repo.asBytes(), //
        colRef.append(refKey.asBytes()), //
        oldData != RefDataUtil.NONE ? oldData.toByteArray() : null, //
        newData.toByteArray());
  }
View Full Code Here

Examples of org.eclipse.jgit.storage.dht.RepositoryKey

        newData.toByteArray());
  }

  public boolean compareAndRemove(RefKey refKey, RefData oldData)
      throws DhtException, TimeoutException {
    RepositoryKey repo = refKey.getRepositoryKey();
    return table.compareAndSet( //
        repo.asBytes(), //
        colRef.append(refKey.asBytes()), //
        oldData != RefDataUtil.NONE ? oldData.toByteArray() : null, //
        null);
  }
View Full Code Here

Examples of org.eclipse.jgit.storage.dht.RepositoryKey

      if (data.length == 0)
        return null;
      return RepositoryKey.fromBytes(data);
    }

    RepositoryKey key = db.get(name);
    data = key != null ? key.asBytes() : new byte[0];
    client.modify(singleton(Change.put(memKey, data)), none);
    return key;
  }
View Full Code Here

Examples of org.platformlayer.images.model.RepositoryKey

    // If we're building Java projects, we'll want a JDK
    vm.addChild(JavaVirtualMachine.buildJdk7());

    {
      PackageDependency jenkinsPackage = PackageDependency.build("jenkins");
      jenkinsPackage.repositoryKey = new RepositoryKey();
      jenkinsPackage.repositoryKey.setUrl("http://pkg.jenkins-ci.org/debian/jenkins-ci.org.key");
      jenkinsPackage.repository = new Repository();
      jenkinsPackage.repository.setKey("jenkins");
      jenkinsPackage.repository.getSource().add("deb http://pkg.jenkins-ci.org/debian binary/");
      vm.addChild(jenkinsPackage);
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.