Codota Logo
KetchText
Code IndexAdd Codota to your IDE (free)

How to use
KetchText
in
org.eclipse.jgit.internal.ketch

Best Java code snippets using org.eclipse.jgit.internal.ketch.KetchText (Showing top 20 results out of 315)

  • Common ways to obtain KetchText
private void myMethod () {
KetchText k =
  • Codota IconNLS.getBundleFor(KetchText.class)
  • Smart code suggestions by Codota
}
origin: org.eclipse.jgit/org.eclipse.jgit

/** {@inheritDoc} */
@Override
protected void blockingFetch(Repository repo, ReplicaFetchRequest req)
    throws IOException {
  throw new IOException(KetchText.get().cannotFetchFromLocalReplica);
}
origin: org.eclipse.jgit/org.eclipse.jgit

  private void waitForPropose(Proposal proposal, ProgressSpinner spinner)
      throws InterruptedException {
    spinner.beginTask(KetchText.get().proposingUpdates, 2, SECONDS);
    while (!proposal.await(250, MILLISECONDS)) {
      spinner.update();
    }
    spinner.endTask(proposal.getState() == EXECUTED
        ? KetchText.get().accepted
        : KetchText.get().failed);
  }
}
origin: org.eclipse.jgit/org.eclipse.jgit

private void waitForQueue(Proposal proposal, ProgressSpinner spinner)
    throws InterruptedException {
  spinner.beginTask(KetchText.get().waitingForQueue, 1, SECONDS);
  while (!proposal.awaitStateChange(QUEUED, 250, MILLISECONDS)) {
    spinner.update();
  }
  switch (proposal.getState()) {
  case RUNNING:
  default:
    spinner.endTask(KetchText.get().starting);
    break;
  case EXECUTED:
    spinner.endTask(KetchText.get().accepted);
    break;
  case ABORTED:
    spinner.endTask(KetchText.get().failed);
    break;
  }
}
origin: org.eclipse.jgit/org.eclipse.jgit

if (!validVoters.contains(Integer.valueOf(v.size()))) {
  throw new IllegalArgumentException(MessageFormat.format(
      KetchText.get().unsupportedVoterCount,
      Integer.valueOf(v.size()),
      validVoters));
if (me == null) {
  throw new IllegalArgumentException(
      KetchText.get().localReplicaRequired);
origin: org.eclipse.jgit/org.eclipse.jgit

} catch (IOException e) {
  log.error(KetchText.get().leaderFailedToStore, e);
  lock.lock();
  try {
origin: org.eclipse.jgit/org.eclipse.jgit

  private boolean isOnlyTxnNamespace(Collection<ReceiveCommand> cmdList) {
    // Be paranoid and reject non txnNamespace names, this
    // is a programming error in Ketch that should not occur.

    String txnNamespace = getSystem().getTxnNamespace();
    for (ReceiveCommand cmd : cmdList) {
      if (!cmd.getRefName().startsWith(txnNamespace)) {
        cmd.setResult(REJECTED_OTHER_REASON,
            MessageFormat.format(
                KetchText.get().outsideTxnNamespace,
                cmd.getRefName(), txnNamespace));
        ReceiveCommand.abort(cmdList);
        return false;
      }
    }
    return true;
  }
}
origin: org.eclipse.jgit/org.eclipse.jgit

/**
 * Initializes local replica by reading accepted and committed references.
 * <p>
 * Loads accepted and committed references from the reference database of
 * the local replica and stores their current ObjectIds in memory.
 *
 * @param repo
 *            repository to initialize state from.
 * @throws IOException
 *             cannot read repository state.
 */
void initialize(Repository repo) throws IOException {
  RefDatabase refdb = repo.getRefDatabase();
  if (refdb instanceof RefTreeDatabase) {
    RefTreeDatabase treeDb = (RefTreeDatabase) refdb;
    String txnNamespace = getSystem().getTxnNamespace();
    if (!txnNamespace.equals(treeDb.getTxnNamespace())) {
      throw new IOException(MessageFormat.format(
          KetchText.get().mismatchedTxnNamespace,
          txnNamespace, treeDb.getTxnNamespace()));
    }
    refdb = treeDb.getBootstrap();
  }
  initialize(refdb.exactRef(
      getSystem().getTxnAccepted(),
      getSystem().getTxnCommitted()));
}
origin: berlam/github-bucket

/** {@inheritDoc} */
@Override
protected void blockingFetch(Repository repo, ReplicaFetchRequest req)
    throws IOException {
  throw new IOException(KetchText.get().cannotFetchFromLocalReplica);
}
origin: sonia.jgit/org.eclipse.jgit

@Override
protected void blockingFetch(Repository repo, ReplicaFetchRequest req)
    throws IOException {
  throw new IOException(KetchText.get().cannotFetchFromLocalReplica);
}
origin: sonia.jgit/org.eclipse.jgit

  private void waitForPropose(Proposal proposal, ProgressSpinner spinner)
      throws InterruptedException {
    spinner.beginTask(KetchText.get().proposingUpdates, 2, SECONDS);
    while (!proposal.await(250, MILLISECONDS)) {
      spinner.update();
    }
    spinner.endTask(proposal.getState() == EXECUTED
        ? KetchText.get().accepted
        : KetchText.get().failed);
  }
}
origin: berlam/github-bucket

  private void waitForPropose(Proposal proposal, ProgressSpinner spinner)
      throws InterruptedException {
    spinner.beginTask(KetchText.get().proposingUpdates, 2, SECONDS);
    while (!proposal.await(250, MILLISECONDS)) {
      spinner.update();
    }
    spinner.endTask(proposal.getState() == EXECUTED
        ? KetchText.get().accepted
        : KetchText.get().failed);
  }
}
origin: org.eclipse.jgit/org.eclipse.jgit

