public static class

LogicalModelExample.LockUnlockStateModel

extends TransitionHandler
java.lang.Object
   ↳ org.apache.helix.api.TransitionHandler
     ↳ org.apache.helix.examples.LogicalModelExample.LockUnlockStateModel

Class Overview

Dummy state model that just prints state transitions for the lock-unlock model

Summary

[Expand]
Inherited Constants
From class org.apache.helix.api.TransitionHandler
[Expand]
Inherited Fields
From class org.apache.helix.api.TransitionHandler
Public Constructors
LogicalModelExample.LockUnlockStateModel(PartitionId partitionId)
Instantiate for a partition
Public Methods
void onBecomeAnyFromAny(Message message, NotificationContext context)
void onBecomeDroppedFromReleased(Message message, NotificationContext context)
void onBecomeLockedFromReleased(Message message, NotificationContext context)
void onBecomeReleasedFromLocked(Message message, NotificationContext context)
[Expand]
Inherited Methods
From class org.apache.helix.api.TransitionHandler
From class java.lang.Object

Public Constructors

public LogicalModelExample.LockUnlockStateModel (PartitionId partitionId)

Instantiate for a partition

Parameters
partitionId the partition for which to track state transitions

Public Methods

public void onBecomeAnyFromAny (Message message, NotificationContext context)

public void onBecomeDroppedFromReleased (Message message, NotificationContext context)

public void onBecomeLockedFromReleased (Message message, NotificationContext context)

public void onBecomeReleasedFromLocked (Message message, NotificationContext context)