summaryrefslogtreecommitdiff
path: root/qpid/cpp/src
diff options
context:
space:
mode:
authorAndrew Stitcher <astitcher@apache.org>2010-04-14 02:13:08 +0000
committerAndrew Stitcher <astitcher@apache.org>2010-04-14 02:13:08 +0000
commit88604cf22118085d8a1dc6cfcb17b74e1fb59044 (patch)
treed9e8e940a91e65630940b7a49b85e76e698d826d /qpid/cpp/src
parentea537ba1249b3ebd0e1d37dd187d558ad7757258 (diff)
downloadqpid-python-88604cf22118085d8a1dc6cfcb17b74e1fb59044.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@933842 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/src')
-rw-r--r--qpid/cpp/src/qpid/management/ManagementObject.cpp18
-rw-r--r--qpid/cpp/src/qpid/messaging/Message.cpp2
2 files changed, 19 insertions, 1 deletions
diff --git a/qpid/cpp/src/qpid/management/ManagementObject.cpp b/qpid/cpp/src/qpid/management/ManagementObject.cpp
index eb1b32bf7c..c0dd89b124 100644
--- a/qpid/cpp/src/qpid/management/ManagementObject.cpp
+++ b/qpid/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/qpid/cpp/src/qpid/messaging/Message.cpp b/qpid/cpp/src/qpid/messaging/Message.cpp
index 1a04abe15b..524af023e1 100644
--- a/qpid/cpp/src/qpid/messaging/Message.cpp
+++ b/qpid/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).");