Examples of BrokerPool


Examples of org.exist.storage.BrokerPool

                pool.release(broker);
        }
    }
   
    public void testCheckIndex() {
        BrokerPool pool = null;
        DBBroker broker = null;
        try
            pool = BrokerPool.getInstance();
            assertNotNull(pool);
            broker = pool.get(pool.getSecurityManager().getSystemSubject());
            AbstractGMLJDBCIndex index = (AbstractGMLJDBCIndex)pool.getIndexManager().getIndexById(AbstractGMLJDBCIndex.ID);
            //Unplugged
            if (index == null)
                System.out.println("No spatial index found");
            else
                assertTrue(index.checkIndex(broker));
        } catch (Exception e) {
            e.printStackTrace();
            fail(e.getMessage());
        } finally {
            if (pool !=null)
                pool.release(broker);
        }
    }
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.