blob: 039a266a5cfcf3c676ef136d53f179d01073b2fa (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
|
#
# ============LICENSE_START==========================================
# ===================================================================
# Copyright © 2017 AT&T Intellectual Property. All rights reserved.
# ===================================================================
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# ============LICENSE_END============================================
#
# ECOMP and OpenECOMP are trademarks
# and service marks of AT&T Intellectual Property.
#
#
For support queries reach out to Gokul Singaraju gs244f@att.com
VES Library is opensourced library provided for Virtual Event Streaming Agent
development.
The VES Library provides standard API for Data collector agents
to interface with DCAE. This VES Library supports 5.x version of API.
The Vendor related documentation is provided in
https://github.com/att/evel-test-collector/tree/master/docs/att_interface_definition
VES preliminary documentation is under
https://wiki.opnfv.org/display/ves/VES+Home
To compile C Library
C compiler would be needed for Linux and Windows.
Ubuntu platform dependencies are
sudo apt-get install update
sudo apt-get install upgrade
sudo apt-get install build-essential
For Redhat/CentOS it would be
sudo yum groupinstall "Development Tools"
Compile:
cd veslibrary/ves_clibrary/evel/evel-library/bldjobs;make clean;make all
Install VES Library:
cd veslibrary/ves_clibrary/evel/evel-library/bldjobs;make install
For Running the VES Agent
pthread, curl and libcurl3 packages will neeed to be installed
Sample agents Firewall (vFW) and Loadbalancer (vLB) are provided as development examples
Modify per your agent requirements
Reporting DCAE/VES collector ip and port also need to be setup
To compile Java library
On Windows
Load the Maven project into Eclipse
Select evel_javalib2 project Right click
Select Maven > Download Sources
Select Maven > Update Project
then
Select pom.xml Right click > Run As > Maven Clean
Select pom.xml Right click > Run As > Maven Build
to compile and build the jar
On Ubuntu platform dependencies are
sudo apt-get install openjdk-8-jre
sudo apt-get install openjdk-8-jdk
Maven build utility
sudo apt-get install mvn
On Redhat/Centos
sudo yum install java-1.8.0-openjdk
sudo yum install java-1.8.0-openjdk-devel
Maven
sudo yum install maven2
Compile library:
cd veslibrary/ves_javalibrary/evel_javalib2;mvn clean install
Copy the evel_javalib2-0.0.1-SNAPSHOT.jar into directory
Dependent classpath jars that are needed to compile and Run
log4j-1.2.17.jar
javax.json-api-1.1.jar
slf4j-api-1.7.5.jar
slf4j-log4j12-1.7.5.jar
javax.json-1.0.4.jar
Sample Agent application is at src_test/maindir/Main.java
mkdir ./evel_javalibrary/att/com/maindir
copy the agent code into this directory and modify per your agent requirements
Reporting DCAE/VES collector ip and port also need to be setup
Compile Sample VES agent
javac -cp <.:dependent jars> ./evel_javalibrary/att/com/maindir
Run VES agent
java -cp <.:dependent jars> evel_javalibrary.att.com.maindir.Main
|