|
Rosetta 3.5
|
#include <DatabaseQueryWorkUnitManager.hh>


Public Member Functions | |
| DatabaseQueryWorkUnitManager (core::Size master_rank, utility::sql_database::sessionOP db_session, std::string query_string, std::string wu_type) | |
| virtual | ~DatabaseQueryWorkUnitManager () |
| virtual void | go () |
Public Member Functions inherited from protocols::wum::MPI_WorkUnitManager | |
| MPI_WorkUnitManager (char machine_letter) | |
| virtual | ~MPI_WorkUnitManager () |
Public Member Functions inherited from protocols::wum::WorkUnitManager | |
| WorkUnitManager () | |
| virtual | ~WorkUnitManager () |
| void | register_work_units (const protocols::wum::WorkUnitList &work_unit_list) |
| WorkUnitQueue & | outbound () |
| WorkUnitQueue & | inbound () |
| const WorkUnitQueue & | outbound () const |
| const WorkUnitQueue & | inbound () const |
Protected Member Functions | |
| virtual void | init () |
| virtual void | process_inbound_wus () |
| Process the inbound WUs (these will be the same DB work units send during the constructor - but now they have the data we want). More... | |
| virtual void | process_outbound_wus () |
| create the database WUs and add them to the outgoing queue More... | |
| void | create_work_units_from_query (std::string wu_type) |
| core::Size | master_rank () |
| core::Size | my_emperor () |
Protected Member Functions inherited from protocols::wum::MPI_WorkUnitManager | |
| virtual void | print_stats () |
| Print a line with general run statistics, now. More... | |
| virtual void | print_stats_auto () |
| Print a line with general run statistics, only if enough time has pased since the last statistics printout. More... | |
| void | reset_timing_stats () |
| Reset all the stats counters. More... | |
| void | process_incoming_msgs (bool wait_until_message=false) |
| MPI Communication function. More... | |
| void | send_MPI_workunit (const WorkUnitBaseOP &wu, int dest_rank) const |
| Send a workunit to an arbitrary recipient. More... | |
| void | receive_MPI_workunit (core::Size node_rank=MPI_ANY_SOURCE) |
| Receive a workunit and add it to the inbound queue. By default accept any workunit or accept a specific source rank. Note that this function is blocking and will onyl return once a workunit has been received. More... | |
| void | send_next_WU_on_request () |
| char | get_machine_letter () |
| How many masters are there in total ? More... | |
| core::Real | start_timer (MPI_TIMING timing_mode) const |
| This initiates a new timer block. Note that there is no end_timer() function - you just keep calling start_timer, which automatically ends the previous block (and records times etc) More... | |
| void | print_timing_stats () |
| Display the timing statistics. More... | |
| long | wall_time () const |
| Return the total life time of this class in seconds. More... | |
Protected Member Functions inherited from protocols::wum::WorkUnitManager | |
| const protocols::wum::WorkUnitList & | work_unit_list () const |
| protocols::wum::WorkUnitList & | work_unit_list () |
| void | write_queues_to_file (const std::string &prefix="default") const |
| void | write_work_unit (const WorkUnitBaseOP &wu, std::ostream &out) const |
| void | write_queue (const WorkUnitQueue &the_queue, std::ostream &out) const |
| void | read_queues_from_file (const std::string &prefix="default") |
| bool | read_work_unit (WorkUnitBaseOP &qualified_wu, std::istream &in) |
| void | read_queue (WorkUnitQueue &the_queue, std::istream &in) |
| core::Size | mem_foot_print () const |
| return total memory foot print in bytes More... | |
Private Attributes | |
| const core::Size | my_emperor_ |
| const core::Size | master_rank_ |
| utility::sql_database::sessionOP | db_session_ |
| std::string | query_string_ |
Additional Inherited Members | |
Public Types inherited from protocols::wum::WorkUnitManager | |
| typedef WorkUnitQueue::iterator | iterator |
| typedef WorkUnitQueue::const_iterator | const_iterator |
Protected Types inherited from protocols::wum::MPI_WorkUnitManager | |
| enum | MPI_TIMING { TIMING_WAIT =0, TIMING_TRANSFER_SEND, TIMING_TRANSFER_RECV, TIMING_CPU, TIMING_IO_WRITE, TIMING_IO_READ, TIMING_IDLE, TIMING_end } |
Definition at line 45 of file DatabaseQueryWorkUnitManager.hh.
| protocols::wum::DatabaseQueryWorkUnitManager< T >::DatabaseQueryWorkUnitManager | ( | core::Size | master_rank, |
| utility::sql_database::sessionOP | db_session, | ||
| std::string | query_string, | ||
| std::string | wu_type | ||
| ) |
Definition at line 86 of file DatabaseQueryWorkUnitManager.hh.
References protocols::wum::DatabaseQueryWorkUnitManager< T >::create_work_units_from_query().
|
inlinevirtual |
Definition at line 52 of file DatabaseQueryWorkUnitManager.hh.
|
protected |
Definition at line 98 of file DatabaseQueryWorkUnitManager.hh.
References core::pack::interaction_graph::T(), and protocols::wum::TR().
Referenced by protocols::wum::DatabaseQueryWorkUnitManager< T >::DatabaseQueryWorkUnitManager().
|
virtual |
Implements protocols::wum::MPI_WorkUnitManager.
Definition at line 141 of file DatabaseQueryWorkUnitManager.hh.
References core::init(), protocols::wum::mpi_rank(), and protocols::wum::TR().
|
inlineprotectedvirtual |
Implements protocols::wum::MPI_WorkUnitManager.
Definition at line 58 of file DatabaseQueryWorkUnitManager.hh.
|
inlineprotected |
Definition at line 70 of file DatabaseQueryWorkUnitManager.hh.
References protocols::wum::DatabaseQueryWorkUnitManager< T >::master_rank_.
|
inlineprotected |
Definition at line 72 of file DatabaseQueryWorkUnitManager.hh.
References protocols::wum::DatabaseQueryWorkUnitManager< T >::my_emperor_.
|
protectedvirtual |
Process the inbound WUs (these will be the same DB work units send during the constructor - but now they have the data we want).
Implements protocols::wum::MPI_WorkUnitManager.
Definition at line 171 of file DatabaseQueryWorkUnitManager.hh.
References protocols::wum::DatabaseEntryWorkUnit::result_query_string(), core::io::serialization::size(), and protocols::wum::TR().
|
protectedvirtual |
create the database WUs and add them to the outgoing queue
Implements protocols::wum::MPI_WorkUnitManager.
Definition at line 208 of file DatabaseQueryWorkUnitManager.hh.
|
private |
Definition at line 81 of file DatabaseQueryWorkUnitManager.hh.
|
private |
Definition at line 78 of file DatabaseQueryWorkUnitManager.hh.
Referenced by protocols::wum::DatabaseQueryWorkUnitManager< T >::master_rank().
|
private |
Definition at line 77 of file DatabaseQueryWorkUnitManager.hh.
Referenced by protocols::wum::DatabaseQueryWorkUnitManager< T >::my_emperor().
|
private |
Definition at line 82 of file DatabaseQueryWorkUnitManager.hh.
1.8.4