Enum Heartbeat.AppType
- java.lang.Object
-
- java.lang.Enum<Heartbeat.AppType>
-
- jetbrains.buildServer.serverSide.db.Heartbeat.AppType
-
- All Implemented Interfaces:
Serializable
,Comparable<Heartbeat.AppType>
- Enclosing class:
- Heartbeat
public static enum Heartbeat.AppType extends Enum<Heartbeat.AppType>
Type of the application working with TeamCity database.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description MAIN_SERVER
SECONDARY_NODE
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Heartbeat.AppType
byId(String id)
String
describe()
String
getId()
boolean
isMainServer()
String
toString()
static Heartbeat.AppType
valueOf(String name)
Returns the enum constant of this type with the specified name.static Heartbeat.AppType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
MAIN_SERVER
public static final Heartbeat.AppType MAIN_SERVER
-
SECONDARY_NODE
public static final Heartbeat.AppType SECONDARY_NODE
-
-
Method Detail
-
values
public static Heartbeat.AppType[] 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 (Heartbeat.AppType c : Heartbeat.AppType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Heartbeat.AppType 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
-
getId
@NotNull public String getId()
-
byId
public static Heartbeat.AppType byId(@Nullable String id)
-
describe
@NotNull public String describe()
-
toString
public String toString()
- Overrides:
toString
in classEnum<Heartbeat.AppType>
-
isMainServer
public boolean isMainServer()
-
-