Class ConfigRegionStateMachine
java.lang.Object
org.apache.iotdb.confignode.consensus.statemachine.ConfigRegionStateMachine
- All Implemented Interfaces:
IStateMachine,IStateMachine.EventApi
public class ConfigRegionStateMachine
extends Object
implements IStateMachine, IStateMachine.EventApi
IStateMachine for ConfigRegion.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.iotdb.consensus.IStateMachine
IStateMachine.EventApi, IStateMachine.Registry -
Constructor Summary
ConstructorsConstructorDescriptionConfigRegionStateMachine(ConfigManager configManager, ConfigPlanExecutor executor) -
Method Summary
Modifier and TypeMethodDescriptiondeserializeRequest(IConsensusRequest request) booleanvoidloadSnapshot(File latestSnapshotRootDir) voidnotifyLeaderChanged(ConsensusGroupId groupId, int newLeaderId) voidvoidprotected DataSetread(ConfigPhysicalReadPlan plan) TransmitConfigPhysicalReadPlantoConfigPlanExecutorread(IConsensusRequest request) voidsetConfigManager(ConfigManager configManager) voidstart()voidstop()booleantakeSnapshot(File snapshotDir) protected TSStatuswrite(ConfigPhysicalPlan plan) TransmitConfigPhysicalPlantoConfigPlanExecutorwrite(IConsensusRequest request) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.iotdb.consensus.IStateMachine
clearSnapshot, event, getSnapshotFiles, getSnapshotRoot, hasReleaseAllRegionRelatedResource, takeSnapshotMethods inherited from interface org.apache.iotdb.consensus.IStateMachine.EventApi
notifyConfigurationChanged
-
Constructor Details
-
ConfigRegionStateMachine
-
-
Method Details
-
getConfigManager
-
setConfigManager
-
write
- Specified by:
writein interfaceIStateMachine
-
write
TransmitConfigPhysicalPlantoConfigPlanExecutor -
deserializeRequest
- Specified by:
deserializeRequestin interfaceIStateMachine
-
read
- Specified by:
readin interfaceIStateMachine
-
read
TransmitConfigPhysicalReadPlantoConfigPlanExecutor -
takeSnapshot
- Specified by:
takeSnapshotin interfaceIStateMachine
-
loadSnapshot
- Specified by:
loadSnapshotin interfaceIStateMachine
-
notifyLeaderChanged
- Specified by:
notifyLeaderChangedin interfaceIStateMachine.EventApi
-
notifyNotLeader
public void notifyNotLeader()- Specified by:
notifyNotLeaderin interfaceIStateMachine.EventApi
-
notifyLeaderReady
public void notifyLeaderReady()- Specified by:
notifyLeaderReadyin interfaceIStateMachine.EventApi
-
start
public void start()- Specified by:
startin interfaceIStateMachine
-
stop
public void stop()- Specified by:
stopin interfaceIStateMachine
-
isReadOnly
public boolean isReadOnly()- Specified by:
isReadOnlyin interfaceIStateMachine
-