Package org.jenkinsci.remoting.engine
Enum WorkDirManager.DirType
- java.lang.Object
-
- java.lang.Enum<WorkDirManager.DirType>
-
- org.jenkinsci.remoting.engine.WorkDirManager.DirType
-
- All Implemented Interfaces:
Serializable
,Comparable<WorkDirManager.DirType>
- Enclosing class:
- WorkDirManager
@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) public static enum WorkDirManager.DirType extends Enum<WorkDirManager.DirType>
Defines components of the Working directory.- Since:
- 3.8
-
-
Enum Constant Summary
Enum Constants Enum Constant Description INTERNAL_DIR
Directory, which stores internal data of the Remoting layer itself.JAR_CACHE_DIR
Directory, which stores the JAR Cache.LOGS_DIR
Directory, which stores logs.WORK_DIR
Top-level entry of the working directory.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getDefaultLocation()
String
getName()
String
toString()
static WorkDirManager.DirType
valueOf(String name)
Returns the enum constant of this type with the specified name.static WorkDirManager.DirType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
WORK_DIR
public static final WorkDirManager.DirType WORK_DIR
Top-level entry of the working directory.
-
INTERNAL_DIR
public static final WorkDirManager.DirType INTERNAL_DIR
Directory, which stores internal data of the Remoting layer itself. This directory is located withinWORK_DIR
.
-
JAR_CACHE_DIR
public static final WorkDirManager.DirType JAR_CACHE_DIR
Directory, which stores the JAR Cache.
-
LOGS_DIR
public static final WorkDirManager.DirType LOGS_DIR
Directory, which stores logs.
-
-
Method Detail
-
values
public static WorkDirManager.DirType[] 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 (WorkDirManager.DirType c : WorkDirManager.DirType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static WorkDirManager.DirType 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
-
toString
public String toString()
- Overrides:
toString
in classEnum<WorkDirManager.DirType>
-
getDefaultLocation
@NonNull public String getDefaultLocation()
-
getName
@NonNull public String getName()
-
-