Package org.eclipse.jgit.storage.cassandra

Examples of org.eclipse.jgit.storage.cassandra.CassandraRepositoryBuilder


  @Override
  protected void run() throws Exception {
    CassandraDatabase db = Main.connect(uri);

    CassandraRepositoryBuilder builder = new CassandraRepositoryBuilder() //
        .setURI(uri) //
        .setDatabase(db) //
        .setMustExist(false);

    DhtRepository repository = builder.build();
    repository.create(true);

    System.out.println("Created " + repository.getRepositoryKey().asString() + ":");
    System.out.println("  cluster:    " + builder.getClusterName());
    System.out.println("  keyspace:   " + builder.getKeyspaceName());
    System.out.println("  repository: " + builder.getRepositoryName());
  }
View Full Code Here


  @Override
  protected Repository openGitDir(String gitdir) throws IOException {
    if (gitdir != null && gitdir.startsWith("git+cassandra://")) {
      try {
        return new CassandraRepositoryBuilder() //
            .setDatabase(connect(gitdir)) //
            .setURI(gitdir) //
            .build();
      } catch (URISyntaxException e) {
        throw new Die("Invalid URI " + gitdir);
View Full Code Here

    RepositoryResolver<DaemonClient> resolver = new RepositoryResolver<DaemonClient>() {
      public Repository open(DaemonClient req, String name)
          throws RepositoryNotFoundException {
        try {
          return new CassandraRepositoryBuilder()
            .setDatabase(db)
            .setRepositoryName(name)
            .setMustExist(true)
            .build();
        } catch (DhtException e) {
View Full Code Here

TOP

Related Classes of org.eclipse.jgit.storage.cassandra.CassandraRepositoryBuilder

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.