Files
perfdb/pdb-ui/src/main/java/org/lucares/pdbui/Ingestion.java
Andreas Huber aadc9cbd21 move TcpIngestor to pdb-ui
and start it in the web application.
Also use the spring way of handling property files.
2017-03-19 08:00:18 +01:00

22 lines
364 B
Java

package org.lucares.pdbui;
import javax.annotation.PostConstruct;
import org.springframework.stereotype.Component;
@Component
public class Ingestion {
private final Ingestor tcpIngestor;
public Ingestion(final Ingestor tcpIngestor) {
this.tcpIngestor = tcpIngestor;
}
@PostConstruct
public void start() throws Exception {
tcpIngestor.start();
}
}