类 ConfigNodeRegionStateMachine
- java.lang.Object
-
- org.apache.iotdb.confignode.consensus.statemachine.ConfigNodeRegionStateMachine
-
- 所有已实现的接口:
org.apache.iotdb.consensus.IStateMachine,org.apache.iotdb.consensus.IStateMachine.EventApi,org.apache.iotdb.consensus.IStateMachine.RetryPolicy
public class ConfigNodeRegionStateMachine extends java.lang.Object implements org.apache.iotdb.consensus.IStateMachine, org.apache.iotdb.consensus.IStateMachine.EventApi, org.apache.iotdb.consensus.IStateMachine.RetryPolicyStateMachine for ConfigNodeRegion
-
-
构造器概要
构造器 构造器 说明 ConfigNodeRegionStateMachine(ConfigManager configManager, ConfigPlanExecutor executor)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 ConfigManagergetConfigManager()longgetSleepTime()booleanisReadOnly()voidloadSnapshot(java.io.File latestSnapshotRootDir)voidnotifyLeaderChanged(org.apache.iotdb.commons.consensus.ConsensusGroupId groupId, int newLeaderId)protected org.apache.iotdb.consensus.common.DataSetread(ConfigPhysicalPlan plan)Transmit PhysicalPlan to confignode.service.executor.PlanExecutororg.apache.iotdb.consensus.common.DataSetread(org.apache.iotdb.consensus.common.request.IConsensusRequest request)voidsetConfigManager(ConfigManager configManager)booleanshouldRetry(org.apache.iotdb.common.rpc.thrift.TSStatus writeResult)voidstart()voidstop()booleantakeSnapshot(java.io.File snapshotDir)org.apache.iotdb.common.rpc.thrift.TSStatusupdateResult(org.apache.iotdb.common.rpc.thrift.TSStatus previousResult, org.apache.iotdb.common.rpc.thrift.TSStatus retryResult)protected org.apache.iotdb.common.rpc.thrift.TSStatuswrite(ConfigPhysicalPlan plan)Transmit PhysicalPlan to confignode.service.executor.PlanExecutororg.apache.iotdb.common.rpc.thrift.TSStatuswrite(org.apache.iotdb.consensus.common.request.IConsensusRequest request)-
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
-
-
构造器详细资料
-
ConfigNodeRegionStateMachine
public ConfigNodeRegionStateMachine(ConfigManager configManager, ConfigPlanExecutor executor)
-
-
方法详细资料
-
getConfigManager
public ConfigManager getConfigManager()
-
setConfigManager
public void setConfigManager(ConfigManager configManager)
-
write
public org.apache.iotdb.common.rpc.thrift.TSStatus write(org.apache.iotdb.consensus.common.request.IConsensusRequest request)
- 指定者:
write在接口中org.apache.iotdb.consensus.IStateMachine
-
write
protected org.apache.iotdb.common.rpc.thrift.TSStatus write(ConfigPhysicalPlan plan)
Transmit PhysicalPlan to confignode.service.executor.PlanExecutor
-
read
public org.apache.iotdb.consensus.common.DataSet read(org.apache.iotdb.consensus.common.request.IConsensusRequest request)
- 指定者:
read在接口中org.apache.iotdb.consensus.IStateMachine
-
takeSnapshot
public boolean takeSnapshot(java.io.File snapshotDir)
- 指定者:
takeSnapshot在接口中org.apache.iotdb.consensus.IStateMachine
-
loadSnapshot
public void loadSnapshot(java.io.File latestSnapshotRootDir)
- 指定者:
loadSnapshot在接口中org.apache.iotdb.consensus.IStateMachine
-
read
protected org.apache.iotdb.consensus.common.DataSet read(ConfigPhysicalPlan plan)
Transmit PhysicalPlan to confignode.service.executor.PlanExecutor
-
notifyLeaderChanged
public void notifyLeaderChanged(org.apache.iotdb.commons.consensus.ConsensusGroupId groupId, int newLeaderId)- 指定者:
notifyLeaderChanged在接口中org.apache.iotdb.consensus.IStateMachine.EventApi
-
start
public void start()
- 指定者:
start在接口中org.apache.iotdb.consensus.IStateMachine
-
stop
public void stop()
- 指定者:
stop在接口中org.apache.iotdb.consensus.IStateMachine
-
isReadOnly
public boolean isReadOnly()
- 指定者:
isReadOnly在接口中org.apache.iotdb.consensus.IStateMachine
-
shouldRetry
public boolean shouldRetry(org.apache.iotdb.common.rpc.thrift.TSStatus writeResult)
- 指定者:
shouldRetry在接口中org.apache.iotdb.consensus.IStateMachine.RetryPolicy
-
updateResult
public org.apache.iotdb.common.rpc.thrift.TSStatus updateResult(org.apache.iotdb.common.rpc.thrift.TSStatus previousResult, org.apache.iotdb.common.rpc.thrift.TSStatus retryResult)- 指定者:
updateResult在接口中org.apache.iotdb.consensus.IStateMachine.RetryPolicy
-
getSleepTime
public long getSleepTime()
- 指定者:
getSleepTime在接口中org.apache.iotdb.consensus.IStateMachine.RetryPolicy
-
-