Package com.google.gerrit.server.git
Enum Class GitRepositoryManager.Status
java.lang.Object
java.lang.Enum<GitRepositoryManager.Status>
com.google.gerrit.server.git.GitRepositoryManager.Status
- All Implemented Interfaces:
Serializable
,Comparable<GitRepositoryManager.Status>
,java.lang.constant.Constable
- Enclosing interface:
- GitRepositoryManager
Status of the repository.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionRepository exists and is available on host.Repository does not exist.Repository might exist but can not be opened. -
Method Summary
Modifier and TypeMethodDescriptionstatic GitRepositoryManager.Status
Returns the enum constant of this class with the specified name.static GitRepositoryManager.Status[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ACTIVE
Repository exists and is available on host. -
NON_EXISTENT
Repository does not exist. -
UNAVAILABLE
Repository might exist but can not be opened. This can for example be the case when the repository is pending deletion / the caller does not have permissions / repository is broken.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-