void CHUNK::print_status(int level) { printf("%schunk %s\n", indent(level), name); set<VDA_CHUNK_HOST*>::iterator i; for (i=hosts.begin(); i!=hosts.end(); i++) { VDA_CHUNK_HOST* ch = *i; ch->print_status(level+1); } }
bool CHUNK::download_in_progress() { set<VDA_CHUNK_HOST*>::iterator i; for (i=hosts.begin(); i!=hosts.end(); i++) { VDA_CHUNK_HOST* ch = *i; if (ch->download_in_progress()) return true; } return false; }
void CHUNK::print_status(int level) { printf("%schunk %s\n", indent(level), name); level++; printf( "%spresent on server: %s\n", indent(level), present_on_server?"yes":"no" ); set<VDA_CHUNK_HOST*>::iterator i; for (i=hosts.begin(); i!=hosts.end(); i++) { VDA_CHUNK_HOST* ch = *i; ch->print_status(level); } }