Enum Heartbeat.Status

    • 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.
      • 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.
    • 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 name
        NullPointerException - if the argument is null