Examples of NeoStoreXaDataSource


Examples of org.neo4j.kernel.impl.nioneo.xa.NeoStoreXaDataSource

    private final ObjectName query;

    KernelBean( KernelData kernel, ManagementSupport support ) throws NotCompliantMBeanException
    {
        super( Kernel.class, kernel, support );
        NeoStoreXaDataSource datasource = getNeoDataSource( kernel );
        this.kernelVersion = kernel.version().toString();
        this.query = support.createMBeanQuery( kernel.instanceId() );
        storeCreationDate = datasource.getCreationTime();
        storeLogVersion = datasource.getCurrentLogVersion();
        isReadOnly = datasource.isReadOnly();
        storeId = datasource.getRandomIdentifier();

        @SuppressWarnings( "hiding" ) String storeDir;
        try
        {
            storeDir = new File( datasource.getStoreDir() ).getCanonicalFile().getAbsolutePath();
        }
        catch ( IOException e )
        {
            storeDir = new File( datasource.getStoreDir() ).getAbsolutePath();
        }
        this.storeDir = storeDir;

        kernelStartTime = new Date().getTime();
    }
View Full Code Here

Examples of org.neo4j.kernel.impl.nioneo.xa.NeoStoreXaDataSource

        private final File storePath;

        StoreFileImpl( ManagementData management ) throws NotCompliantMBeanException
        {
            super( management );
            NeoStoreXaDataSource nioneodb = KernelBean.getNeoDataSource( management.getKernelData() );
            File path;
            try
            {
                path = new File( nioneodb.getStoreDir() ).getCanonicalFile().getAbsoluteFile();
            }
            catch ( IOException e )
            {
                path = new File( nioneodb.getStoreDir() ).getAbsoluteFile();
            }
            this.storePath = path;
        }
View Full Code Here

Examples of org.neo4j.kernel.impl.nioneo.xa.NeoStoreXaDataSource

        }
        catch ( Exception e )
        {
            // fall back to default
        }
        NeoStoreXaDataSource ds = (NeoStoreXaDataSource) kernel.getConfig().getTxModule().getXaDataSourceManager().getXaDataSource( "nioneodb" );
        boolean crashPing = ds.getXaContainer().getLogicalLog().wasNonClean();
        String storeId = Long.toHexString( ds.getRandomIdentifier() );
        String version = kernel.version().getRevision();
        if ( version.equals( "" ) ) version = kernel.version().getVersion();
        UdcTimerTask task = new UdcTimerTask( hostAddress, version, storeId, source, crashPing );
        timer.scheduleAtFixedRate( task, firstDelay, interval );
        return task;
View Full Code Here

Examples of org.neo4j.kernel.impl.nioneo.xa.NeoStoreXaDataSource

            LockManager lockManager = getEmbeddedGraphDb().getConfig()
                .getLockManager();
            LockReleaser lockReleaser = getEmbeddedGraphDb().getConfig()
                .getLockReleaser();
           
            ds = new NeoStoreXaDataSource( MapUtil.genericMap(
                    LockManager.class, lockManager,
                    LockReleaser.class, lockReleaser,
                    IdGeneratorFactory.class, ID_GENERATOR_FACTORY,
                    FileSystemAbstraction.class, CommonFactories.defaultFileSystemAbstraction(),
                    LogBufferFactory.class, CommonFactories.defaultLogBufferFactory( MapUtil.stringMap() ),
View Full Code Here

Examples of org.neo4j.kernel.impl.nioneo.xa.NeoStoreXaDataSource

            LogBufferFactory.class, CommonFactories.defaultLogBufferFactory( config ),
            TxIdGenerator.class, TxIdGenerator.DEFAULT,
            "store_dir", path(),
            "neo_store", file( "neo" ),
            "logical_log", file( "nioneo_logical.log" ) );
        return new NeoStoreXaDataSource( config );
    }
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.