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

void Impala::Application::Util::DoPing (  ) 

Definition at line 1468 of file mainUtil.cpp.

References Impala::Util::Channel::Buffer(), Impala::Util::Database::GetDataChannel(), Impala::Util::Database::GetInstance(), ILOG_ERROR, ILOG_INFO, ILOG_VAR, Impala::Util::Channel::LastSendHadError(), Impala::Util::Channel::SendRequest(), and Impala::Util::Channel::Valid().

Referenced by mainUtil().

01469 {
01470 #ifndef REPOSITORY_TODO
01471     typedef Impala::Util::Channel Channel;
01472 
01473     ILOG_VAR(Impala.Application.Util.DoPing);
01474     Channel* channel = Impala::Util::Database::GetInstance().GetDataChannel();
01475     if (! (channel && channel->Valid()))
01476     {
01477         ILOG_ERROR("No server, use --dataServer to specify server");
01478         return;
01479     }
01480     char* buf = channel->Buffer();
01481     sprintf(buf, "ping\0");
01482     channel->SendRequest(strlen(buf)+1);
01483     if (channel->LastSendHadError())
01484     {
01485         ILOG_ERROR("Failed to send message");
01486         return;
01487     }
01488     ILOG_INFO("Server OK");
01489 #endif
01490 }

Here is the call graph for this function:


Generated on Fri Mar 19 10:52:14 2010 for ImpalaSrc by  doxygen 1.5.1