private LongTaskExecutor executor;
private LongTaskErrorHandler errorHandler;
public ClusteringControllerImpl() {
executor = new LongTaskExecutor(true, "Clusterer", 10);
errorHandler = new LongTaskErrorHandler() {
public void fatalError(Throwable t) {
Logger.getLogger("").log(Level.SEVERE, "", t.getCause() != null ? t.getCause() : t);
}
};