Author: tedross
Date: 2010-05-25 10:05:53 -0400 (Tue, 25 May 2010)
New Revision: 3985
Modified:
mgmt/trunk/sesame/cpp/src/SysAgent.cpp
Log:
Went back to the original ManagementAgent::init call (using ConnectionSettings).
Modified: mgmt/trunk/sesame/cpp/src/SysAgent.cpp
===================================================================
--- mgmt/trunk/sesame/cpp/src/SysAgent.cpp 2010-05-24 10:51:45 UTC (rev 3984)
+++ mgmt/trunk/sesame/cpp/src/SysAgent.cpp 2010-05-25 14:05:53 UTC (rev 3985)
@@ -1,4 +1,3 @@
-
#include <qpid/management/Manageable.h>
#include <qpid/management/ManagementObject.h>
#include <qpid/agent/ManagementAgent.h>
@@ -361,8 +360,7 @@
if (interval < 1)
interval = 10;
- /*
- qpid::client::ConnectionSettings settings;
+ qpid::management::ConnectionSettings settings;
settings.protocol = options["proto"].value;
settings.host = options["host"].value;
settings.port = ::atoi(options["port"].value.c_str());
@@ -372,21 +370,9 @@
settings.service = options["service"].value;
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(options["host"].value,
- ::atoi(options["port"].value.c_str()),
- interval,
- false,
- options["state-dir"].value + "/agentdata",
- options["uid"].value,
- options["pwd"].value,
- options["mech"].value,
- options["proto"].value);
- /*
agent->init(settings, interval, false, options["state-dir"].value +
"/agentdata");
- */
::close(0);
::close(1);
Show replies by date