#include <SubProcess.h>
Public Member Functions | |
void | add_postponed_trigger_update (MsgBuf &) |
int | alive () const |
bool | check_postponed_trigger_update (MsgBuf &, unsigned int) |
int | controlQueueOccupancy () |
int & | countdown () |
void | disconnect () |
int | forkNew () |
void | found_invalid () |
int | get_save_nba () const |
int | get_save_nbp () const |
bool | inInconsistentState () const |
unsigned int | nfound_invalid () const |
SubProcess & | operator= (const SubProcess &b) |
struct prg & | params () |
pid_t | pid () const |
int | post (MsgBuf &ptr, bool isMonitor) |
int | postSlave (MsgBuf &ptr, bool isMonitor) |
int | queueId () |
int | queueOccupancy () |
pid_t | queuePidOfLastReceive () |
pid_t | queuePidOfLastSend () |
int | queueStatus () |
unsigned long | rcv (MsgBuf &ptr, bool isMonitor) |
unsigned long | rcvNonBlocking (MsgBuf &ptr, bool isMonitor) |
unsigned long | rcvSlave (MsgBuf &ptr, bool isMonitor) |
unsigned long | rcvSlaveNonBlocking (MsgBuf &ptr, bool isMonitor) |
std::string const & | reasonForFailed () const |
unsigned int & | restartCount () |
void | setParams (struct prg *p) |
void | setReasonForFailed (std::string r) |
void | setReportedInconsistent () |
void | setStatus (int st) |
SubProcess () | |
SubProcess (int ind, pid_t pid) | |
SubProcess (const SubProcess &b) | |
virtual | ~SubProcess () |
Static Public Attributes | |
static const unsigned int | monitor_queue_offset_ = 200 |
Private Attributes | |
int | alive_ |
int | ind_ |
boost::shared_ptr< MasterQueue > | mqm_ |
boost::shared_ptr< MasterQueue > | mqs_ |
unsigned int | nfound_invalid_ |
pid_t | pid_ |
std::vector< MsgBuf > | postponed_trigger_updates_ |
struct prg | prg_ |
std::string | reasonForFailed_ |
bool | reported_inconsistent_ |
unsigned int | restart_count_ |
int | restart_countdown_ |
int | save_nba_ |
int | save_nbp_ |
unsigned int | save_ndqm_ |
unsigned int | save_scalers_ |
SlaveQueue * | sqm_ |
SlaveQueue * | sqs_ |
Definition at line 18 of file SubProcess.h.
|
inline |
Definition at line 20 of file SubProcess.h.
|
inline |
Definition at line 35 of file SubProcess.h.
|
inline |
Definition at line 55 of file SubProcess.h.
|
inlinevirtual |
Definition at line 72 of file SubProcess.h.
void evf::SubProcess::add_postponed_trigger_update | ( | MsgBuf & | b | ) |
Definition at line 99 of file SubProcess.cc.
References postponed_trigger_updates_.
|
inline |
bool evf::SubProcess::check_postponed_trigger_update | ( | MsgBuf & | b, |
unsigned int | ls | ||
) |
Definition at line 103 of file SubProcess.cc.
References i, evf::TriggerReportStatic::lumiSection, and postponed_trigger_updates_.
|
inline |
|
inline |
void evf::SubProcess::disconnect | ( | void | ) |
Definition at line 30 of file SubProcess.cc.
References mqm_, mqs_, save_nba_, save_nbp_, save_ndqm_, and save_scalers_.
Referenced by Vispa.Views.LineDecayView.LineDecayView::createLineDecayContainer(), Vispa.Views.PropertyView.BooleanProperty::setChecked(), Vispa.Views.PropertyView.BooleanProperty::setReadOnly(), Vispa.Views.PropertyView.DropDownProperty::setReadOnly(), Vispa.Views.PropertyView.TextEditWithButtonProperty::setReadOnly(), Vispa.Views.PropertyView.IntegerProperty::setValue(), Vispa.Plugins.EdmBrowser.EdmBrowserTabController.EdmBrowserTabController::updateViewMenu(), and Vispa.Plugins.ConfigEditor.ConfigEditorTabController.ConfigEditorTabController::updateViewMenu().
int evf::SubProcess::forkNew | ( | ) |
Definition at line 67 of file SubProcess.cc.
References a, alive_, gather_cfg::cout, ind_, monitor_queue_offset_, mqm_, mqs_, nfound_invalid_, pid_, postponed_trigger_updates_, reported_inconsistent_, sqm_, sqs_, and summarizeEdmComparisonLogfiles::success.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
SubProcess & evf::SubProcess::operator= | ( | const SubProcess & | b | ) |
Definition at line 13 of file SubProcess.cc.
References alive_, ind_, mqm_, mqs_, pid_, postponed_trigger_updates_, reported_inconsistent_, restart_countdown_, save_nba_, save_nbp_, save_ndqm_, and save_scalers_.
|
inline |
|
inline |
|
inline |
Definition at line 89 of file SubProcess.h.
|
inline |
Definition at line 110 of file SubProcess.h.
References evf::SlaveQueue::post(), sqm_, and sqs_.
Referenced by evf::FUEventProcessor::receiving(), evf::FUEventProcessor::receivingAndMonitor(), evf::FUEventProcessor::scalers(), and evf::FUEventProcessor::sendMessageOverMonitorQueue().
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 95 of file SubProcess.h.
|
inline |
Definition at line 101 of file SubProcess.h.
|
inline |
Definition at line 116 of file SubProcess.h.
References evf::SlaveQueue::rcv(), sqm_, and sqs_.
Referenced by evf::FUEventProcessor::receiving(), and evf::FUEventProcessor::receivingAndMonitor().
|
inline |
Definition at line 122 of file SubProcess.h.
References evf::SlaveQueue::rcvNonBlocking(), sqm_, and sqs_.
|
inline |
|
inline |
void evf::SubProcess::setParams | ( | struct prg * | p | ) |
Definition at line 54 of file SubProcess.cc.
References evf::prg::dqm, evf::prg::eols, evf::prg::ls, evf::prg::Ms, evf::prg::ms, evf::prg::nba, evf::prg::nbp, prg_, evf::prg::ps, save_nba_, save_nbp_, save_ndqm_, save_scalers_, and evf::prg::trp.
|
inline |
|
inline |
void evf::SubProcess::setStatus | ( | int | st | ) |
Definition at line 42 of file SubProcess.cc.
References alive_, evf::prg::dqm, evf::prg::nba, evf::prg::nbp, prg_, save_nba_, save_nbp_, save_ndqm_, save_scalers_, and evf::prg::trp.
|
private |
Definition at line 151 of file SubProcess.h.
Referenced by alive(), forkNew(), operator=(), and setStatus().
|
private |
Definition at line 149 of file SubProcess.h.
Referenced by forkNew(), and operator=().
|
static |
Definition at line 146 of file SubProcess.h.
Referenced by forkNew().
|
private |
Definition at line 152 of file SubProcess.h.
Referenced by disconnect(), forkNew(), operator=(), post(), queueId(), queueOccupancy(), queuePidOfLastReceive(), queuePidOfLastSend(), queueStatus(), rcv(), rcvNonBlocking(), and SubProcess().
|
private |
Definition at line 153 of file SubProcess.h.
Referenced by controlQueueOccupancy(), disconnect(), forkNew(), operator=(), post(), rcv(), rcvNonBlocking(), and SubProcess().
|
private |
Definition at line 166 of file SubProcess.h.
Referenced by forkNew(), found_invalid(), and nfound_invalid().
|
private |
Definition at line 150 of file SubProcess.h.
Referenced by forkNew(), operator=(), and pid().
|
private |
Definition at line 168 of file SubProcess.h.
Referenced by add_postponed_trigger_update(), check_postponed_trigger_update(), forkNew(), and operator=().
|
private |
Definition at line 157 of file SubProcess.h.
Referenced by params(), setParams(), and setStatus().
|
private |
Definition at line 156 of file SubProcess.h.
Referenced by reasonForFailed(), and setReasonForFailed().
|
private |
Definition at line 165 of file SubProcess.h.
Referenced by forkNew(), inInconsistentState(), operator=(), and setReportedInconsistent().
|
private |
Definition at line 159 of file SubProcess.h.
Referenced by restartCount().
|
private |
Definition at line 158 of file SubProcess.h.
Referenced by countdown(), and operator=().
|
private |
Definition at line 162 of file SubProcess.h.
Referenced by disconnect(), get_save_nba(), operator=(), setParams(), and setStatus().
|
private |
Definition at line 161 of file SubProcess.h.
Referenced by disconnect(), get_save_nbp(), operator=(), setParams(), and setStatus().
|
private |
Definition at line 163 of file SubProcess.h.
Referenced by disconnect(), operator=(), setParams(), and setStatus().
|
private |
Definition at line 164 of file SubProcess.h.
Referenced by disconnect(), operator=(), setParams(), and setStatus().
|
private |
Definition at line 154 of file SubProcess.h.
Referenced by forkNew(), postSlave(), rcvSlave(), and rcvSlaveNonBlocking().
|
private |
Definition at line 155 of file SubProcess.h.
Referenced by forkNew(), postSlave(), rcvSlave(), and rcvSlaveNonBlocking().