public class

FileStoreStateModel

extends TransitionHandler
java.lang.Object
   ↳ org.apache.helix.api.TransitionHandler
     ↳ org.apache.helix.filestore.FileStoreStateModel

Summary

[Expand]
Inherited Constants
From class org.apache.helix.api.TransitionHandler
[Expand]
Inherited Fields
From class org.apache.helix.api.TransitionHandler
Public Constructors
FileStoreStateModel(HelixManager manager, String resource, String partition)
Public Methods
void onBecomeDroppedFromOffline(Message message, NotificationContext context)
void onBecomeMasterFromSlave(Message message, NotificationContext context)
When the node becomes master, it will start accepting writes and increments the epoch and starts logging the changes in a file
void onBecomeOfflineFromSlave(Message message, NotificationContext context)
void onBecomeSlaveFromMaster(Message message, NotificationContext context)
Stop writing
void onBecomeSlaveFromOffline(Message message, NotificationContext context)
If the node is slave, start the rsync thread if it is not started
void reset()
Called when the state model is reset
[Expand]
Inherited Methods
From class org.apache.helix.api.TransitionHandler
From class java.lang.Object

Public Constructors

public FileStoreStateModel (HelixManager manager, String resource, String partition)

Public Methods

public void onBecomeDroppedFromOffline (Message message, NotificationContext context)

public void onBecomeMasterFromSlave (Message message, NotificationContext context)

When the node becomes master, it will start accepting writes and increments the epoch and starts logging the changes in a file

Throws
Exception

public void onBecomeOfflineFromSlave (Message message, NotificationContext context)

public void onBecomeSlaveFromMaster (Message message, NotificationContext context)

Stop writing

Throws
Exception

public void onBecomeSlaveFromOffline (Message message, NotificationContext context)

If the node is slave, start the rsync thread if it is not started

Throws
Exception

public void reset ()

Called when the state model is reset