public static enum TransferEvent.Type extends Enum<TransferEvent.Type>
TransferEvent
types.Enum Constant and Description |
---|
ARRIVED
This
TransferEvent is dispatched when a set of entries have been transferred to the local member or restored from backup. |
ASSIGNED
This
TransferEvent is dispatched when a partition has been
assigned to the local member . |
DEPARTED
This
TransferEvent is dispatched when a partition has
been successfully transferred from the local member . |
DEPARTING
|
LOST
This
TransferEvent is dispatched when a partition has been
orphaned (data loss may have occurred), and the ownership is
assumed by the local member . |
RECOVERED
This
TransferEvent is dispatched when a set of entries have been recovered from a persistent storage
by the local member . |
ROLLBACK
This
TransferEvent is dispatched when partition transfer
has failed and was therefore rolled back. |
Modifier and Type | Method and Description |
---|---|
static TransferEvent.Type |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TransferEvent.Type[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TransferEvent.Type ARRIVED
TransferEvent
is dispatched when a set of entries
have been transferred to the local member
or 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();
public static final TransferEvent.Type ASSIGNED
TransferEvent
is dispatched when a partition has been
assigned to the local member
.
This event may only be emitted at the ownership senior during the
initial partition assignment.public static final TransferEvent.Type DEPARTING
TransferEvent
is dispatched when a set of entries
are being transferred from the local member
. This event is followed
by either a DEPARTED or ROLLBACK event to indicate the success
or failure of the transfer.public static final TransferEvent.Type DEPARTED
TransferEvent
is dispatched when a partition has
been successfully transferred from the local member
. To derive the entries
associated with the transfer, consumers should
subscribe to the DEPARTING event that would precede this event.public static final TransferEvent.Type LOST
TransferEvent
is dispatched when a partition has been
orphaned (data loss may have occurred), and the ownership is
assumed by the local member
.
This event may only be emitted at the ownership senior.public static final TransferEvent.Type RECOVERED
TransferEvent
is dispatched when a set of entries
have been recovered from a persistent storage
by the local member
.public static final TransferEvent.Type ROLLBACK
TransferEvent
is dispatched when partition transfer
has failed and was therefore rolled back. To derive the entries
associated with the failed transfer, consumers
should subscribe to the DEPARTING event that would precede this event.public static TransferEvent.Type[] values()
for (TransferEvent.Type c : TransferEvent.Type.values()) System.out.println(c);
public static TransferEvent.Type valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null