Package org.neo4j.kernel.impl.core

Examples of org.neo4j.kernel.impl.core.GraphDbModule


        this.backupSlave = Boolean.parseBoolean( (String) params.get( BACKUP_SLAVE ) );
        this.syncHookFactory = txSyncHookFactory;
        this.persistenceModule = new PersistenceModule();
        this.cacheManager = new AdaptiveCacheManager();
        this.params.put( FileSystemAbstraction.class, fileSystem );
        graphDbModule = new GraphDbModule( graphDb, cacheManager, lockManager,
                txModule.getTxManager(), idGeneratorModule.getIdGenerator(),
                readOnly );
        indexStore = new IndexStore( storeDir );
        params.put( IndexStore.class, indexStore );
View Full Code Here


        {
            // ok no one set, oldReferenceNode is null then
        }
        try
        {
            GraphDbModule graphDbModule = ((EmbeddedGraphDatabase) getGraphDb()).getConfig()
                .getGraphDbModule();

            Node newReferenceNode = getGraphDb().createNode();
            graphDbModule.setReferenceNodeId( newReferenceNode.getId() );
            assertEquals( newReferenceNode, getGraphDb().getReferenceNode() );
            newReferenceNode.delete();
            if ( oldReferenceNode != null )
            {
                graphDbModule.setReferenceNodeId( oldReferenceNode.getId() );
                assertEquals( oldReferenceNode, getGraphDb().getReferenceNode() );
            }
        }
        catch ( Exception e )
        {
View Full Code Here

    // TODO: fix this testcase
    @Test
    public void testIdUsageInfo()
    {
        GraphDbModule graphDbModule = ((EmbeddedGraphDatabase) getGraphDb()).getConfig()
            .getGraphDbModule();
        NodeManager nm = graphDbModule.getNodeManager();
        long nodeCount = nm.getNumberOfIdsInUse( Node.class );
        long relCount = nm.getNumberOfIdsInUse( Relationship.class );
        if ( nodeCount > nm.getHighestPossibleIdInUse( Node.class ) )
        {
            // fail( "Node count greater than highest id " + nodeCount );
View Full Code Here

TOP

Related Classes of org.neo4j.kernel.impl.core.GraphDbModule

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.