diff options
author | 2017-09-29 14:38:28 -0400 | |
---|---|---|
committer | 2017-09-29 14:43:57 -0400 | |
commit | a32d00252c79f0e54b5d0b4dc090916b4d011f55 (patch) | |
tree | cd7edefaa39eae902d4c41193fcd99e7942b958d /veslibrary/ves_javalibrary/evel_javalib2/src/evel_javalibrary/att/com/EvelHeader.java | |
parent | a43e38e7bdc183709399bc49179b7137c6debe23 (diff) |
Add java util funcs for EvelHeader fix custom meas
Issue-Id: VNFSDK-101
Change-Id: I849958f30abf003fb7ea5a8764d97e9ad5fd6e4f
Signed-Off-by: Gokul Singaraju <goksing@gmail.com>
Diffstat (limited to 'veslibrary/ves_javalibrary/evel_javalib2/src/evel_javalibrary/att/com/EvelHeader.java')
-rw-r--r-- | veslibrary/ves_javalibrary/evel_javalib2/src/evel_javalibrary/att/com/EvelHeader.java | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/veslibrary/ves_javalibrary/evel_javalib2/src/evel_javalibrary/att/com/EvelHeader.java b/veslibrary/ves_javalibrary/evel_javalib2/src/evel_javalibrary/att/com/EvelHeader.java index 8b5538b..cd1ac0b 100644 --- a/veslibrary/ves_javalibrary/evel_javalib2/src/evel_javalibrary/att/com/EvelHeader.java +++ b/veslibrary/ves_javalibrary/evel_javalib2/src/evel_javalibrary/att/com/EvelHeader.java @@ -472,6 +472,65 @@ public class EvelHeader { }
/**************************************************************************//**
+ * Set the Priority property of the event header.
+ *
+ * @note The Priority of event being reported.
+ *
+ * @param priorityval Value of priority.
+ *
+ *****************************************************************************/
+ public void evel_header_set_priority(PRIORITIES priority_val)
+ {
+ EVEL_ENTER();
+
+ assert(EvelHeader.PRIORITIES.EVEL_MAX_PRIORITIES.compareTo(priority_val) < 0 );
+
+ priority = priority_val;
+
+ EVEL_EXIT();
+ }
+
+ /**************************************************************************//**
+ * Set the Priority property of the event header.
+ *
+ * @note The Reporting Entity Id defaults to the OpenStack VM UUID.
+ *
+ * @param val Optional true or false.
+ * @param srcid The source id to set.
+ *****************************************************************************/
+ public void evel_header_set_sourceid(boolean val, String srcid)
+ {
+ EVEL_ENTER();
+
+ assert(srcid != null);
+
+ source_id.set_option(val);
+
+ source_id.SetValue(srcid);
+
+ EVEL_EXIT();
+ }
+
+ /**************************************************************************//**
+ * Set the Source name property of the event header.
+ *
+ * @note Source name should identify the IP address or Source Event originator
+ * for inventory
+ *
+ * @param srcname String for sourcename.
+ *****************************************************************************/
+ public void evel_header_set_source_name(String srcname)
+ {
+ EVEL_ENTER();
+
+ assert(srcname != null);
+
+ source_name = srcname;
+
+ EVEL_EXIT();
+ }
+
+ /**************************************************************************//**
* Map an ::EVEL_EVENT_DOMAINS enum value to the equivalent string.
*
* @param domain The domain to convert.
|