Author: tedross
Date: 2010-03-31 17:14:06 -0400 (Wed, 31 Mar 2010)
New Revision: 3889
Modified:
mgmt/trunk/sesame/cpp/src/SysAgent.cpp
Log:
Updated to use the new QMF agent features.
Modified: mgmt/trunk/sesame/cpp/src/SysAgent.cpp
===================================================================
--- mgmt/trunk/sesame/cpp/src/SysAgent.cpp 2010-03-31 21:13:51 UTC (rev 3888)
+++ mgmt/trunk/sesame/cpp/src/SysAgent.cpp 2010-03-31 21:14:06 UTC (rev 3889)
@@ -7,6 +7,7 @@
#include "qpid/log/SinkOptions.h"
#include "qpid/sys/SystemInfo.h"
#include "qpid/framing/Uuid.h"
+#include "qpid/types/Uuid.h"
#include "qmf/com/redhat/sesame/Package.h"
#include "qmf/com/redhat/sesame/Sysimage.h"
@@ -80,7 +81,7 @@
}
}
- mgmtObject = new _qmf::Sysimage(agent, this, uuid);
+ mgmtObject = new _qmf::Sysimage(agent, this, qpid::types::Uuid(uuid.c_array()));
setSystemId();
ifstream distro("/etc/redhat-release");
if (distro.good()) {
@@ -371,6 +372,7 @@
settings.minSsf = ::atoi(options["min-ssf"].value.c_str());
settings.maxSsf = ::atoi(options["max-ssf"].value.c_str());
+ agent->setName("redhat.com", "sesame");
agent->init(settings, interval, false, options["state-dir"].value +
"/agentdata");
::close(0);
Show replies by date