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