Package com.github.ambry.cloud
Class OnlineOfflineHelixVcrStateModel
- java.lang.Object
-
- org.apache.helix.participant.statemachine.StateModel
-
- com.github.ambry.cloud.OnlineOfflineHelixVcrStateModel
-
public class OnlineOfflineHelixVcrStateModel extends org.apache.helix.participant.statemachine.StateModel
StateModel
to use when the VCR participants register to Helix. The methods are callbacks that get called within a participant whenever its state changes in Helix.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
onTransitionToDroppedFromOffline(org.apache.helix.model.Message message, org.apache.helix.NotificationContext context)
void
onTransitionToOfflineFromOnline(org.apache.helix.model.Message message, org.apache.helix.NotificationContext context)
void
onTransitionToOnlineFromOffline(org.apache.helix.model.Message message, org.apache.helix.NotificationContext context)
void
reset()
-
-
-
Method Detail
-
onTransitionToOnlineFromOffline
public void onTransitionToOnlineFromOffline(org.apache.helix.model.Message message, org.apache.helix.NotificationContext context)
-
onTransitionToOfflineFromOnline
public void onTransitionToOfflineFromOnline(org.apache.helix.model.Message message, org.apache.helix.NotificationContext context)
-
onTransitionToDroppedFromOffline
public void onTransitionToDroppedFromOffline(org.apache.helix.model.Message message, org.apache.helix.NotificationContext context)
-
reset
public void reset()
- Overrides:
reset
in classorg.apache.helix.participant.statemachine.StateModel
-
-