Package it.unitn.disi.ds1.qtop
Enum Class Utils.CrashType
- All Implemented Interfaces:
Serializable
,Comparable<Utils.CrashType>
,Constable
- Enclosing class:
Utils
Enum to represent all the possible crashes that can be triggered.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionProbabilistic crash during a decision multicast.Probabilistic crash during a vote request multicast.No crash.Receiver crash after a node sends an Election message.Receiver crash after casting a vote.Receiver crash after receiving a vote request.Receiver crash after propagating a write request.Receiver crash when a node receives an election message.Receiver crash before propagating a write request. -
Method Summary
Modifier and TypeMethodDescriptionstatic Utils.CrashType
Returns the enum constant of this class with the specified name.static Utils.CrashType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NO_CRASH
No crash. -
NODE_BEFORE_WRITE_REQUEST
Receiver crash before propagating a write request. -
NODE_AFTER_WRITE_REQUEST
Receiver crash after propagating a write request. -
NODE_AFTER_VOTE_REQUEST
Receiver crash after receiving a vote request. -
NODE_AFTER_VOTE_CAST
Receiver crash after casting a vote. -
NODE_BEFORE_ELECTION_ACK
Receiver crash when a node receives an election message. Does NOT reply with an ACK -
NODE_AFTER_ELECTION_MESSAGE
Receiver crash after a node sends an Election message. -
COORDINATOR_ON_VOTE_REQUEST
Probabilistic crash during a vote request multicast. -
COORDINATOR_ON_DECISION_RESPONSE
Probabilistic crash during a decision multicast.
-
-
Method Details
-
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
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 nameNullPointerException
- if the argument is null
-