com.neeve.ods
Interface IStoreMemberInitCompleteEvent

All Superinterfaces:
IEvent, ILifecycleEvent, IStoreEvent, IStoreLifecycleEvent, UtlReferenceTracker.HasReferenceTracker

public interface IStoreMemberInitCompleteEvent
extends IStoreLifecycleEvent

Represents the event notifying that a member initialization is complete.

Threading:
This event is safe for concurrent access by multiple threads.

This event is dispatched in the following situations:
1. On primary members after initialization from the persister is complete
2. On primary members when a new member joining the store has been successfully initialized. It follows the IStoreMemberUpEvent for the new member.
3. On standalone receiver members after initialization from the persister is complete

4. On backup members after initialization from the the primary is complete. It follows the IStoreMemberUpEvent for the primary member.

The user should listen for the IStoreBindingRoleChangedEvent to keep track of its role and appropriately interpret this event or compare the member reported in this event with the member returned by the IStoreBinding.getMember() method to interpret the event.


Method Summary
 long getLastTransactionId()
          Get the last transaction id.
 IStoreMember getMember()
          Get the initialized member.
 
Methods inherited from interface com.neeve.ods.IStoreEvent
getSource
 
Methods inherited from interface com.neeve.event.lifecycle.ILifecycleEvent
getBackingMessage, getEventTime, setBackingMessage
 
Methods inherited from interface com.neeve.event.IEvent
acquire, dispose, getAcknowledger, getAttachment, getDelay, getDispatchTime, getInstanceNumber, getRemainingTime, getScheduledTime, getType, isEndOfBatch, isHandled, owners, setAcknowledger, setAttachment, setDelay, setEndOfBatch, setHandled, setSource
 
Methods inherited from interface com.neeve.util.UtlReferenceTracker.HasReferenceTracker
referenceTracker
 

Method Detail

getMember

IStoreMember getMember()
Get the initialized member.

When dispatched on primary members, the member returned by this method will be the member initialized by the primary. This will be 'self' i.e. the member returned by IStoreBinding.getMember() when the event is dispatched to notify of the completion of the primary's initialization from the persister or the backup member when the event is dispatched to notify of the completion of the initialization of a backup member joining the store. When dispatched on standalone receiver members or backup members, this field will always be self i.e. the member returned by IStoreBinding.getMember(). Thus, this field can be used to determine whether the event was dispatched as a result of 'self' being initialized as a backup or another member in the cluster being initialized by 'self'.


getLastTransactionId

long getLastTransactionId()
Get the last transaction id.

This field contains the id of the last transaction that was dispatched during the initialization process.



Copyright © 2016 Neeve Research, LLC. All Rights Reserved.