public class MongodumpService extends Object
| Modifier and Type | Method and Description |
|---|---|
String |
backup(BackupConfiguration backupConf)
mongodump mongodb according to backupConf
|
static MongodumpService |
getInstance(MongoServerHostConfiguration hostConf)
get mongo dump service instance
|
void |
restore(RestoreConfiguration restoreConf)
mongorestore a given backup according to restore configuration
|
public static MongodumpService getInstance(MongoServerHostConfiguration hostConf)
hostConf - current host configurationpublic String backup(BackupConfiguration backupConf) throws BackupException
backupConf - backup configurationBackupExceptionpublic void restore(RestoreConfiguration restoreConf) throws RestoreException
restoreConf - restore conigurationRestoreExceptionCopyright © 2016. All rights reserved.