Project

General

Profile

Feature #1011

reconfiguration of services through their parameter sets is needed

Added by Jim Kowalkowski over 9 years ago. Updated over 9 years ago.

Status:
Closed
Priority:
Normal
Category:
Infrastructure
Target version:
Start date:
02/21/2011
Due date:
02/25/2011
% Done:

100%

Estimated time:
Scope:
Internal
Experiment:
-
SSI Package:
Duration: 5

Description

The event display application in NOvA needs to modify the configuration of services during the execution of the program. The service system needs to be able to give out the list of parameter sets that were used for service creation. The service system needs to be able to accept the changed parameter sets and then invoke the "reconfigure" member function of an associated service object if its parameter set has indeed changed.

History

#1 Updated by Jim Kowalkowski over 9 years ago

  • Status changed from New to Resolved

The interface to perform this function looks like this.

typedef std::vector<ParameterSet> ParameterSets;
ServiceRegistry& inst = ServiceRegistry::instance();
ParameterSets psets;
inst.presentToken().getParameterSets(psets);
ParameterSets::iterator cur=psets.begin(),end=psets.end();
for(;cur!=end;++cur) {
std::cerr << "service name = "
<< cur->get&lt;std::string&gt;("service_type","none")
<< "\n";
cur->put&lt;int&gt;("debug_level",10);
}
inst.presentToken().putParameterSets(psets);

See the Reconfigur* files in the test/Integration direction for a working example.

#2 Updated by Christopher Green over 9 years ago

  • Status changed from Resolved to Reviewed
  • Target version set to 0.5.0
  • % Done changed from 0 to 100

#3 Updated by Marc Paterno over 9 years ago

  • Status changed from Reviewed to Closed


Also available in: Atom PDF