Enum Heartbeat.Status
- java.lang.Object
-
- java.lang.Enum<Heartbeat.Status>
-
- jetbrains.buildServer.serverSide.db.Heartbeat.Status
-
- All Implemented Interfaces:
Serializable
,Comparable<Heartbeat.Status>
- Enclosing class:
- Heartbeat
public static enum Heartbeat.Status extends Enum<Heartbeat.Status>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CONNECTING
Connecting to DB is in progress.EMPTY
No heartbeat table found.ERROR
A kind of error.EXCLUSIVE_LOCK
We have exclusive db lock - no other nodes are connectedFINISHED
Finished to work and released the lock.FINISHING
Finishing the work, but the lock is not released yet.INTENTION
PulseGuard is attempting to capture the mutex.LOST
The database is busy.NONE
PulseGuard is relaxing.WORK
Normal operating mode.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Heartbeat.Status
valueOf(String name)
Returns the enum constant of this type with the specified name.static Heartbeat.Status[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NONE
public static final Heartbeat.Status NONE
PulseGuard is relaxing. The mutex is not captured.
-
CONNECTING
public static final Heartbeat.Status CONNECTING
Connecting to DB is in progress.
-
INTENTION
public static final Heartbeat.Status INTENTION
PulseGuard is attempting to capture the mutex. Check the status several seconds later.
-
WORK
public static final Heartbeat.Status WORK
Normal operating mode.
-
EXCLUSIVE_LOCK
public static final Heartbeat.Status EXCLUSIVE_LOCK
We have exclusive db lock - no other nodes are connected
-
FINISHING
public static final Heartbeat.Status FINISHING
Finishing the work, but the lock is not released yet.
-
FINISHED
public static final Heartbeat.Status FINISHED
Finished to work and released the lock.
-
LOST
public static final Heartbeat.Status LOST
The database is busy. The lock is captured by another TC server. We lost the competition.
-
EMPTY
public static final Heartbeat.Status EMPTY
No heartbeat table found. PulseGuard is relaxing.
-
ERROR
public static final Heartbeat.Status ERROR
A kind of error.- See Also:
Heartbeat.getException()
-
-
Method Detail
-
values
public static Heartbeat.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 (Heartbeat.Status c : Heartbeat.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 Heartbeat.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
-
-