Package org.eclipse.jgit.storage.dht

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


      MemTable.Cell cell = table.get(row, colMeta.name());
      if (cell != null) {
        try {
          out.put(chunk, ChunkMeta.parseFrom(cell.getValue()));
        } catch (InvalidProtocolBufferException err) {
          callback.onFailure(new DhtException(MessageFormat.format(
              DhtText.get().invalidChunkMeta, chunk), err));
          return;
        }
      }
    }
View Full Code Here


        name.asBytes(), //
        colId.name(), //
        null, //
        key.asBytes());
    if (!ok)
      throw new DhtException(MessageFormat.format(
          DhtText.get().repositoryAlreadyExists, name.asString()));
  }
View Full Code Here

        name.asBytes(),
        colId.name(),
        key.asBytes(),
        null);
    if (!ok)
      throw new DhtException(MessageFormat.format(
          DhtText.get().repositoryAlreadyExists, name.asString()));
  }
View Full Code Here

          chunks.add(new ObjectInfo(
              chunkKey,
              cell.getTimestamp(),
              GitStore.ObjectInfo.parseFrom(cell.getValue())));
        } catch (InvalidProtocolBufferException badCell) {
          callback.onFailure(new DhtException(MessageFormat.format(
              DhtText.get().invalidObjectInfo, objId, chunkKey),
              badCell));
          return;
        }
      }
View Full Code Here

    for (MemTable.Cell cell : table.scanFamily(repository.asBytes(), colRef)) {
      RefKey ref = RefKey.fromBytes(colRef.suffix(cell.getName()));
      try {
        out.put(ref, RefData.parseFrom(cell.getValue()));
      } catch (InvalidProtocolBufferException badCell) {
        throw new DhtException(MessageFormat.format(
            DhtText.get().invalidRefData, ref), badCell);
      }
    }
    return out;
  }
View Full Code Here

    List<CachedPackInfo> out = new ArrayList<CachedPackInfo>(4);
    for (MemTable.Cell cell : table.scanFamily(repo.asBytes(), colCachedPack)) {
      try {
        out.add(CachedPackInfo.parseFrom(cell.getValue()));
      } catch (InvalidProtocolBufferException e) {
        throw new DhtException(MessageFormat.format(
            DhtText.get().invalidCachedPackInfo, repo,
            CachedPackKey.fromBytes(cell.getName())), e);
      }
    }
    return out;
View Full Code Here

TOP

Related Classes of org.eclipse.jgit.storage.dht.DhtException

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.