Package org.jvnet.glassfish.comms.replication.sessmgmt

Examples of org.jvnet.glassfish.comms.replication.sessmgmt.SipTransactionPersistentManager$PrivilegedStoreLoadServletTimer


   
    protected abstract void setDuplicateIdsSemanticsAllowedForDialogs(ReplicationDialogFragmentManager mgr);

    public void initializePersistenceStrategy(ConvergedContext ctx,
            SessionManager sipSmBean, SipContainerAvailability sca) {
        SipTransactionPersistentManager mgr = new SipTransactionPersistentManager();
        mgr.setPassedInPersistenceType(getPassedInPersistenceType());

        initializePersistenceStrategy(mgr, ctx, sipSmBean, sca);

        setSessionFactory(mgr);
       
        setDuplicateIdsSemanticsAllowed(mgr);

        ReplicaCache sasReplicaCache = new ReplicaCache(mgr);
        mgr.setSipApplicationSessionReplicaCache(sasReplicaCache);
        ReplicaCache ssReplicaCache = new ReplicaCache(mgr);
        mgr.setSipSessionReplicaCache(ssReplicaCache);
        ReplicaCache stReplicaCache = new ReplicaCache(mgr);
        mgr.setServletTimerReplicaCache(stReplicaCache);       

        mgr.setSkipRollingUpgradeBackupRestore(skipRollingUpgradeBackupRestore);
        mgr.setRollingUpgradeBackupDirectory(rollingUpgradeBackupDirectory);

        mgr.setSipApplicationSessionStore(new SipApplicationSessionStoreImpl());
        mgr.setSipSessionStore(new SipSessionStoreImpl());
        mgr.setServletTimerStore(new ServletTimerStoreImpl());

        /*
         * Add StorePools
         */
        ServerConfigReader configReader = new ServerConfigReader();

        int haStorePoolSize = configReader.getHAStorePoolSizeFromConfig();
        int haStorePoolUpperSize = configReader.getHAStorePoolUpperSizeFromConfig();
        int haStorePoolPollTime = configReader.getHAStorePoolPollTimeFromConfig();

        // SipApplicationSession StorePool       
        StoreFactory sipApplicationSessionStoreFactory = new SipApplicationSessionStoreFactory();
        StorePool sipApplicationSessionStorePool = new StorePool(haStorePoolSize,
                haStorePoolUpperSize, haStorePoolPollTime,
                sipApplicationSessionStoreFactory);
        mgr.setSipApplicationSessionStorePool(sipApplicationSessionStorePool);

        // SipSession StorePool
        StoreFactory sipSessionStoreFactory = new SipSessionStoreFactory();
        StorePool sipSessionStorePool = new StorePool(haStorePoolSize,
                haStorePoolUpperSize, haStorePoolPollTime,
                sipSessionStoreFactory);
        mgr.setSipSessionStorePool(sipSessionStorePool);

        // ServletTimer StorePool
        StoreFactory servletTimerStoreFactory = new ServletTimerStoreFactory();
        StorePool servletTimerStorePool = new StorePool(haStorePoolSize,
                haStorePoolUpperSize, haStorePoolPollTime,
                servletTimerStoreFactory);
        mgr.setServletTimerStorePool(servletTimerStorePool);

        ctx.setSipSessionManager(mgr);

        // If we are doing replication initialize jxta pipes if they
        // haven't been already
View Full Code Here

TOP

Related Classes of org.jvnet.glassfish.comms.replication.sessmgmt.SipTransactionPersistentManager$PrivilegedStoreLoadServletTimer

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.