Skip to content

Commit a39ccd1

Browse files
committed
rename args to match expected content
1 parent 2af6dbc commit a39ccd1

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

opengrok-indexer/src/main/java/org/opengrok/indexer/configuration/RuntimeEnvironment.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1607,17 +1607,17 @@ public String getConfigurationXML() {
16071607
/**
16081608
* Write the current configuration to a socket and waits for the result.
16091609
*
1610-
* @param host the host address to receive the configuration
1610+
* @param webAppURI webapp URI
16111611
* @throws IOException if an error occurs
16121612
* @throws InterruptedException on timeout
16131613
* @throws IllegalArgumentException on invalid configuration
16141614
*/
1615-
public void writeConfiguration(String host) throws IOException, InterruptedException, IllegalArgumentException {
1615+
public void writeConfiguration(String webAppURI) throws IOException, InterruptedException, IllegalArgumentException {
16161616
String configXML = syncReadConfiguration(Configuration::getXMLRepresentationAsString);
16171617

16181618
try (Response response = ClientBuilder.newBuilder().
16191619
connectTimeout(getConnectTimeout(), TimeUnit.SECONDS).build()
1620-
.target(host)
1620+
.target(webAppURI)
16211621
.path("api")
16221622
.path("v1")
16231623
.path("configuration")

opengrok-indexer/src/main/java/org/opengrok/indexer/index/Indexer.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1189,14 +1189,14 @@ public void doIndexerExecution(List<String> subFiles, IndexChangedListener progr
11891189
}
11901190
}
11911191

1192-
public void sendToConfigHost(RuntimeEnvironment env, String host) {
1193-
LOGGER.log(Level.INFO, "Sending configuration to: {0}", host);
1192+
public void sendToConfigHost(RuntimeEnvironment env, String webAppURI) {
1193+
LOGGER.log(Level.INFO, "Sending configuration to: {0}", webAppURI);
11941194
try {
1195-
env.writeConfiguration(host);
1195+
env.writeConfiguration(webAppURI);
11961196
} catch (IOException | IllegalArgumentException ex) {
11971197
LOGGER.log(Level.SEVERE, String.format(
11981198
"Failed to send configuration to %s "
1199-
+ "(is web application server running with opengrok deployed?)", host), ex);
1199+
+ "(is web application server running with opengrok deployed?)", webAppURI), ex);
12001200
} catch (InterruptedException e) {
12011201
LOGGER.log(Level.WARNING, "interrupted while sending configuration");
12021202
}

0 commit comments

Comments
 (0)