Package org.apache.pulsar.io.mongodb
Class MongoConfig
- java.lang.Object
-
- org.apache.pulsar.io.mongodb.MongoConfig
-
- All Implemented Interfaces:
Serializable
public class MongoConfig extends Object implements Serializable
Configuration class for the MongoDB Connectors.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static intDEFAULT_BATCH_SIZEstatic longDEFAULT_BATCH_TIME_MS
-
Constructor Summary
Constructors Constructor Description MongoConfig()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static MongoConfigload(String yamlFile)static MongoConfigload(Map<String,Object> map)voidvalidate(boolean dbRequired, boolean collectionRequired)
-
-
-
Field Detail
-
DEFAULT_BATCH_SIZE
public static final int DEFAULT_BATCH_SIZE
- See Also:
- Constant Field Values
-
DEFAULT_BATCH_TIME_MS
public static final long DEFAULT_BATCH_TIME_MS
- See Also:
- Constant Field Values
-
-
Method Detail
-
load
public static MongoConfig load(String yamlFile) throws IOException
- Throws:
IOException
-
load
public static MongoConfig load(Map<String,Object> map) throws IOException
- Throws:
IOException
-
validate
public void validate(boolean dbRequired, boolean collectionRequired)
-
-