Package com.moesol.geoserver.sync.core

Examples of com.moesol.geoserver.sync.core.ServerReconciler


    Sha1SyncJson output = new Sha1SyncJson().level(2).max(1).hashes(
      new Sha1SyncPositionHash().position("aa").summary("111111"),
      new Sha1SyncPositionHash().position("bb").summary("222222"),
      new Sha1SyncPositionHash().position("cc").summary("333333")
    );
    ServerReconciler r = new ServerReconciler(local, remote);
    r.filterDownNextLevel(output);
    check(output, 0, "aa", "111111");
    check(output, 1, "bb", "222222");
    check(output, 2, "cc", "333333");
    assertEquals(3, output.hashes().size());
  }
View Full Code Here


      new Sha1SyncPositionHash().position("aaaa").summary("aaaaaa"),
      new Sha1SyncPositionHash().position("aabb").summary("aabbbb"),
      new Sha1SyncPositionHash().position("bbbb").summary("bbbbbb"),
      new Sha1SyncPositionHash().position("ccaa").summary("ccaaaa")
    );
    ServerReconciler r = new ServerReconciler(local, remote);
    r.filterDownNextLevel(output);
    check(output, 0, "aaaa", "aaaaaa");
    check(output, 1, "aabb", "aabbbb");
    check(output, 2, "bbbb", "bbbbbb");
    check(output, 3, "dd", null);
    assertEquals(4, output.hashes().size());
View Full Code Here

      Sha1SyncJson localSha1SyncJson = grouper.getJson();
     
      grouper.groupForLevel(m_remoteSha1SyncJson.level() + 1);
      Sha1SyncJson outputSha1SyncJson = grouper.getJson();
     
      ServerReconciler recon = new ServerReconciler(localSha1SyncJson, m_remoteSha1SyncJson);
      recon.filterDownNextLevel(outputSha1SyncJson);
     
    LOGGER.log(Level.FINER, "attributes({0}), local({1}), remote({2})",
        new Object[] { m_featureSha1Sync.getAttributesToInclude(), localSha1SyncJson, m_remoteSha1SyncJson});
      return outputSha1SyncJson;
  }
View Full Code Here

TOP

Related Classes of com.moesol.geoserver.sync.core.ServerReconciler

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.