2 Documentation Robot keyword library for Monitoring JVM resources
4 Library ${CURDIR}/Appenders/ElasticsearchAppender.py
5 Variables ${CURDIR}/../variables/Variables.py
10 [Documentation] Return latest jvm Memory object
11 [Arguments] ${controller-ip}=${ODL_SYSTEM_IP} ${elastic-port}=${ELASTICPORT}
12 ${session} ElasticsearchAppender.Get_Connection ${controller-ip} ${elastic-port}
13 ${value} ElasticsearchAppender.Get Jvm Memory ${session}
18 [Documentation] Return latest jvm Threading object
19 [Arguments] ${controller-ip}=${ODL_SYSTEM_IP} ${elastic-port}=${ELASTICPORT}
20 ${session} ElasticsearchAppender.Get_Connection ${controller-ip} ${elastic-port}
21 ${value} ElasticsearchAppender.Get Jvm Threading ${session}
26 [Documentation] Return latest jvm Classloading object
27 [Arguments] ${controller-ip}=${ODL_SYSTEM_IP} ${elastic-port}=${ELASTICPORT}
28 ${session} ElasticsearchAppender.Get_Connection ${controller-ip} ${elastic-port}
29 ${value} ElasticsearchAppender.Get Jvm Classloading ${session}
33 Get JVM Operatingsystem
34 [Documentation] Return latest jvm Operatingsystem object
35 [Arguments] ${controller-ip}=${ODL_SYSTEM_IP} ${elastic-port}=${ELASTICPORT}
36 ${session} ElasticsearchAppender.Get_Connection ${controller-ip} ${elastic-port}
37 ${value} ElasticsearchAppender.Get Jvm Operatingsystem ${session}
42 [Documentation] Draw Resource usage plot using plot_points method.
43 [Arguments] ${controllers_number}=${NUM_ODL_SYSTEM} ${elastic-port}=${ELASTICPORT}
44 FOR ${index} IN RANGE 1 ${controllers_number}+1
45 ${controller-ip} Builtin.Set Variable ${ODL_SYSTEM_${index}_IP}
47 ${session} ElasticsearchAppender.Get_Connection ${controller-ip} ${elastic-port}
49 ElasticsearchAppender.Plot Points
52 ... threadcount_${index}.png
55 ElasticsearchAppender.Plot Points
58 ... heapmemory_${index}.png
62 ElasticsearchAppender.Plot Points
64 ... JVM Loaded Classes
65 ... class_count_${index}.png
67 ... 'TotalLoadedClassCount'
68 ElasticsearchAppender.Plot Points
71 ... cpu_usage_${index}.png