You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

KetchConstants.java 1.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. /*
  2. * Copyright (C) 2016, Google Inc. and others
  3. *
  4. * This program and the accompanying materials are made available under the
  5. * terms of the Eclipse Distribution License v. 1.0 which is available at
  6. * https://www.eclipse.org/org/documents/edl-v10.php.
  7. *
  8. * SPDX-License-Identifier: BSD-3-Clause
  9. */
  10. package org.eclipse.jgit.internal.ketch;
  11. import org.eclipse.jgit.revwalk.FooterKey;
  12. /**
  13. * Frequently used constants in a Ketch system.
  14. */
  15. public class KetchConstants {
  16. /**
  17. * Default reference namespace holding {@link #ACCEPTED} and
  18. * {@link #COMMITTED} references and the {@link #STAGE} sub-namespace.
  19. */
  20. public static final String DEFAULT_TXN_NAMESPACE = "refs/txn/"; //$NON-NLS-1$
  21. /** Reference name holding the RefTree accepted by a follower. */
  22. public static final String ACCEPTED = "accepted"; //$NON-NLS-1$
  23. /** Reference name holding the RefTree known to be committed. */
  24. public static final String COMMITTED = "committed"; //$NON-NLS-1$
  25. /** Reference subdirectory holding proposed heads. */
  26. public static final String STAGE = "stage/"; //$NON-NLS-1$
  27. /** Footer containing the current term. */
  28. public static final FooterKey TERM = new FooterKey("Term"); //$NON-NLS-1$
  29. /** Section for Ketch configuration ({@code ketch}). */
  30. public static final String CONFIG_SECTION_KETCH = "ketch"; //$NON-NLS-1$
  31. /** Behavior for a replica ({@code remote.$name.ketch-type}) */
  32. public static final String CONFIG_KEY_TYPE = "ketch-type"; //$NON-NLS-1$
  33. /** Behavior for a replica ({@code remote.$name.ketch-commit}) */
  34. public static final String CONFIG_KEY_COMMIT = "ketch-commit"; //$NON-NLS-1$
  35. /** Behavior for a replica ({@code remote.$name.ketch-speed}) */
  36. public static final String CONFIG_KEY_SPEED = "ketch-speed"; //$NON-NLS-1$
  37. private KetchConstants() {
  38. }
  39. }