@@ -45,13 +45,19 @@ public class Neo4jSettings {
45
45
46
46
static final int TEST_JVM_ID = Integer .getInteger ("testJvmId" , 0 );
47
47
48
- private static final int DEFAULT_HTTP_PORT = 7000 ;
49
- private static final int DEFAULT_HTTPS_PORT = 8000 ;
50
- private static final int DEFAULT_BOLT_PORT = 9000 ;
48
+ private static final int DEFAULT_HTTP_PORT = 12000 ;
49
+ private static final int DEFAULT_HTTPS_PORT = 13000 ;
50
+ private static final int DEFAULT_BOLT_PORT = 14000 ;
51
+ private static final int DEFAULT_DISCOVERY_LISTEN_PORT = 15000 ;
52
+ private static final int DEFAULT_RAFT_ADVERTISED_PORT = 16000 ;
53
+ private static final int DEFAULT_TX_LISTEN_PORT = 17000 ;
51
54
52
55
static final int CURRENT_HTTP_PORT = DEFAULT_HTTP_PORT + TEST_JVM_ID ;
53
56
private static final int CURRENT_HTTPS_PORT = DEFAULT_HTTPS_PORT + TEST_JVM_ID ;
54
57
static final int CURRENT_BOLT_PORT = DEFAULT_BOLT_PORT + TEST_JVM_ID ;
58
+ static final int CURRENT_DISCOVERY_LISTEN_PORT = DEFAULT_DISCOVERY_LISTEN_PORT + TEST_JVM_ID ;
59
+ static final int CURRENT_RAFT_ADVERTISED_PORT = DEFAULT_RAFT_ADVERTISED_PORT + TEST_JVM_ID ;
60
+ static final int CURRENT_TX_LISTEN_PORT = DEFAULT_TX_LISTEN_PORT + TEST_JVM_ID ;
55
61
56
62
private static final String WINDOWS_SERVICE_NAME = "neo4j-" + TEST_JVM_ID ;
57
63
@@ -66,6 +72,20 @@ public class Neo4jSettings {
66
72
":" + CURRENT_HTTPS_PORT ,
67
73
"dbms.connector.bolt.listen_address" ,
68
74
":" + CURRENT_BOLT_PORT ,
75
+ "dbms.cluster.discovery.initial_members" ,
76
+ "localhost:" + CURRENT_DISCOVERY_LISTEN_PORT ,
77
+ "server.discovery.listen_address" ,
78
+ ":" + CURRENT_DISCOVERY_LISTEN_PORT ,
79
+ "cluster.raft_advertised_address" ,
80
+ ":" + CURRENT_RAFT_ADVERTISED_PORT ,
81
+ "cluster.raft_listen_address" ,
82
+ ":" + CURRENT_RAFT_ADVERTISED_PORT ,
83
+ "cluster.transaction_listen_address" ,
84
+ ":" + CURRENT_TX_LISTEN_PORT ,
85
+ "cluster.transaction_advertised_address" ,
86
+ ":" + CURRENT_TX_LISTEN_PORT ,
87
+ "server.cluster.advertised_address" ,
88
+ ":" + CURRENT_TX_LISTEN_PORT ,
69
89
"dbms.windows_service_name" ,
70
90
WINDOWS_SERVICE_NAME ,
71
91
DATA_DIR ,
@@ -76,7 +96,7 @@ public class Neo4jSettings {
76
96
DEFAULT_BOLT_TLS_LEVEL ,
77
97
LISTEN_ADDR ,
78
98
IPV6_ENABLED_ADDR ),
79
- Collections .< String > emptySet ());
99
+ Collections .emptySet ());
80
100
81
101
public enum BoltTlsLevel {
82
102
OPTIONAL ,
0 commit comments