}
class TestManager;
-class RealmNode;
+class OriginHost;
class MyDiameterEntity;
class MyLocalServer;
class MyDiameterEngine;
-// RealmNode resources
-class RealmNode;
-typedef std::map<std::string, RealmNode*> realm_nodes_t;
-typedef std::map<std::string, RealmNode*>::const_iterator realm_nodes_it;
-typedef std::map<std::string, RealmNode*>::iterator realm_nodes_nc_it;
+// OriginHost resources
+class OriginHost;
+typedef std::map<std::string, OriginHost*> origin_hosts_t;
+typedef std::map<std::string, OriginHost*>::const_iterator origin_hosts_it;
+typedef std::map<std::string, OriginHost*>::iterator origin_hosts_nc_it;
class Launcher : public anna::comm::Application {
// Start time:
anna::time::Date a_start_time;
+ std::string a_initialWorkingDirectory;
// Core engines:
MyCommunicator *a_communicator;
MyCounterRecorderClock *a_counterRecorderClock;
// Nodes deployment:
- realm_nodes_t a_nodes;
- RealmNode *a_workingNode;
- RealmNode *a_operatedRealm; // auxiliary for eventOperation
+ origin_hosts_t a_originHosts;
+ OriginHost *a_workingNode;
+ OriginHost *a_operatedHost; // auxiliary for eventOperation
// comm resources:
anna::comm::ServerSocket* a_httpServerSocket; // HTTP
const anna::Millisecond &getADMLMinResolution() const throw() { return a_admlMinResolution; }
+ std::string getSignalUSR2InputFile() const throw();
+ std::string getSignalUSR2OutputFile() const throw();
+
void servicesFromXML(const anna::xml::Node* servicesNode, bool eventOperation) throw(anna::RuntimeException);
anna::Millisecond checkTimeMeasure(const std::string ¶meter, const std::string &value) throw(anna::RuntimeException);
void initialize() throw(anna::RuntimeException); // HTTP
void run() throw(anna::RuntimeException);
+
+
public:
Launcher();
//~Launcher(); TODO
void startServices() throw(anna::RuntimeException);
bool setWorkingNode(const std::string &name) throw();
- RealmNode *getRealmNode(const std::string &realmName) const throw(anna::RuntimeException);
- RealmNode *getRealmNode(const anna::diameter::codec::Message &message) const throw(anna::RuntimeException);
- bool uniqueRealm() const throw() { return (a_nodes.size() == 1); }
+ OriginHost *getOriginHost(const std::string &oh) const throw(anna::RuntimeException);
+ OriginHost *getOriginHost(const anna::diameter::codec::Message &message) const throw(anna::RuntimeException);
+ bool uniqueOriginHost() const throw() { return (a_originHosts.size() == 1); }
- // Operated realm for communication resources smart assignment ////////////////////////////////////////////////////////////
- void updateOperatedRealmNodeWithMessage(const anna::diameter::codec::Message &message) throw(anna::RuntimeException);
- RealmNode *getOperatedRealm() const throw(anna::RuntimeException);
+ // Operated host for communication resources smart assignment ////////////////////////////////////////////////////////////
+ void updateOperatedOriginHostWithMessage(const anna::diameter::codec::Message &message) throw(anna::RuntimeException);
+ OriginHost *getOperatedHost() const throw(anna::RuntimeException);
MyDiameterEntity *getOperatedEntity() const throw(anna::RuntimeException);
MyLocalServer *getOperatedServer() const throw(anna::RuntimeException);
MyDiameterEngine *getOperatedEngine() const throw(anna::RuntimeException);
void resetCounters() throw();
void signalUSR2() throw(anna::RuntimeException);
std::string help() const throw();
- anna::xml::Node* oamAndStatsAsXML(anna::xml::Node* parent) const throw();
+ anna::xml::Node* oamAsXML(anna::xml::Node* parent) const throw();
+ anna::xml::Node* statsAsXML(anna::xml::Node* parent) const throw();
// helpers
bool getDataBlockFromHexFile(const std::string &pathfile, anna::DataBlock &db) const throw();