Package org.apache.geronimo.clustering

Examples of org.apache.geronimo.clustering.Session


            throw new AssertionError("primaryKey MUST be a " + VMID.class.getName());
        }

        try {
            Object deploymentId = instance.deploymentInfo.getDeploymentID();
            Session session = getSessionManager(deploymentId).createSession(primaryKey.toString());
            localInstances.put(primaryKey, new WadiInstance(instance, session));
        } catch (SessionAlreadyExistException e) {
            throw (IllegalStateException) new IllegalStateException().initCause(e);
        }
    }
View Full Code Here


        Instance instance = new Instance(deploymentInfo, primaryKey, new Object(), null, (Map<EntityManagerFactory, EntityManager>) null);
        manager.add(primaryKey, instance);
    }

    public void testSessionDestructionFreeInstance() throws Exception {
        Session session = recordAddSessionManagerAndCreateSession(primKey);
        FutureTask<Instance> newBeanEntryTask = newBeanEntryTask(primKey, session);

//        manager.freeInstance(null);
        modify().args(new ThreadContextArgAssertion());
View Full Code Here

        newBeanEntryTask.run();
//        sessionListener.notifySessionDestruction(session);
    }

    public void testInboundSessionMigrationActivateAndPoolBeanEntry() throws Exception {
        Session session = recordAddSessionManagerAndCreateSession(primKey);
        FutureTask<Instance> newBeanEntryTask = newBeanEntryTask(primKey, session);

//        manager.activateInstance(null, null);
//        modify().args(new ThreadContextArgAssertion(), is.NOT_NULL);
//        manager.poolInstance(null, null);
View Full Code Here

        newBeanEntryTask.run();
//        sessionListener.notifyInboundSessionMigration(session);
    }

    public void testOutboundSessionMigrationPassivateBeanEntry() throws Exception {
        Session session = recordAddSessionManagerAndCreateSession(primKey);
        FutureTask<Instance> newBeanEntryTask = newBeanEntryTask(primKey, session);

//        manager.passivate(null, null);
//        modify().args(new ThreadContextArgAssertion(), is.NOT_NULL);
//
View Full Code Here

                sessionListener = (SessionListener) arg0;
                return true;
            }
        });

        Session session = sessionManager.createSession(primaryKey.toString());

        session.addState(WadiCache.SESSION_KEY_ENTRY, null);
        modify().args(is.AS_RECORDED, is.NOT_NULL);

        return session;
    }
View Full Code Here

        Instance instance = new Instance(deploymentInfo, primaryKey, new Object(), null, (Map<EntityManagerFactory, JtaEntityManagerRegistry.EntityManagerTracker>) null);
        manager.add(primaryKey, instance);
    }

    public void testSessionDestructionFreeInstance() throws Exception {
        Session session = recordAddSessionManagerAndCreateSession(primKey);
        FutureTask<Instance> newBeanEntryTask = newBeanEntryTask(primKey, session);

//        manager.freeInstance(null);
        modify().args(new ThreadContextArgAssertion());
View Full Code Here

        newBeanEntryTask.run();
//        sessionListener.notifySessionDestruction(session);
    }

    public void testInboundSessionMigrationActivateAndPoolBeanEntry() throws Exception {
        Session session = recordAddSessionManagerAndCreateSession(primKey);
        FutureTask<Instance> newBeanEntryTask = newBeanEntryTask(primKey, session);

//        manager.activateInstance(null, null);
//        modify().args(new ThreadContextArgAssertion(), is.NOT_NULL);
//        manager.poolInstance(null, null);
View Full Code Here

        newBeanEntryTask.run();
//        sessionListener.notifyInboundSessionMigration(session);
    }

    public void testOutboundSessionMigrationPassivateBeanEntry() throws Exception {
        Session session = recordAddSessionManagerAndCreateSession(primKey);
        FutureTask<Instance> newBeanEntryTask = newBeanEntryTask(primKey, session);

//        manager.passivate(null, null);
//        modify().args(new ThreadContextArgAssertion(), is.NOT_NULL);
//
View Full Code Here

                sessionListener = (SessionListener) arg0;
                return true;
            }
        });

        Session session = sessionManager.createSession(primaryKey.toString());

        session.addState(WadiCache.SESSION_KEY_ENTRY, null);
        modify().args(is.AS_RECORDED, is.NOT_NULL);

        return session;
    }
View Full Code Here

            throw new AssertionError("primaryKey MUST be a " + VMID.class.getName());
        }

        try {
            Object deploymentId = instance.beanContext.getDeploymentID();
            Session session = getSessionManager(deploymentId).createSession(primaryKey.toString());
            localInstances.put(primaryKey, new WadiInstance(instance, session));
        } catch (SessionAlreadyExistException e) {
            throw (IllegalStateException) new IllegalStateException().initCause(e);
        }
    }
View Full Code Here

TOP

Related Classes of org.apache.geronimo.clustering.Session

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.