Package org.eclipse.jgit.storage.dht.spi

Examples of org.eclipse.jgit.storage.dht.spi.Context


    if (info != null)
      return info;

    stats.cntObjectIndex_Load++;
    ObjectIndexKey idxKey = ObjectIndexKey.create(repo, obj);
    Context opt = Context.READ_REPAIR;
    Sync<Map<ObjectIndexKey, Collection<ObjectInfo>>> sync = Sync.create();
    db.objectIndex().get(opt, Collections.singleton(idxKey), sync);
    try {
      Collection<ObjectInfo> m;
View Full Code Here


  private PackChunk load(ChunkKey chunkKey) throws DhtException {
    if (0 == stats.access(chunkKey).cntReader_Load++
        && readerOptions.isTrackFirstChunkLoad())
      stats.access(chunkKey).locReader_Load = new Throwable("first");
    Context opt = Context.READ_REPAIR;
    Sync<Collection<PackChunk.Members>> sync = Sync.create();
    db.chunk().get(opt, Collections.singleton(chunkKey), sync);
    try {
      Collection<PackChunk.Members> c = sync.get(getOptions()
          .getTimeout());
View Full Code Here

      dbChunk = chunkReadBackCache.get(key);
      if (dbChunk == null) {
        dbWriteBuffer.flush();

        Collection<PackChunk.Members> found;
        Context opt = Context.READ_REPAIR;
        Sync<Collection<PackChunk.Members>> sync = Sync.create();
        db.chunk().get(opt, Collections.singleton(key), sync);
        try {
          found = sync.get(objdb.getReaderOptions().getTimeout());
        } catch (InterruptedException e) {
View Full Code Here

TOP

Related Classes of org.eclipse.jgit.storage.dht.spi.Context

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.