Ejemplo n.º 1
0
        // args <ENTRY-URL> <FILE> <OUTPUT> <S> <MAP> <DLL>
        static void Main(string[] args)
        {
            if (args == null || args.Length < 6)
            {
                Console.WriteLine("Error: Not Enough Args");
                Console.ReadLine();
                return;
            }

            string workerEntryUrl = args[0];
            string filePath       = args[1];
            string outputPath     = args[2];
            int    numberSplits   = Int32.Parse(args[3]);
            string mapClassName   = args[4];
            string dllPath        = args[5];

            UserApplication userApplication = new UserApplication(filePath, outputPath, numberSplits, mapClassName, dllPath);

            userApplication.init(workerEntryUrl);

            userApplication.submitJob();

            Console.WriteLine("UserApplication: Job Done");
            Console.ReadLine();
        }
Ejemplo n.º 2
0
 public Client(string WorkerEntryURL, string selfURL, UserApplication userApplication)
 {
     this.WorkerEntryURL  = WorkerEntryURL;
     this.selfURL         = selfURL;
     this.userApplication = userApplication;
 }