Codota Logo
BackupEngine.restoreDbFromLatestBackup
Code IndexAdd Codota to your IDE (free)

How to use
restoreDbFromLatestBackup
method
in
org.rocksdb.BackupEngine

Best Java code snippets using org.rocksdb.BackupEngine.restoreDbFromLatestBackup (Showing top 3 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
ScheduledThreadPoolExecutor s =
  • Codota Iconnew ScheduledThreadPoolExecutor(corePoolSize)
  • Codota IconThreadFactory threadFactory;new ScheduledThreadPoolExecutor(corePoolSize, threadFactory)
  • Codota IconString str;new ScheduledThreadPoolExecutor(1, new ThreadFactoryBuilder().setNameFormat(str).build())
  • Smart code suggestions by Codota
}
origin: ethereum/ethereumj

backups.restoreDbFromLatestBackup(getPath().toString(), getPath().toString(),
    restoreOptions);
origin: org.rocksdb/rocksdbjni

/**
 * Restore the database from the latest backup
 *
 * @param dbDir The directory to restore the backup to, i.e. where your
 *              database is
 * @param walDir The location of the log files for your database, often the
 *               same as dbDir
 * @param restoreOptions Options for controlling the restore
 *
 * @throws RocksDBException thrown if the database could not be restored
 */
public void restoreDbFromLatestBackup(
  final String dbDir, final String walDir,
  final RestoreOptions restoreOptions) throws RocksDBException {
 assert (isOwningHandle());
 restoreDbFromLatestBackup(nativeHandle_, dbDir, walDir,
   restoreOptions.nativeHandle_);
}
origin: jwplayer/southpaw

if(backupInfo.size() > 0) {
  delete();
  backupEngine.restoreDbFromLatestBackup(dbUri.getPath(), dbUri.getPath(), restoreOptions);
  backupEngine.purgeOldBackups(backupsToKeep);
  backupEngine.close();
org.rocksdbBackupEnginerestoreDbFromLatestBackup

Javadoc

Restore the database from the latest backup

Popular methods of BackupEngine

  • createNewBackup
    Captures the state of the database in the latest backup
  • getBackupInfo
  • open
    Opens a new Backup Engine
  • purgeOldBackups
  • <init>
  • close
  • createNewBackupWithMetadata
    Captures the state of the database in the latest backup along with application specific metadata.
  • deleteBackup
  • garbageCollect
  • getCorruptedBackups
  • isOwningHandle
  • restoreDbFromBackup
  • isOwningHandle,
  • restoreDbFromBackup

Popular in Java

  • Making http post requests using okhttp
  • getResourceAsStream (ClassLoader)
  • compareTo (BigDecimal)
    Compares this BigDecimal with the specified BigDecimal. Two BigDecimal objects that are equal in val
  • onRequestPermissionsResult (Fragment)
  • GridBagLayout (java.awt)
    The GridBagLayout class is a flexible layout manager that aligns components vertically and horizonta
  • ExecutorService (java.util.concurrent)
    An Executor that provides methods to manage termination and methods that can produce a Future for tr
  • AtomicInteger (java.util.concurrent.atomic)
    An int value that may be updated atomically. See the java.util.concurrent.atomic package specificati
  • Annotation (javassist.bytecode.annotation)
    The annotation structure.An instance of this class is returned bygetAnnotations() in AnnotationsAttr
  • Notification (javax.management)
  • HttpServlet (javax.servlet.http)
    Provides an abstract class to be subclassed to create an HTTP servlet suitable for a Web site. A sub
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now