diff options
| author | Andrew Stitcher <astitcher@apache.org> | 2010-04-14 02:13:08 +0000 |
|---|---|---|
| committer | Andrew Stitcher <astitcher@apache.org> | 2010-04-14 02:13:08 +0000 |
| commit | 2fe82baa3cd7361c20892e3c208eb5904d54bd9d (patch) | |
| tree | d6cb554db09028893e850fe0d90d97b0b768d244 /cpp/src | |
| parent | 18a2f54ec0b5790e35b4fd9e245610a51573d909 (diff) | |
| download | qpid-python-2fe82baa3cd7361c20892e3c208eb5904d54bd9d.tar.gz | |
Remove final vestiges of old client API references from messaging and agent header files
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@933842 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src')
| -rw-r--r-- | cpp/src/qpid/management/ManagementObject.cpp | 18 | ||||
| -rw-r--r-- | cpp/src/qpid/messaging/Message.cpp | 2 |
2 files changed, 19 insertions, 1 deletions
diff --git a/cpp/src/qpid/management/ManagementObject.cpp b/cpp/src/qpid/management/ManagementObject.cpp index eb1b32bf7c..c0dd89b124 100644 --- a/cpp/src/qpid/management/ManagementObject.cpp +++ b/cpp/src/qpid/management/ManagementObject.cpp @@ -23,6 +23,7 @@ #include "qpid/management/ManagementObject.h" #include "qpid/framing/FieldTable.h" #include "qpid/framing/Buffer.h" +#include "qpid/sys/Time.h" #include "qpid/sys/Thread.h" #include "qpid/log/Statement.h" #include <boost/lexical_cast.hpp> @@ -241,6 +242,23 @@ std::ostream& operator<<(std::ostream& out, const ObjectId& i) }} +ManagementObject::ManagementObject(Manageable* _core) : +createTime(qpid::sys::Duration(sys::EPOCH, sys::now())), + destroyTime(0), updateTime(createTime), configChanged(true), + instChanged(true), deleted(false), + coreObject(_core), forcePublish(false) {} + +void ManagementObject::setUpdateTime() +{ + updateTime = sys::Duration(sys::EPOCH, sys::now()); +} + +void ManagementObject::resourceDestroy() +{ + destroyTime = sys::Duration(sys::EPOCH, sys::now()); + deleted = true; +} + int ManagementObject::maxThreads = 1; int ManagementObject::nextThreadIndex = 0; diff --git a/cpp/src/qpid/messaging/Message.cpp b/cpp/src/qpid/messaging/Message.cpp index 1a04abe15b..524af023e1 100644 --- a/cpp/src/qpid/messaging/Message.cpp +++ b/cpp/src/qpid/messaging/Message.cpp @@ -83,7 +83,7 @@ size_t Message::getContentSize() const return impl->getBytes().size(); } -EncodingException::EncodingException(const std::string& msg) : qpid::Exception(msg) {} +EncodingException::EncodingException(const std::string& msg) : qpid::types::Exception(msg) {} const std::string BAD_ENCODING("Unsupported encoding: %1% (only %2% is supported at present)."); |
