void ForwardedAsset::inspect_upstreams(bithorded::management::InfoList& target) const { for (auto iter = _upstream.begin(); iter != _upstream.end(); iter++) { ostringstream buf; buf << "upstream_" << iter->first; target.append(buf.str()) << bithorde::Status_Name(iter->second.status) << ", responseTime: " << iter->second.readResponseTime; } }
void bithorded::cache::CachedAsset::inspect(bithorded::management::InfoList& target) const { target.append("type") << "Cached"; }
void bithorded::cache::CachingAsset::inspect(bithorded::management::InfoList& target) const { target.append("type") << "caching"; if (_upstream) _upstream->inspect(target); }
void ForwardedAsset::inspect(bithorded::management::InfoList& target) const { target.append("type") << "forwarded"; inspect_upstreams(target); }