Package org.drools.grid.impl

Examples of org.drools.grid.impl.GridImpl.dispose()


        GridConnection connection = grid.get( ConnectionFactoryService.class ).createConnection( gsd );
        assertSame( gnode,
                    connection.connect() );

        grid.dispose();
    }

    //    public void testWhitePagesAddRemoveAddresss() {
    //        Grid grid = new GridImpl(new HashMap<String,Object>());
    //
View Full Code Here


        grid.removeGridNode( gsd.getId() );
        assertNull( wp.lookup( "n1" ) );
        assertNull( grid.getGridNode( gsd.getId() ) );

        grid.dispose();
        // node has been removed, so disposal should not affect it
        assertFalse( gnode.isDisposed() );

        gnode.dispose();
        assertTrue( gnode.isDisposed() );
View Full Code Here

        int i = session.fireAllRules();
        Assert.assertEquals( 1,
                i );

        grid1.dispose();
        grid2.dispose();

        assertTrue( n1.isDisposed() );
        assertTrue( remoteN1.isDisposed() );

    }
View Full Code Here

        session.update(handle, new MyObject("myObj3"));

        fired = session.fireAllRules();

        grid1.dispose();
        grid2.dispose();
        assertTrue( remoteN1.isDisposed() );
        assertTrue( n1.isDisposed() );

    }
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.