org.simantics.compressions;bundle-version="1.0.0",
org.simantics.backup,
org.eclipse.core.runtime;bundle-version="3.11.1",
- org.simantics.db.procore
+ org.simantics.db.procore,
+ org.slf4j.api;bundle-version="1.7.2"
Bundle-RequiredExecutionEnvironment: JavaSE-1.8
Bundle-ActivationPolicy: lazy
Bundle-Activator: org.simantics.acorn.internal.Activator
import org.simantics.db.service.ClusterUID;
import org.simantics.utils.threads.logger.ITask;
import org.simantics.utils.threads.logger.ThreadLogger;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
public class ClusterManager {
+
+ final static Logger LOGGER = LoggerFactory.getLogger(ClusterManager.class);
private ArrayList<String> currentChanges = new ArrayList<String>();
return false;
}
- System.err.println("makeSnapshot");
+ LOGGER.info("makeSnapshot");
// Schedule writing of all data to disk
refreshHeadState();
amountOfFiles = countFiles(workingDirectory);
- System.err.println(" -finished: amount of files is " + amountOfFiles);
+ LOGGER.info(" -finished: amount of files is {}", amountOfFiles);
workingDirectory = dbFolder.resolve(Integer.toString(mainState.headDir));
if (!Files.exists(workingDirectory)) {
Require-Bundle: org.simantics.graph;bundle-version="1.0.0";visibility:=reexport,
org.simantics.db.common;bundle-version="0.8.0",
gnu.trove3;bundle-version="3.0.3",
- org.simantics.layer0;bundle-version="1.0.0"
+ org.simantics.layer0;bundle-version="1.0.0",
+ org.slf4j.api;bundle-version="1.7.2"
Export-Package: org.simantics.graph.db,
org.simantics.graph.db.old
Bundle-Vendor: VTT Technical Research Centre of Finland
import org.simantics.graph.representation.TransferableGraph1;
import org.simantics.graph.representation.Value;
import org.simantics.utils.datastructures.BinaryFunction;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
import gnu.trove.list.array.TIntArrayList;
import gnu.trove.map.hash.TObjectIntHashMap;
public class TransferableGraphs {
+ final static Logger LOGGER = LoggerFactory.getLogger(TransferableGraphs.class);
public static long[] importGraph(Session session, Object tg, IImportAdvisor advisor) throws DatabaseException, TransferableGraphException {
if (tg instanceof TransferableGraph1)
});
long end = System.nanoTime();
- System.err.println("Wrote transferable graph in " + 1e-9*(end-start) + " seconds.");
+ LOGGER.info("Wrote transferable graph in {} seconds.", 1e-9*(end-start));
}
public static TransferableGraph1 create(ReadGraph graph, TransferableGraphSource source) throws DatabaseException {