Examples of WhitePagesImpl


Examples of org.drools.grid.service.directory.impl.WhitePagesImpl

    @Test
    public void remoteNodeTest() {
        Grid grid1 = new GridImpl( new HashMap<String, Object>() );
        configureGrid1( grid1,
                        8000,
                        new WhitePagesImpl() );

        Grid grid2 = new GridImpl( new HashMap<String, Object>() );
        configureGrid1( grid2,
                        -1,
                        null );
View Full Code Here

Examples of org.drools.grid.service.directory.impl.WhitePagesImpl

     @Test
    public void remoteNodeRetractUpdateGlobalsTest() {
        Grid grid1 = new GridImpl( new HashMap<String, Object>() );
        configureGrid1( grid1,
                        8000,
                        new WhitePagesImpl() );

        Grid grid2 = new GridImpl( new HashMap<String, Object>() );
        configureGrid1( grid2,
                        -1,
                        null );
View Full Code Here

Examples of org.drools.grid.service.directory.impl.WhitePagesImpl

    //
    public void afterPropertiesSet() throws Exception {
        if ( grid == null ) {
            this.grid = new GridImpl( new HashMap<String, Object>() );
            ((GridImpl) this.grid).addService( WhitePages.class,
                                               new WhitePagesImpl() );
        }
        this.node = this.grid.createGridNode( id );

        if ( StringUtils.hasText( this.port ) ) {
            this.grid.get( SocketService.class ).addService( id,
View Full Code Here

Examples of org.drools.grid.service.directory.impl.WhitePagesImpl

                                                      parserContext.getDelegate().parsePropertySubElement( nestedElm,
                                                                                                           null,
                                                                                                           null ) );
                        } else {
                            factory.addPropertyValue( "whitePages",
                                                      new WhitePagesImpl() );
                        }
                    }
                } else if ( "socket-service".equals( e.getLocalName() ) ) {
                    String acceptor = e.getAttribute( "acceptor" );
                    String ip = e.getAttribute( "ip" );
View Full Code Here

Examples of org.drools.grid.service.directory.impl.WhitePagesImpl

    protected Context createJndiContext() throws Exception {
        Context context = super.createJndiContext();

        GridImpl grid = new GridImpl( new HashMap() );
        grid.addService( WhitePages.class,
                         new WhitePagesImpl() );
        node = grid.createGridNode( "local" );
       
        node.set( "ksession1",
                  this.exec );
       
View Full Code Here

Examples of org.drools.grid.service.directory.impl.WhitePagesImpl

public class GridServiceDescriptionJpaTest {
    @Test
    public void test1() {
        EntityManagerFactory emf = Persistence.createEntityManagerFactory( "org.drools.grid" );
        WhitePages wp = new WhitePagesImpl();

        GridServiceDescription<WhitePages> gsd1 = wp.create( WhitePages.class.getName() );
        gsd1.setServiceInterfaceWhitePages.class );
        gsd1.addAddress( "socket" ).setObject( new InetSocketAddress( "127.0.0.1",
                                                                      5011 ) );
        gsd1.addAddress( "p1" ).setObject( "v1" );
View Full Code Here

Examples of org.drools.grid.service.directory.impl.WhitePagesImpl

    }
   
    @Test
    public void test1() {
        EntityManagerFactory emf = Persistence.createEntityManagerFactory( "org.drools.grid" );
        WhitePages wp = new WhitePagesImpl();

        GridServiceDescription<WhitePages> gsd1 = wp.create( WhitePages.class.getName() );
        gsd1.setServiceInterfaceWhitePages.class );
        gsd1.addAddress( "socket" ).setObject( new InetSocketAddress( "127.0.0.1",
                                                                      8010 ) );
        gsd1.addAddress( "p1" ).setObject( "v1" );
View Full Code Here

Examples of org.drools.grid.service.directory.impl.WhitePagesImpl

        //create
        Context context = super.createJndiContext();

        GridImpl grid = new GridImpl( new HashMap() );
        grid.addService( WhitePages.class,
                         new WhitePagesImpl() );
        node = grid.createGridNode( "node" );
        context.bind( "node",
                      node );
        configureDroolsContext( context );
        return context;
View Full Code Here

Examples of org.drools.grid.service.directory.impl.WhitePagesImpl

    protected Context createJndiContext() throws Exception {
        Context context = super.createJndiContext();

        GridImpl grid = new GridImpl( new HashMap() );
        grid.addService( WhitePages.class,
                         new WhitePagesImpl() );
        node = grid.createGridNode( "node" );
        node.set( "ksession1",
                  this.exec );
        context.bind( "node",
                      node );
View Full Code Here

Examples of org.drools.grid.service.directory.impl.WhitePagesImpl

    @Test
    public void remoteNodeTest() {
        Grid grid1 = new GridImpl( new HashMap<String, Object>() );
        configureGrid1( grid1,
                        8000,
                        new WhitePagesImpl() );

        Grid grid2 = new GridImpl( new HashMap<String, Object>() );
        configureGrid1( grid2,
                        -1,
                        null );
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.