Rename Splitter-ng-test to Splitter-ng-filesplitter
authorMaximilian Quellmalz <maximilian.quellmalz@mailbox.tu-dresden.de>
Tue, 9 Dec 2014 14:13:26 +0000 (15:13 +0100)
committerMaximilian Quellmalz <maximilian.quellmalz@mailbox.tu-dresden.de>
Tue, 9 Dec 2014 14:30:33 +0000 (15:30 +0100)
20 files changed:
Splitter-ng-filesplitter/.classpath [new file with mode: 0644]
Splitter-ng-filesplitter/.gitignore [new file with mode: 0644]
Splitter-ng-filesplitter/.project [new file with mode: 0644]
Splitter-ng-filesplitter/.settings/org.eclipse.jdt.core.prefs [new file with mode: 0644]
Splitter-ng-filesplitter/build.xml [new file with mode: 0644]
Splitter-ng-filesplitter/filesplitter [new file with mode: 0755]
Splitter-ng-filesplitter/filesplitter-x [new file with mode: 0755]
Splitter-ng-filesplitter/src/Filesplitter.java [new file with mode: 0644]
Splitter-ng-filesplitter/srcDir/test-abcd [new file with mode: 0644]
Splitter-ng-filesplitter/srcDir/test-text [new file with mode: 0644]
Splitter-ng-test/.classpath [deleted file]
Splitter-ng-test/.gitignore [deleted file]
Splitter-ng-test/.project [deleted file]
Splitter-ng-test/.settings/org.eclipse.jdt.core.prefs [deleted file]
Splitter-ng-test/build.xml [deleted file]
Splitter-ng-test/src/SplitterTest.java [deleted file]
Splitter-ng-test/srcDir/test-abcd [deleted file]
Splitter-ng-test/srcDir/test-text [deleted file]
Splitter-ng-test/starttest [deleted file]
Splitter-ng-test/starttest-x [deleted file]

