NCBI C++ ToolKit
|
Search Toolkit Book for CRmtFileStatus
#include <gui/utils/rmtfilestatus.hpp>
Public Types | |
enum | ESuggestedAction { ESuggestedAction_Access , ESuggestedAction_Skip } |
Static Public Member Functions | |
static ESuggestedAction | Check (const string &sKey) |
static void | Set (const string &sKey, ESuggestedAction KnownAccessibility) |
Private Types | |
typedef size_t | TCounter |
typedef time_t | TTimeStamp |
in seconds More... | |
Static Private Member Functions | |
static CNetICacheClient * | x_Init () |
static bool | x_Read (CNetICacheClient *cache, const string &sNCKey, int version, const string &sSubKey, void *data, size_t data_size) |
static void | x_ResetSkipLimits (const string &sNCKey) |
static string | x_KeyToNCKey (const string &sKey) |
Static Private Attributes | |
static unique_ptr< CNetICacheClient > | m_pCacheClient |
static TCounter | m_MaxCount |
static TTimeStamp | m_MaxCheckInterval |
static bool | m_isStatusNotAvailable |
Definition at line 44 of file rmtfilestatus.hpp.
|
private |
Definition at line 58 of file rmtfilestatus.hpp.
|
private |
in seconds
Definition at line 60 of file rmtfilestatus.hpp.
Enumerator | |
---|---|
ESuggestedAction_Access | try to access the remote file |
ESuggestedAction_Skip | do not access the file |
Definition at line 46 of file rmtfilestatus.hpp.
|
static |
Definition at line 106 of file rmtfilestatus.cpp.
References ESuggestedAction_Access, ESuggestedAction_Skip, LOG_POST, m_MaxCheckInterval, m_MaxCount, NULL, Warning(), x_Init(), x_KeyToNCKey(), x_Read(), and x_ResetSkipLimits().
Referenced by s_GetBigBedFeats(), s_GetBigBedSummary(), s_GetData(), and CWigGraph::x_GetBigWigSummary().
|
static |
Definition at line 166 of file rmtfilestatus.cpp.
References ESuggestedAction_Access, ESuggestedAction_Skip, LOG_POST, Warning(), x_Init(), x_KeyToNCKey(), x_Read(), and x_ResetSkipLimits().
Referenced by s_GetBigBedFeats(), s_GetBigBedSummary(), s_GetData(), and CWigGraph::x_GetBigWigSummary().
|
staticprivate |
Definition at line 46 of file rmtfilestatus.cpp.
References CNcbiApplicationAPI::GetConfig(), IRegistry::GetInt(), IRegistry::GetString(), CNcbiApplication::Instance(), m_isStatusNotAvailable, m_MaxCheckInterval, m_MaxCount, m_pCacheClient, and NULL.
Referenced by Check(), Set(), and x_ResetSkipLimits().
Definition at line 187 of file rmtfilestatus.cpp.
References CChecksum::AddLine(), CChecksum::eMD5, CChecksumBase::GetResultHex(), and result.
|
staticprivate |
Definition at line 78 of file rmtfilestatus.cpp.
References data, and dtl::version.
|
staticprivate |
Definition at line 76 of file rmtfilestatus.hpp.
Referenced by x_Init().
|
staticprivate |
Definition at line 72 of file rmtfilestatus.hpp.
|
staticprivate |
Definition at line 69 of file rmtfilestatus.hpp.
|
staticprivate |
Definition at line 61 of file rmtfilestatus.hpp.
Referenced by x_Init().