A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://www.ncbi.nlm.nih.gov/IEB/ToolBox/CPP_DOC/doxyhtml/netcache__api__admin_8cpp_source.html below:

NCBI C++ ToolKit: src/connect/services/netcache_api_admin.cpp Source File

57  string cmd

(

"SHUTDOWN"

);

60  m_Impl

->m_API->AppendClientIPSessionID(&

cmd

, req);

62  if

(shutdown_option ==

eDrain

)

66  m_Impl

->m_API->m_Service.ExecOnAllServers(

cmd

);

71  string cmd

(

"RECONF"

);

74  cmd

+=

" section=mirror"

;

89  m_Impl

->PrintCmdOutput(

"GETCONF"

, output_stream);

93  const string

& aggregation_period,

96  string cmd

(

"GETSTAT"

);

99  cmd

+=

" prev=1 type=\""

;

100  if

(!aggregation_period.empty())

103

}

else if

(!aggregation_period.empty()) {

104  cmd

+=

" prev=0 type=\""

;

109  m_Impl

->PrintCmdOutput(

cmd

, output_stream);

114  m_Impl

->PrintCmdOutput(

"HEALTH"

, output_stream);

119  m_Impl

->PrintCmdOutput(

"VERSION"

, output_stream,

false

);

void PrintCmdOutput(const string &cmd, CNcbiOstream &output_stream, ECmdOutputStyle output_style, CNetService::EIterationMode=CNetService::eSortByLoad)

@ eMultilineOutput_NetCacheStyle

void ExecOnAllServers(const string &cmd)

static CRequestContext & GetRequestContext(void)

Shortcut to CDiagContextThreadData::GetThreadData().GetRequestContext()

CNetRef< SNetCacheAdminImpl > m_Impl

EStatPeriodCompleteness

Enumeration for use with PrintStat().

void PrintStat(CNcbiOstream &output_stream, const string &aggregation_period=kEmptyStr, EStatPeriodCompleteness period_completeness=eReturnCurrentPeriod)

Print server statistics.

EShutdownOption

Shutdown options.

void PrintHealth(CNcbiOstream &output_stream)

void GetServerVersion(CNcbiOstream &output_stream)

void ReloadServerConfig(EReloadConfigOption reload_option=eCompleteReload)

Reload configuration parameters from the same source.

EReloadConfigOption

Reload configuration options.

void PrintConfig(CNcbiOstream &output_stream)

Print contents of the configuration file.

void ShutdownServer(EShutdownOption shutdown_option=eNormalShutdown)

Shutdown the server daemon.

void Purge(const string &cache_name)

Remove all blobs from an ICache database.

@ eDrain

Wait for all blobs to expire.

@ eMirrorReload

Parameters related to mirroring will only be reloaded.

#define END_NCBI_SCOPE

End previously defined NCBI scope.

#define BEGIN_NCBI_SCOPE

Define ncbi namespace.

IO_PREFIX::ostream CNcbiOstream

Portable alias for ostream.

static string PrintableString(const CTempString str, TPrintableMode mode=fNewLine_Quote|fNonAscii_Passthru)

Get a printable version of the specified string.

Administrative API for NetCache.

NetCache API exception declarations.

void AppendClientIPSessionIDHitID(string *cmd)

void ExecOnAllServers(string cmd)

void PrintCmdOutput(string cmd, CNcbiOstream &output_stream, bool multiline_output=true)


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4