Code Review
/
o-du
/
l2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
[Epic-ID: ODUHIGH-516][Task-ID: ODUHIGH-527] Processing of E2 Node Configuration...
[o-du/l2.git]
/
src
/
o1
/
ves
/
VesEvent.hpp
diff --git
a/src/o1/ves/VesEvent.hpp
b/src/o1/ves/VesEvent.hpp
index
f6e746d
..
fe09ef0
100644
(file)
--- a/
src/o1/ves/VesEvent.hpp
+++ b/
src/o1/ves/VesEvent.hpp
@@
-30,6
+30,8
@@
#include "VesUtils.hpp"
#include "VesCommonHeader.hpp"
#include "HttpClient.hpp"
#include "VesUtils.hpp"
#include "VesCommonHeader.hpp"
#include "HttpClient.hpp"
+#include "Message.hpp"
+#include "ConfigLoader.hpp"
using namespace std;
using namespace std;
@@
-37,25
+39,29
@@
class VesEvent{
public:
VesEvent();
public:
VesEvent();
- ~VesEvent();
- bool prepare();
+ VesEvent(VesEventType);
+ virtual ~VesEvent();
+ void init();
+ bool prepare(const Message* msg = NULL);
bool send();
protected:
bool send();
protected:
- virtual bool prepareEventFields() = 0;
+ virtual bool prepareEventFields(const Message* msg = NULL) = 0;
+ virtual void getConfig();
+ virtual void createUrl();
VesEventType mVesEventType;
cJSON* mVesEventFields;
VesEventType mVesEventType;
cJSON* mVesEventFields;
-
- private:
- //Member variable
- bool readConfigFile();
- bool getVesCollectorDetails();
- char * mSendData;
- HttpClient *mHttpClient;
- string mVesServerIp;
+ string mVesServerIp;
string mVesServerPort;
string mVesServerUsername;
string mVesServerPassword;
string mVesServerPort;
string mVesServerUsername;
string mVesServerPassword;
+ string mVesUrl;
+
+ private:
+ string getEventFieldName();
+ char * mSendData;
+ HttpClient *mHttpClient;
+
};
#endif
};
#endif