@@ -29,6 +29,11 @@ public class ArangoDbSinkConfig extends AbstractConfig {
29
29
private static final String ARANGODB_PASSWORD_DOC = "ArangoDb connection password." ;
30
30
public final Password arangoDbPassword ;
31
31
32
+ private static final String ARANGODB_USE_SSL = "arangodb.useSsl" ;
33
+ private static final boolean ARANGODB_USE_SSL_DEFAULT = false ;
34
+ private static final String ARANGODB_USE_SSL_DOC = "ArangoDb use SSL connection." ;
35
+ public final boolean arangoDbUseSsl ;
36
+
32
37
private static final String ARANGODB_DATABASE_NAME = "arangodb.database.name" ;
33
38
private static final String ARANGODB_DATABASE_NAME_DOC = "ArangoDb database name." ;
34
39
public final String arangoDbDatabaseName ;
@@ -38,6 +43,7 @@ public class ArangoDbSinkConfig extends AbstractConfig {
38
43
.define (ARANGODB_PORT , Type .INT , Importance .HIGH , ARANGODB_PORT_DOC )
39
44
.define (ARANGODB_USER , Type .STRING , Importance .HIGH , ARANGODB_USER_DOC )
40
45
.define (ARANGODB_PASSWORD , Type .PASSWORD , ARANGODB_PASSWORD_DEFAULT , Importance .HIGH , ARANGODB_PASSWORD_DOC )
46
+ .define (ARANGODB_USE_SSL , Type .BOOLEAN , ARANGODB_USE_SSL_DEFAULT , Importance .HIGH , ARANGODB_USE_SSL_DOC )
41
47
.define (ARANGODB_DATABASE_NAME , Type .STRING , Importance .HIGH , ARANGODB_DATABASE_NAME_DOC );
42
48
43
49
/**
@@ -53,6 +59,7 @@ public ArangoDbSinkConfig(final Map<?, ?> originals) {
53
59
this .arangoDbPort = getInt (ARANGODB_PORT );
54
60
this .arangoDbUser = getString (ARANGODB_USER );
55
61
this .arangoDbPassword = getPassword (ARANGODB_PASSWORD );
62
+ this .arangoDbUseSsl = getBoolean (ARANGODB_USE_SSL );
56
63
this .arangoDbDatabaseName = getString (ARANGODB_DATABASE_NAME );
57
64
}
58
65
}
0 commit comments