summaryrefslogtreecommitdiff
path: root/qpid/cpp/src/qpid/broker/NullMessageStore.cpp
Commit message (Collapse)AuthorAgeFilesLines
* QPID-7207: remove cpp and python subdirs from svn trunk, they have migrated ↵Robert Gemmell2016-07-051-163/+0
| | | | | | to their own git repositories git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1751566 13f79535-47bb-0310-9956-ffa450edef68
* NO-JIRA: Removed obsolete/unused store codeAndrew Stitcher2014-06-121-2/+0
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1602303 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4514: Remove obsolete cluster code: MessageStoreAlan Conway2012-12-191-2/+0
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1424134 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3201: locking in NullMessageStore to protect set of prepared xidsGordon Sim2011-04-121-0/+4
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1091443 13f79535-47bb-0310-9956-ffa450edef68
* Code cleanup in broker directory.Alan Conway2010-10-141-3/+3
| | | | | | | | - Removed un-necessary #includes for broker/Queue.h - Removed "using std::string" in header files. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1022679 13f79535-47bb-0310-9956-ffa450edef68
* Remove misleading "no message store" message.Alan Conway2010-08-121-3/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@984958 13f79535-47bb-0310-9956-ffa450edef68
* Revert "Added getStoreDir() to MessageStore"Alan Conway2009-11-201-1/+0
| | | | | | | | | | | This reverts revision 882218 which broke the Windows. It also assumes that a MessageStore has an associated directory, which is not the case for all stores. We need a portable way to associate extra state with a store. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@882623 13f79535-47bb-0310-9956-ffa450edef68
* Added getStoreDir() to MessageStoreAlan Conway2009-11-191-0/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@882218 13f79535-47bb-0310-9956-ffa450edef68
* Rename of MessageStore::discardInit() to MessageStore::truncateInint(), ↵Kim van der Riet2009-08-051-1/+1
| | | | | | resulting from a cleanup of the code logic in the store. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@801239 13f79535-47bb-0310-9956-ffa450edef68
* Add directory to #includeAlan Conway2009-07-141-3/+3
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@793909 13f79535-47bb-0310-9956-ffa450edef68
* Reapplied r793119Gordon Sim2009-07-141-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@793819 13f79535-47bb-0310-9956-ffa450edef68
* Reverted checkins 793119, 793120, 793121, 793122 because of problems with ↵Kim van der Riet2009-07-131-1/+1
| | | | | | heartbeats and the store tests. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@793602 13f79535-47bb-0310-9956-ffa450edef68
* Typos/Whitespace fixesAndrew Stitcher2009-07-101-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@793119 13f79535-47bb-0310-9956-ffa450edef68
* Fixed cluster store problem where second and subsequent cluster nodes (which ↵Kim van der Riet2009-05-081-11/+10
| | | | | | are persistent) to join a cluster fail with a "Exchange already exists: amq.direct (MessageStoreImpl.cpp:488)" message. To do this a new method was added to MessageStore called discardInit() which will throw away all restored data (if any) and restart as though no restore had taken place. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@773004 13f79535-47bb-0310-9956-ffa450edef68
* Ensure that if no store is loaded we don't flow to disk, but revert to ↵Gordon Sim2009-01-071-3/+13
| | | | | | rejecting messages. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@732482 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1497: Ensure policy count and size reflect transactionality of dequeuesGordon Sim2008-12-011-1/+3
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@722200 13f79535-47bb-0310-9956-ffa450edef68
* * QPID-1488: test that policy pointer is setGordon Sim2008-11-271-0/+10
| | | | | | | | | * don't flow to disk for null store implementation * add checks for undeflow in queue policy git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@721166 13f79535-47bb-0310-9956-ffa450edef68
* Reduce logging noise from NullMessageStore: log "persistence disabled" once ↵Alan Conway2008-11-241-36/+12
| | | | | | at start up, not on every action. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@720243 13f79535-47bb-0310-9956-ffa450edef68
* Adjust namespace references to work with MSVCStephen D. Huston2008-10-301-5/+3
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@709281 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1198 (Partial): replace all uses of u_intX_t with uintX_tAndrew Stitcher2008-07-291-1/+1
| | | | | | | | | Patches from Manuel Teira. The u_int* versions are not available in the Sun header files. In any case using only uint* is more consistent git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@680828 13f79535-47bb-0310-9956-ffa450edef68
* Const-correctness fixes in MessageStore.hAlan Conway2008-06-231-5/+11
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@670718 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1050: Patch from Ted Ross:Gordon Sim2008-05-121-1/+14
| | | | | | | | | | | | | | | | | 1) Durability for federation links (broker-to-broker connections) 2) Improved handling of federation links: a) Links can be created even if the remote broker is not reachable b) If links are lost, re-establishment will occur using an exponential back-off algorithm 3) Durability of exchanges is now viewable through management 4) ManagementAgent API has been moved to an interface class to reduce coupling between the broker and manageable plug-ins. 5) General configuration storage capability has been added to the store/recover interface. This is used for federation links. 6) Management object-ids for durable objects are now themselves durable. (Note: some refactoring needed around ProtocolAccess needed to try and reduce dependencies) git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@655563 13f79535-47bb-0310-9956-ffa450edef68
* Patch from Ted Ross: QPID-907: Management Improvements for C++ Broker and StoreKim van der Riet2008-04-081-2/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@646045 13f79535-47bb-0310-9956-ffa450edef68
* - Refactored RefCounted class to avoid virtual inheritanceAndrew Stitcher2008-03-241-0/+2
| | | | | | | | | | - Removed extraneous includes and definitions from RefCounted.h - Fixed all the places that were relying on RefCounted.h to be including the intrusive_ptr header file and were assuming that something had imported intrusive_ptr into the qpid namespace git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@640479 13f79535-47bb-0310-9956-ffa450edef68
* Some fixes for 'flow to disk' (i.e. dropping message content from memory, ↵Gordon Sim2007-12-141-1/+1
| | | | | | and loading it from disk for delivery) git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@604215 13f79535-47bb-0310-9956-ffa450edef68
* Added options to broker for journal file size. Also brought back exception ↵Kim van der Riet2007-12-041-1/+1
| | | | | | copying in MessageStoreModue to prevent exceptions thrown in the store lib causing cores when handled in qpidd.cpp. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@601099 13f79535-47bb-0310-9956-ffa450edef68
* Switched all regular PersistentMessage* and PersistentMessage& to ↵Kim van der Riet2007-11-261-8/+8
| | | | | | intrusive_ptr<PersistentMessage>, so as to hook into the refcount for a message while it is in the store. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@598440 13f79535-47bb-0310-9956-ffa450edef68
* - enable the ability to lazy load from async storeCarl C. Trieloff2007-11-081-1/+1
| | | | | | | | | | - the ci has a raw ptr for Queue in QueuedMessage, if any has any concerns, ping me and I will convert it to an auto_ptr Carl. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@593251 13f79535-47bb-0310-9956-ffa450edef68
* Make standard exchanges durableGordon Sim2007-11-081-12/+9
| | | | | | | | Ensure flags are set correctly for recovered messages with no content git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@593159 13f79535-47bb-0310-9956-ffa450edef68
* - support for store to abort init / forceCarl C. Trieloff2007-11-031-1/+1
| | | | | | | | - there is an issue exiting via exception not related to this fix, but uncovered by this fix - JIRA 671 git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@591526 13f79535-47bb-0310-9956-ffa450edef68
* Fix to allocation algorithm in queue: prevents infinite loop when first ↵Gordon Sim2007-10-191-4/+1
| | | | | | | | | | consumer for allocation is cancelled after starting to dispatch a particular method. Removed alarming(!) log statement. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@586519 13f79535-47bb-0310-9956-ffa450edef68
* - added init for dir and async options for storeCarl C. Trieloff2007-10-191-0/+10
| | | | | | | | - added flush for queue for async processing git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@586207 13f79535-47bb-0310-9956-ffa450edef68
* mark Message::sendContent() as constGordon Sim2007-10-021-2/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@581209 13f79535-47bb-0310-9956-ffa450edef68
* updates to be able to manage lifecycle of async storeCarl C. Trieloff2007-09-081-2/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@573762 13f79535-47bb-0310-9956-ffa450edef68
* async IO for broker storeCarl C. Trieloff2007-08-151-2/+9
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@566289 13f79535-47bb-0310-9956-ffa450edef68
* NullMessageStore log levels changed from warning to info.Alan Conway2007-08-081-10/+10
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@563880 13f79535-47bb-0310-9956-ffa450edef68
* Minor update of log messages.Gordon Sim2007-06-151-2/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@547726 13f79535-47bb-0310-9956-ffa450edef68
* Some tests and fixes for dtx preview.Gordon Sim2007-06-051-7/+30
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@544522 13f79535-47bb-0310-9956-ffa450edef68
* Logging infrastructure: See qpidd --long-help for details.Alan Conway2007-05-301-15/+15
| | | | | | | | | | | | | | | | | * src/qpid/log/*: Logging infrastructure, QPID_LOG macro. * src/*: changed output to cout/cerr to logging. * src/qpidd.cpp: logging options. * src/tests/Makefile.am: fixed issues with valgrind * src/tests/kill|start_broker: use broker daemon options. * src/tests/run_test: run tests in valgrind. Disabled till leaks in client_test are fixed. * src/test/unit/logging.cpp: Logging unit test using boost test framework. Eventually we should move all unit tests to boost & drop CppUnit. * src/test/unit/test_tools.h: useful extensions to boost framework: Regular expression check, ostream << for vectors. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@542855 13f79535-47bb-0310-9956-ffa450edef68
* Changes to support durable exchanges.Gordon Sim2007-05-171-2/+7
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@538872 13f79535-47bb-0310-9956-ffa450edef68
* Moved src/ source code to src/qpid directory:Alan Conway2007-04-131-0/+110
| | | | | | | | | | | - allows rhm package to build consistently against checked-out or installed qpid. - consistent correspondence between source paths and C++ namespaces. - consistent use of #include <qpid/foo> in source and by users. - allows header files to split over multiple directories, e.g. separating generated code, separating public API from private files. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@528668 13f79535-47bb-0310-9956-ffa450edef68
* 2006-12-01 Jim Meyering <meyering@redhat.com>Alan Conway2006-12-011-99/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This delta imposes two major changes on the C++ hierarchy: - adds autoconf, automake, libtool support - makes the hierarchy flatter and renames a few files (e.g., Queue.h, Queue.cpp) that appeared twice, once under client/ and again under broker/. In the process, I've changed many #include directives, mostly to remove a qpid/ or qpid/framing/ prefix from the file name argument. Although most changes were to .cpp and .h files under qpid/cpp/, there were also several to template files under qpid/gentools, and even one to CppGenerator.java. Nearly all files are moved to a new position in the hierarchy. The new hierarchy looks like this: src # this is the new home of qpidd.cpp tests # all tests are here. See Makefile.am. gen # As before, all generated files go here. lib # This is just a container for the 3 lib dirs: lib/client lib/broker lib/common lib/common/framing lib/common/sys lib/common/sys/posix lib/common/sys/apr build-aux m4 git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@481159 13f79535-47bb-0310-9956-ffa450edef68
* Some further tweaks to MessageStore interface.Gordon Sim2006-11-301-3/+3
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@480946 13f79535-47bb-0310-9956-ffa450edef68
* Modifications to allow loading of message data in chunks, refragmentation of ↵Gordon Sim2006-11-281-0/+21
| | | | | | messages, plus some related refactoring and tests. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@480087 13f79535-47bb-0310-9956-ffa450edef68
* Initial sketching out of staging functionality for large messages (i.e. ↵Gordon Sim2006-11-241-17/+37
| | | | | | allowing content to be stored as it arrives, rather than collecting it in memory until complete). git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@478923 13f79535-47bb-0310-9956-ffa450edef68
* Modifications to recovery process to allow for recovery of default bindings.Gordon Sim2006-11-201-2/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@477148 13f79535-47bb-0310-9956-ffa450edef68
* update Apache licenses to the current versionStephen Vinoski2006-11-101-13/+16
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@473568 13f79535-47bb-0310-9956-ffa450edef68
* Added POSIX equivalents to APR classes used by clients, inlined trivial calls.Alan Conway2006-11-091-3/+3
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@473087 13f79535-47bb-0310-9956-ffa450edef68
* Modified TransactionalStore to return the txn ctxt as an auto_ptr to make ↵Gordon Sim2006-11-071-2/+2
| | | | | | ownership more obvious. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@472166 13f79535-47bb-0310-9956-ffa450edef68
* Made passing of transaction context in message store explicit (to avoid ↵Gordon Sim2006-11-071-0/+55
thread local storage in case this doesn't fit with new io design). git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@472067 13f79535-47bb-0310-9956-ffa450edef68