Esempio n. 1
0
 public void submit(string inputFile, int splitNr, string outputPath, string className, string mappingClass)
 {
     try
     {
         clientService.setFilePath(inputFile);
         clientService.setOutputFolder(outputPath);
         byte[] code = File.ReadAllBytes(mappingClass);
         worker.setClient("tcp://localhost:10001/C");
         worker.setTotalSplits(splitNr);
         worker.setTotalLines(File.ReadLines(inputFile).Count());
         Console.WriteLine(worker.SendMapper(code, className));
     }
     catch (SocketException)
     {
         System.Console.WriteLine("Could not locate server");
     }
 }