// Authors: eduardo.ramos.testillano@gmail.com
// cisco.tierra@gmail.com
-
-/*
- Establece un manejador externo para controlar el teclado, recoge los parametros de la operacion
- por este y envia la peticion al servidor.
-*/
#include <iostream>
#include <fstream>
namespace comm {
class Entity;
class Response;
+class LocalServer;
}
}
}
anna::diameter::comm::Message G_commMsgSent2c, G_commMsgSent2e, G_commMsgFwd2c, G_commMsgFwd2e;
anna::diameter::comm::Message G_commMsg;
anna::diameter::codec::Message G_codecMsg, G_codecAnsMsg;
-anna::Recycler<anna::diameter::comm::Message> G_commMessages; // create en el forward de requets sin answer programada
-// realease en el forward de answers
+anna::Recycler<anna::diameter::comm::Message> G_commMessages; // create on requests forwards without programmed answer / release in answers forward
// Auxiliary resources for answers programming
};
+/*
class MyCounterRecorder : public anna::oam::CounterRecorder {
// pure virtual definitions:
void close() throw() {;}
std::string asString() const throw() { return "Physical dump not implemented: see memory accumulations writting context (kill -10 <pid>)"; }
};
-
+*/
class Launcher : public anna::comm::Application {
bool a_splitLog, a_detailedLog;
anna::time::Date a_start_time;
anna::timex::Engine* a_timeEngine;
- MyCounterRecorder *a_counterRecorder;
+ //MyCounterRecorder *a_counterRecorder;
std::string a_cerPathfile;
std::string a_dwrPathfile;
a_splitLog = false;
a_detailedLog = false;
a_timeEngine = NULL;
- a_counterRecorder = NULL;
+ //a_counterRecorder = NULL;
a_entity = NULL;
a_diameterLocalServer = NULL;
a_cerPathfile = "cer.xml";
// workMode = anna::comm::Communicator::WorkMode::Clone;
a_communicator = new MyCommunicator(workMode);
a_timeEngine = new anna::timex::Engine((anna::Millisecond)300000, (anna::Millisecond)150);
- a_counterRecorder = new MyCounterRecorder();
+ //a_counterRecorder = new MyCounterRecorder();
}
void Launcher::run()
oamDiameterCodec.registerCounter(anna::diameter::codec::OamModule::Counter::LevelValidation__FailedRuleForCardinalityMoreThanNeeded, "", 17 /*2017*/);
oamDiameterCodec.registerCounter(anna::diameter::codec::OamModule::Counter::LevelValidation__FailedGenericAvpRuleForCardinalityFoundDisregardedItem, "", 18 /*2018*/);
oamDiameterCodec.registerCounter(anna::diameter::codec::OamModule::Counter::LevelValidation__FoundDisregardedItemsAndGenericAVPWasNotSpecified, "", 19 /*2019*/);
- anna::oam::CounterManager& cm = anna::oam::CounterManager::instantiate();
- cm.setEngine(a_timeEngine);
- cm.setRecordPeriod(Millisecond(300000));
- cm.setCounterRecorder(static_cast<anna::oam::CounterRecorder*>(a_counterRecorder));
+ //anna::oam::CounterManager& cm = anna::oam::CounterManager::instantiate();
+ //cm.setEngine(a_timeEngine);
+ //cm.setRecordPeriod(Millisecond(300000));
+ ////cm.setCounterRecorder(static_cast<anna::oam::CounterRecorder*>(a_counterRecorder)); ... will be NULL
// Checking command line parameters
if (cl.exists("sessionBasedModelsClientSocketSelection")) {