Enum Class Utils.CrashType

java.lang.Object
java.lang.Enum<Utils.CrashType>
it.unitn.disi.ds1.qtop.Utils.CrashType
All Implemented Interfaces:
Serializable, Comparable<Utils.CrashType>, Constable
Enclosing class:
Utils

public static enum Utils.CrashType extends Enum<Utils.CrashType>
Enum to represent all the possible crashes that can be triggered.
  • Enum Constant Details

    • NO_CRASH

      public static final Utils.CrashType NO_CRASH
      No crash.
    • NODE_BEFORE_WRITE_REQUEST

      public static final Utils.CrashType NODE_BEFORE_WRITE_REQUEST
      Receiver crash before propagating a write request.
    • NODE_AFTER_WRITE_REQUEST

      public static final Utils.CrashType NODE_AFTER_WRITE_REQUEST
      Receiver crash after propagating a write request.
    • NODE_AFTER_VOTE_REQUEST

      public static final Utils.CrashType NODE_AFTER_VOTE_REQUEST
      Receiver crash after receiving a vote request.
    • NODE_AFTER_VOTE_CAST

      public static final Utils.CrashType NODE_AFTER_VOTE_CAST
      Receiver crash after casting a vote.
    • NODE_BEFORE_ELECTION_ACK

      public static final Utils.CrashType NODE_BEFORE_ELECTION_ACK
      Receiver crash when a node receives an election message. Does NOT reply with an ACK
    • NODE_AFTER_ELECTION_MESSAGE

      public static final Utils.CrashType NODE_AFTER_ELECTION_MESSAGE
      Receiver crash after a node sends an Election message.
    • COORDINATOR_ON_VOTE_REQUEST

      public static final Utils.CrashType COORDINATOR_ON_VOTE_REQUEST
      Probabilistic crash during a vote request multicast.
    • COORDINATOR_ON_DECISION_RESPONSE

      public static final Utils.CrashType COORDINATOR_ON_DECISION_RESPONSE
      Probabilistic crash during a decision multicast.
  • Method Details

    • values

      public static Utils.CrashType[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static Utils.CrashType valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified name
      NullPointerException - if the argument is null