Package com.moesol.geoserver.sync.client

Examples of com.moesol.geoserver.sync.client.RequestBuilder


    FeatureCollectionType server = make(f("F1",162),f("F5",167),f("F4",169),f("F3",170),f("F2",157),f("F6",164));
   
    GeoserverClientSynchronizer synchronizer = new GeoserverClientSynchronizer(makeConfiguration(), "url", SimulatedRequestBuilder.POST_TEMPLATE);
    Map<Identifier, FeatureAccessor> clientMap = asMap(client);
   
    RequestBuilder builder = new SimulatedRequestBuilder(server);
    synchronizer.setRequestBuilder(builder);
    synchronizer.synchronize(clientMap);

    assertEquals(6, clientMap.size());
    assertEquals(0, synchronizer.getNumCreates());
View Full Code Here


    FeatureCollectionType server = make(f("F1",39),f("F5",40),f("F4",33),f("F3",41),f("F2",36),f("F6",37));
   
    GeoserverClientSynchronizer synchronizer = new GeoserverClientSynchronizer(makeConfiguration(), "url", SimulatedRequestBuilder.POST_TEMPLATE);
    Map<Identifier, FeatureAccessor> clientMap = asMap(client);
   
    RequestBuilder builder = new SimulatedRequestBuilder(server);
    synchronizer.setRequestBuilder(builder);
    synchronizer.synchronize(clientMap);

    assertEquals(6, clientMap.size());
    assertEquals(0, synchronizer.getNumCreates());
View Full Code Here

    FeatureCollectionType server = make(f("F1",63),f("F5",60),f("F4",64),f("F3",58),f("F2",56),f("F6",62));
   
    GeoserverClientSynchronizer synchronizer = new GeoserverClientSynchronizer(makeConfiguration(), "url", SimulatedRequestBuilder.POST_TEMPLATE);
    Map<Identifier, FeatureAccessor> clientMap = asMap(client);
   
    RequestBuilder builder = new SimulatedRequestBuilder(server);
    synchronizer.setRequestBuilder(builder);
    synchronizer.synchronize(clientMap);

    assertEquals(6, clientMap.size());
    assertEquals(0, synchronizer.getNumCreates());
View Full Code Here

      Map<Identifier, FeatureAccessor> oldClientMap = new HashMap<Identifier, FeatureAccessor>(clientMap);
      UpdateRecords changed = randomlyChangeFeatures(serverFeatures);
      listener.reset();
      FeatureCollectionType server = make(serverFeatures);
     
      RequestBuilder builder = new SimulatedRequestBuilder(server);
      synchronizer.setRequestBuilder(builder);
     
      synchronizer.synchronize(clientMap);
     
      if (System.currentTimeMillis() - lastOutput > 1000) {
View Full Code Here

TOP

Related Classes of com.moesol.geoserver.sync.client.RequestBuilder

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.