Package org.neo4j.webadmin.backup

Examples of org.neo4j.webadmin.backup.BackupLogEntry


        if ( includeLog )
        {
            BackupLog log = BackupManager.INSTANCE.getLog();
            ArrayList<BackupLogEntry> logEntries = log.getLog( wrapped.getId() );
            BackupLogEntry latestSuccessfulLogEntry = log.getLatestSuccessful( wrapped.getId() );
            ArrayList<Object> serializedLog = new ArrayList<Object>();
            for ( BackupLogEntry entry : logEntries )
            {
                serializedLog.add( entry.serialize() );
            }

            Map<String, Object> logData = new HashMap<String, Object>();
            logData.put( LATEST_SUCCESS_LOG_KEY,
                    latestSuccessfulLogEntry == null ? null
                            : latestSuccessfulLogEntry.serialize() );

            logData.put( LOG_ENTRIES_KEY, serializedLog );

            data.put( LOG_KEY, logData );
        }
View Full Code Here

TOP

Related Classes of org.neo4j.webadmin.backup.BackupLogEntry

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.