Package org.neo4j.kernel.impl.core

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


    {
        if ( !storeOk )
        {
            if ( readOnly && !backupSlave )
            {
                throw new ReadOnlyDbException();
            }
            rebuildIdGenerator();
            storeOk = true;
            causeOfStoreNotOk = null;
        }
View Full Code Here


    public void rebuildIdGenerators()
    {
        if ( readOnly && !backupSlave )
        {
            throw new ReadOnlyDbException();
        }
        rebuildIdGenerator();
    }
View Full Code Here

    }
   
    @Override
    public T acquireResourceConnection()
    {
        throw new ReadOnlyDbException();
    }
View Full Code Here

    }
   
    @Override
    protected T newConnection()
    {
        throw new ReadOnlyDbException();
    }
View Full Code Here

     */
    protected void rebuildIdGenerator()
    {
        if ( isReadOnly() && !isBackupSlave() )
        {
            throw new ReadOnlyDbException();
        }

        logger.fine( "Rebuilding id generator for[" + getStorageFileName()
            + "] ..." );
        closeIdGenerator();
View Full Code Here

        this.highId = highId;
    }

    public long nextId()
    {
        throw new ReadOnlyDbException();
    }
View Full Code Here

        throw new ReadOnlyDbException();
    }
   
    public IdRange nextIdBatch( int size )
    {
        throw new ReadOnlyDbException();
    }
View Full Code Here

        throw new ReadOnlyDbException();
    }
   
    public void setHighId( long id )
    {
        throw new ReadOnlyDbException();
    }
View Full Code Here

        return highId;
    }

    public void freeId( long id )
    {
        throw new ReadOnlyDbException();
    }
View Full Code Here

    public ResourceConnection createResourceConnection()
    {
        if ( xaDs.isReadOnly() )
        {
            throw new ReadOnlyDbException();
        }
        return new NioNeoDbResourceConnection( this.xaDs );
    }
View Full Code Here

TOP

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

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.