Class SchemaRegionStateMachine

  • All Implemented Interfaces:
    org.apache.iotdb.consensus.IStateMachine, org.apache.iotdb.consensus.IStateMachine.EventApi

    public class SchemaRegionStateMachine
    extends BaseStateMachine
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface org.apache.iotdb.consensus.IStateMachine

        org.apache.iotdb.consensus.IStateMachine.EventApi, org.apache.iotdb.consensus.IStateMachine.Registry
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean isReadOnly()  
      void loadSnapshot​(java.io.File latestSnapshotRootDir)  
      org.apache.iotdb.consensus.common.DataSet read​(org.apache.iotdb.consensus.common.request.IConsensusRequest request)  
      void start()  
      void stop()  
      boolean takeSnapshot​(java.io.File snapshotDir)  
      org.apache.iotdb.common.rpc.thrift.TSStatus write​(org.apache.iotdb.consensus.common.request.IConsensusRequest request)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface org.apache.iotdb.consensus.IStateMachine

        event, getSnapshotFiles
      • Methods inherited from interface org.apache.iotdb.consensus.IStateMachine.EventApi

        notifyConfigurationChanged, notifyLeaderChanged
    • Constructor Detail

      • SchemaRegionStateMachine

        public SchemaRegionStateMachine​(ISchemaRegion schemaRegion)
    • Method Detail

      • start

        public void start()
      • stop

        public void stop()
      • isReadOnly

        public boolean isReadOnly()
      • takeSnapshot

        public boolean takeSnapshot​(java.io.File snapshotDir)
      • loadSnapshot

        public void loadSnapshot​(java.io.File latestSnapshotRootDir)
      • write

        public org.apache.iotdb.common.rpc.thrift.TSStatus write​(org.apache.iotdb.consensus.common.request.IConsensusRequest request)
      • read

        public org.apache.iotdb.consensus.common.DataSet read​(org.apache.iotdb.consensus.common.request.IConsensusRequest request)