[rhmessaging-commits] rhmessaging commits: r3917 - mgmt/trunk/sesame/cpp/src.
rhmessaging-commits at lists.jboss.org
rhmessaging-commits at lists.jboss.org
Wed Apr 21 13:16:38 EDT 2010
Author: tedross
Date: 2010-04-21 13:16:37 -0400 (Wed, 21 Apr 2010)
New Revision: 3917
Modified:
mgmt/trunk/sesame/cpp/src/SysAgent.cpp
Log:
Removed use of deprecated init call.
Note, the old code was left in as commented-out text. I expect that we will
re-introduce this API in the near future.
Modified: mgmt/trunk/sesame/cpp/src/SysAgent.cpp
===================================================================
--- mgmt/trunk/sesame/cpp/src/SysAgent.cpp 2010-04-21 17:09:13 UTC (rev 3916)
+++ mgmt/trunk/sesame/cpp/src/SysAgent.cpp 2010-04-21 17:16:37 UTC (rev 3917)
@@ -361,6 +361,7 @@
if (interval < 1)
interval = 10;
+ /*
qpid::client::ConnectionSettings settings;
settings.protocol = options["proto"].value;
settings.host = options["host"].value;
@@ -371,9 +372,21 @@
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);
More information about the rhmessaging-commits
mailing list