Package jetbrains.buildServer.serverSide
Enum NodeResponsibility
- java.lang.Object
-
- java.lang.Enum<NodeResponsibility>
-
- jetbrains.buildServer.serverSide.NodeResponsibility
-
- All Implemented Interfaces:
Serializable
,Comparable<NodeResponsibility>
public enum NodeResponsibility extends Enum<NodeResponsibility>
Represents a TeamCity node responsibility. Some of the responsibilities can be assigned or unassigned, while others cannot be changed and are "granted" to the main node only.- Since:
- 2018.2
-
-
Enum Constant Summary
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Set<NodeResponsibility>
allResponsibilities()
static Set<NodeResponsibility>
assignableResponsibilities()
boolean
canBeAssigned()
String
getDisplayName()
int
getMask()
static Set<NodeResponsibility>
nonAssignableResponsibilities()
static NodeResponsibility
valueOf(String name)
Returns the enum constant of this type with the specified name.static NodeResponsibility[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
CAN_PROCESS_BUILD_MESSAGES
public static final NodeResponsibility CAN_PROCESS_BUILD_MESSAGES
-
CAN_CHECK_FOR_CHANGES
public static final NodeResponsibility CAN_CHECK_FOR_CHANGES
-
CAN_PROCESS_BUILD_TRIGGERS
public static final NodeResponsibility CAN_PROCESS_BUILD_TRIGGERS
-
CAN_PROCESS_USER_DATA_MODIFICATION_REQUESTS
public static final NodeResponsibility CAN_PROCESS_USER_DATA_MODIFICATION_REQUESTS
-
MAIN_NODE
public static final NodeResponsibility MAIN_NODE
-
CAN_MANAGE_AGENTS
public static final NodeResponsibility CAN_MANAGE_AGENTS
-
CAN_CLEANUP
public static final NodeResponsibility CAN_CLEANUP
-
CAN_MANAGE_BUILDS
public static final NodeResponsibility CAN_MANAGE_BUILDS
-
CAN_MANAGE_USERS
public static final NodeResponsibility CAN_MANAGE_USERS
-
CAN_MANAGE_INVESTIGATIONS
public static final NodeResponsibility CAN_MANAGE_INVESTIGATIONS
-
CAN_MANAGE_CLOUD_AGENTS
public static final NodeResponsibility CAN_MANAGE_CLOUD_AGENTS
-
CAN_SEND_NOTIFICATIONS
public static final NodeResponsibility CAN_SEND_NOTIFICATIONS
-
CAN_REPORT_USAGE_STATISTICS
public static final NodeResponsibility CAN_REPORT_USAGE_STATISTICS
-
CAN_MANAGE_TOOLS
public static final NodeResponsibility CAN_MANAGE_TOOLS
-
CAN_WRITE_TO_AUDIT
public static final NodeResponsibility CAN_WRITE_TO_AUDIT
-
CAN_WRITE_TO_CONFIG_DIRECTORY
public static final NodeResponsibility CAN_WRITE_TO_CONFIG_DIRECTORY
-
-
Method Detail
-
values
public static NodeResponsibility[] 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 (NodeResponsibility c : NodeResponsibility.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static NodeResponsibility 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
-
getDisplayName
@NotNull public String getDisplayName()
-
allResponsibilities
@NotNull public static Set<NodeResponsibility> allResponsibilities()
-
assignableResponsibilities
@NotNull public static Set<NodeResponsibility> assignableResponsibilities()
-
nonAssignableResponsibilities
public static Set<NodeResponsibility> nonAssignableResponsibilities()
-
getMask
public int getMask()
-
canBeAssigned
public boolean canBeAssigned()
- Returns:
- true if this responsibility can be assigned or unassigned to/from TeamCity node
-
-