Skip to content

Commit 2cd5c44

Browse files
authored
Merge pull request #800 from TNO/784-rename-the-adminuis-configuration-property-from-initialadminuidelay---initialmetadatadelay
Rename configuratin property
2 parents e802199 + 309265e commit 2cd5c44

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

admin-ui/src/main/java/eu/knowledge/engine/admin/AdminUIConfig.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@
33
public class AdminUIConfig {
44

55
/**
6-
* The key to configure how long (in milliseconds) should the Admin UI wait
6+
* The key to configure how long (in milliseconds) should the MetadataKB wait
77
* until it tries to ask for all KBs in the network. This value should probably
88
* be higher in distributed mode, to allow the participants to reach equilibrium
99
* with respect to knowledge about each other.
1010
*/
11-
public static final String CONF_KEY_INITIAL_ADMIN_UI_DELAY = "initial.admin.ui.delay";
11+
public static final String CONF_KEY_INITIAL_METADATA_DELAY = "initial.metadata.delay";
1212

1313
}

admin-ui/src/main/java/eu/knowledge/engine/admin/MetadataKB.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ public void syncKIs() {
105105
// to receive the initial state, we do a single Ask (after sleeping for a
106106
// specific amount of time)
107107
try {
108-
Thread.sleep(ConfigProvider.getConfig().getValue(AdminUIConfig.CONF_KEY_INITIAL_ADMIN_UI_DELAY,
108+
Thread.sleep(ConfigProvider.getConfig().getValue(AdminUIConfig.CONF_KEY_INITIAL_METADATA_DELAY,
109109
Integer.class));
110110
} catch (InterruptedException e) {
111111
LOG.error("Initial metadata KB delay should not fail.", e);
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
initial.admin.ui.delay = 5000
1+
initial.metadata.delay = 5000

0 commit comments

Comments
 (0)