Enum Class TransferEvent.Type
- All Implemented Interfaces:
Serializable,Comparable<TransferEvent.Type>,Constable
- Enclosing interface:
TransferEvent
The
TransferEvent types.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThisTransferEventis dispatched when a set ofentrieshave been transferred to thelocal memberor restored from backup.ThisTransferEventis dispatched when a partition has been assigned to thelocal member.ThisTransferEventis dispatched when a partition has been successfully transferred from thelocal member.ThisTransferEventis dispatched when a partition has been orphaned (data loss may have occurred), and the ownership is assumed by thelocal member.ThisTransferEventis dispatched when a set ofentrieshave been recovered from a persistent storage by thelocal member.ThisTransferEventis dispatched when partition transfer has failed and was therefore rolled back. -
Method Summary
Modifier and TypeMethodDescriptionstatic TransferEvent.TypeReturns the enum constant of this class with the specified name.static TransferEvent.Type[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ARRIVED
ThisTransferEventis dispatched when a set ofentrieshave been transferred to thelocal memberor restored from backup.The reason for the event (primary transfer from another member or restore from backup) can be derived as follows:
TransferEvent event; boolean fRestored = event.getRemoteMember() == event.getLocalMember(); -
ASSIGNED
ThisTransferEventis dispatched when a partition has been assigned to thelocal member. This event may only be emitted at the ownership senior during the initial partition assignment. -
DEPARTING
ThisTransferEventis dispatched when a set ofentriesare being transferred from thelocal member. This event is followed by either a DEPARTED or ROLLBACK event to indicate the success or failure of the transfer. -
DEPARTED
ThisTransferEventis dispatched when a partition has been successfully transferred from thelocal member. To derive theentriesassociated with the transfer, consumers should subscribe to the DEPARTING event that would precede this event. -
LOST
ThisTransferEventis dispatched when a partition has been orphaned (data loss may have occurred), and the ownership is assumed by thelocal member. This event may only be emitted at the ownership senior. -
RECOVERED
ThisTransferEventis dispatched when a set ofentrieshave been recovered from a persistent storage by thelocal member. -
ROLLBACK
ThisTransferEventis dispatched when partition transfer has failed and was therefore rolled back. To derive theentriesassociated with the failed transfer, consumers should subscribe to the DEPARTING event that would precede this event.
-
-
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
-