1 /*------------------------------------------------------------------------------
2 Name: org::xmlBlaster::util::qos::storage::HistoryQueueProperty.h
3 Project: xmlBlaster.org
4 Copyright: xmlBlaster.org, see xmlBlaster-LICENSE file
5 ------------------------------------------------------------------------------*/
6
7 /**
8 * Helper class holding history queue properties.
9 * <p />
10 * See org::xmlBlaster::util::qos::ConnectQos for XML sysntax.
11 * @see org.xmlBlaster.client.qos.ConnectQos
12 */
13
14 #ifndef _UTIL_HISTORYQUEUEPROPERTY_H
15 #define _UTIL_HISTORYQUEUEPROPERTY_H
16
17 #include <util/xmlBlasterDef.h>
18 #include <util/qos/storage/QueuePropertyBase.h>
19
20 namespace org { namespace xmlBlaster { namespace util { namespace qos { namespace storage {
21
22 class Dll_Export HistoryQueueProperty : public QueuePropertyBase
23 {
24 public:
25
26 /**
27 * @param nodeId If not "", the command line properties will look for prop[nodeId] as well,
28 * e.g. -queue/history/maxEntries and -queue/history/maxEntries[heron] will be searched
29 */
30 HistoryQueueProperty(org::xmlBlaster::util::Global& global, const std::string& nodeId);
31
32 HistoryQueueProperty(const QueuePropertyBase& prop);
33
34 HistoryQueueProperty& operator =(const QueuePropertyBase& prop);
35
36 /**
37 * Show some important settings for logging
38 */
39 std::string getSettings();
40
41 bool onOverflowDeadMessage();
42 };
43
44 }}}}} // namespace
45
46 #endif
syntax highlighted by Code2HTML, v. 0.9.1