Examples of StoreDefinition


Examples of com.adaptrex.core.ext.StoreDefinition

    String fullStoreName = config.getNamespace() + ".store." + storeName;
   
    /*
     * Create the store definition
     */
    StoreDefinition storeDefinition = new StoreDefinition();
    storeDefinition.setModelName(fullModelName);
   
    storeDefinition.setClearOnPageLoad(this.clearOnPageLoad);
    storeDefinition.setClearRemovedOnLoad(this.clearRemovedOnLoad);
    storeDefinition.setAutoSync(this.autoSync);
    storeDefinition.setAutoLoad(this.autoLoad);
    storeDefinition.setRemoteGroup(this.remoteGroup);
    storeDefinition.setRemoteSort(this.remoteSort);
    storeDefinition.setRemoteFilter(this.remoteFilter);
    storeDefinition.setSortOnFilter(this.sortOnFilter);
    storeDefinition.setBuffered(this.buffered);
    storeDefinition.setTrailingBufferZone(this.trailingBufferZone);
    storeDefinition.setLeadingBufferZone(this.leadingBufferZone);
    storeDefinition.setPurgePageCount(this.purgePageCount);
    storeDefinition.setGroupers(this.groupers);
    storeDefinition.setSorters(this.sorters);
    storeDefinition.setPageSize(this.pageSize);
    storeDefinition.setFilters(this.filters);
   
   

    if (this.inline != null && this.inline) {
      ORMStoreData storeData = config.getORMPersistenceManager().getStoreData(config);
      storeData.setFilters(this.filters);
      storeData.setGroupers(this.groupers);
      storeData.setLimit(this.pageSize);
      storeData.setParams(this.params);
      storeData.setSorters(this.sorters);
      storeData.setStart(this.start);
      storeData.setWhere(this.where);
     
      storeDefinition.setData(storeData.getData());
    }
   
    String storeOutput;
    if (request.getAttribute("adaptrex_touch") == null) {
      storeOutput = "<script type='text/javascript'>\n" +
View Full Code Here

Examples of com.adaptrex.core.ext.data.StoreDefinition

            + (rest.equals("true") ? clazz.getSimpleName().toLowerCase() : rest);
        config.setProxy(new RestProxy(restPath, config));
      }


      StoreDefinition storeDefinition = store.getStoreDefinition();
      ModelDefinition baseModelDefinition = store.getModelDefinition();

      /*
       * Write the javascript for this store/model.
       *
 
View Full Code Here

Examples of voldemort.store.StoreDefinition

     * Tests that getAll returns partial results
     */
    @Test
    public void testPartialGetAll() throws Exception {
        // create a store with rf=1 i.e disjoint partitions
        StoreDefinition definition = new StoreDefinitionBuilder().setName("test")
                                                                 .setType("foo")
                                                                 .setKeySerializer(new SerializerDefinition("test"))
                                                                 .setValueSerializer(new SerializerDefinition("test"))
                                                                 .setRoutingPolicy(RoutingTier.CLIENT)
                                                                 .setRoutingStrategyType(RoutingStrategyType.CONSISTENT_STRATEGY)
View Full Code Here

Examples of voldemort.store.StoreDefinition

        zoneReplicationFactor.put(2, 1);

        // Create a store with RF=3, Required reads = 3 and zone count reads = 2
        // This ensures that a GET operation requires a response from all 3
        // nodes (from the respective 3 zones)
        StoreDefinition definition = new StoreDefinitionBuilder().setName("test")
                                                                 .setType("foo")
                                                                 .setKeySerializer(new SerializerDefinition("test"))
                                                                 .setValueSerializer(new SerializerDefinition("test"))
                                                                 .setRoutingPolicy(RoutingTier.CLIENT)
                                                                 .setRoutingStrategyType(RoutingStrategyType.ZONE_STRATEGY)
View Full Code Here

Examples of voldemort.store.StoreDefinition

    @Test
    public void testGetAllWithFailingStore() throws Exception {
        cluster = VoldemortTestConstants.getTwoNodeCluster();

        StoreDefinition storeDef = ServerTestUtils.getStoreDef("test",
                                                               2,
                                                               1,
                                                               1,
                                                               2,
                                                               2,
View Full Code Here

Examples of voldemort.store.StoreDefinition

        // PR = RR = 3
        // PW = RW = 6
        // Zone Reads = 2
        // Zone Writes = 2
        StoreDefinition storeDef = ServerTestUtils.getStoreDef("test",
                                                               3,
                                                               3,
                                                               6,
                                                               6,
                                                               2,
View Full Code Here

Examples of voldemort.store.StoreDefinition

     */
    @Test
    public void testGetAllWithMorePreferredReadsThanNodes() throws Exception {
        cluster = VoldemortTestConstants.getTwoNodeCluster();

        StoreDefinition storeDef = ServerTestUtils.getStoreDef("test",
                                                               2,
                                                               2,
                                                               1,
                                                               2,
                                                               2,
View Full Code Here

Examples of voldemort.store.StoreDefinition

     * to respond.
     */
    @Test
    public void testPutWithOneNodeDownAndOneNodeSlow() throws Exception {
        cluster = VoldemortTestConstants.getThreeNodeCluster();
        StoreDefinition storeDef = ServerTestUtils.getStoreDef("test",
                                                               3,
                                                               2,
                                                               2,
                                                               2,
                                                               2,
View Full Code Here

Examples of voldemort.store.StoreDefinition

    }

    @Test
    public void testPutTimeout() throws Exception {
        int timeout = 50;
        StoreDefinition definition = new StoreDefinitionBuilder().setName("test")
                                                                 .setType("foo")
                                                                 .setKeySerializer(new SerializerDefinition("test"))
                                                                 .setValueSerializer(new SerializerDefinition("test"))
                                                                 .setRoutingPolicy(RoutingTier.CLIENT)
                                                                 .setRoutingStrategyType(RoutingStrategyType.CONSISTENT_STRATEGY)
View Full Code Here

Examples of voldemort.store.StoreDefinition

    }

    @Test
    public void testGetTimeout() throws Exception {
        int timeout = 50;
        StoreDefinition definition = new StoreDefinitionBuilder().setName("test")
                                                                 .setType("foo")
                                                                 .setKeySerializer(new SerializerDefinition("test"))
                                                                 .setValueSerializer(new SerializerDefinition("test"))
                                                                 .setRoutingPolicy(RoutingTier.CLIENT)
                                                                 .setRoutingStrategyType(RoutingStrategyType.CONSISTENT_STRATEGY)
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.