hce-node application  1.4.3
HCE Hierarchical Cluster Engine node application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
ReducingHandlerBuilder.cpp
Go to the documentation of this file.
9 
10 using namespace Poco;
11 using namespace HCE::reduce;
12 using namespace HCE::sphinx;
13 using namespace HCE::sphinx::reduce_task;
14 
15 namespace HCE{
16 namespace reduce{
17 
18 Poco::SharedPtr<HCE::reduce::ReducingHandler> ReducingHandlerBuilder::build()
19 {
20  SharedPtr<ReducingPartsCountersStorage> reducingPartsCountersStorage(new
22  SharedPtr<ReduceAdditionsStorage> reduceAdditionsStorage(new
24  SharedPtr<TaskReducersManagerFactory> taskReducersManagerFactory(new
26  SharedPtr<ReducingExceptionsTranslator>reducingExceptionsTranslator(new
28  SharedPtr<ReducingOutputMessageBuilder> reducingOutputMessageBuilder(new
29  ReducingOutputMessageBuilder(reducingExceptionsTranslator));
30  SharedPtr<SupportNotifierIf> supportNotifier(new ConsoleSupportNotifier());
31 
32  return SharedPtr<ReducingHandler>(new ReducingHandler(reducingPartsCountersStorage,
33  reduceAdditionsStorage,
34  taskReducersManagerFactory,
35  reducingOutputMessageBuilder,
36  supportNotifier));
37 }
38 
39 }
40 }