Package com.google.gerrit.server.config
Class GerritIsReplicaProvider
- java.lang.Object
-
- com.google.gerrit.server.config.GerritIsReplicaProvider
-
public final class GerritIsReplicaProvider extends Object implements com.google.inject.Provider<Boolean>
ProvidesBoolean
annotated withGerritIsReplica
.The returned boolean indicates whether Gerrit is run as a read-only replica.
-
-
Field Summary
Fields Modifier and Type Field Description static String
CONFIG_SECTION
static String
DEPRECATED_REPLICA_KEY
boolean
isReplica
static String
REPLICA_KEY
-
Constructor Summary
Constructors Constructor Description GerritIsReplicaProvider(org.eclipse.jgit.lib.Config config)
-
-
-
Field Detail
-
CONFIG_SECTION
public static final String CONFIG_SECTION
- See Also:
- Constant Field Values
-
REPLICA_KEY
public static final String REPLICA_KEY
- See Also:
- Constant Field Values
-
DEPRECATED_REPLICA_KEY
public static final String DEPRECATED_REPLICA_KEY
- See Also:
- Constant Field Values
-
isReplica
public final boolean isReplica
-
-