Class SchemaRegionStateMachine
- java.lang.Object
-
- org.apache.iotdb.db.consensus.statemachine.BaseStateMachine
-
- org.apache.iotdb.db.consensus.statemachine.SchemaRegionStateMachine
-
- All Implemented Interfaces:
org.apache.iotdb.consensus.IStateMachine,org.apache.iotdb.consensus.IStateMachine.EventApi
public class SchemaRegionStateMachine extends BaseStateMachine
-
-
Constructor Summary
Constructors Constructor Description SchemaRegionStateMachine(ISchemaRegion schemaRegion)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisReadOnly()voidloadSnapshot(java.io.File latestSnapshotRootDir)org.apache.iotdb.consensus.common.DataSetread(org.apache.iotdb.consensus.common.request.IConsensusRequest request)voidstart()voidstop()booleantakeSnapshot(java.io.File snapshotDir)org.apache.iotdb.common.rpc.thrift.TSStatuswrite(org.apache.iotdb.consensus.common.request.IConsensusRequest request)-
Methods inherited from class org.apache.iotdb.db.consensus.statemachine.BaseStateMachine
getFragmentInstance, getPlanNode
-
-
-
-
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)
-
-