blob: d4e3222212da40447e80c9d8d091d8411c42e1e1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
package de.akquinet.devops;
import java.util.concurrent.TimeUnit;
import com.gitblit.GitBlit;
public class GitBlit4UITests extends GitBlit {
private boolean luceneIndexingEnabled;
public GitBlit4UITests(boolean luceneIndexingEnabled) {
super(null);
this.luceneIndexingEnabled = luceneIndexingEnabled;
}
@Override
protected void configureLuceneIndexing() {
if (luceneIndexingEnabled) {
getScheduledExecutor().scheduleAtFixedRate(getLuceneExecutor(), 1,
2, TimeUnit.MINUTES);
getLogger()
.info("Lucene executor is scheduled to process indexed branches every 2 minutes.");
}
}
}
|