integrate new plugin into Splitter-NG-test and build.xml
[splitter-ng] / Splitter-ng-test / src / SplitterTest.java
index ab68b6d..e3848d6 100644 (file)
@@ -186,6 +186,32 @@ public class SplitterTest implements SplitterCallback {
                                        splitter_metadata_map.put(splittershamir, metadatashamir);
                                        
                                        break;
+                               case "jerasure-java/JerasureJavaCRS":
+                                       // Codecparameter Bauen
+                                       Map<String, Integer> codecParameter11 = new TreeMap<String, Integer>();
+                                       codecParameter11.put("k", 3);
+                                       codecParameter11.put("m", 3);
+                                       codecParameter11.put("w", 16);
+                                       codecParameter11.put("packetsize", 64);
+                                       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) 4096);
+                                       // Beleiebige weitere Metadaten
+                                       
+                                       splitter_metadata_map.put(splitterjerasure11, metadatajerasure11);
+                                       break;
+///-----------------------------------------------------------------------------------------------
 
 ///-----------------------------------------------------------------------------------------------
 ///-----------------------------------------------------------------------------------------------