![]() |
Rosetta
2021.16
|
ArchiveManager is responsible for communication with JobDistributor and organization of Batches and returning decoys he owns an Archive (AbstractArchiveBase) that will be handed the decoys and is asked to generate_batch() if the QUEUE_EMPTY . More...
#include <ArchiveManager.hh>

Public Member Functions | |
| ArchiveManager (core::Size archive_rank, core::Size jd_master_rank, core::Size file_buf_rank) | |
| ctor is protected; singleton pattern More... | |
| ~ArchiveManager () override | |
| void | go (ArchiveBaseOP) |
| core::Size | unfinished_batches () const |
| void | save_archive () override |
| bool | restore_archive () override |
Public Member Functions inherited from protocols::jd2::archive::BaseArchiveManager | |
| BaseArchiveManager () | |
| ctor is protected; singleton pattern More... | |
| virtual | ~BaseArchiveManager () |
| virtual Batch & | start_new_batch () |
| virtual void | finalize_batch (Batch &, bool reread=false) |
| virtual void | cancel_batches_previous_to (core::Size batch_id, bool allow_reading_of_decoys=true) |
| BatchList const & | batches () const |
| core::Size | last_batch_id () const |
Static Public Member Functions | |
| static void | register_options () |
Protected Member Functions | |
| virtual void | batch_underflow () |
| triggered in slave if new batch_ID comes in. More... | |
| void | idle () |
| void | jobs_completed () |
| void | queue_batch (Batch const &batch) override |
| void | cancel_batch (Batch &batch, bool allow_reading_of_decoys=true) override |
| void | read_existing_batches () |
| void | register_batch (Batch new_batch) |
| void | send_stop_to_jobdistributor () |
| void | unlock_file (Batch const &batch, bool final) override |
Protected Member Functions inherited from protocols::jd2::archive::BaseArchiveManager | |
| void | set_archive (AbstractArchiveBaseOP) |
| AbstractArchiveBase & | the_archive () |
| void | read_returning_decoys (Batch &batch, bool final) |
Private Types | |
| typedef BaseArchiveManager | Parent |
| typedef MPIArchiveJobDistributor::CompletionMessage | CompletionMessage |
| typedef std::map< core::Size, CompletionMessage > | CompletionMessages |
Private Attributes | |
| core::Size const | archive_rank_ |
| core::Size const | jd_master_rank_ |
| core::Size const | file_buf_rank_ |
| CompletionMessages | jobs_completed_ |
| core::Size | save_archive_time_interval_ |
| specify seconds between automatic saves to filesystem More... | |
Static Private Attributes | |
| static bool | options_registered_ |
Friends | |
| class | JobDistributorFactory |
Additional Inherited Members | |
Public Types inherited from protocols::jd2::archive::BaseArchiveManager | |
| typedef utility::vector1< Batch > | BatchList |
Protected Attributes inherited from protocols::jd2::archive::BaseArchiveManager | |
| utility::vector1< Batch > | batches_ |
Static Protected Attributes inherited from protocols::jd2::archive::BaseArchiveManager | |
| static bool | options_registered_ |
ArchiveManager is responsible for communication with JobDistributor and organization of Batches and returning decoys he owns an Archive (AbstractArchiveBase) that will be handed the decoys and is asked to generate_batch() if the QUEUE_EMPTY .
|
private |
|
private |
|
private |
| protocols::jd2::archive::ArchiveManager::ArchiveManager | ( | core::Size | archive_rank, |
| core::Size | jd_master_rank, | ||
| core::Size | file_buf_rank | ||
| ) |
ctor is protected; singleton pattern
constructor. Notice it calls the parent class! It also builds some internal variables for determining which processor it is in MPI land.
References options_registered_.
|
inlineoverride |
|
inlineprotectedvirtual |
triggered in slave if new batch_ID comes in.
|
overrideprotectedvirtual |
Reimplemented from protocols::jd2::archive::BaseArchiveManager.
References protocols::jd2::JobDistributor::add_batch(), protocols::jd2::BatchJobInputter::BOGUS_BATCH_ID, protocols::jd2::archive::CANCEL_BATCH, protocols::jd2::archive::Batch::flag_file(), protocols::jd2::JobDistributor::get_instance(), protocols::jd2::archive::Batch::id(), protocols::jd2::MPI_JOB_DIST_TAG(), protocols::jd2::archive::Batch::nstruct(), protocols::jd2::tr(), and protocols::jd2::archive::Batch::write_info_file().
| void protocols::jd2::archive::ArchiveManager::go | ( | ArchiveBaseOP | archive | ) |
References archive_rank_, protocols::jd2::archive::BaseArchiveManager::batches_, file_buf_rank_, protocols::jd2::archive::AbstractArchiveBase::generate_batch(), idle(), protocols::jd2::archive::AbstractArchiveBase::init_from_decoy_set(), jd_master_rank_, protocols::jd2::archive::JOB_COMPLETION, jobs_completed(), jobs_completed_, protocols::jd2::mem_tr, protocols::jd2::archive::MPI_ARCHIVE_TAG, protocols::jd2::archive::QUEUE_EMPTY, read_existing_batches(), core::io::silent::SilentFileData::read_file(), restore_archive(), save_archive(), protocols::jd2::archive::AbstractArchiveBase::save_status(), send_stop_to_jobdistributor(), protocols::jd2::archive::BaseArchiveManager::set_archive(), protocols::stepwise::modeler::rna::sleep(), protocols::loops::stop, protocols::jd2::archive::BaseArchiveManager::the_archive(), protocols::analysis::total, protocols::jd2::tr(), and unfinished_batches().
Referenced by protocols::jd2::archive::MPIArchiveJobDistributor::go().
|
protected |
|
protected |
References protocols::jd2::archive::Batch::allow_reading_cancelled_decoys(), protocols::jd2::archive::Batch::batch(), protocols::jd2::archive::BaseArchiveManager::batches_, protocols::jd2::archive::Batch::decoys_returned(), protocols::jd2::archive::Batch::id(), protocols::jd2::archive::Batch::is_cancelled(), protocols::jd2::archive::Batch::mark_as_finished(), protocols::jd2::archive::BaseArchiveManager::read_returning_decoys(), protocols::jd2::archive::BaseArchiveManager::save_archive(), protocols::jd2::archive::Batch::silent_out(), protocols::stepwise::modeler::rna::sleep(), protocols::jd2::tr(), and protocols::jd2::archive::Batch::write_info_file().
|
overrideprotectedvirtual |
Implements protocols::jd2::archive::BaseArchiveManager.
References protocols::jd2::archive::ADD_BATCH, protocols::jd2::JobDistributor::add_batch(), protocols::jd2::archive::Batch::flag_file(), protocols::jd2::JobDistributor::get_instance(), protocols::jd2::archive::Batch::id(), protocols::jd2::MPI_JOB_DIST_TAG(), protocols::jd2::archive::Batch::nstruct(), and protocols::jd2::tr().
|
protected |
References protocols::jd2::archive::Batch::batch(), protocols::jd2::archive::BaseArchiveManager::batches_, protocols::jd2::archive::BaseArchiveManager::finalize_batch(), protocols::jd2::archive::Batch::flag_file(), protocols::jd2::archive::Batch::id(), protocols::jd2::archive::BaseArchiveManager::start_new_batch(), and protocols::jd2::tr().
Referenced by go().
|
protected |
|
static |
References protocols::evaluation::options_registered_.
|
overridevirtual |
Implements protocols::jd2::archive::BaseArchiveManager.
References protocols::jd2::archive::AbstractArchiveBase::restore_from_file(), and protocols::jd2::archive::BaseArchiveManager::the_archive().
Referenced by go().
|
overridevirtual |
|
protected |
References protocols::jd2::archive::BaseArchiveManager::queue_batch(), protocols::jd2::archive::BaseArchiveManager::save_archive(), and protocols::jd2::tr().
Referenced by go().
| core::Size protocols::jd2::archive::ArchiveManager::unfinished_batches | ( | ) | const |
References protocols::jd2::archive::BaseArchiveManager::batches().
Referenced by go().
|
overrideprotectedvirtual |
Reimplemented from protocols::jd2::archive::BaseArchiveManager.
References protocols::jd2::MpiFileBuffer::release_file(), protocols::jd2::archive::Batch::silent_out(), and protocols::jd2::tr().
|
friend |
|
private |
Referenced by go().
|
private |
Referenced by go().
|
private |
Referenced by go().
|
private |
|
staticprivate |
Referenced by ArchiveManager().
|
private |
specify seconds between automatic saves to filesystem
Referenced by idle().
1.8.7