Examples of ListConfig


Examples of com.hazelcast.config.ListConfig

    }

    protected IList newListWithMaxSizeCfg(int maxSize) {
        String name = randomString();
        Config config = new Config();
        ListConfig listConfig = config.getListConfig(name);
        listConfig.setMaxSize(maxSize);
        HazelcastInstance instance = createHazelcastInstance(config);
        return instance.getList(name);
    }
View Full Code Here

Examples of com.hazelcast.config.ListConfig

    @Test
    public void testMigration() {
        Config config = new Config();
        final String name = randomString();
        config.addListConfig(new ListConfig().setName(name).setBackupCount(1));
        final int insCount = 4;
        TestHazelcastInstanceFactory factory = createHazelcastInstanceFactory(insCount);
        HazelcastInstance instance1 = factory.newHazelcastInstance(config);
        IList list = instance1.getList(name);
View Full Code Here

Examples of com.hazelcast.config.ListConfig

    @Test
    public void testMaxSize() {
        Config config = new Config();
        final String name = "defList";
        config.addListConfig(new ListConfig().setName(name).setBackupCount(1).setMaxSize(100));

        final int insCount = 2;
        TestHazelcastInstanceFactory factory = createHazelcastInstanceFactory(insCount);

        HazelcastInstance instance1 = factory.newHazelcastInstance(config);
View Full Code Here

Examples of de.odysseus.calyxo.panels.conf.ListConfig

    if (log.isTraceEnabled())
      log.trace("list " + name);
    PanelsSupport support = PanelsSupport.getInstance(pageContext);
    context = support.getContext(pageContext);

    ListConfig list = context.lookupListConfig(name);
    if (list == null) {
      throw new JspException("Could not get list " + name);
    }
    items = new ListStatus(list);
    if (varStatus != null) {
View Full Code Here

Examples of de.odysseus.calyxo.panels.conf.ListConfig

      }
      return result;
    }

    ListConfig lookupListConfig(String name) {
      ListConfig result = item.getListConfig(name);
      if (result == null && previous != null) {
        result = previous.lookupListConfig(name);
      }
      return result;
    }
View Full Code Here

Examples of de.odysseus.calyxo.panels.conf.ListConfig

    param = context.lookupParamConfig("param");
    assertNotNull(param);
    assertEquals("test.panel.param", param.getValue());
    context.pop(); // --> /panel

    ListConfig list = context.lookupListConfig("list");
    assertNotNull(list);
    Iterator items = list.getItemConfigs();
    assertTrue(items.hasNext());
    ItemConfig item = (ItemConfig)items.next();
    context.push(item); // --> /panel/item

    param = context.lookupParamConfig("param");
View Full Code Here

Examples of de.odysseus.calyxo.panels.conf.ListConfig

  /**
   * Search receiver and generalizations for a contained list with
   * given name
   */
  ListConfig findListConfigByGeneralization(String name) {
    ListConfig list = getListConfig(name);
    if (list == null && generalizedPanel != null) {
      list = generalizedPanel.findListConfigByGeneralization(name);
    }
    return list;
  }
View Full Code Here

Examples of de.odysseus.calyxo.panels.conf.ListConfig

   * @see de.odysseus.calyxo.panels.conf.PanelConfig#findListConfig(java.lang.String, java.util.Locale)
   */
  public ListConfig findListConfig(String name, Locale locale) {
    PanelConfigImpl panel = this;
    while (panel != null) {
      ListConfig result = panel.findListConfigByGeneralization(name);
      if (result != null) {
        return result;
      }
      panel = panel.lookupBase(locale);
    }
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.