类 ClusterSyncInfo
- java.lang.Object
-
- org.apache.iotdb.confignode.persistence.sync.ClusterSyncInfo
-
- 所有已实现的接口:
org.apache.iotdb.commons.snapshot.SnapshotProcessor
public class ClusterSyncInfo extends java.lang.Object implements org.apache.iotdb.commons.snapshot.SnapshotProcessor
-
-
字段概要
字段 修饰符和类型 字段 说明 protected static org.slf4j.LoggerLOGGER
-
构造器概要
构造器 构造器 说明 ClusterSyncInfo()
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 org.apache.iotdb.common.rpc.thrift.TSStatusaddPipeSink(CreatePipeSinkPlan plan)voidcheckAddPipe(org.apache.iotdb.commons.sync.pipe.PipeInfo pipeInfo)Check Pipe before create operationvoidcheckAddPipeSink(CreatePipeSinkPlan createPipeSinkPlan)Check PipeSink before create operationvoidcheckDropPipeSink(java.lang.String pipeSinkName)Check PipeSink before drop operationorg.apache.iotdb.common.rpc.thrift.TSStatusdropPipe(DropPipePlan physicalPlan)org.apache.iotdb.common.rpc.thrift.TSStatusdropPipeSink(DropPipeSinkPlan plan)java.util.List<org.apache.iotdb.commons.sync.pipe.PipeInfo>getAllPipeInfos()org.apache.iotdb.commons.sync.pipe.PipeInfogetPipeInfo(java.lang.String pipeName)Get PipeInfo by pipeName.PipeSinkRespgetPipeSink(GetPipeSinkPlan plan)voidlockSyncMetadata()org.apache.iotdb.common.rpc.thrift.TSStatuspreCreatePipe(PreCreatePipePlan physicalPlan)voidprocessLoadSnapshot(java.io.File snapshotDir)booleanprocessTakeSnapshot(java.io.File snapshotDir)org.apache.iotdb.common.rpc.thrift.TSStatusrecordPipeMessage(RecordPipeMessagePlan physicalPlan)org.apache.iotdb.common.rpc.thrift.TSStatussetPipeStatus(SetPipeStatusPlan physicalPlan)PipeRespshowPipe(ShowPipePlan plan)voidunlockSyncMetadata()
-
-
-
方法详细资料
-
checkAddPipeSink
public void checkAddPipeSink(CreatePipeSinkPlan createPipeSinkPlan) throws org.apache.iotdb.commons.exception.sync.PipeSinkException
Check PipeSink before create operation- 参数:
createPipeSinkPlan- createPipeSinkPlan- 抛出:
org.apache.iotdb.commons.exception.sync.PipeSinkException- if there is PipeSink with the same name exists or attributes is unsupported
-
addPipeSink
public org.apache.iotdb.common.rpc.thrift.TSStatus addPipeSink(CreatePipeSinkPlan plan)
-
checkDropPipeSink
public void checkDropPipeSink(java.lang.String pipeSinkName) throws org.apache.iotdb.commons.exception.sync.PipeSinkExceptionCheck PipeSink before drop operation- 参数:
pipeSinkName- name- 抛出:
org.apache.iotdb.commons.exception.sync.PipeSinkException- if PipeSink is being used or does not exist
-
dropPipeSink
public org.apache.iotdb.common.rpc.thrift.TSStatus dropPipeSink(DropPipeSinkPlan plan)
-
getPipeSink
public PipeSinkResp getPipeSink(GetPipeSinkPlan plan)
-
checkAddPipe
public void checkAddPipe(org.apache.iotdb.commons.sync.pipe.PipeInfo pipeInfo) throws org.apache.iotdb.commons.exception.sync.PipeException, org.apache.iotdb.commons.exception.sync.PipeSinkNotExistExceptionCheck Pipe before create operation- 参数:
pipeInfo- pipe info- 抛出:
org.apache.iotdb.commons.exception.sync.PipeException- if there is Pipe with the same name exists or PipeSink does not existorg.apache.iotdb.commons.exception.sync.PipeSinkNotExistException
-
preCreatePipe
public org.apache.iotdb.common.rpc.thrift.TSStatus preCreatePipe(PreCreatePipePlan physicalPlan)
-
setPipeStatus
public org.apache.iotdb.common.rpc.thrift.TSStatus setPipeStatus(SetPipeStatusPlan physicalPlan)
-
dropPipe
public org.apache.iotdb.common.rpc.thrift.TSStatus dropPipe(DropPipePlan physicalPlan)
-
recordPipeMessage
public org.apache.iotdb.common.rpc.thrift.TSStatus recordPipeMessage(RecordPipeMessagePlan physicalPlan)
-
showPipe
public PipeResp showPipe(ShowPipePlan plan)
-
getPipeInfo
public org.apache.iotdb.commons.sync.pipe.PipeInfo getPipeInfo(java.lang.String pipeName) throws org.apache.iotdb.commons.exception.sync.PipeNotExistExceptionGet PipeInfo by pipeName. Check before start, stop and drop operation- 参数:
pipeName- pipe name- 抛出:
org.apache.iotdb.commons.exception.sync.PipeNotExistException- if there is Pipe does not exist
-
getAllPipeInfos
public java.util.List<org.apache.iotdb.commons.sync.pipe.PipeInfo> getAllPipeInfos()
-
lockSyncMetadata
public void lockSyncMetadata()
-
unlockSyncMetadata
public void unlockSyncMetadata()
-
processTakeSnapshot
public boolean processTakeSnapshot(java.io.File snapshotDir) throws org.apache.thrift.TException, java.io.IOException- 指定者:
processTakeSnapshot在接口中org.apache.iotdb.commons.snapshot.SnapshotProcessor- 抛出:
org.apache.thrift.TExceptionjava.io.IOException
-
processLoadSnapshot
public void processLoadSnapshot(java.io.File snapshotDir) throws org.apache.thrift.TException, java.io.IOException- 指定者:
processLoadSnapshot在接口中org.apache.iotdb.commons.snapshot.SnapshotProcessor- 抛出:
org.apache.thrift.TExceptionjava.io.IOException
-
-