Class SyncService

  • All Implemented Interfaces:
    org.apache.iotdb.commons.service.IService

    public class SyncService
    extends java.lang.Object
    implements org.apache.iotdb.commons.service.IService
    • Method Detail

      • getInstance

        public static SyncService getInstance()
      • handshake

        public org.apache.iotdb.common.rpc.thrift.TSStatus handshake​(org.apache.iotdb.service.rpc.thrift.TSyncIdentityInfo identityInfo)
      • transportFile

        public org.apache.iotdb.common.rpc.thrift.TSStatus transportFile​(org.apache.iotdb.service.rpc.thrift.TSyncTransportMetaInfo metaInfo,
                                                                         java.nio.ByteBuffer buff)
                                                                  throws org.apache.thrift.TException
        Throws:
        org.apache.thrift.TException
      • transportPipeData

        public org.apache.iotdb.common.rpc.thrift.TSStatus transportPipeData​(java.nio.ByteBuffer buff)
                                                                      throws org.apache.thrift.TException
        Throws:
        org.apache.thrift.TException
      • handleClientExit

        public void handleClientExit()
      • getPipeSink

        public PipeSink getPipeSink​(java.lang.String name)
      • getAllPipeSink

        public java.util.List<PipeSink> getAllPipeSink()
      • getAllPipeInfos

        public java.util.List<PipeInfo> getAllPipeInfos()
      • showPipe

        public java.util.List<org.apache.iotdb.confignode.rpc.thrift.TPipeInfo> showPipe​(java.lang.String pipeName)
      • start

        public void start()
                   throws org.apache.iotdb.commons.exception.StartupException
        IService *
        Specified by:
        start in interface org.apache.iotdb.commons.service.IService
        Throws:
        org.apache.iotdb.commons.exception.StartupException
      • stop

        public void stop()
        Specified by:
        stop in interface org.apache.iotdb.commons.service.IService
      • shutdown

        public void shutdown​(long milliseconds)
                      throws org.apache.iotdb.commons.exception.ShutdownException
        Specified by:
        shutdown in interface org.apache.iotdb.commons.service.IService
        Throws:
        org.apache.iotdb.commons.exception.ShutdownException
      • getID

        public org.apache.iotdb.commons.service.ServiceType getID()
        Specified by:
        getID in interface org.apache.iotdb.commons.service.IService
      • getOrCreateSyncManager

        public java.util.List<ISyncManager> getOrCreateSyncManager​(java.lang.String dataRegionId)
      • deleteSyncManager

        public void deleteSyncManager​(java.lang.String dataRegionId)
        This method will be called before deleting dataRegion