Definition at line 68 of file mainDataTransfer.cpp. References Impala::CmdOptions::GetArg(), Impala::CmdOptions::GetInstance(), ILOG_VAR, Impala::CmdOptions::Initialise(), Impala::CmdOptions::ParseArgs(), TransferLocalToServer(), and TransferServerToLocal(). Referenced by main(). 00069 { 00070 CmdOptions& options = CmdOptions::GetInstance(); 00071 options.Initialise(false, false, true); 00072 std::string usageStr = "cmd file1 file2\n\n"; 00073 usageStr += " cmd = upload|download\n"; 00074 if (! options.ParseArgs(argc, argv, usageStr, 3)) 00075 return 1; 00076 00077 ILOG_VAR(Impala.Application.DataTransfer.mainDataTransfer); 00078 00079 std::string cmd = options.GetArg(0); 00080 if (cmd == std::string("upload")) 00081 { 00082 TransferLocalToServer(options.GetArg(1), options.GetArg(2)); 00083 } 00084 else if (cmd == std::string("download")) 00085 { 00086 TransferServerToLocal(options.GetArg(1), options.GetArg(2)); 00087 } 00088 00089 return 0; 00090 }
Here is the call graph for this function:
|