Package com.sun.appserv.ha.uow

Examples of com.sun.appserv.ha.uow.ReplicableEntity


                                 SessionStoreInterface storeInterface) {
        Iterator<ReplicationState> iter = reconcilableSessions.iterator();
        int sessionsActivated = reconcilableSessions.size();
        while (iter.hasNext()) {
            ReplicationState state = iter.next();
            ReplicableEntity session = storeInterface.deserialize(state);
            storeInterface.activate(session); // activate will take care of checking the version.
            iter.remove();
        }
        return sessionsActivated;
    }
View Full Code Here


                     * then the load will return null because session would have
                     * been removed from the session manager after the passivation.
                     */
//                    ReplicableEntity haSas = storeInterface.findSessionAndPassivate(session.getId());

                    ReplicableEntity haSas = session;
                        ReplicationState state = ReplicationState.createQueryResponseFrom(
                                haSas, reconcileRequest.getAppId(), reconcileRequest.getCommand(),
                                responseCommand, // TODO :: revisit this arg - should it be LOAD_SAS_COMMAND or something?
                                reconilingInstance, // origin is deliberately set to reconcilingInstance, so that we can copy this active session to our own replica.
                                compress, true);
View Full Code Here

        String reconcilingInstance = reconcileRequest.getInstanceName();

        int count = 0;
        if (migratedActiveSessionIds != null) {
            for (String id : migratedActiveSessionIds) {
                ReplicableEntity session = storeInterface.findSessionAndPassivate(id);
                if (session != null && saveMigratedSessionToReplicCache) {
                    ReplicationState state = ReplicationState.createQueryResponseFrom(
                            session, reconcileRequest.getAppId(), reconcileRequest.getCommand(),
                            responseCommand, // TODO :: revisit this arg - should it be LOAD_SAS_COMMAND or something?
                            reconcilingInstance, // origin is deliberately set to reconcilingInstance, so that we can copy this active session to our own replica.
View Full Code Here

TOP

Related Classes of com.sun.appserv.ha.uow.ReplicableEntity

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.