Examples of IdentityImpl


Examples of com.sun.sgs.impl.auth.IdentityImpl

    @Test (expected = IllegalStateException.class)
    public void testSetStatusInTransaction() throws Exception {
        txnScheduler.runTask(new TestAbstractKernelRunnable() {
            public void run() throws Exception {
                nodeMappingService.setStatus(NodeMappingService.class,
                                              new IdentityImpl("first"), true);
            }
        }, taskOwner);
    }
View Full Code Here

Examples of com.sun.sgs.impl.auth.IdentityImpl

        }, taskOwner);
    }
   
    @Test
    public void testSetStatusRemove() throws Exception {
        Identity id = new IdentityImpl("first");
        nodeMappingService.assignNode(NodeMappingService.class, id);
        GetNodeTask task = new GetNodeTask(id);
        txnScheduler.runTask(task, taskOwner);
        Node node = task.getNode();
       
View Full Code Here

Examples of com.sun.sgs.impl.auth.IdentityImpl

        }
    }
   
    @Test
    public void testSetStatusMultRemove() throws Exception {
        Identity id = new IdentityImpl("first");
        nodeMappingService.assignNode(NodeMappingService.class, id);
        GetNodeTask task = new GetNodeTask(id);
        txnScheduler.runTask(task, taskOwner);
        Node node = task.getNode();
       
View Full Code Here

Examples of com.sun.sgs.impl.auth.IdentityImpl

     * Regression test for sgs-server issue #140, node mapping server
     * is logging at too high a level in a particular scenario.
     */
    @Test
    public void testSetStatusQuickMultRemove() throws Exception
        Identity id = new IdentityImpl("something");
        nodeMappingService.assignNode(NodeMappingService.class, id);
        GetNodeTask task = new GetNodeTask(id);
        txnScheduler.runTask(task, taskOwner);
        Node node = task.getNode();
       
View Full Code Here

Examples of com.sun.sgs.impl.auth.IdentityImpl

        }
    }
       
    @Test
    public void testSetStatusNoRemove() throws Exception {
        Identity id = new IdentityImpl("first");
        nodeMappingService.assignNode(NodeMappingService.class, id);
        GetNodeTask task = new GetNodeTask(id);
        try {
            txnScheduler.runTask(task, taskOwner);
        } catch (UnknownIdentityException e) {
View Full Code Here

Examples of com.sun.sgs.impl.auth.IdentityImpl

    @Test
    public void testListenersOnMove() throws Exception {  
        // We need some additional nodes for this test to work correctly.
        addNodes(null);
       
        Identity id = new IdentityImpl("first");
        nodeMappingService.assignNode(NodeMappingService.class, id);

        GetNodeTask task = new GetNodeTask(id);
        txnScheduler.runTask(task, taskOwner);
        Node firstNode = task.getNode();
View Full Code Here

Examples of com.sun.sgs.impl.auth.IdentityImpl

        // Add id relocation listeners to each node, and keep a map of them.
        Map<Long, TestRelocationListener> moveMap =
                new HashMap<Long, TestRelocationListener>();
        addRelocationListeners(false, moveMap);

        Identity id = new IdentityImpl("first");
        nodeMappingService.assignNode(NodeMappingService.class, id);

        GetNodeTask task = new GetNodeTask(id);
        txnScheduler.runTask(task, taskOwner);
        Node firstNode = task.getNode();
View Full Code Here

Examples of com.sun.sgs.impl.auth.IdentityImpl

        // Add id relocation listeners to each node, and keep a map of them.
        Map<Long, TestRelocationListener> moveMap =
                new HashMap<Long, TestRelocationListener>();
        addRelocationListeners(true, moveMap);

        Identity id = new IdentityImpl("first");
        nodeMappingService.assignNode(NodeMappingService.class, id);

        GetNodeTask task = new GetNodeTask(id);
        txnScheduler.runTask(task, taskOwner);;
        long firstNodeId = task.getNodeId();
View Full Code Here

Examples of com.sun.sgs.impl.auth.IdentityImpl

        // Add id relocation listeners to each node, and keep a map of them.
        Map<Long, TestRelocationListener> moveMap =
                new HashMap<Long, TestRelocationListener>();
        addRelocationListeners(true, moveMap);

        Identity id = new IdentityImpl("first");
        nodeMappingService.assignNode(NodeMappingService.class, id);

        GetNodeTask task = new GetNodeTask(id);
        txnScheduler.runTask(task, taskOwner);;
        long firstNodeId = task.getNodeId();
View Full Code Here

Examples of com.sun.sgs.impl.auth.IdentityImpl

        // Add id relocation listeners to each node, and keep a map of them.
        Map<Long, TestRelocationListener> moveMap =
                new HashMap<Long, TestRelocationListener>();
        addRelocationListeners(true, moveMap);

        Identity id = new IdentityImpl("first");
        nodeMappingService.assignNode(NodeMappingService.class, id);

        GetNodeTask task = new GetNodeTask(id);
        txnScheduler.runTask(task, taskOwner);;
        long firstNodeId = task.getNodeId();
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.