类 ClusterSyncInfo

  • 所有已实现的接口:
    org.apache.iotdb.commons.snapshot.SnapshotProcessor

    public class ClusterSyncInfo
    extends java.lang.Object
    implements org.apache.iotdb.commons.snapshot.SnapshotProcessor
    • 字段详细资料

      • LOGGER

        protected static final org.slf4j.Logger LOGGER
    • 构造器详细资料

      • ClusterSyncInfo

        public ClusterSyncInfo()
    • 方法详细资料

      • 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.PipeSinkException
        Check 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)
      • 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.PipeSinkNotExistException
        Check 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 exist
        org.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)
      • getPipeInfo

        public org.apache.iotdb.commons.sync.pipe.PipeInfo getPipeInfo​(java.lang.String pipeName)
                                                                throws org.apache.iotdb.commons.exception.sync.PipeNotExistException
        Get 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.TException
        java.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.TException
        java.io.IOException