接口 DistroTransportAgent


public interface DistroTransportAgent
Distro transport agent.
作者:
xiweng.yy
  • 方法详细资料

    • supportCallbackTransport

      boolean supportCallbackTransport()
      Whether support transport data with callback.
      返回:
      true if support, otherwise false
    • syncData

      boolean syncData(DistroData data, String targetServer)
      Sync data.
      参数:
      data - data
      targetServer - target server
      返回:
      true is sync successfully, otherwise false
    • syncData

      void syncData(DistroData data, String targetServer, DistroCallback callback)
      Sync data with callback.
      参数:
      data - data
      targetServer - target server
      callback - callback
      抛出:
      UnsupportedOperationException - if method supportCallbackTransport is false, should throw UnsupportedOperationException
    • syncVerifyData

      boolean syncVerifyData(DistroData verifyData, String targetServer)
      Sync verify data.
      参数:
      verifyData - verify data
      targetServer - target server
      返回:
      true is verify successfully, otherwise false
    • syncVerifyData

      void syncVerifyData(DistroData verifyData, String targetServer, DistroCallback callback)
      Sync verify data.
      参数:
      verifyData - verify data
      targetServer - target server
      callback - callback
      抛出:
      UnsupportedOperationException - if method supportCallbackTransport is false, should throw UnsupportedOperationException
    • getData

      DistroData getData(DistroKey key, String targetServer)
      get Data from target server.
      参数:
      key - key of data
      targetServer - target server
      返回:
      distro data
    • getDatumSnapshot

      DistroData getDatumSnapshot(String targetServer)
      Get all datum snapshot from target server.
      参数:
      targetServer - target server.
      返回:
      distro data