Examples of ToFileStoreWriter


Examples of org.neo4j.com.ToFileStoreWriter

       
        //                                                     TODO OMG this is ugly
        BackupClient client = new BackupClient( hostNameOrIp, port, new NotYetExistingGraphDatabase( targetDirectory ) );
        try
        {
            Response<Void> response = client.fullBackup( new ToFileStoreWriter( targetDirectory ) );
            GraphDatabaseService targetDb = startTemporaryDb( targetDirectory );
            try
            {
                unpackResponse( response, targetDb, MasterUtil.txHandlerForFullCopy() );
            }
View Full Code Here

Examples of org.neo4j.com.ToFileStoreWriter

    private void copyStoreFromMaster( Pair<Master, Machine> master ) throws Exception
    {
        msgLog.logMessage( "Copying store from master" );
        Response<Void> response = master.first().copyStore( new SlaveContext( machineId, 0, new Pair[0] ),
                new ToFileStoreWriter( storeDir ) );
        EmbeddedGraphDatabase tempDb = new EmbeddedGraphDatabase( storeDir );
        try
        {
            MasterUtil.applyReceivedTransactions( response, tempDb, MasterUtil.txHandlerForFullCopy() );
        }
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.