4 #ifndef EventFilter_StorageManager_RegistrationInfoBase_h
5 #define EventFilter_StorageManager_RegistrationInfoBase_h
9 #include <boost/shared_ptr.hpp>
21 class EventDistributor;
49 const std::string& remoteHost,
51 const bool useEventServingParams
141 typedef boost::shared_ptr<RegistrationInfoBase>
RegPtr;
179 #endif // EventFilter_StorageManager_RegistrationInfoBase_h
TimePoint_t getCurrentTime()
virtual void do_registerMe(EventDistributor *)=0
const QueueID & queueId() const
boost::shared_ptr< RegistrationInfoBase > RegPtr
const std::string & consumerName() const
const utils::Duration_t & minEventRequestInterval() const
utils::Duration_t minEventRequestInterval_
virtual void do_appendToPSet(edm::ParameterSet &) const =0
virtual bool operator!=(const RegistrationInfoBase &) const
edm::ParameterSet getPSet() const
virtual void do_eventType(std::ostream &) const =0
const std::string & sourceURL() const
void queueInfo(std::ostream &) const
void setSourceURL(const std::string &url)
virtual bool operator==(const RegistrationInfoBase &) const
utils::TimePoint_t lastConsumerContact_
const int & maxConnectTries() const
boost::posix_time::time_duration Duration_t
RegistrationInfoBase(const std::string &consumerName, const std::string &remoteHost, const int &queueSize, const enquing_policy::PolicyTag &queuePolicy, const utils::Duration_t &secondsToStale)
std::string consumerName_
void setMinEventRequestInterval(const utils::Duration_t &interval)
std::ostream & operator<<(std::ostream &os, ConsumerID id)
const int & queueSize() const
void eventType(std::ostream &) const
const int & retryInterval() const
boost::posix_time::ptime TimePoint_t
void registerMe(EventDistributor *dist)
virtual ~RegistrationInfoBase()
void setConsumerId(const ConsumerID &id)
bool isStale(const utils::TimePoint_t &) const
const std::string remoteHost_
const int & connectTrySleepTime() const
const std::string & remoteHost() const
const enquing_policy::PolicyTag & queuePolicy() const
enquing_policy::PolicyTag queuePolicy_
const utils::Duration_t & secondsToStale() const
utils::Duration_t secondsToStale_
double durationToSeconds(Duration_t const &)
virtual bool operator<(const RegistrationInfoBase &) const
void setQueueId(const QueueID &id)
double lastContactSecondsAgo(const utils::TimePoint_t &) const
const ConsumerID & consumerId() const