Skip to content

Commit

Permalink
Ajout du server dans le fichier properties
Browse files Browse the repository at this point in the history
  • Loading branch information
Dim8672 committed Jul 10, 2017
1 parent 73413f7 commit 99c159e
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ public void generateDataFacts(Integer numberFact, String start, String end, Stri
*/
public void generateClient() {
this.client = new Services.TransportClientImpl(this.settings, asCollection(Netty4Plugin.class, SearchGuardPlugin.class))
.addTransportAddress(new InetSocketTransportAddress(new InetSocketAddress("157.26.64.147", 9300)));
.addTransportAddress(new InetSocketTransportAddress(new InetSocketAddress(prop.getProperty("ElasticSearch.server"), 9300)));
}

/**
Expand Down
3 changes: 2 additions & 1 deletion src/main/resources/configuration.properties
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
SEARCHGUARD_SSL_TRANSPORT_KEYSTORE_PASSWORD=KeyStorePassword
SEARCHGUARD_SSL_TRANSPORT_TRUSTSTORE_PASSWORD=TrustStorePassword
SEARCHGUARD_SSL_TRANSPORT_KEYSTORE_FILEPATH=C:\\...\\CN=localhost-keystore.jks
SEARCHGUARD_SSL_TRANSPORT_TRUSTSTORE_FILEPATH=C:\\...\\truststore.jks
SEARCHGUARD_SSL_TRANSPORT_TRUSTSTORE_FILEPATH=C:\\...\\truststore.jks
ElasticSearch.server=serverUrl
Binary file modified target/classes/ch/hearc/ig/tb/cityFlow/service/Services.class
Binary file not shown.
3 changes: 2 additions & 1 deletion target/classes/configuration.properties
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
SEARCHGUARD_SSL_TRANSPORT_KEYSTORE_PASSWORD=KeyStorePassword
SEARCHGUARD_SSL_TRANSPORT_TRUSTSTORE_PASSWORD=TrustStorePassword
SEARCHGUARD_SSL_TRANSPORT_KEYSTORE_FILEPATH=C:\\...\\CN=localhost-keystore.jks
SEARCHGUARD_SSL_TRANSPORT_TRUSTSTORE_FILEPATH=C:\\...\\truststore.jks
SEARCHGUARD_SSL_TRANSPORT_TRUSTSTORE_FILEPATH=C:\\...\\truststore.jks
ElasticSearch.server=serverUrl

0 comments on commit 99c159e

Please sign in to comment.