KetchText.get().queuedProposalFailedToApply);
origin: sonia.jgit/org.eclipse.jgit

if (!validVoters.contains(Integer.valueOf(v.size()))) {
  throw new IllegalArgumentException(MessageFormat.format(
      KetchText.get().unsupportedVoterCount,
      Integer.valueOf(v.size()),
      validVoters));
if (me == null) {
  throw new IllegalArgumentException(
      KetchText.get().localReplicaRequired);
origin: berlam/github-bucket

if (!validVoters.contains(Integer.valueOf(v.size()))) {
  throw new IllegalArgumentException(MessageFormat.format(
      KetchText.get().unsupportedVoterCount,
      Integer.valueOf(v.size()),
      validVoters));
if (me == null) {
  throw new IllegalArgumentException(
      KetchText.get().localReplicaRequired);
origin: sonia.jgit/org.eclipse.jgit

private void waitForQueue(Proposal proposal, ProgressSpinner spinner)
    throws InterruptedException {
  spinner.beginTask(KetchText.get().waitingForQueue, 1, SECONDS);
  while (!proposal.awaitStateChange(QUEUED, 250, MILLISECONDS)) {
    spinner.update();
  }
  switch (proposal.getState()) {
  case RUNNING:
  default:
    spinner.endTask(KetchText.get().starting);
    break;
  case EXECUTED:
    spinner.endTask(KetchText.get().accepted);
    break;
  case ABORTED:
    spinner.endTask(KetchText.get().failed);
    break;
  }
}
origin: berlam/github-bucket

private void waitForQueue(Proposal proposal, ProgressSpinner spinner)
    throws InterruptedException {
  spinner.beginTask(KetchText.get().waitingForQueue, 1, SECONDS);
  while (!proposal.awaitStateChange(QUEUED, 250, MILLISECONDS)) {
    spinner.update();
  }
  switch (proposal.getState()) {
  case RUNNING:
  default:
    spinner.endTask(KetchText.get().starting);
    break;
  case EXECUTED:
    spinner.endTask(KetchText.get().accepted);
    break;
  case ABORTED:
    spinner.endTask(KetchText.get().failed);
    break;
  }
}
origin: sonia.jgit/org.eclipse.jgit

} catch (IOException e) {
  log.error(KetchText.get().leaderFailedToStore, e);
  lock.lock();
  try {
origin: berlam/github-bucket

} catch (IOException e) {
  log.error(KetchText.get().leaderFailedToStore, e);
  lock.lock();
  try {
origin: sonia.jgit/org.eclipse.jgit

  private boolean isOnlyTxnNamespace(Collection<ReceiveCommand> cmdList) {
    // Be paranoid and reject non txnNamespace names, this
    // is a programming error in Ketch that should not occur.

    String txnNamespace = getSystem().getTxnNamespace();
    for (ReceiveCommand cmd : cmdList) {
      if (!cmd.getRefName().startsWith(txnNamespace)) {
        cmd.setResult(REJECTED_OTHER_REASON,
            MessageFormat.format(
                KetchText.get().outsideTxnNamespace,
                cmd.getRefName(), txnNamespace));
        ReceiveCommand.abort(cmdList);
        return false;
      }
    }
    return true;
  }
}
origin: berlam/github-bucket

  private boolean isOnlyTxnNamespace(Collection<ReceiveCommand> cmdList) {
    // Be paranoid and reject non txnNamespace names, this
    // is a programming error in Ketch that should not occur.

    String txnNamespace = getSystem().getTxnNamespace();
    for (ReceiveCommand cmd : cmdList) {
      if (!cmd.getRefName().startsWith(txnNamespace)) {
        cmd.setResult(REJECTED_OTHER_REASON,
            MessageFormat.format(
                KetchText.get().outsideTxnNamespace,
                cmd.getRefName(), txnNamespace));
        ReceiveCommand.abort(cmdList);
        return false;
      }
    }
    return true;
  }
}
org.eclipse.jgit.internal.ketchKetchText

Javadoc

Translation bundle for the Ketch implementation.

Most used methods

  • get

Popular in Java

  • Updating database using SQL prepared statement
  • getSupportFragmentManager (FragmentActivity)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • startActivity (Activity)
  • GridLayout (java.awt)
    The GridLayout class is a layout manager that lays out a container's components in a rectangular gri
  • BigInteger (java.math)
    Immutable arbitrary-precision integers. All operations behave as if BigIntegers were represented in
  • Iterator (java.util)
    An iterator over a collection. Iterator takes the place of Enumeration in the Java Collections Frame
  • Semaphore (java.util.concurrent)
    A counting semaphore. Conceptually, a semaphore maintains a set of permits. Each #acquire blocks if
  • DataSource (javax.sql)
    A factory for connections to the physical data source that this DataSource object represents. An alt
  • JOptionPane (javax.swing)
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now