#include <DiscardManager.h>
Public Types | |
typedef std::map< HLTSenderKey, boost::shared_ptr< FUProxy > > | FUProxyMap |
typedef boost::shared_ptr < FUProxy > | FUProxyPtr |
typedef std::pair< std::string, unsigned int > | HLTSenderKey |
Public Member Functions | |
void | configure () |
DiscardManager (xdaq::ApplicationContext *, xdaq::ApplicationDescriptor *, DataSenderMonitorCollection &) | |
bool | sendDiscardMessage (I2OChain const &) |
Private Member Functions | |
FUProxyPtr | getProxyFromCache (std::string const &hltClassName, unsigned int const &hltInstance) |
FUProxyPtr | makeNewFUProxy (std::string const &hltClassName, unsigned int const &hltInstance) |
Private Attributes | |
xdaq::ApplicationContext * | appContext_ |
xdaq::ApplicationDescriptor * | appDescriptor_ |
DataSenderMonitorCollection & | dataSenderMonCollection_ |
toolbox::mem::Pool * | msgPool_ |
FUProxyMap | proxyCache_ |
Handles the discard messages sent to the upstream Resource Brokers.
Definition at line 33 of file DiscardManager.h.
typedef std::map< HLTSenderKey, boost::shared_ptr<FUProxy> > stor::DiscardManager::FUProxyMap |
Definition at line 39 of file DiscardManager.h.
typedef boost::shared_ptr<FUProxy> stor::DiscardManager::FUProxyPtr |
Definition at line 38 of file DiscardManager.h.
typedef std::pair<std::string, unsigned int> stor::DiscardManager::HLTSenderKey |
Definition at line 37 of file DiscardManager.h.
stor::DiscardManager::DiscardManager | ( | xdaq::ApplicationContext * | ctx, |
xdaq::ApplicationDescriptor * | desc, | ||
DataSenderMonitorCollection & | dsmc | ||
) |
Creates a DiscardManager that will send discard messages to upstream Resource Brokers on behalf of the application specified in the application descriptor. The DiscardManager will use the specified application context to send the messages.
Definition at line 20 of file DiscardManager.cc.
References a.
void stor::DiscardManager::configure | ( | ) |
Configures the discard manager.
Definition at line 37 of file DiscardManager.cc.
References proxyCache_.
|
private |
Definition at line 85 of file DiscardManager.cc.
References pos.
Referenced by sendDiscardMessage().
|
private |
Definition at line 110 of file DiscardManager.cc.
bool stor::DiscardManager::sendDiscardMessage | ( | I2OChain const & | i2oMessage | ) |
Sends a message to the appropriate resource broker telling it that the SM has received and processed the specified I2O message. At that point, we expect that the resource broker will free up the buffer that contained the original event (or INIT message or DQMEvent or whatever) and do whatever other cleanup it may need to do.
There are two failure modes to this method. In the first, the I2OChain could be so badly corrupt that the target resource broker can not be determined. In that case, this method simply returns false. (Since we expect that these messages will be sent to a special error stream, we will rely on their presence in that stream to indicate that something went very wrong.) In the second failure mode, the I2OChain was parsable, but the lookup of the RB in the XDAQ network failed. In that case, this method throws an exception. (This should never happen, so we will treat it as an exceptional condition.)
a | stor::exception::RBLookupFailed exception if the appropriate resource broker can not be determined. |
Definition at line 42 of file DiscardManager.cc.
References dataSenderMonCollection_, Header::DQM_EVENT, getProxyFromCache(), stor::I2OChain::hltClassName(), stor::I2OChain::hltInstance(), stor::DataSenderMonitorCollection::incrementDataDiscardCount(), stor::DataSenderMonitorCollection::incrementDQMDiscardCount(), stor::DataSenderMonitorCollection::incrementSkippedDiscardCount(), Header::INVALID, stor::I2OChain::messageCode(), lumiQueryAPI::msg, and stor::I2OChain::rbBufferId().
|
private |
Definition at line 99 of file DiscardManager.h.
|
private |
Definition at line 100 of file DiscardManager.h.
|
private |
Definition at line 105 of file DiscardManager.h.
Referenced by sendDiscardMessage().
|
private |
Definition at line 101 of file DiscardManager.h.
|
private |
Definition at line 103 of file DiscardManager.h.
Referenced by configure().