public abstract class

StateTransitionHandlerFactory

extends Object
java.lang.Object
   ↳ org.apache.helix.api.StateTransitionHandlerFactory<T extends org.apache.helix.api.TransitionHandler>
Known Direct Subclasses

Summary

Public Constructors
StateTransitionHandlerFactory()
Public Methods
BatchMessageWrapper createAndAddBatchMessageWrapper(ResourceId resourceId)
create a batch-message-wrapper for a resource and put it into map
T createAndAddSTransitionHandler(PartitionId partitionId)
Create a state model for a partition
BatchMessageWrapper createBatchMessageWrapper(ResourceId resourceId)
create a default batch-message-wrapper for a resource
abstract T createStateTransitionHandler(PartitionId partitionId)
This method will be invoked only once per partition per session
BatchMessageWrapper getBatchMessageWrapper(ResourceId resourceId)
get batch-message-wrapper for a resource
Set<PartitionId> getPartitionSet()
get partition set
T getTransitionHandler(PartitionId partitionId)
Get the state model for a partition
T removeTransitionHandler(PartitionId partitionId)
remove state model for a partition
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public StateTransitionHandlerFactory ()

Public Methods

public BatchMessageWrapper createAndAddBatchMessageWrapper (ResourceId resourceId)

create a batch-message-wrapper for a resource and put it into map

public T createAndAddSTransitionHandler (PartitionId partitionId)

Create a state model for a partition

public BatchMessageWrapper createBatchMessageWrapper (ResourceId resourceId)

create a default batch-message-wrapper for a resource

public abstract T createStateTransitionHandler (PartitionId partitionId)

This method will be invoked only once per partition per session

public BatchMessageWrapper getBatchMessageWrapper (ResourceId resourceId)

get batch-message-wrapper for a resource

public Set<PartitionId> getPartitionSet ()

get partition set

Returns
  • partitionId set

public T getTransitionHandler (PartitionId partitionId)

Get the state model for a partition

Returns
  • state model if exists, null otherwise

public T removeTransitionHandler (PartitionId partitionId)

remove state model for a partition

Returns
  • state model removed or null if not exist