Package org.neo4j.kernel

Examples of org.neo4j.kernel.Config


        }

        @Override
        protected Void executeInTransaction( GraphDatabaseService db, Transaction tx )
        {
            Config config = getConfig( db );
            LockManager lockManager = config.getLockManager();
            LockReleaser lockReleaser = config.getLockReleaser();
            for ( int i = 0; i < amount; i++ )
            {
                Object resource = new LockableNode( i );
                lockManager.getWriteLock( resource );
                lockReleaser.addLockToTransaction( resource, LockType.WRITE );
View Full Code Here


            this.count = count;
        }

        public Void execute( GraphDatabaseService db )
        {
            Config config = getConfig( db );
            IdGenerator generator = config.getIdGeneratorFactory().get( IdType.NODE );
            for ( int i = 0; i < count; i++ )
            {
                generator.nextId();
            }
            return null;
View Full Code Here

    public static abstract class AbstractJob<T> implements Job<T>
    {
        protected Config getConfig( GraphDatabaseService db )
        {
            Config config = null;
            try
            {
                return (Config) db.getClass().getDeclaredMethod( "getConfig" ).invoke( db );
            }
            catch ( Exception e )
View Full Code Here

TOP

Related Classes of org.neo4j.kernel.Config

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.