Examples of RegionAttributes


Examples of com.gemstone.gemfire.cache.RegionAttributes

    Region region = context.getBean("replicated-with-attributes", Region.class);

    assertNotNull("The 'replicated-with-attributes' Region was not properly configured and initialized!", region);

    RegionAttributes regionAttributes = region.getAttributes();

    assertNotNull(regionAttributes);
    assertFalse(regionAttributes.getCloningEnabled());
    assertEquals(10, regionAttributes.getConcurrencyLevel());
    assertTrue(regionAttributes.isDiskSynchronous());
    assertTrue(regionAttributes.getEnableAsyncConflation());
    assertTrue(regionAttributes.getEnableSubscriptionConflation());
    assertTrue(regionAttributes.getIgnoreJTA());
    assertEquals(10, regionAttributes.getInitialCapacity());
    assertFalse(regionAttributes.getIndexMaintenanceSynchronous());
    assertEquals(String.class, regionAttributes.getKeyConstraint());
    assertEquals(0.50, regionAttributes.getLoadFactor(), 0.001);
    assertTrue(regionAttributes.isLockGrantor());
    assertTrue(regionAttributes.getMulticastEnabled());
    assertEquals(Scope.GLOBAL, regionAttributes.getScope());
    assertEquals(String.class, regionAttributes.getValueConstraint());
  }
View Full Code Here

Examples of com.gemstone.gemfire.cache.RegionAttributes

    when(region.createSubregion(anyString(), any(RegionAttributes.class))).thenAnswer(new Answer<Region>() {
      @Override
      public Region answer(InvocationOnMock invocation) throws Throwable {
        String name = (String) invocation.getArguments()[0];
        RegionAttributes attributes = (RegionAttributes) invocation.getArguments()[1];

        Region parent = (Region) invocation.getMock();
        String parentName = parent.getName();
        String regionName = parentName.startsWith("/") ? parentName+"/"+name : "/"+parentName+"/"+ name;
View Full Code Here

Examples of com.volantis.mcs.papi.RegionAttributes

            throws PAPIException {

        MarinerPageContext pageContext =
                ContextInternals.getMarinerPageContext(context);

        RegionAttributes attributes = (RegionAttributes) papiAttributes;

        if (logger.isDebugEnabled()) {
            logger.debug("RegionElement start " + attributes.getName());
        }

        String regionName = attributes.getName();

        if (regionName == null) {
            logger.error("region-name-missing");
            throw new PAPIException(
                    exceptionLocalizer.format("region-name-missing"));
        }

        FormatReference formatRef =
                FormatReferenceParser.parse(regionName, pageContext);
        Region region = pageContext.getRegion(formatRef.getStem());
        NDimensionalIndex regionIndex = formatRef.getIndex();

        if (region == null) {
            logger.info("region-missing", new Object[]{attributes.getName()});
            skipped = true;
            return SKIP_ELEMENT_BODY;
        }

        regionInstance = (RegionInstance) pageContext.getFormatInstance(
View Full Code Here

Examples of com.volantis.mcs.papi.RegionAttributes

        // Fake a close element so that whitespace is handled normally since we
        // have no element to represent pane at the moment.
        pageContext.getCurrentOutputBuffer()
                .handleCloseElementWhitespace();

        RegionAttributes attributes = (RegionAttributes) papiAttributes;

        if (logger.isDebugEnabled()) {
            logger.debug("RegionElement end " + attributes.getName());
        }

        if (skipped) {
            return CONTINUE_PROCESSING;
        }
View Full Code Here

Examples of com.volantis.mcs.papi.RegionAttributes

            }
        }

        // If we are opening a Region param[1] will be the name
        if (attributes instanceof RegionAttributes && params.length >= 2) {
            RegionAttributes ra = (RegionAttributes)attributes;
            ra.setName(params[1]);
        }

        // Process start element, this is the thing which does
        // the work.
        int result = element.elementStart(getCurrentRequestContext(), attributes);
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.