Examples of WADISessionManagerConfigInfo


Examples of org.apache.geronimo.clustering.wadi.WADISessionManagerConfigInfo

        } catch (URISyntaxException e) {
            AssertionError error = new AssertionError("contextPath [" + contextPath + "] cannot be parsed as an URI.");
            throw (AssertionError) error.initCause(e);
        }
       
        WADISessionManagerConfigInfo configInfo = new WADISessionManagerConfigInfo(serviceSpaceName,
                sweepInterval,
                numPartitions,
                sessionTimeout.intValue(),
                disableReplication,
                deltaReplication);
View Full Code Here

Examples of org.apache.geronimo.clustering.wadi.WADISessionManagerConfigInfo

            serviceSpaceName = new URI(contextPath);
        } catch (URISyntaxException e) {
            throw (AssertionError) new AssertionError("contextPath [" + contextPath + "] cannot be parsed as an URI.").initCause(e);
        }
       
        WADISessionManagerConfigInfo configInfo = new WADISessionManagerConfigInfo(serviceSpaceName,
                sweepInterval,
                numPartitions,
                sessionTimeout.intValue(),
                disableReplication,
                deltaReplication);
View Full Code Here

Examples of org.apache.geronimo.clustering.wadi.WADISessionManagerConfigInfo

        } catch (URISyntaxException e) {
            AssertionError error = new AssertionError("contextPath [" + ejbModuleName + "] cannot be parsed as an URI.");
            throw (AssertionError) error.initCause(e);
        }
       
        WADISessionManagerConfigInfo configInfo = new WADISessionManagerConfigInfo(serviceSpaceName,
                sweepInterval,
                numPartitions,
                sessionTimeout,
                disableReplication,
                deltaReplication);
View Full Code Here

Examples of org.apache.geronimo.clustering.wadi.WADISessionManagerConfigInfo

            serviceSpaceName = new URI(contextPath);
        } catch (URISyntaxException e) {
            throw (AssertionError) new AssertionError("contextPath [" + contextPath + "] cannot be parsed as an URI.").initCause(e);
        }

        WADISessionManagerConfigInfo configInfo = new WADISessionManagerConfigInfo(serviceSpaceName,
                sweepInterval,
                numPartitions,
                sessionTimeout.intValue(),
                disableReplication,
                deltaReplication);
View Full Code Here

Examples of org.apache.geronimo.clustering.wadi.WADISessionManagerConfigInfo

        } catch (URISyntaxException e) {
            AssertionError error = new AssertionError("contextPath [" + ejbModuleName + "] cannot be parsed as an URI.");
            throw (AssertionError) error.initCause(e);
        }

        WADISessionManagerConfigInfo configInfo = new WADISessionManagerConfigInfo(serviceSpaceName,
                sweepInterval,
                numPartitions,
                sessionTimeout,
                disableReplication,
                deltaReplication);
View Full Code Here

Examples of org.apache.geronimo.clustering.wadi.WADISessionManagerConfigInfo

        assertPattern(beanData, BasicWADISessionManager.GBEAN_REF_BACKING_STRATEGY_FACTORY,
            new AbstractNameQuery(null, Collections.singletonMap("name", "SpecificFactoryName")));
        assertPattern(beanData, BasicWADISessionManager.GBEAN_REF_CLUSTER,
            new AbstractNameQuery(null, Collections.singletonMap("name", "SpecificClusterName")));
       
        WADISessionManagerConfigInfo configInfo = (WADISessionManagerConfigInfo)
            beanData.getAttribute(BasicWADISessionManager.GBEAN_ATTR_WADI_CONFIG_INFO);
        assertEquals(10, configInfo.getSweepInterval());
        assertEquals(2, configInfo.getSessionTimeoutSeconds());
        assertEquals(12, configInfo.getNumPartitions());
        assertTrue(configInfo.isDeltaReplication());
        assertTrue(configInfo.isDisableReplication());
    }
View Full Code Here

Examples of org.apache.geronimo.clustering.wadi.WADISessionManagerConfigInfo

    private void assertSessionManagerWithDefault(GBeanData beanData) throws URISyntaxException {
        assertNotNull(beanData);
        assertPattern(beanData, BasicWADISessionManager.GBEAN_REF_BACKING_STRATEGY_FACTORY, backingStrategyFactoryQuery);
        assertPattern(beanData, BasicWADISessionManager.GBEAN_REF_CLUSTER, clusterNameQuery);
       
        WADISessionManagerConfigInfo configInfo = (WADISessionManagerConfigInfo)
            beanData.getAttribute(BasicWADISessionManager.GBEAN_ATTR_WADI_CONFIG_INFO);
        assertEquals(1, configInfo.getSweepInterval());
        assertEquals(2, configInfo.getSessionTimeoutSeconds());
        assertEquals(3, configInfo.getNumPartitions());
        assertEquals(new URI(contextPath), configInfo.getServiceSpaceURI());
        assertFalse(configInfo.isDeltaReplication());
        assertFalse(configInfo.isDisableReplication());
    }
View Full Code Here

Examples of org.apache.geronimo.clustering.wadi.WADISessionManagerConfigInfo

        Integer sessionTimeout = (Integer) webModuleData.getAttribute(JettyWebAppContext.GBEAN_ATTR_SESSION_TIMEOUT);
        if (null == sessionTimeout) {
            throw new AssertionError();
        }
       
        WADISessionManagerConfigInfo configInfo = new WADISessionManagerConfigInfo(
                beanData.getAbstractName().toURI(),
                sweepInterval,
                numPartitions,
                sessionTimeout.intValue());
        beanData.setAttribute(BasicWADISessionManager.GBEAN_ATTR_WADI_CONFIG_INFO, configInfo);
View Full Code Here

Examples of org.apache.geronimo.clustering.wadi.WADISessionManagerConfigInfo

        Integer sessionTimeout = (Integer) webModuleData.getAttribute(JettyWebAppContext.GBEAN_ATTR_SESSION_TIMEOUT);
        if (null == sessionTimeout) {
            throw new AssertionError();
        }
       
        WADISessionManagerConfigInfo configInfo = new WADISessionManagerConfigInfo(
                beanData.getAbstractName().toURI(),
                sweepInterval,
                numPartitions,
                sessionTimeout.intValue());
        beanData.setAttribute(BasicWADISessionManager.GBEAN_ATTR_WADI_CONFIG_INFO, configInfo);
View Full Code Here

Examples of org.apache.geronimo.clustering.wadi.WADISessionManagerConfigInfo

        } catch (URISyntaxException e) {
            AssertionError error = new AssertionError("contextPath [" + contextPath + "] cannot be parsed as an URI.");
            throw (AssertionError) error.initCause(e);
        }
       
        WADISessionManagerConfigInfo configInfo = new WADISessionManagerConfigInfo(serviceSpaceName,
                sweepInterval,
                numPartitions,
                sessionTimeout.intValue(),
                disableReplication,
                deltaReplication);
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.