List of usage examples for org.eclipse.jgit.internal.storage.dfs DfsRepository getDescription
public DfsRepositoryDescription getDescription()
From source file:com.benhumphreys.jgitcassandra.repo.CassandraObjDatabase.java
License:Apache License
/** * Constructor//ww w.ja va2 s. co m * * @param repository a reference to the repository this ref database * is associated with. * @param conn connection to the Cassandra data store. */ public CassandraObjDatabase(DfsRepository repository, StoreConnection conn) throws IOException { super(repository, new DfsReaderOptions()); objstore = new ObjStore(repository.getDescription().getRepositoryName(), conn.getSession(), repository.getDescription()); }
From source file:com.benhumphreys.jgitcassandra.repo.CassandraRefDatabase.java
License:Apache License
/** * Constructor/*from w w w . j av a2s .co m*/ * * @param repository a reference to the repository this ref database * is associated with. */ public CassandraRefDatabase(DfsRepository repository, StoreConnection conn) throws IOException { super(repository); refs = new RefStore(repository.getDescription().getRepositoryName(), conn.getSession()); }
From source file:com.google.gerrit.testutil.InMemoryRepositoryManager.java
License:Apache License
@Override public synchronized SortedSet<Project.NameKey> list() { SortedSet<Project.NameKey> names = Sets.newTreeSet(); for (DfsRepository repo : repos.values()) { names.add(new Project.NameKey(repo.getDescription().getRepositoryName())); }/* w w w .j ava2 s . c om*/ return ImmutableSortedSet.copyOf(names); }