summaryrefslogtreecommitdiffstats
path: root/src/test/java/de/akquinet/devops/GitBlit4UITests.java
blob: 9c559f880e4db9eb708f21a309d26d8230c6cd69 (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();
		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.");
		}
	}

}