diff --git a/Splitter-ng-filesplitter/.classpath b/Splitter-ng-filesplitter/.classpath
new file mode 100644 (file)
index 0000000..65cf4e2
--- /dev/null
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+       <classpathentry kind="src" path="src"/>
+       <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.7"/>
+       <classpathentry combineaccessrules="false" kind="src" path="/Splitter-ng"/>
+       <classpathentry kind="output" path="bin"/>
+</classpath>
diff --git a/Splitter-ng-filesplitter/.gitignore b/Splitter-ng-filesplitter/.gitignore
new file mode 100644 (file)
index 0000000..5e56e04
--- /dev/null
@@ -0,0 +1 @@
+/bin
diff --git a/Splitter-ng-filesplitter/.project b/Splitter-ng-filesplitter/.project
new file mode 100644 (file)
index 0000000..490cf19
--- /dev/null
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+       <name>Splitter-ng-test</name>
+       <comment></comment>
+       <projects>
+       </projects>
+       <buildSpec>
+               <buildCommand>
+                       <name>org.eclipse.jdt.core.javabuilder</name>
+                       <arguments>
+                       </arguments>
+               </buildCommand>
+       </buildSpec>
+       <natures>
+               <nature>org.eclipse.jdt.core.javanature</nature>
+       </natures>
+</projectDescription>
diff --git a/Splitter-ng-filesplitter/.settings/org.eclipse.jdt.core.prefs b/Splitter-ng-filesplitter/.settings/org.eclipse.jdt.core.prefs
new file mode 100644 (file)
index 0000000..7341ab1
--- /dev/null
@@ -0,0 +1,11 @@
+eclipse.preferences.version=1
+org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
+org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.7
+org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
+org.eclipse.jdt.core.compiler.compliance=1.7
+org.eclipse.jdt.core.compiler.debug.lineNumber=generate
+org.eclipse.jdt.core.compiler.debug.localVariable=generate
+org.eclipse.jdt.core.compiler.debug.sourceFile=generate
+org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
+org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
+org.eclipse.jdt.core.compiler.source=1.7
diff --git a/Splitter-ng-filesplitter/build.xml b/Splitter-ng-filesplitter/build.xml
new file mode 100644 (file)
index 0000000..714c81f
--- /dev/null
@@ -0,0 +1,83 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<project basedir="." default="build" name="Splitter-ng-test">
+       <property environment="env" />
+       <property name="Splitter-ng.location" value="../Splitter-ng" />
+       <property name="debuglevel" value="source,lines,vars" />
+       <property name="target" value="1.7" />
+       <property name="source" value="1.7" />
+       <path id="Splitter-ng.classpath">
+               <pathelement location="${Splitter-ng.location}/bin" />
+       </path>
+       <path id="Splitter-ng-test.classpath">
+               <pathelement location="bin" />
+               <pathelement location="lib" />
+               <path refid="Splitter-ng.classpath" />
+       </path>
+       <target name="init">
+               <mkdir dir="bin" />
+               <copy includeemptydirs="false" todir="bin">
+                       <fileset dir="src">
+                               <exclude name="**/*.uad" />
+                               <exclude name="**/*.ucd" />
+                               <exclude name="**/*.uld" />
+                               <exclude name="**/*.upd" />
+                               <exclude name="**/*.udd" />
+                               <exclude name="**/*.uod" />
+                               <exclude name="**/*.usd" />
+                               <exclude name="**/*.utd" />
+                               <exclude name="**/*.uud" />
+                               <exclude name="**/*.odd" />
+                               <exclude name="**/*.ead" />
+                               <exclude name="**/*.ecd" />
+                               <exclude name="**/*.eld" />
+                               <exclude name="**/*.epd" />
+                               <exclude name="**/*.edd" />
+                               <exclude name="**/*.eod" />
+                               <exclude name="**/*.esd" />
+                               <exclude name="**/*.etd" />
+                               <exclude name="**/*.eud" />
+                               <exclude name="**/*.urd" />
+                               <exclude name="**/*.uml" />
+                               <exclude name="**/*.ecore" />
+                               <exclude name="**/*.ucls" />
+                               <exclude name="**/*.useq" />
+                               <exclude name="**/*.java" />
+                       </fileset>
+               </copy>
+       </target>
+       <target name="clean">
+               <delete dir="bin" />
+       </target>
+       <target depends="clean" name="cleanall">
+               <ant antfile="build.xml" dir="${Splitter-ng.location}" inheritAll="false" target="clean" />
+       </target>
+       <target depends="build-subprojects,build-project" name="build" />
+       <target name="build-subprojects">
+               <ant antfile="build.xml" dir="${Splitter-ng.location}" inheritAll="false" target="build-project" />
+       </target>
+       <target depends="init" name="build-project">
+               <echo message="${ant.project.name}: ${ant.file}" />
+               <javac debug="true" debuglevel="${debuglevel}" destdir="bin" includeantruntime="false" source="${source}" target="${target}">
+                       <src path="src" />
+                       <classpath refid="Splitter-ng-test.classpath" />
+               </javac>
+       </target>
+       <target description="Build all projects which reference this project. Useful to propagate changes." name="build-refprojects" />
+       <target name="makejar" depends="build" description="Create a jar for the project">
+               <jar jarfile="bin/${ant.project.name}.jar">
+                       <fileset dir="bin" includes="**/*.class" />
+                       <manifest>
+                               <attribute name="Main-Class" value="SplitterTest" />
+                               <attribute name="Class-Path" value="lib/Splitter-ng.jar"/>
+                       </manifest>
+               </jar>
+       </target>
+       <target name="dist" depends="makejar" description="Create a distribution Directory wirth splitter-ng and all Plugins">
+               <mkdir dir="../dist" />
+               <copy file="bin/${ant.project.name}.jar" todir="../dist/" />
+               <copy file="starttest-x" todir="../dist/" />
+               <chmod file="../dist/starttest-x" perm="ugo+rx"/>
+               <copy file="starttest" todir="../dist/" />
+               <chmod file="../dist/starttest" perm="ugo+rx"/>
+       </target>
+</project>
diff --git a/Splitter-ng-filesplitter/filesplitter b/Splitter-ng-filesplitter/filesplitter
new file mode 100755 (executable)
index 0000000..b267fea
--- /dev/null
@@ -0,0 +1,6 @@
+#!/bin/bash
+#Nicht mehr nötig wenn jerasure im plugin-jar ist
+#PWD="`dirname \`readlink -f $0\``"
+#cd $PWD
+LD_LIBRARY_PATH="/tmp/:$PWD/plugin/" java -jar Splitter-ng-test.jar
+#java -jar Splitter-ng-test.jar
diff --git a/Splitter-ng-filesplitter/filesplitter-x b/Splitter-ng-filesplitter/filesplitter-x
new file mode 100755 (executable)
index 0000000..7c48493
--- /dev/null
@@ -0,0 +1,3 @@
+#!/bin/bash
+
+x-terminal-emulator -e ./starttest
diff --git a/Splitter-ng-filesplitter/src/Filesplitter.java b/Splitter-ng-filesplitter/src/Filesplitter.java
new file mode 100644 (file)
index 0000000..5836c14
--- /dev/null
@@ -0,0 +1,620 @@
+import java.io.IOException;
+import java.nio.file.DirectoryStream;
+import java.nio.file.Files;
+import java.nio.file.Path;
+import java.nio.file.Paths;
+import java.util.Collection;
+import java.util.HashMap;
+import java.util.LinkedList;
+import java.util.List;
+import java.util.Map;
+import java.util.Map.Entry;
+import java.util.Scanner;
+import java.util.TreeMap;
+
+import splitterng.CodingTask;
+import splitterng.DecodingTask;
+import splitterng.EncodingTask;
+import splitterng.Splitter;
+import splitterng.SplitterCallback;
+import splitterng.plugin.CodecDescription;
+import splitterng.plugin.PluginDescription;
+
+public class SplitterTest implements SplitterCallback {
+
+       private Collection<Splitter> splitters = new LinkedList<Splitter>();
+       private List<CodingTask> finished_encoding_task = new LinkedList<CodingTask>();
+       private List<CodingTask> finished_decoding_task = new LinkedList<CodingTask>();
+       private List<CodingTask> running_tasks = new LinkedList<CodingTask>();
+
+       // in der Map werden die Metadaten-vorlage für jeden Codec gespeichert
+       private Map<Splitter, Map<String, Object>> splitter_metadata_map = new HashMap<Splitter, Map<String, Object>>();
+
+       public static void main(String[] args) throws InterruptedException {
+               SplitterTest splitterTest = new SplitterTest();
+               splitterTest.run();
+
+               // Thread.sleep(50000);
+               // System.exit(0);
+       }
+
+       public void run() {
+
+               System.out.println("Splitter Plugins");
+               // Optional: Anfrage, welche Plugins geladen sind
+               for (PluginDescription p : Splitter.getPluginDescriptions()) {
+                       System.out.println("---------------------------------------------\n" + p.getPluginID() + "\t"
+                                       + p.getPluginName());
+                       // Optional: Aus jeder Plugindescription die Verfügbaren Codecs
+                       // auslesen
+                       for (CodecDescription c : p.getCodecDescriptions()) {
+                               System.out.println("\t|---------------------------------------------\n\t|" + c.getCodecID() + "\t"
+                                               + c.getCodecDescriptionText());
+                               Map<String, Integer[]> codecParameterMinMax = c
+                                               .getCodecParameterMinMax();
+                               for (Entry<String, Integer[]> e : codecParameterMinMax
+                                               .entrySet()) {
+                                       System.out.println("\t|\t" + e.getKey() + "\tmin:"
+                                                       + e.getValue()[0] + "  max:" + e.getValue()[1] + " default: " + c.getCodecParameterDefaults().get(e.getKey()));
+                               }
+                               // Wenn hier eine Konfiguration für eine plugin-codec
+                               // Kombination vorhanden ist, wird der Splitter initialisiert.
+                               Map<String, Integer> codecParameter;
+                               Splitter splitter;
+                               switch (p.getPluginID() + "/" + c.getCodecID()) {
+///-----------------------------------------------------------------------------------------------
+///-----------------------------------------------------------------------------------------------
+///-----------------------------------------------------------------------------------------------
+///-----------------------------------------------------------------------------------------------
+                               case "jerasure/JerasureCauchyGood":
+                                       // Codecparameter Bauen
+                                       codecParameter = new TreeMap<String, Integer>();
+                                       codecParameter.put("k", 2);
+                                       codecParameter.put("m", 2);
+                                       //codecParameter.put("w", 8);
+                                       //codecParameter.put("packetsize", 8);
+                                       System.out.println("\t\tinitialisiere mit" + " k="
+                                                       + codecParameter.get("k") + " m="
+                                                       + codecParameter.get("m") + " w="
+                                                       + codecParameter.get("w") + " packetsize="
+                                                       + codecParameter.get("packetsize"));
+                                       // Splitter mit Plugin-ID CodecID und codecparametern
+                                       // initialisieren
+                                       Splitter splitterjerasure = new Splitter(p.getPluginID(), c.getCodecID(),
+                                                       codecParameter);
+                                       splitters.add(splitterjerasure);
+                                       
+                                       // Metadaten bauen vorlage
+                                       Map<String, Object> metadatajerasure = new TreeMap<String, Object>();
+                                       metadatajerasure.put("fragmentsize", (int) 64);
+                                       // Beleiebige weitere Metadaten
+                                       
+                                       splitter_metadata_map.put(splitterjerasure, metadatajerasure);
+                                       break;
+///-----------------------------------------------------------------------------------------------
+                               case "jerasure/JerasureReedSolomon":
+                                       // Codecparameter Bauen
+                                       Map<String, Integer> codecParameter1 = new TreeMap<String, Integer>();
+                                       codecParameter1.put("k", 3);
+                                       codecParameter1.put("m", 3);
+                                       //codecParameter1.put("w", 16);
+                                       //codecParameter1.put("packetsize", 64);
+                                       System.out.println("\t\tinitialisiere mit" + " k="
+                                                       + codecParameter1.get("k") + " m="
+                                                       + codecParameter1.get("m") + " w="
+                                                       + codecParameter1.get("w") + " packetsize="
+                                                       + codecParameter1.get("packetsize"));
+                                       // Splitter mit Plugin-ID CodecID und codecparametern
+                                       // initialisieren
+                                       Splitter splitterjerasure1 = new Splitter(p.getPluginID(), c.getCodecID(),
+                                                       codecParameter1);
+                                       splitters.add(splitterjerasure1);
+                                       
+                                       // Metadaten bauen vorlage
+                                       Map<String, Object> metadatajerasure1 = new TreeMap<String, Object>();
+                                       metadatajerasure1.put("fragmentsize", (int) 40960);
+                                       // Beleiebige weitere Metadaten
+                                       
+                                       splitter_metadata_map.put(splitterjerasure1, metadatajerasure1);
+                                       break;
+///-----------------------------------------------------------------------------------------------
+                               case "jerasure/JerasureLiber8tion":
+                                       // Codecparameter Bauen
+                                       Map<String, Integer> codecParameter2 = new TreeMap<String, Integer>();
+                                       codecParameter2.put("k", 3);
+                                       codecParameter2.put("m", 2);
+                                       codecParameter2.put("packetsize", 64);
+                                       System.out.println("\t\tinitialisiere mit"
+                                                       + " k=" + codecParameter2.get("k") 
+                                                       + " m=" + codecParameter2.get("m")
+                                                       + " packetsize=" + codecParameter2.get("packetsize"));
+                                       // Splitter mit Plugin-ID CodecID und codecparametern
+                                       // initialisieren
+                                       Splitter splitterjerasure2 = new Splitter(p.getPluginID(), c.getCodecID(),
+                                                       codecParameter2);
+                                       splitters.add(splitterjerasure2);
+                                       
+                                       // Metadaten bauen vorlage
+                                       Map<String, Object> metadatajerasure2 = new TreeMap<String, Object>();
+                                       metadatajerasure2.put("fragmentsize", (int) 40960);
+                                       // Beleiebige weitere Metadaten
+                                       
+                                       splitter_metadata_map.put(splitterjerasure2, metadatajerasure2);
+                                       break;
+///-----------------------------------------------------------------------------------------------
+                               case "Raid1Plugin/raid1codec":
+                                       // Codecparameter Bauen
+                                       Map<String, Integer> codecParameternoop = new TreeMap<String, Integer>();
+                                       codecParameternoop.put("k", 1);
+                                       codecParameternoop.put("m", 1);
+                                       System.out.println("\t\tinitialisiere mit"
+                                                       + " k=" + codecParameternoop.get("k")
+                                                       + " m=" + codecParameternoop.get("m")
+                                                       );
+                                       // Splitter mit Plugin-ID CodecID und codecparametern
+                                       // initialisieren
+                                       Splitter splitterraid1 = new Splitter(p.getPluginID(), c.getCodecID(),
+                                                       codecParameternoop);
+                                       splitters.add(splitterraid1);
+                                       
+                                       // Metadaten bauen vorlage
+                                       Map<String, Object> metadataraid1 = new TreeMap<String, Object>();
+                                       metadataraid1.put("fragmentsize", (int) 40960);
+                                       // Beleiebige weitere Metadaten
+                                       
+                                       splitter_metadata_map.put(splitterraid1, metadataraid1);
+                                       
+                                       break;
+///-----------------------------------------------------------------------------------------------
+                               case "jsharing/shamir":
+                                       // Codecparameter Bauen
+                                       Map<String, Integer> codecParameterjsharing = new TreeMap<String, Integer>();
+                                       codecParameterjsharing.put("k", 2);
+                                       codecParameterjsharing.put("m", 1);
+                                       System.out.println("\t\tinitialisiere mit k="
+                                                       + codecParameterjsharing.get("k") + " m="
+                                                       + codecParameterjsharing.get("m"));
+
+                                       Splitter splittershamir= new Splitter(p.getPluginID(), c.getCodecID(),
+                                                       codecParameterjsharing);
+                                       splitters.add(splittershamir);
+                                       
+                                       // Metadaten bauen vorlage
+                                       Map<String, Object> metadatashamir = new TreeMap<String, Object>();
+                                       metadatashamir.put("fragmentsize", (int)8);
+                                       // Beleiebige weitere Metadaten
+                                       
+                                       splitter_metadata_map.put(splittershamir, metadatashamir);
+                                       
+                                       break;
+///-----------------------------------------------------------------------------------------------
+                               case "jerasure-java/JerasureJavaCRS":
+                                       // Codecparameter Bauen
+                                       Map<String, Integer> codecParameter11 = new TreeMap<String, Integer>();
+                                       codecParameter11.put("k", 2);
+                                       codecParameter11.put("m", 2);
+                                       //codecParameter11.put("w", 8);
+                                       //codecParameter11.put("packetsize", 8);
+                                       System.out.println("\t\tinitialisiere mit"
+                                                       + " k=" + codecParameter11.get("k")
+                                                       + " m=" + codecParameter11.get("m") 
+                                                       + " w=" + codecParameter11.get("w")
+                                                       + " packetsize=" + codecParameter11.get("packetsize")
+                                                       );
+                                       // Splitter mit Plugin-ID CodecID und codecparametern
+                                       // initialisieren
+                                       Splitter splitterjerasure11 = new Splitter(p.getPluginID(), c.getCodecID(),
+                                                       codecParameter11);
+                                       splitters.add(splitterjerasure11);
+                                       
+                                       // Metadaten bauen vorlage
+                                       Map<String, Object> metadatajerasure11 = new TreeMap<String, Object>();
+                                       metadatajerasure11.put("fragmentsize", (int) 64);
+                                       // Beleiebige weitere Metadaten
+                                       
+                                       splitter_metadata_map.put(splitterjerasure11, metadatajerasure11);
+                                       break;
+///-----------------------------------------------------------------------------------------------
+                                       
+                               case "JigDFS/crs":
+                                       // Codecparameter Bauen
+                                       Map<String, Integer> codecParameter111 = new TreeMap<String, Integer>();
+                                       codecParameter111.put("k", 2);
+                                       codecParameter111.put("m", 1);
+                                       //codecParameter111.put("chunksize", 16);
+                                       System.out.println("\t\tinitialisiere mit" + " k="
+                                                       + codecParameter111.get("k") + " m="
+                                                       + codecParameter111.get("m")
+                                                       + " chunksize=" + codecParameter111.get("chunksize")
+                                                       );
+                                       // Splitter mit Plugin-ID CodecID und codecparametern
+                                       // initialisieren
+                                       Splitter splitterjerasure111 = new Splitter(p.getPluginID(), c.getCodecID(),
+                                                       codecParameter111);
+                                       splitters.add(splitterjerasure111);
+                                       
+                                       // Metadaten bauen vorlage
+                                       Map<String, Object> metadatajerasure111 = new TreeMap<String, Object>();
+                                       metadatajerasure111.put("fragmentsize", (int) 64);
+                                       metadatajerasure111.put("digest", "SHA-256");
+                                       //metadatajerasure111.put("digest", "MD5");
+                                       // Beleiebige weitere Metadaten
+                                       splitter_metadata_map.put(splitterjerasure111, metadatajerasure111);
+                                       break;
+///-----------------------------------------------------------------------------------------------
+                                       
+                               case "bitsplitter/bitsplitter":
+                                       // Codecparameter Bauen
+                                       Map<String, Integer> codecParameter1111 = new TreeMap<String, Integer>();
+                                       codecParameter1111.put("k", 4);
+                                       codecParameter1111.put("m", 0);
+                                       System.out.println("\t\tinitialisiere mit" + " k="
+                                                       + codecParameter1111.get("k") + " m="
+                                                       + codecParameter1111.get("m"));
+                                       // Splitter mit Plugin-ID CodecID und codecparametern
+                                       // initialisieren
+                                       Splitter splitter1111 = new Splitter(p.getPluginID(), c.getCodecID(),
+                                                       codecParameter1111);
+                                       splitters.add(splitter1111);
+                                       
+                                       // Metadaten bauen vorlage
+                                       Map<String, Object> metadata1111 = new TreeMap<String, Object>();
+                                       metadata1111.put("fragmentsize", (int) 409600);
+                                       metadata1111.put("digest", "SHA-1");
+                                       // Beleiebige weitere Metadaten
+                                       
+                                       splitter_metadata_map.put(splitter1111, metadata1111);
+                                       break;
+///-----------------------------------------------------------------------------------------------
+///-----------------------------------------------------------------------------------------------
+///-----------------------------------------------------------------------------------------------
+///-----------------------------------------------------------------------------------------------
+///-----------------------------------------------------------------------------------------------
+                               default:
+                                       try {
+                                               splitter = new Splitter(p.getPluginID(), c.getCodecID(),4,1);
+                                               System.out.println("\t\tDefault Splitter created for: "
+                                                               + p.getPluginID() + "/" + c.getCodecID());                                              
+                                       } catch (Exception e) {
+                                               System.out.println("\t\tNO Splitter created for: "
+                                                               + p.getPluginID() + "/" + c.getCodecID() + "\n" + e.getMessage());      
+                                       }
+
+                                       break;
+                               }
+                       }
+               }
+
+               System.out.println("\nListe der Dateien");
+               Path srcDir = Paths.get("srcDir");
+               List<Path> srcFileList = getFileList(srcDir);
+               for (Path entry : srcFileList) {
+                       System.out.println("- " + entry.toString());
+               }
+
+               // restoreDir anlegen bzw aufräumen
+               Path splitDir = Paths.get("splitDir");
+               checkDirectory(splitDir);
+               for (Path entry : getFileList(splitDir)) {
+                       try {
+                               Files.delete(entry);
+                       } catch (IOException e) {
+                               // TODO Auto-generated catch block
+                               e.printStackTrace();
+                       }
+               }
+
+               // restoreDir anlegen bzw aufräumen
+               Path restoreDir = Paths.get("restoreDir");
+               checkDirectory(restoreDir);
+               for (Path entry : getFileList(restoreDir)) {
+                       try {
+                               Files.delete(entry);
+                       } catch (IOException e) {
+                               e.printStackTrace();
+                       }
+               }
+               // Jede Datei ...
+               for (Path srcfile : srcFileList) {
+                       // ... mit jedem initialisierten Splitter bearbeiten
+                       for (Splitter splitter : splitters) {
+                               System.out.println("Encoding: "
+                                               + srcfile
+                                               + "  with "
+                                               + splitter.getCurrentPlugin().getPluginDescription()
+                                                               .getPluginID() + "/"
+                                               + splitter.getCurrentCodecDescription().getCodecID());
+                               try {
+
+                                       Map<String, Object> metadata = new TreeMap<String, Object>();
+                                       
+                                       for (Entry<String, Object> e: splitter_metadata_map.get(splitter).entrySet()){
+                                               metadata.put(e.getKey(), e.getValue());
+                                       }
+                                       
+                                       metadata.put("time_encoding_submitted",
+                                                       System.currentTimeMillis());
+                       
+
+                                       // Hier wird codiert. Der Encodingtask
+                                       EncodingTask task = new EncodingTask(srcfile, Paths
+                                                       .get("splitDir"), this, metadata);
+                                       splitter.encode(task);
+                                       running_tasks.add(task);
+                               } catch (InterruptedException | IOException e) {
+                                       e.printStackTrace();
+                               }
+
+                       }
+
+               }
+
+               System.out.println("-----");
+               System.out.println("Alle Aufträge an die Splitter übermittelt");
+
+               printUsage();
+
+               
+               // dateien zusammenbauen
+               @SuppressWarnings("resource")
+               Scanner in = new Scanner(System.in);
+               while (true) {
+                       System.out.print(">>>");
+                       if (!in.hasNext()) System.exit(0);
+                       switch (in.next()) {
+                       case "EOF":
+                       case "q":
+                       case "quit":
+                       case "exit":
+                                       System.exit(0);
+                       case "h":
+                       case "help":
+                               printUsage();
+                               break;
+                       case "ls":
+                               switch (in.next()){
+                               case "enc":
+                                       for (CodingTask t : finished_encoding_task) {
+                                               System.out.println(""
+                                                               + finished_encoding_task.lastIndexOf(t) + "\t"
+                                                               + t.getFilePath().getFileName());
+                                       }
+                                       break;
+                               case "dec":
+                                       for (CodingTask t : finished_decoding_task) {
+                                               System.out.println(""
+                                                               + finished_decoding_task.lastIndexOf(t) + "\t"
+                                                               + t.getFilePath().getFileName());
+                                       }
+                                       break;
+                                       
+                               case "frag":
+                                       try {
+                                               for (Entry<Integer, Path> e : finished_encoding_task
+                                                               .get(Integer.parseInt(in.next()))
+                                                               .getFragmentPaths().entrySet()) {
+                                                       System.out.format("\t %-5s %s %s\n", e.getKey(), e
+                                                                       .getValue().toString(), (Files.exists(e
+                                                                       .getValue()) ? "OK" : "Fehlt"));
+                                                       // System.out.println(++"\t"+e.getValue().toString());
+                                               }
+                                       } catch (Exception e) {
+                                               System.out.println("Index nicht gefunden");
+                                       }
+                                       break;
+                                       
+                               case "src":
+                                       System.out.println("noch nicht implementiert");
+                                       break;
+                                       
+                                       
+                               case "splitter":
+                                       System.out.println("noch nicht implementiert");
+                                       break;
+                               
+                               }
+                               break;
+
+                       case "meta":
+                               switch(in.next()){
+                               case "enc":
+                                       try {
+                                               for (Entry<String, Object> e : finished_encoding_task
+                                                               .get(Integer.parseInt(in.next())).getMetadata()
+                                                               .entrySet()) {
+                                                       System.out.format("\t %-25s %-25s %s\n", e.getKey(), e
+                                                                       .getValue().toString(), e.getValue().getClass()
+                                                                       .toString());
+                                                       // System.out.println(++"\t"+e.getValue().toString());
+                                               }
+                                       } catch (Exception e) {
+                                               System.out.println("Index nicht gefunden");
+                                       }
+                                       break;
+                               
+                               case "dec":
+                                       try {
+                                               for (Entry<String, Object> e : finished_decoding_task
+                                                               .get(Integer.parseInt(in.next())).getMetadata()
+                                                               .entrySet()) {
+                                                       System.out.format("\t %-25s %s\n", e.getKey(), e
+                                                                       .getValue().toString());
+                                                       // System.out.println(++"\t"+e.getValue().toString());
+                                               }
+                                       } catch (Exception e) {
+                                               System.out.println("Index nicht gefunden");
+                                       }
+                                       break;
+                               }
+                               break;
+
+                       case "rm":
+                               try {
+                                       int tasknr = Integer.parseInt(in.next());
+                                       int fragmentnr = Integer.parseInt(in.next());
+                                       Map<Integer, Path> fragmentPaths = finished_encoding_task
+                                                       .get(tasknr).getFragmentPaths();
+                                       Path path = fragmentPaths.get(fragmentnr);
+                                       try {
+                                               Files.delete(path);
+                                       } catch (Exception e) {
+                                               System.out.println("Konnte fragment nicht löschen "
+                                                               + e.getMessage());
+
+                                       }
+
+                               } catch (Exception e) {
+                                       System.out.println("Index nicht gefunden");
+                               }
+                               break;
+
+                       case "dec":
+                               try {
+                                       int tasknr = Integer.parseInt(in.next());
+                                       CodingTask enctask = (CodingTask) finished_encoding_task
+                                                       .get(tasknr);
+                                       Path restorefile = restoreDir.resolve(""
+                                                       + System.currentTimeMillis()
+                                                       + enctask.getFilePath().getFileName());
+
+                                       Map<Integer, Path> fragmentPaths = enctask
+                                                       .getFragmentPaths();
+                                       for (int i = 0; i < fragmentPaths.size(); i++) {
+                                               Path path = fragmentPaths.get(i);
+                                               if (path == null || !Files.exists(path)) {
+                                                       fragmentPaths.put(i, null);
+                                               }
+
+                                       }
+                                       DecodingTask dectask = new DecodingTask(fragmentPaths,
+                                                       restorefile, this, enctask.getMetadataAsDeepCopy());
+                                       for (Splitter spl : splitters) {
+                                               if (spl.getCurrentPlugin().getPluginDescription()
+                                                               .getPluginID() == (String) enctask
+                                                               .getMetadata("pluginid")
+                                                               && spl.getCurrentCodecDescription()
+                                                                               .getCodecID() == (String) enctask
+                                                                               .getMetadata("codecid")) {
+                                                       System.out.println("Auftrag angenommen..."
+                                                                       + restorefile);
+                                                       spl.decode(dectask);
+                                                       running_tasks.add(dectask);
+                                               }
+                                       }
+
+                               } catch (Exception e) {
+                                       e.printStackTrace();
+                                       System.out.println("Index nicht gefunden");
+                               }
+                               break;
+                       case "enc":
+                               System.out.println("noch nicht implementiert");
+                               break;
+                               
+                       
+                       default:
+                               printUsage();
+                       }
+
+               }
+
+       }
+
+       private static List<Path> getFileList(Path path) {
+               List<Path> files = new LinkedList<Path>();
+               checkDirectory(path);
+               try (DirectoryStream<Path> stream = Files.newDirectoryStream(path,
+                               new DirectoryStream.Filter<Path>() {
+                                       @Override
+                                       public boolean accept(Path entry) throws IOException {
+                                               return !Files.isDirectory(entry);
+                                       }
+                               });) {
+                       for (Path entry : stream) {
+                               files.add(entry);
+                       }
+               } catch (IOException e) {
+                       e.printStackTrace();
+               }
+               return files;
+       }
+
+       private static void checkDirectory(Path path) {
+               if (!Files.exists(path)) {
+                       try {
+                               Files.createDirectory(path);
+                       } catch (IOException e) {
+                               System.err.println("Verzeichnis kann nicht erstellt werden: "
+                                               + path.toUri());
+                               e.printStackTrace();
+                       }
+               }
+       }
+
+       // private static void initSplitter(Splitter splitter) {
+       //
+       // System.out.println("Liste der Codecs:");
+       // Collection<String> codecids = splitter.getCodecIDs();
+       // Iterator<String> it = codecids.iterator();
+       // while (it.hasNext()){
+       // System.out.println("- " + it.next().toString());
+       // }
+       // if (codecids.contains("jerasureparity")){
+       // SplitterConfiguration config = new SplitterConfiguration();
+       // config.setCodecID("jerasureparity");
+       // splitter.setSplitterConfiguration(config);
+       // }
+       // System.out.println();
+       // }
+
+       @Override
+       public void codingFailed(CodingTask task, String reason) {
+               synchronized (task) { // damit die Ausgabe nicht verwürfelt wird
+                       running_tasks.remove(task);
+                       System.err.println("Coding Failed: "
+                                       + task.getFilePath().toString() + "  Reason:" + reason);
+               }
+
+       }
+
+       @Override
+       public synchronized void codingSuccessfull(CodingTask task) {
+               synchronized (task) { // damit die Ausgabe nicht verwürfelt wird
+                       long duration = 0;
+                       running_tasks.remove(task);
+                       if (task instanceof EncodingTask) {
+                               finished_encoding_task.add(task);
+                               duration = (long) task.getMetadata("time_encode_end")
+                                               - (long) task.getMetadata("time_encode_start");
+                       } else if (task instanceof DecodingTask) {
+                               finished_decoding_task.add(task);
+                               duration = (long) task.getMetadata("time_decode_end")
+                                               - (long) task.getMetadata("time_decode_start");
+                       }
+
+                       System.err.println("CodingTask "
+                                       + finished_encoding_task.indexOf(task)
+                                       + " OK: " + task.getFilePath().toString()
+                                       + "  Codec: " + task.getMetadata("pluginid") + "/"
+                                       + task.getMetadata("codecid") + "  T(ms):" + duration);
+               }
+       }
+
+       public void printUsage() {
+               System.out.println("Bedienung:"
+                               //+ "\nls splitter\tlistet alle initialisierten Splitter auf"
+                               //+ "\nls src\t\tlistet alle Dateien in scrDir auf"
+                               + "\nls enc\t\tlistet alle fertig encodierten Tasks auf"
+                               + "\nls dec\t\tlistet alle fertig decodierten Tasks auf"
+                               + "\nls frag <nr>\tlistet die Fragmentdateien zu Encoding-Task <nr> auf"
+                               + "\nrm <nr> <frac_nr>\tlöscht aus Encoding-Task <nr> die Fragmentdatei <frac_nr>"
+                               + "\ndec <nr>\twiederherstellen der Originaldatei aus Encoding-Task <nr> in das Verzeichnis restoreDir"
+                               //+ "\nenc <scr_nr> <splitter_nr>\tencodieren von Datei <scr_nr> mit Splitter <split-ter_nr>"
+                               + "\nmeta enc <nr>\tgibt metadaten zu encodingtask <nr> aus"
+                               + "\nmeta dec <nr>\tgibt metadaten zu decodingtask <nr> aus"
+                               + "\nq, quit oder exit\tbeenden das Programm"
+                               //+" \nh oder help\tzeigt die Hilfe an"
+                               + "");
+       }
+
+}
diff --git a/Splitter-ng-filesplitter/srcDir/test-abcd b/Splitter-ng-filesplitter/srcDir/test-abcd
new file mode 100644 (file)
index 0000000..e8b5353
--- /dev/null
@@ -0,0 +1 @@
+aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaabbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccdddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd
\ No newline at end of file
diff --git a/Splitter-ng-filesplitter/srcDir/test-text b/Splitter-ng-filesplitter/srcDir/test-text
new file mode 100644 (file)
index 0000000..f362fe0
--- /dev/null
@@ -0,0 +1 @@
+Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Donec quam felis, ultricies nec, pellentesque eu, pretium quis, sem. Nulla consequat massa quis enim. Donec pede justo, fringilla vel, aliquet nec, vulputate eget, arcu. In enim justo, rhoncus ut, imperdiet a, venenatis vitae, justo. Nullam dictum felis eu pede mollis pretium. Integer tincidunt. Cras dapibus. Vivamus elementum semper nisi. Aenean vulputate eleifend tellus. Aenean leo ligula, porttitor eu, consequat vitae, eleifend ac, enim. Aliquam lorem ante, dapibus in, viverra quis, feugiat a, tellus. Phasellus viverra nulla ut metus varius laoreet. Quisque rutrum. Aenean imperdiet. Etiam ultricies nisi vel augue. Curabitur ullamcorper ultricies nisi. Nam eget dui. Etiam rhoncus. Maecenas tempus, tellus eget condimentum rhoncus, sem quam semper libero, sit amet adipiscing sem neque sed ipsum. Nam quam nunc, blandit vel, luctus pulvinar, hendrerit id, lorem. Maecenas nec odio et ante tincidunt tempus. Donec vitae sapien ut libero venenatis faucibus. Nullam quis ante. Etiam sit amet orci eget eros faucibus tincidunt. Duis leo. Sed fringilla mauris sit amet nibh. Donec sodales sagittis magna. Sed consequat, leo eget bibendum sodales, augue velit cursus nunc, quis gravida magna mi a libero. Fusce vulputate eleifend sapien. Vestibulum purus quam, scelerisque ut, mollis sed, nonummy id, metus. Nullam accumsan lorem in dui. Cras ultricies mi eu turpis hendrerit fringilla. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; In ac dui quis mi consectetuer lacinia. Nam pretium turpis et arcu. Duis arcu tortor, suscipit eget, imperdiet nec, imperdiet iaculis, ipsum. Sed aliquam ultrices mauris. Integer ante arcu, accumsan a, consectetuer eget, posuere ut, mauris. Praesent adipiscing. Phasellus ullamcorper ipsum rutrum nunc. Nunc nonummy metus. Vestibulum volutpat pretium libero. Cras id dui. Aenean ut eros et nisl sagittis vestibulum. Nullam nulla eros, ultricies sit amet, nonummy id, imperdiet feugiat, pede. Sed lectus. Donec mollis hendrerit risus. Phasellus nec sem in justo pellentesque facilisis. Etiam imperdiet imperdiet orci. Nunc nec neque. Phasellus leo dolor, tempus non, auctor et, hendrerit quis, nisi. Curabitur ligula sapien, tincidunt non, euismod vitae, posuere imperdiet, leo. Maecenas malesuada. Praesent congue erat at massa. Sed cursus turpis vitae tortor. Donec posuere vulputate arcu. Phasellus accumsan cursus velit. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Sed aliquam, nisi quis porttitor congue, elit erat euismod orci, ac placerat dolor lectus quis orci. Phasellus consectetuer vestibulum elit. Aenean tellus metus, bibendum sed, posuere ac, mattis non, nunc. Vestibulum fringilla pede sit amet augue. In turpis. Pellentesque posuere. Praesent turpis. Aenean posuere, tortor sed cursus feugiat, nunc augue blandit nunc, eu sollicitudin urna dolor sagittis lacus. Donec elit libero, sodales nec, volutpat a, suscipit non, turpis. Nullam sagittis. Suspendisse pulvinar, augue ac venenatis condimentum, sem libero volutpat nibh, nec pellentesque velit pede quis nunc. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Fusce id purus. Ut varius tincidunt libero. Phasellus dolor. Maecenas vestibulum mollis diam. Pellentesque ut neque. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. In dui magna, posuere eget, vestibulum et, tempor auctor, justo. In ac felis quis tortor malesuada pretium. Pellentesque auctor neque nec urna. Proin sapien ipsum, porta a, auctor quis, euismod ut, mi. Aenean viverra rhoncus pede. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Ut non enim eleifend felis pretium feugiat. Vivamus quis mi. Phasellus a est. Phasellus magna. In hac habitasse platea dictumst. Curabitur at lacus ac velit ornare lobortis. Curabitur a felis in nunc fringilla tristique. Morbi mattis ullamcorper velit. Phasellus gravida semper nisi. Nullam vel sem. Pellentesque libero tortor, tincidunt et, tincidunt eget, semper nec, quam. Sed hendrerit. Morbi ac felis. Nunc egestas, augue at pellentesque laoreet, felis eros vehicula leo, at malesuada velit leo quis pede. Donec interdum, metus et hendrerit aliquet, dolor diam sagittis ligula, eget egestas libero turpis vel mi. Nunc nulla. Fusce risus nisl, viverra et, tempor et, pretium in, sapien. Donec venenatis vulputate lorem. Morbi nec metus. Phasellus blandit leo ut odio. Maecenas ullamcorper, dui et placerat feugiat, eros pede varius nisi, condimentum viverra felis nunc et lorem. Sed magna purus, fermentum eu, tincidunt eu, varius ut, felis. In auctor lobortis lacus. Quisque libero metus, condimentum nec, tempor a, commodo mollis, magna. Vestibulum ullamcorper mauris at ligula. Fusce fermentum. Nullam cursus lacinia erat. Praesent blandit laoreet nibh. Fusce convallis metus id felis luctus adipiscing. Pellentesque egestas, neque sit amet convallis pulvinar, justo nulla eleifend augue, ac auctor orci leo non est. Quisque id mi. Ut tincidunt tincidunt erat. Etiam feugiat lorem non metus. Vestibulum dapibus nunc ac augue. Curabitur vestibulum aliquam leo. Praesent egestas neque eu enim. In hac habitasse platea dictumst. Fusce a quam. Etiam ut purus mattis mauris sodales aliquam. Curabitur nisi. Quisque malesuada placerat nisl. Nam ipsum risus, rutrum vitae, vestibulum eu, molestie vel, lacus. Sed augue ipsum, egestas nec, vestibulum et, malesuada adipiscing, dui. Vestibulum facilisis, purus nec pulvinar iaculis, ligula mi congue nunc, vitae euismod ligula urna in dolor. Mauris sollicitudin fermentum libero. Praesent nonummy mi in odio. Nunc interdum lacus sit amet orci. Vestibulum rutrum, mi nec elementum vehicula, eros quam gravida nisl, id fringilla neque ante vel mi. Morbi mollis tellus ac sapien. Phasellus volutpat, metus eget egestas mollis, lacus lacus blandit dui, id egestas quam mauris ut lacus. Fusce vel dui. Sed in libero ut nibh placerat accumsan. Proin faucibus arcu quis ante. In consectetuer turpis ut velit. Nulla sit amet est. Praesent metus tellus, elementum eu, semper a, adipiscing nec, purus. Cras risus ipsum, faucibus ut, ullamcorper id, varius ac, leo. Suspendisse feugiat. Suspendisse enim turpis, dictum sed, iaculis a, condimentum nec, nisi. Praesent nec nisl a purus blandit viverra. Praesent ac massa at ligula laoreet iaculis. Nulla neque dolor, sagittis eget, iaculis quis, molestie non, velit. Mauris turpis nunc, blandit et, volutpat molestie, porta ut, ligula. Fusce pharetra convallis urna. Quisque ut nisi. Donec mi odio, faucibus at, scelerisque quis, convallis in, nisi. Suspendisse non nisl sit amet velit hendrerit rutrum. Ut leo. Ut a nisl id ante tempus hendrerit. Proin pretium, leo ac pellentesque mollis, felis nunc ultrices eros, sed gravida augue augue mollis justo. Suspendisse eu ligula. Nulla facilisi. Donec id justo. Praesent porttitor, nulla vitae posuere iaculis, arcu nisl dignissim dolor, a pretium mi sem ut ipsum. Curabitur suscipit suscipit tellus. Praesent vestibulum dapibus nibh. Etiam iaculis nunc ac metus. Ut id nisl quis enim dignissim sagittis. Etiam sollicitudin, ipsum eu pulvinar rutrum, tellus ipsum laoreet sapien, quis venenatis ante odio sit amet eros. Proin magna. Duis vel nibh at velit scelerisque suscipit. Curabitur turpis. Vestibulum suscipit nulla quis orci. Fusce ac felis sit amet ligula pharetra condimentum. Maecenas egestas arcu quis ligula mattis placerat. Duis lobortis massa imperdiet quam. Suspendisse potenti. Pellentesque commodo eros a enim. Vestibulum turpis sem, aliquet eget, lobortis pellentesque, rutrum eu, nisl. Sed libero. Aliquam erat volutpat. Etiam vitae tortor. Morbi vestibulum volutpat enim. Aliquam eu nunc. Nunc sed turpis. Sed mollis, eros et ultrices tempus, mauris ipsum aliquam libero, non adipiscing dolor urna a orci. Nulla porta dolor. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos hymenaeos. Pellentesque dapibus hendrerit tortor. Praesent egestas tristique nibh. Sed a libero. Cras varius. Donec vitae orci sed dolor rutrum auctor. Fusce egestas elit eget lorem. Suspendisse nisl elit, rhoncus eget, elementum ac, condimentum eget, diam. Nam at tortor in tellus interdum sagittis. Aliquam lobortis. Donec orci lectus, aliquam ut, faucibus non, euismod id, nulla. Curabitur blandit mollis lacus. Nam adipiscing. Vestibulum eu odio. Vivamus laoreet. Nullam tincidunt adipiscing enim. Phasellus tempus. Proin viverra, ligula sit amet ultrices semper, ligula arcu tristique sapien, a accumsan nisi mauris ac eros. Fusce neque. Suspendisse faucibus, nunc et pellentesque egestas, lacus ante convallis tellus, vitae iaculis lacus elit id tortor. Vivamus aliquet elit ac nisl. Fusce fermentum odio nec arcu. Vivamus euismod mauris. In ut quam vitae odio lacinia tincidunt. Praesent ut ligula non mi varius sagittis. Cras sagittis. Praesent ac sem eget est egestas volutpat. Vivamus consectetuer hendrerit lacus. Cras non dolor. Vivamus in erat ut urna cursus vestibulum. Fusce commodo aliquam arcu. Nam commodo suscipit quam. Quisque id odio. Praesent venenatis metus at tortor pulvinar varius. Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Donec quam felis, ultricies nec, pellentesque eu, pretium quis, sem. Nulla consequat massa quis enim. Donec pede justo, fringilla vel, aliquet nec, vulputate eget, arcu. In enim justo, rhoncus ut, imperdiet a, venenatis vitae, justo. Nullam dictum felis eu pede mollis pretium. Integer tincidunt. Cras dapibus. Vivamus elementum semper nisi. Aenean vulputate eleifend tellus. Aenean leo ligula, porttitor eu, consequat vitae, eleifend ac, enim. Aliquam lorem ante, dapibus in, viverra quis, feugiat a, tellus. Phasellus viverra nulla ut metus varius laoreet. Quisque rutrum. Aenean imperdiet. Etiam ultricies nisi vel augue. Curabitur ullamcorper ultricies nisi. Nam eget dui. Etiam rhoncus. Maecenas tempus, tellus eget condimentum rhoncus, sem quam semper libero, sit amet adipiscing sem neque sed ipsum. Nam quam nunc, blandit vel, luctus pulvinar, hendrerit id, lorem. Maecenas nec odio et ante tincidunt tempus. Donec vitae sapien ut libero venenatis faucibus. Nullam quis ante. Etiam sit amet orci eget eros faucibus tincidunt. Duis leo. Sed fringilla mauris sit amet nibh. Donec sodales sagittis magna. Sed consequat, leo eget bibendum sodales, augue velit cursus nunc, quis gravida magna mi a libero. Fusce vulputate eleifend sapien. Vestibulum purus quam, scelerisque ut, mollis sed, nonummy id, metus. Nullam accumsan lorem in dui. Cras ultricies mi eu turpis hendrerit fringilla. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; In ac dui quis mi consectetuer lacinia. Nam pretium turpis et arcu. Duis arcu tortor, suscipit eget, imperdiet nec, imperdiet iaculis, ipsum. Sed aliquam ultrices mauris. Integer ante arcu, accumsan a, consectetuer eget, posuere ut, mauris. Praesent adipiscing. Phasellus ullamcorper ipsum rutrum nunc. Nunc nonummy metus. Vestibulum volutpat pretium libero. Cras id dui. Aenean ut eros et nisl sagittis vestibulum. Nullam nulla eros, ultricies sit amet, nonummy id, imperdiet feugiat, pede. Sed lectus. Donec mollis hendrerit risus. Phasellus nec sem in justo pellentesque facilisis. Etiam imperdiet imperdiet orci. Nunc nec neque. Phasellus leo dolor, tempus non, auctor et, hendrerit quis, nisi. Curabitur ligula sapien, tincidunt non, euismod vitae, posuere imperdiet, leo. Maecenas malesuada. Praesent congue erat at massa. Sed cursus turpis vitae tortor. Donec posuere vulputate arcu. Phasellus accumsan cursus velit. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Sed aliquam, nisi quis porttitor congue, elit erat euismod orci, ac placerat dolor lectus quis orci. Phasellus consectetuer vestibulum elit. Aenean tellus metus, bibendum sed, posuere ac, mattis non, nunc. Vestibulum fringilla pede sit amet augue. In turpis. Pellentesque posuere. Praesent turpis. Aenean posuere, tortor sed cursus.
\ No newline at end of file
diff --git a/Splitter-ng-test/.classpath b/Splitter-ng-test/.classpath
deleted file mode 100644 (file)
index 65cf4e2..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<classpath>
-       <classpathentry kind="src" path="src"/>
-       <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.7"/>
-       <classpathentry combineaccessrules="false" kind="src" path="/Splitter-ng"/>
-       <classpathentry kind="output" path="bin"/>
-</classpath>
diff --git a/Splitter-ng-test/.gitignore b/Splitter-ng-test/.gitignore
deleted file mode 100644 (file)
index 5e56e04..0000000
+++ /dev/null
@@ -1 +0,0 @@
-/bin
diff --git a/Splitter-ng-test/.project b/Splitter-ng-test/.project
deleted file mode 100644 (file)
index 490cf19..0000000
+++ /dev/null
@@ -1,17 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<projectDescription>
-       <name>Splitter-ng-test</name>
-       <comment></comment>
-       <projects>
-       </projects>
-       <buildSpec>
-               <buildCommand>
-                       <name>org.eclipse.jdt.core.javabuilder</name>
-                       <arguments>
-                       </arguments>
-               </buildCommand>
-       </buildSpec>
-       <natures>
-               <nature>org.eclipse.jdt.core.javanature</nature>
-       </natures>
-</projectDescription>
diff --git a/Splitter-ng-test/.settings/org.eclipse.jdt.core.prefs b/Splitter-ng-test/.settings/org.eclipse.jdt.core.prefs
deleted file mode 100644 (file)
index 7341ab1..0000000
+++ /dev/null
@@ -1,11 +0,0 @@
-eclipse.preferences.version=1
-org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
-org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.7
-org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
-org.eclipse.jdt.core.compiler.compliance=1.7
-org.eclipse.jdt.core.compiler.debug.lineNumber=generate
-org.eclipse.jdt.core.compiler.debug.localVariable=generate
-org.eclipse.jdt.core.compiler.debug.sourceFile=generate
-org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
-org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
-org.eclipse.jdt.core.compiler.source=1.7
diff --git a/Splitter-ng-test/build.xml b/Splitter-ng-test/build.xml
deleted file mode 100644 (file)
index 714c81f..0000000
+++ /dev/null
@@ -1,83 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" standalone="no"?>
-<project basedir="." default="build" name="Splitter-ng-test">
-       <property environment="env" />
-       <property name="Splitter-ng.location" value="../Splitter-ng" />
-       <property name="debuglevel" value="source,lines,vars" />
-       <property name="target" value="1.7" />
-       <property name="source" value="1.7" />
-       <path id="Splitter-ng.classpath">
-               <pathelement location="${Splitter-ng.location}/bin" />
-       </path>
-       <path id="Splitter-ng-test.classpath">
-               <pathelement location="bin" />
-               <pathelement location="lib" />
-               <path refid="Splitter-ng.classpath" />
-       </path>
-       <target name="init">
-               <mkdir dir="bin" />
-               <copy includeemptydirs="false" todir="bin">
-                       <fileset dir="src">
-                               <exclude name="**/*.uad" />
-                               <exclude name="**/*.ucd" />
-                               <exclude name="**/*.uld" />
-                               <exclude name="**/*.upd" />
-                               <exclude name="**/*.udd" />
-                               <exclude name="**/*.uod" />
-                               <exclude name="**/*.usd" />
-                               <exclude name="**/*.utd" />
-                               <exclude name="**/*.uud" />
-                               <exclude name="**/*.odd" />
-                               <exclude name="**/*.ead" />
-                               <exclude name="**/*.ecd" />
-                               <exclude name="**/*.eld" />
-                               <exclude name="**/*.epd" />
-                               <exclude name="**/*.edd" />
-                               <exclude name="**/*.eod" />
-                               <exclude name="**/*.esd" />
-                               <exclude name="**/*.etd" />
-                               <exclude name="**/*.eud" />
-                               <exclude name="**/*.urd" />
-                               <exclude name="**/*.uml" />
-                               <exclude name="**/*.ecore" />
-                               <exclude name="**/*.ucls" />
-                               <exclude name="**/*.useq" />
-                               <exclude name="**/*.java" />
-                       </fileset>
-               </copy>
-       </target>
-       <target name="clean">
-               <delete dir="bin" />
-       </target>
-       <target depends="clean" name="cleanall">
-               <ant antfile="build.xml" dir="${Splitter-ng.location}" inheritAll="false" target="clean" />
-       </target>
-       <target depends="build-subprojects,build-project" name="build" />
-       <target name="build-subprojects">
-               <ant antfile="build.xml" dir="${Splitter-ng.location}" inheritAll="false" target="build-project" />
-       </target>
-       <target depends="init" name="build-project">
-               <echo message="${ant.project.name}: ${ant.file}" />
-               <javac debug="true" debuglevel="${debuglevel}" destdir="bin" includeantruntime="false" source="${source}" target="${target}">
-                       <src path="src" />
-                       <classpath refid="Splitter-ng-test.classpath" />
-               </javac>
-       </target>
-       <target description="Build all projects which reference this project. Useful to propagate changes." name="build-refprojects" />
-       <target name="makejar" depends="build" description="Create a jar for the project">
-               <jar jarfile="bin/${ant.project.name}.jar">
-                       <fileset dir="bin" includes="**/*.class" />
-                       <manifest>
-                               <attribute name="Main-Class" value="SplitterTest" />
-                               <attribute name="Class-Path" value="lib/Splitter-ng.jar"/>
-                       </manifest>
-               </jar>
-       </target>
-       <target name="dist" depends="makejar" description="Create a distribution Directory wirth splitter-ng and all Plugins">
-               <mkdir dir="../dist" />
-               <copy file="bin/${ant.project.name}.jar" todir="../dist/" />
-               <copy file="starttest-x" todir="../dist/" />
-               <chmod file="../dist/starttest-x" perm="ugo+rx"/>
-               <copy file="starttest" todir="../dist/" />
-               <chmod file="../dist/starttest" perm="ugo+rx"/>
-       </target>
-</project>
diff --git a/Splitter-ng-test/src/SplitterTest.java b/Splitter-ng-test/src/SplitterTest.java
deleted file mode 100644 (file)
index 5836c14..0000000
+++ /dev/null
@@ -1,620 +0,0 @@
-import java.io.IOException;
-import java.nio.file.DirectoryStream;
-import java.nio.file.Files;
-import java.nio.file.Path;
-import java.nio.file.Paths;
-import java.util.Collection;
-import java.util.HashMap;
-import java.util.LinkedList;
-import java.util.List;
-import java.util.Map;
-import java.util.Map.Entry;
-import java.util.Scanner;
-import java.util.TreeMap;
-
-import splitterng.CodingTask;
-import splitterng.DecodingTask;
-import splitterng.EncodingTask;
-import splitterng.Splitter;
-import splitterng.SplitterCallback;
-import splitterng.plugin.CodecDescription;
-import splitterng.plugin.PluginDescription;
-
-public class SplitterTest implements SplitterCallback {
-
-       private Collection<Splitter> splitters = new LinkedList<Splitter>();
-       private List<CodingTask> finished_encoding_task = new LinkedList<CodingTask>();
-       private List<CodingTask> finished_decoding_task = new LinkedList<CodingTask>();
-       private List<CodingTask> running_tasks = new LinkedList<CodingTask>();
-
-       // in der Map werden die Metadaten-vorlage für jeden Codec gespeichert
-       private Map<Splitter, Map<String, Object>> splitter_metadata_map = new HashMap<Splitter, Map<String, Object>>();
-
-       public static void main(String[] args) throws InterruptedException {
-               SplitterTest splitterTest = new SplitterTest();
-               splitterTest.run();
-
-               // Thread.sleep(50000);
-               // System.exit(0);
-       }
-
-       public void run() {
-
-               System.out.println("Splitter Plugins");
-               // Optional: Anfrage, welche Plugins geladen sind
-               for (PluginDescription p : Splitter.getPluginDescriptions()) {
-                       System.out.println("---------------------------------------------\n" + p.getPluginID() + "\t"
-                                       + p.getPluginName());
-                       // Optional: Aus jeder Plugindescription die Verfügbaren Codecs
-                       // auslesen
-                       for (CodecDescription c : p.getCodecDescriptions()) {
-                               System.out.println("\t|---------------------------------------------\n\t|" + c.getCodecID() + "\t"
-                                               + c.getCodecDescriptionText());
-                               Map<String, Integer[]> codecParameterMinMax = c
-                                               .getCodecParameterMinMax();
-                               for (Entry<String, Integer[]> e : codecParameterMinMax
-                                               .entrySet()) {
-                                       System.out.println("\t|\t" + e.getKey() + "\tmin:"
-                                                       + e.getValue()[0] + "  max:" + e.getValue()[1] + " default: " + c.getCodecParameterDefaults().get(e.getKey()));
-                               }
-                               // Wenn hier eine Konfiguration für eine plugin-codec
-                               // Kombination vorhanden ist, wird der Splitter initialisiert.
-                               Map<String, Integer> codecParameter;
-                               Splitter splitter;
-                               switch (p.getPluginID() + "/" + c.getCodecID()) {
-///-----------------------------------------------------------------------------------------------
-///-----------------------------------------------------------------------------------------------
-///-----------------------------------------------------------------------------------------------
-///-----------------------------------------------------------------------------------------------
-                               case "jerasure/JerasureCauchyGood":
-                                       // Codecparameter Bauen
-                                       codecParameter = new TreeMap<String, Integer>();
-                                       codecParameter.put("k", 2);
-                                       codecParameter.put("m", 2);
-                                       //codecParameter.put("w", 8);
-                                       //codecParameter.put("packetsize", 8);
-                                       System.out.println("\t\tinitialisiere mit" + " k="
-                                                       + codecParameter.get("k") + " m="
-                                                       + codecParameter.get("m") + " w="
-                                                       + codecParameter.get("w") + " packetsize="
-                                                       + codecParameter.get("packetsize"));
-                                       // Splitter mit Plugin-ID CodecID und codecparametern
-                                       // initialisieren
-                                       Splitter splitterjerasure = new Splitter(p.getPluginID(), c.getCodecID(),
-                                                       codecParameter);
-                                       splitters.add(splitterjerasure);
-                                       
-                                       // Metadaten bauen vorlage
-                                       Map<String, Object> metadatajerasure = new TreeMap<String, Object>();
-                                       metadatajerasure.put("fragmentsize", (int) 64);
-                                       // Beleiebige weitere Metadaten
-                                       
-                                       splitter_metadata_map.put(splitterjerasure, metadatajerasure);
-                                       break;
-///-----------------------------------------------------------------------------------------------
-                               case "jerasure/JerasureReedSolomon":
-                                       // Codecparameter Bauen
-                                       Map<String, Integer> codecParameter1 = new TreeMap<String, Integer>();
-                                       codecParameter1.put("k", 3);
-                                       codecParameter1.put("m", 3);
-                                       //codecParameter1.put("w", 16);
-                                       //codecParameter1.put("packetsize", 64);
-                                       System.out.println("\t\tinitialisiere mit" + " k="
-                                                       + codecParameter1.get("k") + " m="
-                                                       + codecParameter1.get("m") + " w="
-                                                       + codecParameter1.get("w") + " packetsize="
-                                                       + codecParameter1.get("packetsize"));
-                                       // Splitter mit Plugin-ID CodecID und codecparametern
-                                       // initialisieren
-                                       Splitter splitterjerasure1 = new Splitter(p.getPluginID(), c.getCodecID(),
-                                                       codecParameter1);
-                                       splitters.add(splitterjerasure1);
-                                       
-                                       // Metadaten bauen vorlage
-                                       Map<String, Object> metadatajerasure1 = new TreeMap<String, Object>();
-                                       metadatajerasure1.put("fragmentsize", (int) 40960);
-                                       // Beleiebige weitere Metadaten
-                                       
-                                       splitter_metadata_map.put(splitterjerasure1, metadatajerasure1);
-                                       break;
-///-----------------------------------------------------------------------------------------------
-                               case "jerasure/JerasureLiber8tion":
-                                       // Codecparameter Bauen
-                                       Map<String, Integer> codecParameter2 = new TreeMap<String, Integer>();
-                                       codecParameter2.put("k", 3);
-                                       codecParameter2.put("m", 2);
-                                       codecParameter2.put("packetsize", 64);
-                                       System.out.println("\t\tinitialisiere mit"
-                                                       + " k=" + codecParameter2.get("k") 
-                                                       + " m=" + codecParameter2.get("m")
-                                                       + " packetsize=" + codecParameter2.get("packetsize"));
-                                       // Splitter mit Plugin-ID CodecID und codecparametern
-                                       // initialisieren
-                                       Splitter splitterjerasure2 = new Splitter(p.getPluginID(), c.getCodecID(),
-                                                       codecParameter2);
-                                       splitters.add(splitterjerasure2);
-                                       
-                                       // Metadaten bauen vorlage
-                                       Map<String, Object> metadatajerasure2 = new TreeMap<String, Object>();
-                                       metadatajerasure2.put("fragmentsize", (int) 40960);
-                                       // Beleiebige weitere Metadaten
-                                       
-                                       splitter_metadata_map.put(splitterjerasure2, metadatajerasure2);
-                                       break;
-///-----------------------------------------------------------------------------------------------
-                               case "Raid1Plugin/raid1codec":
-                                       // Codecparameter Bauen
-                                       Map<String, Integer> codecParameternoop = new TreeMap<String, Integer>();
-                                       codecParameternoop.put("k", 1);
-                                       codecParameternoop.put("m", 1);
-                                       System.out.println("\t\tinitialisiere mit"
-                                                       + " k=" + codecParameternoop.get("k")
-                                                       + " m=" + codecParameternoop.get("m")
-                                                       );
-                                       // Splitter mit Plugin-ID CodecID und codecparametern
-                                       // initialisieren
-                                       Splitter splitterraid1 = new Splitter(p.getPluginID(), c.getCodecID(),
-                                                       codecParameternoop);
-                                       splitters.add(splitterraid1);
-                                       
-                                       // Metadaten bauen vorlage
-                                       Map<String, Object> metadataraid1 = new TreeMap<String, Object>();
-                                       metadataraid1.put("fragmentsize", (int) 40960);
-                                       // Beleiebige weitere Metadaten
-                                       
-                                       splitter_metadata_map.put(splitterraid1, metadataraid1);
-                                       
-                                       break;
-///-----------------------------------------------------------------------------------------------
-                               case "jsharing/shamir":
-                                       // Codecparameter Bauen
-                                       Map<String, Integer> codecParameterjsharing = new TreeMap<String, Integer>();
-                                       codecParameterjsharing.put("k", 2);
-                                       codecParameterjsharing.put("m", 1);
-                                       System.out.println("\t\tinitialisiere mit k="
-                                                       + codecParameterjsharing.get("k") + " m="
-                                                       + codecParameterjsharing.get("m"));
-
-                                       Splitter splittershamir= new Splitter(p.getPluginID(), c.getCodecID(),
-                                                       codecParameterjsharing);
-                                       splitters.add(splittershamir);
-                                       
-                                       // Metadaten bauen vorlage
-                                       Map<String, Object> metadatashamir = new TreeMap<String, Object>();
-                                       metadatashamir.put("fragmentsize", (int)8);
-                                       // Beleiebige weitere Metadaten
-                                       
-                                       splitter_metadata_map.put(splittershamir, metadatashamir);
-                                       
-                                       break;
-///-----------------------------------------------------------------------------------------------
-                               case "jerasure-java/JerasureJavaCRS":
-                                       // Codecparameter Bauen
-                                       Map<String, Integer> codecParameter11 = new TreeMap<String, Integer>();
-                                       codecParameter11.put("k", 2);
-                                       codecParameter11.put("m", 2);
-                                       //codecParameter11.put("w", 8);
-                                       //codecParameter11.put("packetsize", 8);
-                                       System.out.println("\t\tinitialisiere mit"
-                                                       + " k=" + codecParameter11.get("k")
-                                                       + " m=" + codecParameter11.get("m") 
-                                                       + " w=" + codecParameter11.get("w")
-                                                       + " packetsize=" + codecParameter11.get("packetsize")
-                                                       );
-                                       // Splitter mit Plugin-ID CodecID und codecparametern
-                                       // initialisieren
-                                       Splitter splitterjerasure11 = new Splitter(p.getPluginID(), c.getCodecID(),
-                                                       codecParameter11);
-                                       splitters.add(splitterjerasure11);
-                                       
-                                       // Metadaten bauen vorlage
-                                       Map<String, Object> metadatajerasure11 = new TreeMap<String, Object>();
-                                       metadatajerasure11.put("fragmentsize", (int) 64);
-                                       // Beleiebige weitere Metadaten
-                                       
-                                       splitter_metadata_map.put(splitterjerasure11, metadatajerasure11);
-                                       break;
-///-----------------------------------------------------------------------------------------------
-                                       
-                               case "JigDFS/crs":
-                                       // Codecparameter Bauen
-                                       Map<String, Integer> codecParameter111 = new TreeMap<String, Integer>();
-                                       codecParameter111.put("k", 2);
-                                       codecParameter111.put("m", 1);
-                                       //codecParameter111.put("chunksize", 16);
-                                       System.out.println("\t\tinitialisiere mit" + " k="
-                                                       + codecParameter111.get("k") + " m="
-                                                       + codecParameter111.get("m")
-                                                       + " chunksize=" + codecParameter111.get("chunksize")
-                                                       );
-                                       // Splitter mit Plugin-ID CodecID und codecparametern
-                                       // initialisieren
-                                       Splitter splitterjerasure111 = new Splitter(p.getPluginID(), c.getCodecID(),
-                                                       codecParameter111);
-                                       splitters.add(splitterjerasure111);
-                                       
-                                       // Metadaten bauen vorlage
-                                       Map<String, Object> metadatajerasure111 = new TreeMap<String, Object>();
-                                       metadatajerasure111.put("fragmentsize", (int) 64);
-                                       metadatajerasure111.put("digest", "SHA-256");
-                                       //metadatajerasure111.put("digest", "MD5");
-                                       // Beleiebige weitere Metadaten
-                                       splitter_metadata_map.put(splitterjerasure111, metadatajerasure111);
-                                       break;
-///-----------------------------------------------------------------------------------------------
-                                       
-                               case "bitsplitter/bitsplitter":
-                                       // Codecparameter Bauen
-                                       Map<String, Integer> codecParameter1111 = new TreeMap<String, Integer>();
-                                       codecParameter1111.put("k", 4);
-                                       codecParameter1111.put("m", 0);
-                                       System.out.println("\t\tinitialisiere mit" + " k="
-                                                       + codecParameter1111.get("k") + " m="
-                                                       + codecParameter1111.get("m"));
-                                       // Splitter mit Plugin-ID CodecID und codecparametern
-                                       // initialisieren
-                                       Splitter splitter1111 = new Splitter(p.getPluginID(), c.getCodecID(),
-                                                       codecParameter1111);
-                                       splitters.add(splitter1111);
-                                       
-                                       // Metadaten bauen vorlage
-                                       Map<String, Object> metadata1111 = new TreeMap<String, Object>();
-                                       metadata1111.put("fragmentsize", (int) 409600);
-                                       metadata1111.put("digest", "SHA-1");
-                                       // Beleiebige weitere Metadaten
-                                       
-                                       splitter_metadata_map.put(splitter1111, metadata1111);
-                                       break;
-///-----------------------------------------------------------------------------------------------
-///-----------------------------------------------------------------------------------------------
-///-----------------------------------------------------------------------------------------------
-///-----------------------------------------------------------------------------------------------
-///-----------------------------------------------------------------------------------------------
-                               default:
-                                       try {
-                                               splitter = new Splitter(p.getPluginID(), c.getCodecID(),4,1);
-                                               System.out.println("\t\tDefault Splitter created for: "
-                                                               + p.getPluginID() + "/" + c.getCodecID());                                              
-                                       } catch (Exception e) {
-                                               System.out.println("\t\tNO Splitter created for: "
-                                                               + p.getPluginID() + "/" + c.getCodecID() + "\n" + e.getMessage());      
-                                       }
-
-                                       break;
-                               }
-                       }
-               }
-
-               System.out.println("\nListe der Dateien");
-               Path srcDir = Paths.get("srcDir");
-               List<Path> srcFileList = getFileList(srcDir);
-               for (Path entry : srcFileList) {
-                       System.out.println("- " + entry.toString());
-               }
-
-               // restoreDir anlegen bzw aufräumen
-               Path splitDir = Paths.get("splitDir");
-               checkDirectory(splitDir);
-               for (Path entry : getFileList(splitDir)) {
-                       try {
-                               Files.delete(entry);
-                       } catch (IOException e) {
-                               // TODO Auto-generated catch block
-                               e.printStackTrace();
-                       }
-               }
-
-               // restoreDir anlegen bzw aufräumen
-               Path restoreDir = Paths.get("restoreDir");
-               checkDirectory(restoreDir);
-               for (Path entry : getFileList(restoreDir)) {
-                       try {
-                               Files.delete(entry);
-                       } catch (IOException e) {
-                               e.printStackTrace();
-                       }
-               }
-               // Jede Datei ...
-               for (Path srcfile : srcFileList) {
-                       // ... mit jedem initialisierten Splitter bearbeiten
-                       for (Splitter splitter : splitters) {
-                               System.out.println("Encoding: "
-                                               + srcfile
-                                               + "  with "
-                                               + splitter.getCurrentPlugin().getPluginDescription()
-                                                               .getPluginID() + "/"
-                                               + splitter.getCurrentCodecDescription().getCodecID());
-                               try {
-
-                                       Map<String, Object> metadata = new TreeMap<String, Object>();
-                                       
-                                       for (Entry<String, Object> e: splitter_metadata_map.get(splitter).entrySet()){
-                                               metadata.put(e.getKey(), e.getValue());
-                                       }
-                                       
-                                       metadata.put("time_encoding_submitted",
-                                                       System.currentTimeMillis());
-                       
-
-                                       // Hier wird codiert. Der Encodingtask
-                                       EncodingTask task = new EncodingTask(srcfile, Paths
-                                                       .get("splitDir"), this, metadata);
-                                       splitter.encode(task);
-                                       running_tasks.add(task);
-                               } catch (InterruptedException | IOException e) {
-                                       e.printStackTrace();
-                               }
-
-                       }
-
-               }
-
-               System.out.println("-----");
-               System.out.println("Alle Aufträge an die Splitter übermittelt");
-
-               printUsage();
-
-               
-               // dateien zusammenbauen
-               @SuppressWarnings("resource")
-               Scanner in = new Scanner(System.in);
-               while (true) {
-                       System.out.print(">>>");
-                       if (!in.hasNext()) System.exit(0);
-                       switch (in.next()) {
-                       case "EOF":
-                       case "q":
-                       case "quit":
-                       case "exit":
-                                       System.exit(0);
-                       case "h":
-                       case "help":
-                               printUsage();
-                               break;
-                       case "ls":
-                               switch (in.next()){
-                               case "enc":
-                                       for (CodingTask t : finished_encoding_task) {
-                                               System.out.println(""
-                                                               + finished_encoding_task.lastIndexOf(t) + "\t"
-                                                               + t.getFilePath().getFileName());
-                                       }
-                                       break;
-                               case "dec":
-                                       for (CodingTask t : finished_decoding_task) {
-                                               System.out.println(""
-                                                               + finished_decoding_task.lastIndexOf(t) + "\t"
-                                                               + t.getFilePath().getFileName());
-                                       }
-                                       break;
-                                       
-                               case "frag":
-                                       try {
-                                               for (Entry<Integer, Path> e : finished_encoding_task
-                                                               .get(Integer.parseInt(in.next()))
-                                                               .getFragmentPaths().entrySet()) {
-                                                       System.out.format("\t %-5s %s %s\n", e.getKey(), e
-                                                                       .getValue().toString(), (Files.exists(e
-                                                                       .getValue()) ? "OK" : "Fehlt"));
-                                                       // System.out.println(++"\t"+e.getValue().toString());
-                                               }
-                                       } catch (Exception e) {
-                                               System.out.println("Index nicht gefunden");
-                                       }
-                                       break;
-                                       
-                               case "src":
-                                       System.out.println("noch nicht implementiert");
-                                       break;
-                                       
-                                       
-                               case "splitter":
-                                       System.out.println("noch nicht implementiert");
-                                       break;
-                               
-                               }
-                               break;
-
-                       case "meta":
-                               switch(in.next()){
-                               case "enc":
-                                       try {
-                                               for (Entry<String, Object> e : finished_encoding_task
-                                                               .get(Integer.parseInt(in.next())).getMetadata()
-                                                               .entrySet()) {
-                                                       System.out.format("\t %-25s %-25s %s\n", e.getKey(), e
-                                                                       .getValue().toString(), e.getValue().getClass()
-                                                                       .toString());
-                                                       // System.out.println(++"\t"+e.getValue().toString());
-                                               }
-                                       } catch (Exception e) {
-                                               System.out.println("Index nicht gefunden");
-                                       }
-                                       break;
-                               
-                               case "dec":
-                                       try {
-                                               for (Entry<String, Object> e : finished_decoding_task
-                                                               .get(Integer.parseInt(in.next())).getMetadata()
-                                                               .entrySet()) {
-                                                       System.out.format("\t %-25s %s\n", e.getKey(), e
-                                                                       .getValue().toString());
-                                                       // System.out.println(++"\t"+e.getValue().toString());
-                                               }
-                                       } catch (Exception e) {
-                                               System.out.println("Index nicht gefunden");
-                                       }
-                                       break;
-                               }
-                               break;
-
-                       case "rm":
-                               try {
-                                       int tasknr = Integer.parseInt(in.next());
-                                       int fragmentnr = Integer.parseInt(in.next());
-                                       Map<Integer, Path> fragmentPaths = finished_encoding_task
-                                                       .get(tasknr).getFragmentPaths();
-                                       Path path = fragmentPaths.get(fragmentnr);
-                                       try {
-                                               Files.delete(path);
-                                       } catch (Exception e) {
-                                               System.out.println("Konnte fragment nicht löschen "
-                                                               + e.getMessage());
-
-                                       }
-
-                               } catch (Exception e) {
-                                       System.out.println("Index nicht gefunden");
-                               }
-                               break;
-
-                       case "dec":
-                               try {
-                                       int tasknr = Integer.parseInt(in.next());
-                                       CodingTask enctask = (CodingTask) finished_encoding_task
-                                                       .get(tasknr);
-                                       Path restorefile = restoreDir.resolve(""
-                                                       + System.currentTimeMillis()
-                                                       + enctask.getFilePath().getFileName());
-
-                                       Map<Integer, Path> fragmentPaths = enctask
-                                                       .getFragmentPaths();
-                                       for (int i = 0; i < fragmentPaths.size(); i++) {
-                                               Path path = fragmentPaths.get(i);
-                                               if (path == null || !Files.exists(path)) {
-                                                       fragmentPaths.put(i, null);
-                                               }
-
-                                       }
-                                       DecodingTask dectask = new DecodingTask(fragmentPaths,
-                                                       restorefile, this, enctask.getMetadataAsDeepCopy());
-                                       for (Splitter spl : splitters) {
-                                               if (spl.getCurrentPlugin().getPluginDescription()
-                                                               .getPluginID() == (String) enctask
-                                                               .getMetadata("pluginid")
-                                                               && spl.getCurrentCodecDescription()
-                                                                               .getCodecID() == (String) enctask
-                                                                               .getMetadata("codecid")) {
-                                                       System.out.println("Auftrag angenommen..."
-                                                                       + restorefile);
-                                                       spl.decode(dectask);
-                                                       running_tasks.add(dectask);
-                                               }
-                                       }
-
-                               } catch (Exception e) {
-                                       e.printStackTrace();
-                                       System.out.println("Index nicht gefunden");
-                               }
-                               break;
-                       case "enc":
-                               System.out.println("noch nicht implementiert");
-                               break;
-                               
-                       
-                       default:
-                               printUsage();
-                       }
-
-               }
-
-       }
-
-       private static List<Path> getFileList(Path path) {
-               List<Path> files = new LinkedList<Path>();
-               checkDirectory(path);
-               try (DirectoryStream<Path> stream = Files.newDirectoryStream(path,
-                               new DirectoryStream.Filter<Path>() {
-                                       @Override
-                                       public boolean accept(Path entry) throws IOException {
-                                               return !Files.isDirectory(entry);
-                                       }
-                               });) {
-                       for (Path entry : stream) {
-                               files.add(entry);
-                       }
-               } catch (IOException e) {
-                       e.printStackTrace();
-               }
-               return files;
-       }
-
-       private static void checkDirectory(Path path) {
-               if (!Files.exists(path)) {
-                       try {
-                               Files.createDirectory(path);
-                       } catch (IOException e) {
-                               System.err.println("Verzeichnis kann nicht erstellt werden: "
-                                               + path.toUri());
-                               e.printStackTrace();
-                       }
-               }
-       }
-
-       // private static void initSplitter(Splitter splitter) {
-       //
-       // System.out.println("Liste der Codecs:");
-       // Collection<String> codecids = splitter.getCodecIDs();
-       // Iterator<String> it = codecids.iterator();
-       // while (it.hasNext()){
-       // System.out.println("- " + it.next().toString());
-       // }
-       // if (codecids.contains("jerasureparity")){
-       // SplitterConfiguration config = new SplitterConfiguration();
-       // config.setCodecID("jerasureparity");
-       // splitter.setSplitterConfiguration(config);
-       // }
-       // System.out.println();
-       // }
-
-       @Override
-       public void codingFailed(CodingTask task, String reason) {
-               synchronized (task) { // damit die Ausgabe nicht verwürfelt wird
-                       running_tasks.remove(task);
-                       System.err.println("Coding Failed: "
-                                       + task.getFilePath().toString() + "  Reason:" + reason);
-               }
-
-       }
-
-       @Override
-       public synchronized void codingSuccessfull(CodingTask task) {
-               synchronized (task) { // damit die Ausgabe nicht verwürfelt wird
-                       long duration = 0;
-                       running_tasks.remove(task);
-                       if (task instanceof EncodingTask) {
-                               finished_encoding_task.add(task);
-                               duration = (long) task.getMetadata("time_encode_end")
-                                               - (long) task.getMetadata("time_encode_start");
-                       } else if (task instanceof DecodingTask) {
-                               finished_decoding_task.add(task);
-                               duration = (long) task.getMetadata("time_decode_end")
-                                               - (long) task.getMetadata("time_decode_start");
-                       }
-
-                       System.err.println("CodingTask "
-                                       + finished_encoding_task.indexOf(task)
-                                       + " OK: " + task.getFilePath().toString()
-                                       + "  Codec: " + task.getMetadata("pluginid") + "/"
-                                       + task.getMetadata("codecid") + "  T(ms):" + duration);
-               }
-       }
-
-       public void printUsage() {
-               System.out.println("Bedienung:"
-                               //+ "\nls splitter\tlistet alle initialisierten Splitter auf"
-                               //+ "\nls src\t\tlistet alle Dateien in scrDir auf"
-                               + "\nls enc\t\tlistet alle fertig encodierten Tasks auf"
-                               + "\nls dec\t\tlistet alle fertig decodierten Tasks auf"
-                               + "\nls frag <nr>\tlistet die Fragmentdateien zu Encoding-Task <nr> auf"
-                               + "\nrm <nr> <frac_nr>\tlöscht aus Encoding-Task <nr> die Fragmentdatei <frac_nr>"
-                               + "\ndec <nr>\twiederherstellen der Originaldatei aus Encoding-Task <nr> in das Verzeichnis restoreDir"
-                               //+ "\nenc <scr_nr> <splitter_nr>\tencodieren von Datei <scr_nr> mit Splitter <split-ter_nr>"
-                               + "\nmeta enc <nr>\tgibt metadaten zu encodingtask <nr> aus"
-                               + "\nmeta dec <nr>\tgibt metadaten zu decodingtask <nr> aus"
-                               + "\nq, quit oder exit\tbeenden das Programm"
-                               //+" \nh oder help\tzeigt die Hilfe an"
-                               + "");
-       }
-
-}
diff --git a/Splitter-ng-test/srcDir/test-abcd b/Splitter-ng-test/srcDir/test-abcd
deleted file mode 100644 (file)
index e8b5353..0000000
+++ /dev/null
@@ -1 +0,0 @@
-aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaabbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccdddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd
\ No newline at end of file
diff --git a/Splitter-ng-test/srcDir/test-text b/Splitter-ng-test/srcDir/test-text
deleted file mode 100644 (file)
index f362fe0..0000000
+++ /dev/null
@@ -1 +0,0 @@
-Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Donec quam felis, ultricies nec, pellentesque eu, pretium quis, sem. Nulla consequat massa quis enim. Donec pede justo, fringilla vel, aliquet nec, vulputate eget, arcu. In enim justo, rhoncus ut, imperdiet a, venenatis vitae, justo. Nullam dictum felis eu pede mollis pretium. Integer tincidunt. Cras dapibus. Vivamus elementum semper nisi. Aenean vulputate eleifend tellus. Aenean leo ligula, porttitor eu, consequat vitae, eleifend ac, enim. Aliquam lorem ante, dapibus in, viverra quis, feugiat a, tellus. Phasellus viverra nulla ut metus varius laoreet. Quisque rutrum. Aenean imperdiet. Etiam ultricies nisi vel augue. Curabitur ullamcorper ultricies nisi. Nam eget dui. Etiam rhoncus. Maecenas tempus, tellus eget condimentum rhoncus, sem quam semper libero, sit amet adipiscing sem neque sed ipsum. Nam quam nunc, blandit vel, luctus pulvinar, hendrerit id, lorem. Maecenas nec odio et ante tincidunt tempus. Donec vitae sapien ut libero venenatis faucibus. Nullam quis ante. Etiam sit amet orci eget eros faucibus tincidunt. Duis leo. Sed fringilla mauris sit amet nibh. Donec sodales sagittis magna. Sed consequat, leo eget bibendum sodales, augue velit cursus nunc, quis gravida magna mi a libero. Fusce vulputate eleifend sapien. Vestibulum purus quam, scelerisque ut, mollis sed, nonummy id, metus. Nullam accumsan lorem in dui. Cras ultricies mi eu turpis hendrerit fringilla. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; In ac dui quis mi consectetuer lacinia. Nam pretium turpis et arcu. Duis arcu tortor, suscipit eget, imperdiet nec, imperdiet iaculis, ipsum. Sed aliquam ultrices mauris. Integer ante arcu, accumsan a, consectetuer eget, posuere ut, mauris. Praesent adipiscing. Phasellus ullamcorper ipsum rutrum nunc. Nunc nonummy metus. Vestibulum volutpat pretium libero. Cras id dui. Aenean ut eros et nisl sagittis vestibulum. Nullam nulla eros, ultricies sit amet, nonummy id, imperdiet feugiat, pede. Sed lectus. Donec mollis hendrerit risus. Phasellus nec sem in justo pellentesque facilisis. Etiam imperdiet imperdiet orci. Nunc nec neque. Phasellus leo dolor, tempus non, auctor et, hendrerit quis, nisi. Curabitur ligula sapien, tincidunt non, euismod vitae, posuere imperdiet, leo. Maecenas malesuada. Praesent congue erat at massa. Sed cursus turpis vitae tortor. Donec posuere vulputate arcu. Phasellus accumsan cursus velit. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Sed aliquam, nisi quis porttitor congue, elit erat euismod orci, ac placerat dolor lectus quis orci. Phasellus consectetuer vestibulum elit. Aenean tellus metus, bibendum sed, posuere ac, mattis non, nunc. Vestibulum fringilla pede sit amet augue. In turpis. Pellentesque posuere. Praesent turpis. Aenean posuere, tortor sed cursus feugiat, nunc augue blandit nunc, eu sollicitudin urna dolor sagittis lacus. Donec elit libero, sodales nec, volutpat a, suscipit non, turpis. Nullam sagittis. Suspendisse pulvinar, augue ac venenatis condimentum, sem libero volutpat nibh, nec pellentesque velit pede quis nunc. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Fusce id purus. Ut varius tincidunt libero. Phasellus dolor. Maecenas vestibulum mollis diam. Pellentesque ut neque. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. In dui magna, posuere eget, vestibulum et, tempor auctor, justo. In ac felis quis tortor malesuada pretium. Pellentesque auctor neque nec urna. Proin sapien ipsum, porta a, auctor quis, euismod ut, mi. Aenean viverra rhoncus pede. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Ut non enim eleifend felis pretium feugiat. Vivamus quis mi. Phasellus a est. Phasellus magna. In hac habitasse platea dictumst. Curabitur at lacus ac velit ornare lobortis. Curabitur a felis in nunc fringilla tristique. Morbi mattis ullamcorper velit. Phasellus gravida semper nisi. Nullam vel sem. Pellentesque libero tortor, tincidunt et, tincidunt eget, semper nec, quam. Sed hendrerit. Morbi ac felis. Nunc egestas, augue at pellentesque laoreet, felis eros vehicula leo, at malesuada velit leo quis pede. Donec interdum, metus et hendrerit aliquet, dolor diam sagittis ligula, eget egestas libero turpis vel mi. Nunc nulla. Fusce risus nisl, viverra et, tempor et, pretium in, sapien. Donec venenatis vulputate lorem. Morbi nec metus. Phasellus blandit leo ut odio. Maecenas ullamcorper, dui et placerat feugiat, eros pede varius nisi, condimentum viverra felis nunc et lorem. Sed magna purus, fermentum eu, tincidunt eu, varius ut, felis. In auctor lobortis lacus. Quisque libero metus, condimentum nec, tempor a, commodo mollis, magna. Vestibulum ullamcorper mauris at ligula. Fusce fermentum. Nullam cursus lacinia erat. Praesent blandit laoreet nibh. Fusce convallis metus id felis luctus adipiscing. Pellentesque egestas, neque sit amet convallis pulvinar, justo nulla eleifend augue, ac auctor orci leo non est. Quisque id mi. Ut tincidunt tincidunt erat. Etiam feugiat lorem non metus. Vestibulum dapibus nunc ac augue. Curabitur vestibulum aliquam leo. Praesent egestas neque eu enim. In hac habitasse platea dictumst. Fusce a quam. Etiam ut purus mattis mauris sodales aliquam. Curabitur nisi. Quisque malesuada placerat nisl. Nam ipsum risus, rutrum vitae, vestibulum eu, molestie vel, lacus. Sed augue ipsum, egestas nec, vestibulum et, malesuada adipiscing, dui. Vestibulum facilisis, purus nec pulvinar iaculis, ligula mi congue nunc, vitae euismod ligula urna in dolor. Mauris sollicitudin fermentum libero. Praesent nonummy mi in odio. Nunc interdum lacus sit amet orci. Vestibulum rutrum, mi nec elementum vehicula, eros quam gravida nisl, id fringilla neque ante vel mi. Morbi mollis tellus ac sapien. Phasellus volutpat, metus eget egestas mollis, lacus lacus blandit dui, id egestas quam mauris ut lacus. Fusce vel dui. Sed in libero ut nibh placerat accumsan. Proin faucibus arcu quis ante. In consectetuer turpis ut velit. Nulla sit amet est. Praesent metus tellus, elementum eu, semper a, adipiscing nec, purus. Cras risus ipsum, faucibus ut, ullamcorper id, varius ac, leo. Suspendisse feugiat. Suspendisse enim turpis, dictum sed, iaculis a, condimentum nec, nisi. Praesent nec nisl a purus blandit viverra. Praesent ac massa at ligula laoreet iaculis. Nulla neque dolor, sagittis eget, iaculis quis, molestie non, velit. Mauris turpis nunc, blandit et, volutpat molestie, porta ut, ligula. Fusce pharetra convallis urna. Quisque ut nisi. Donec mi odio, faucibus at, scelerisque quis, convallis in, nisi. Suspendisse non nisl sit amet velit hendrerit rutrum. Ut leo. Ut a nisl id ante tempus hendrerit. Proin pretium, leo ac pellentesque mollis, felis nunc ultrices eros, sed gravida augue augue mollis justo. Suspendisse eu ligula. Nulla facilisi. Donec id justo. Praesent porttitor, nulla vitae posuere iaculis, arcu nisl dignissim dolor, a pretium mi sem ut ipsum. Curabitur suscipit suscipit tellus. Praesent vestibulum dapibus nibh. Etiam iaculis nunc ac metus. Ut id nisl quis enim dignissim sagittis. Etiam sollicitudin, ipsum eu pulvinar rutrum, tellus ipsum laoreet sapien, quis venenatis ante odio sit amet eros. Proin magna. Duis vel nibh at velit scelerisque suscipit. Curabitur turpis. Vestibulum suscipit nulla quis orci. Fusce ac felis sit amet ligula pharetra condimentum. Maecenas egestas arcu quis ligula mattis placerat. Duis lobortis massa imperdiet quam. Suspendisse potenti. Pellentesque commodo eros a enim. Vestibulum turpis sem, aliquet eget, lobortis pellentesque, rutrum eu, nisl. Sed libero. Aliquam erat volutpat. Etiam vitae tortor. Morbi vestibulum volutpat enim. Aliquam eu nunc. Nunc sed turpis. Sed mollis, eros et ultrices tempus, mauris ipsum aliquam libero, non adipiscing dolor urna a orci. Nulla porta dolor. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos hymenaeos. Pellentesque dapibus hendrerit tortor. Praesent egestas tristique nibh. Sed a libero. Cras varius. Donec vitae orci sed dolor rutrum auctor. Fusce egestas elit eget lorem. Suspendisse nisl elit, rhoncus eget, elementum ac, condimentum eget, diam. Nam at tortor in tellus interdum sagittis. Aliquam lobortis. Donec orci lectus, aliquam ut, faucibus non, euismod id, nulla. Curabitur blandit mollis lacus. Nam adipiscing. Vestibulum eu odio. Vivamus laoreet. Nullam tincidunt adipiscing enim. Phasellus tempus. Proin viverra, ligula sit amet ultrices semper, ligula arcu tristique sapien, a accumsan nisi mauris ac eros. Fusce neque. Suspendisse faucibus, nunc et pellentesque egestas, lacus ante convallis tellus, vitae iaculis lacus elit id tortor. Vivamus aliquet elit ac nisl. Fusce fermentum odio nec arcu. Vivamus euismod mauris. In ut quam vitae odio lacinia tincidunt. Praesent ut ligula non mi varius sagittis. Cras sagittis. Praesent ac sem eget est egestas volutpat. Vivamus consectetuer hendrerit lacus. Cras non dolor. Vivamus in erat ut urna cursus vestibulum. Fusce commodo aliquam arcu. Nam commodo suscipit quam. Quisque id odio. Praesent venenatis metus at tortor pulvinar varius. Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Donec quam felis, ultricies nec, pellentesque eu, pretium quis, sem. Nulla consequat massa quis enim. Donec pede justo, fringilla vel, aliquet nec, vulputate eget, arcu. In enim justo, rhoncus ut, imperdiet a, venenatis vitae, justo. Nullam dictum felis eu pede mollis pretium. Integer tincidunt. Cras dapibus. Vivamus elementum semper nisi. Aenean vulputate eleifend tellus. Aenean leo ligula, porttitor eu, consequat vitae, eleifend ac, enim. Aliquam lorem ante, dapibus in, viverra quis, feugiat a, tellus. Phasellus viverra nulla ut metus varius laoreet. Quisque rutrum. Aenean imperdiet. Etiam ultricies nisi vel augue. Curabitur ullamcorper ultricies nisi. Nam eget dui. Etiam rhoncus. Maecenas tempus, tellus eget condimentum rhoncus, sem quam semper libero, sit amet adipiscing sem neque sed ipsum. Nam quam nunc, blandit vel, luctus pulvinar, hendrerit id, lorem. Maecenas nec odio et ante tincidunt tempus. Donec vitae sapien ut libero venenatis faucibus. Nullam quis ante. Etiam sit amet orci eget eros faucibus tincidunt. Duis leo. Sed fringilla mauris sit amet nibh. Donec sodales sagittis magna. Sed consequat, leo eget bibendum sodales, augue velit cursus nunc, quis gravida magna mi a libero. Fusce vulputate eleifend sapien. Vestibulum purus quam, scelerisque ut, mollis sed, nonummy id, metus. Nullam accumsan lorem in dui. Cras ultricies mi eu turpis hendrerit fringilla. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; In ac dui quis mi consectetuer lacinia. Nam pretium turpis et arcu. Duis arcu tortor, suscipit eget, imperdiet nec, imperdiet iaculis, ipsum. Sed aliquam ultrices mauris. Integer ante arcu, accumsan a, consectetuer eget, posuere ut, mauris. Praesent adipiscing. Phasellus ullamcorper ipsum rutrum nunc. Nunc nonummy metus. Vestibulum volutpat pretium libero. Cras id dui. Aenean ut eros et nisl sagittis vestibulum. Nullam nulla eros, ultricies sit amet, nonummy id, imperdiet feugiat, pede. Sed lectus. Donec mollis hendrerit risus. Phasellus nec sem in justo pellentesque facilisis. Etiam imperdiet imperdiet orci. Nunc nec neque. Phasellus leo dolor, tempus non, auctor et, hendrerit quis, nisi. Curabitur ligula sapien, tincidunt non, euismod vitae, posuere imperdiet, leo. Maecenas malesuada. Praesent congue erat at massa. Sed cursus turpis vitae tortor. Donec posuere vulputate arcu. Phasellus accumsan cursus velit. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Sed aliquam, nisi quis porttitor congue, elit erat euismod orci, ac placerat dolor lectus quis orci. Phasellus consectetuer vestibulum elit. Aenean tellus metus, bibendum sed, posuere ac, mattis non, nunc. Vestibulum fringilla pede sit amet augue. In turpis. Pellentesque posuere. Praesent turpis. Aenean posuere, tortor sed cursus.
\ No newline at end of file
diff --git a/Splitter-ng-test/starttest b/Splitter-ng-test/starttest
deleted file mode 100755 (executable)
index b267fea..0000000
+++ /dev/null
@@ -1,6 +0,0 @@
-#!/bin/bash
-#Nicht mehr nötig wenn jerasure im plugin-jar ist
-#PWD="`dirname \`readlink -f $0\``"
-#cd $PWD
-LD_LIBRARY_PATH="/tmp/:$PWD/plugin/" java -jar Splitter-ng-test.jar
-#java -jar Splitter-ng-test.jar
diff --git a/Splitter-ng-test/starttest-x b/Splitter-ng-test/starttest-x
deleted file mode 100755 (executable)
index 7c48493..0000000
+++ /dev/null
@@ -1,3 +0,0 @@
-#!/bin/bash
-
-x-terminal-emulator -e ./starttest