Home || Architecture || Video Search || Visual Search || Scripts || Applications || Important Messages || OGL || Src

int Impala::Application::mainJobServer ( int  argc,
char *  argv[] 
)

Definition at line 13 of file mainJobServer.cpp.

References Impala::CmdOptions::AddOption(), Impala::atol(), Impala::CmdOptions::GetArg(), Impala::CmdOptions::GetBool(), Impala::CmdOptions::GetInstance(), Impala::CmdOptions::GetNrArg(), Impala::CmdOptions::GetString(), ILOG_VAR, Impala::CmdOptions::Initialise(), and Impala::CmdOptions::ParseArgs().

Referenced by main().

00014 {
00015     CmdOptions& options = CmdOptions::GetInstance();
00016     options.Initialise(true, true, true);
00017     options.AddOption(0, "noIdle", "", "0");
00018     if (! options.ParseArgs(argc, argv, "port [nrPorts]", 1))
00019         return 1;
00020 
00021     ILOG_VAR(Impala.Application.mainJobServer);
00022 
00023     bool doIdle = ! options.GetBool("noIdle");
00024     String passwordFile = options.GetString("passwordFile");
00025 
00026     int port = atol(options.GetArg(0));
00027     int nrPorts = 2;
00028     if (options.GetNrArg() > 1)
00029         nrPorts = atol(options.GetArg(1));
00030 
00031     Job::Server jobServer(port, nrPorts, passwordFile);
00032     jobServer.Start(doIdle);
00033 
00034     // SK: currently the server will run until killed; 
00035     // gracefully stopping the server is yet to be implemented...
00036     //jobServer.Stop();
00037     return 0;
00038 }

Here is the call graph for this function:


Generated on Fri Mar 19 10:36:28 2010 for ImpalaSrc by  doxygen 1.5.1