Examples of DhtException


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

    db.submit(new Runnable() {
      public void run() {
        try {
          callback.onSuccess(findChunks(q.execute().get()));
        } catch (Throwable err) {
          callback.onFailure(new DhtException(err));
        }
      }
    });
  }
View Full Code Here

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

          RefData.fromBytes(c.getValue()));
      }
      return r;

    } catch (HectorException err) {
      throw new DhtException(err);
    }
  }
View Full Code Here

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

          refKey.getRepositoryKey().asBytes(), //
          Constants.encode(refKey.getName()), //
          newData.asBytes()).execute();
      return true;
    } catch (HectorException err) {
      throw new DhtException(err);
    }
  }
View Full Code Here

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

          .execute().get();
      if (r != null)
        return RepositoryKey.fromBytes(r.getValue());
      return null;
    } catch (HectorException err) {
      throw new DhtException(err);
    }
  }
View Full Code Here

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

    try {
      Mutator<byte[]> op = createMutator();
      addInsertion(op, columnFamily, key, col, val);
      op.execute();
    } catch (HectorException err) {
      throw new DhtException(err);
    }
  }
View Full Code Here

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

    db.submit(new Runnable() {
      public void run() {
        try {
          callback.onSuccess(parseChunks(q.execute().get()));
        } catch (Throwable err) {
          callback.onFailure(new DhtException(err));
        }
      }
    });
  }
View Full Code Here

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

    start(new Callable<MutationResult>() {
      public MutationResult call() throws Exception {
        try {
          return op.execute();
        } catch (HectorException err) {
          throw new DhtException(err);
        }
      }
    }, size);
  }
View Full Code Here

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

    try {
      task.call();
    } catch (DhtException err) {
      throw err;
    } catch (Exception err) {
      throw new DhtException(err);
    }
  }
View Full Code Here

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

        if (t instanceof DhtException)
          throw (DhtException) t;
        t = t.getCause();
      }

      throw new DhtException(err);
    }
  }
View Full Code Here

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

      cell = table.get(row, colMeta.name());
      if (cell != null) {
        try {
          m.setMeta(ChunkMeta.parseFrom(cell.getValue()));
        } catch (InvalidProtocolBufferException err) {
          callback.onFailure(new DhtException(MessageFormat.format(
              DhtText.get().invalidChunkMeta, chunk), err));
          return;
        }
      }
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.