类 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.RetryPolicy
    StateMachine for ConfigNodeRegion
    • 嵌套类概要

      • 从接口继承的嵌套类/接口 org.apache.iotdb.consensus.IStateMachine

        org.apache.iotdb.consensus.IStateMachine.EventApi, org.apache.iotdb.consensus.IStateMachine.Registry, org.apache.iotdb.consensus.IStateMachine.RetryPolicy
    • 方法概要

      所有方法 实例方法 具体方法 
      修饰符和类型 方法 说明
      ConfigManager getConfigManager()  
      long getSleepTime()  
      boolean isReadOnly()  
      void loadSnapshot​(java.io.File latestSnapshotRootDir)  
      void notifyLeaderChanged​(org.apache.iotdb.commons.consensus.ConsensusGroupId groupId, int newLeaderId)  
      protected org.apache.iotdb.consensus.common.DataSet read​(ConfigPhysicalPlan plan)
      Transmit PhysicalPlan to confignode.service.executor.PlanExecutor
      org.apache.iotdb.consensus.common.DataSet read​(org.apache.iotdb.consensus.common.request.IConsensusRequest request)  
      void setConfigManager​(ConfigManager configManager)  
      boolean shouldRetry​(org.apache.iotdb.common.rpc.thrift.TSStatus writeResult)  
      void start()  
      void stop()  
      boolean takeSnapshot​(java.io.File snapshotDir)  
      org.apache.iotdb.common.rpc.thrift.TSStatus updateResult​(org.apache.iotdb.common.rpc.thrift.TSStatus previousResult, org.apache.iotdb.common.rpc.thrift.TSStatus retryResult)  
      protected org.apache.iotdb.common.rpc.thrift.TSStatus write​(ConfigPhysicalPlan plan)
      Transmit PhysicalPlan to confignode.service.executor.PlanExecutor
      org.apache.iotdb.common.rpc.thrift.TSStatus write​(org.apache.iotdb.consensus.common.request.IConsensusRequest request)  
      • 从类继承的方法 java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • 从接口继承的方法 org.apache.iotdb.consensus.IStateMachine

        event, getSnapshotFiles, getSnapshotRoot, takeSnapshot
      • 从接口继承的方法 org.apache.iotdb.consensus.IStateMachine.EventApi

        notifyConfigurationChanged
    • 方法详细资料

      • 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