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