public class MongoDump extends AbstractMongoUtility
Modifier and Type | Field and Description |
---|---|
static String |
TIMESTAMP_FORMAT |
Constructor and Description |
---|
MongoDump(MongoClient mongoClient) |
Modifier and Type | Method and Description |
---|---|
void |
addDB(com.mongodb.client.MongoDatabase db) |
void |
dump(String outputDirectory,
String database,
String outputName,
int threads) |
void |
setOplog(boolean oplog) |
void |
setZip(boolean zip) |
propagateException
public static final String TIMESTAMP_FORMAT
public MongoDump(MongoClient mongoClient)
public void dump(String outputDirectory, String database, String outputName, int threads) throws IOException
IOException
public void setZip(boolean zip)
public void setOplog(boolean oplog)
public void addDB(com.mongodb.client.MongoDatabase db)
Copyright © 2010–2019. All rights reserved.