Package com.google.gerrit.server.git
Enum GitRepositoryManager.Status
- java.lang.Object
-
- java.lang.Enum<GitRepositoryManager.Status>
-
- com.google.gerrit.server.git.GitRepositoryManager.Status
-
- All Implemented Interfaces:
Serializable
,Comparable<GitRepositoryManager.Status>
- Enclosing interface:
- GitRepositoryManager
public static enum GitRepositoryManager.Status extends Enum<GitRepositoryManager.Status>
Status of the repository.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ACTIVE
Repository exists and is available on host.NON_EXISTENT
Repository does not exist.UNAVAILABLE
Repository might exist but can not be opened.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static GitRepositoryManager.Status
valueOf(String name)
Returns the enum constant of this type with the specified name.static GitRepositoryManager.Status[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ACTIVE
public static final GitRepositoryManager.Status ACTIVE
Repository exists and is available on host.
-
NON_EXISTENT
public static final GitRepositoryManager.Status NON_EXISTENT
Repository does not exist.
-
UNAVAILABLE
public static final GitRepositoryManager.Status 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 Detail
-
values
public static GitRepositoryManager.Status[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (GitRepositoryManager.Status c : GitRepositoryManager.Status.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static GitRepositoryManager.Status valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException
- if the argument is null
-
-