44 lines
871 B
Java
44 lines
871 B
Java
package org.gcube.application.perform.service.engine;
|
|
|
|
import java.util.concurrent.ThreadPoolExecutor;
|
|
|
|
import org.gcube.application.perform.service.engine.model.importer.ImportRequest;
|
|
import org.gcube.application.perform.service.engine.model.importer.ImportTicket;
|
|
|
|
import lombok.Synchronized;
|
|
|
|
public class ImporterImpl implements Importer {
|
|
|
|
|
|
// Keeps track of imported jobs in -separated?- DB
|
|
// Static thread pool for monitoring
|
|
private static ThreadPoolExecutor executor=null;
|
|
|
|
public ImporterImpl() {
|
|
|
|
}
|
|
|
|
|
|
@Override
|
|
public ImportTicket importExcel(ImportRequest request) {
|
|
|
|
|
|
throw new RuntimeException("IMPLEMENT THIS SHIT");
|
|
// Check if already present?
|
|
|
|
// Insert reference in DB
|
|
// Submit to DM
|
|
// return ticket
|
|
return null;
|
|
}
|
|
|
|
@Synchronized
|
|
private static void exec() {
|
|
if(executor==null) {
|
|
//init executor
|
|
}
|
|
|
|
|
|
}
|
|
}
|