Examples of StoreFactory


Examples of com.corundumstudio.socketio.store.StoreFactory

        }

        packetHandler = new PacketHandler(packetListener, decoder, namespacesHub);
        authorizeHandler = new AuthorizeHandler(connectPath, scheduler, configuration, namespacesHub);

        StoreFactory factory = configuration.getStoreFactory();
        factory.init(namespacesHub, authorizeHandler, jsonSupport);

        xhrPollingTransport = new XHRPollingTransport(connectPath, ackManager, this, scheduler, authorizeHandler, configuration);
        webSocketTransport = new WebSocketTransport(connectPath, isSsl, ackManager, this, authorizeHandler, heartbeatHandler, factory);
        flashSocketTransport = new FlashSocketTransport(connectPath, isSsl, ackManager, this, authorizeHandler, heartbeatHandler, factory);
View Full Code Here

Examples of com.corundumstudio.socketio.store.StoreFactory

        log.debug("Client with sessionId: {} disconnected", client.getSessionId());
    }

    public void stop() {
        StoreFactory factory = configuration.getStoreFactory();
        factory.shutdown();
        scheduler.shutdown();
    }
View Full Code Here

Examples of com.corundumstudio.socketio.store.StoreFactory

                sslContext = createSSLContext(configuration);
            } catch (Exception e) {
                throw new IllegalStateException(e);
            }
        }
        StoreFactory factory = configuration.getStoreFactory();
        factory.init(namespacesHub, authorizeHandler, jsonSupport);

        authorizeHandler = new AuthorizeHandler(connectPath, scheduler, configuration, namespacesHub, factory, this, ackManager, clientsBox);
        xhrPollingTransport = new PollingTransport(decoder, authorizeHandler, clientsBox);
        webSocketTransport = new WebSocketTransport(isSsl, authorizeHandler, configuration, scheduler, clientsBox);
View Full Code Here

Examples of com.corundumstudio.socketio.store.StoreFactory

        log.debug("Client with sessionId: {} disconnected", client.getSessionId());
    }

    public void stop() {
        StoreFactory factory = configuration.getStoreFactory();
        factory.shutdown();
        scheduler.shutdown();
    }
View Full Code Here

Examples of com.corundumstudio.socketio.store.StoreFactory

        flashPolicyHandler = new FlashPolicyHandler(configuration);
        packetHandler = new PacketHandler(packetListener, decoder, namespacesHub, configuration.getExceptionListener());
        authorizeHandler = new AuthorizeHandler(connectPath, scheduler, configuration, namespacesHub);

        StoreFactory factory = configuration.getStoreFactory();
        factory.init(namespacesHub, authorizeHandler, jsonSupport);

        xhrPollingTransport = new XHRPollingTransport(connectPath, ackManager, this, scheduler, authorizeHandler, configuration);
        webSocketTransport = new WebSocketTransport(connectPath, isSsl, ackManager, this, authorizeHandler, heartbeatHandler, factory, configuration.getMaxFramePayloadLength());
        flashSocketTransport = new FlashSocketTransport(connectPath, isSsl, ackManager, this, authorizeHandler, heartbeatHandler, factory, configuration.getMaxFramePayloadLength());
View Full Code Here

Examples of com.corundumstudio.socketio.store.StoreFactory

        log.debug("Client with sessionId: {} disconnected", client.getSessionId());
    }

    public void stop() {
        StoreFactory factory = configuration.getStoreFactory();
        factory.shutdown();
        scheduler.shutdown();
    }
View Full Code Here

Examples of com.sun.enterprise.ee.web.sessmgmt.StoreFactory

        int haStorePoolSize = configReader.getHAStorePoolSizeFromConfig();
        int haStorePoolUpperSize = configReader.getHAStorePoolUpperSizeFromConfig();
        int haStorePoolPollTime = configReader.getHAStorePoolPollTimeFromConfig();       
       
        StoreFactory haStoreFactory = new ReplicationFullSessionStoreFactory();
        StorePool storePool =
            new StorePool(haStorePoolSize, haStorePoolUpperSize,
                haStorePoolPollTime, haStoreFactory);
        mgr.setStorePool(storePool);       
               
View Full Code Here

Examples of com.sun.enterprise.ee.web.sessmgmt.StoreFactory

        return haSSO;
    }   

    //public void initializeSSOvalve(HASingleSignOn haSSO){
    public void initializeSSOvalve(HASSO haSSO){
        StoreFactory ssoStoreFactory = createSSOStoreFactoryImpl();
        //for now only want singleton store for replication (i.e. nonHA) case
        if(!isPersistenceTypeHA()) {
            ReplicationSingleSignOn replSSO = (ReplicationSingleSignOn)haSSO;
            replSSO.setSingletonSSOStore((ReplicationSSOStore)ssoStoreFactory.createHAStore());
            ReplicaCache replicaCache = new ReplicaCache(replSSO);
            replSSO.setReplicaCache(replicaCache);
        }
        //TODO: get these configuration from server.xml
        StorePool storePool = new StorePool(StorePool.DEFAULT_INITIAL_SIZE, StorePool.DEFAULT_UPPER_SIZE, StorePool.DEFAULT_POLL_TIME, ssoStoreFactory);
View Full Code Here

Examples of com.sun.enterprise.ee.web.sessmgmt.StoreFactory

   
    private final String EE_SSO_STORE_FACTORY_IMPL
        = "com.sun.enterprise.ee.web.authenticator.SSOStoreFactoryImpl";

    public StoreFactory getHASSOStoreFactoryImpl() {
        StoreFactory ssoStoreFactory = null;
        try {
            ssoStoreFactory =
                (StoreFactory) (Class.forName(EE_SSO_STORE_FACTORY_IMPL)).newInstance();
        } catch (Exception ex) {
        }
View Full Code Here

Examples of com.sun.enterprise.ee.web.sessmgmt.StoreFactory

        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);
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.