From 5e76fbd802ca4dcf48dac5c9a8f262470a326ef7 Mon Sep 17 00:00:00 2001 From: Pooja03 Date: Wed, 20 Mar 2019 19:39:58 +0530 Subject: Resolving warning reported in build - VES Mapper Changes made to resolve warnings in the build. Change-Id: I03dee6780941881afc65c4b907ade078febb5e39 Issue-ID: DCAEGEN2-604 Signed-off-by: Pooja03 --- .../ves/domain/ves70/AdditionalMeasurement.java | 115 ++ .../ves/domain/ves70/AdditionalObject.java | 227 +++ .../ves/domain/ves70/AdditionalParameter.java | 191 +++ .../domain/ves70/AlarmAdditionalInformation.java | 79 ++ .../dcaegen2/ves/domain/ves70/CodecUsageArray.java | 118 ++ .../ves/domain/ves70/CommonEventHeader.java | 777 ++++++++++ .../dcaegen2/ves/domain/ves70/CpuUsageArray.java | 511 +++++++ .../dcaegen2/ves/domain/ves70/DiskUsageArray.java | 1496 ++++++++++++++++++++ .../ves/domain/ves70/EndOfCallVqmSummaries.java | 866 +++++++++++ .../org/onap/dcaegen2/ves/domain/ves70/Event.java | 404 ++++++ .../dcaegen2/ves/domain/ves70/FaultFields.java | 441 ++++++ .../ves/domain/ves70/FilesystemUsageArray.java | 258 ++++ .../ves/domain/ves70/GtpPerFlowMetrics.java | 1455 +++++++++++++++++++ .../dcaegen2/ves/domain/ves70/HeartbeatFields.java | 189 +++ .../dcaegen2/ves/domain/ves70/HugePagesArray.java | 248 ++++ .../ves/domain/ves70/InternalHeaderFields.java | 79 ++ .../org/onap/dcaegen2/ves/domain/ves70/Ipmi.java | 403 ++++++ .../ves70/IpmiBaseboardTemperatureArray.java | 118 ++ .../ves70/IpmiBaseboardVoltageRegulatorArray.java | 118 ++ .../ves/domain/ves70/IpmiBatteryArray.java | 144 ++ .../dcaegen2/ves/domain/ves70/IpmiFanArray.java | 118 ++ .../IpmiGlobalAggregateTemperatureMarginArray.java | 121 ++ .../dcaegen2/ves/domain/ves70/IpmiHsbpArray.java | 119 ++ .../dcaegen2/ves/domain/ves70/IpmiNicArray.java | 118 ++ .../ves/domain/ves70/IpmiPowerSupplyArray.java | 170 +++ .../ves/domain/ves70/IpmiProcessorArray.java | 172 +++ .../ves/domain/ves70/LatencyDistribution.java | 117 ++ .../onap/dcaegen2/ves/domain/ves70/LoadArray.java | 142 ++ .../domain/ves70/MachineCheckExceptionArray.java | 197 +++ .../ves/domain/ves70/MeasurementFields.java | 737 ++++++++++ .../ves/domain/ves70/MemoryUsageArray.java | 514 +++++++ .../ves/domain/ves70/MobileFlowFields.java | 990 +++++++++++++ .../ves/domain/ves70/NicPerformanceArray.java | 1204 ++++++++++++++++ .../ves/domain/ves70/NotificationFields.java | 350 +++++ .../dcaegen2/ves/domain/ves70/ObjectInstance.java | 169 +++ .../onap/dcaegen2/ves/domain/ves70/ObjectKey.java | 144 ++ .../dcaegen2/ves/domain/ves70/OtherFields.java | 214 +++ .../ves/domain/ves70/PnfRegistrationFields.java | 446 ++++++ .../ves/domain/ves70/ProcessStatsArray.java | 274 ++++ .../ProcessorDimmAggregateThermalMarginArray.java | 121 ++ .../ves/domain/ves70/SipSignalingFields.java | 386 +++++ .../ves/domain/ves70/StateChangeFields.java | 327 +++++ .../dcaegen2/ves/domain/ves70/SyslogFields.java | 578 ++++++++ .../domain/ves70/ThresholdCrossingAlertFields.java | 670 +++++++++ .../ves/domain/ves70/VendorNfNameFields.java | 144 ++ .../onap/dcaegen2/ves/domain/ves70/VesEvent.java | 116 ++ .../ves/domain/ves70/VoiceQualityFields.java | 357 +++++ .../ves/domain/ves7_0/AdditionalMeasurement.java | 120 -- .../ves/domain/ves7_0/AdditionalObject.java | 227 --- .../ves/domain/ves7_0/AdditionalParameter.java | 191 --- .../domain/ves7_0/AlarmAdditionalInformation.java | 79 -- .../ves/domain/ves7_0/CodecUsageArray.java | 118 -- .../ves/domain/ves7_0/CommonEventHeader.java | 777 ---------- .../dcaegen2/ves/domain/ves7_0/CpuUsageArray.java | 511 ------- .../dcaegen2/ves/domain/ves7_0/DiskUsageArray.java | 1496 -------------------- .../ves/domain/ves7_0/EndOfCallVqmSummaries.java | 866 ----------- .../org/onap/dcaegen2/ves/domain/ves7_0/Event.java | 404 ------ .../dcaegen2/ves/domain/ves7_0/FaultFields.java | 441 ------ .../ves/domain/ves7_0/FilesystemUsageArray.java | 258 ---- .../ves/domain/ves7_0/GtpPerFlowMetrics.java | 1455 ------------------- .../ves/domain/ves7_0/HeartbeatFields.java | 189 --- .../dcaegen2/ves/domain/ves7_0/HugePagesArray.java | 248 ---- .../ves/domain/ves7_0/InternalHeaderFields.java | 79 -- .../org/onap/dcaegen2/ves/domain/ves7_0/Ipmi.java | 403 ------ .../ves7_0/IpmiBaseboardTemperatureArray.java | 118 -- .../ves7_0/IpmiBaseboardVoltageRegulatorArray.java | 118 -- .../ves/domain/ves7_0/IpmiBatteryArray.java | 144 -- .../dcaegen2/ves/domain/ves7_0/IpmiFanArray.java | 118 -- .../IpmiGlobalAggregateTemperatureMarginArray.java | 121 -- .../dcaegen2/ves/domain/ves7_0/IpmiHsbpArray.java | 118 -- .../dcaegen2/ves/domain/ves7_0/IpmiNicArray.java | 118 -- .../ves/domain/ves7_0/IpmiPowerSupplyArray.java | 170 --- .../ves/domain/ves7_0/IpmiProcessorArray.java | 172 --- .../ves/domain/ves7_0/LatencyDistribution.java | 116 -- .../onap/dcaegen2/ves/domain/ves7_0/LoadArray.java | 141 -- .../domain/ves7_0/MachineCheckExceptionArray.java | 196 --- .../ves/domain/ves7_0/MeasurementFields.java | 737 ---------- .../ves/domain/ves7_0/MemoryUsageArray.java | 514 ------- .../ves/domain/ves7_0/MobileFlowFields.java | 990 ------------- .../ves/domain/ves7_0/NicPerformanceArray.java | 1204 ---------------- .../ves/domain/ves7_0/NotificationFields.java | 350 ----- .../dcaegen2/ves/domain/ves7_0/ObjectInstance.java | 169 --- .../onap/dcaegen2/ves/domain/ves7_0/ObjectKey.java | 144 -- .../dcaegen2/ves/domain/ves7_0/OtherFields.java | 214 --- .../ves/domain/ves7_0/PnfRegistrationFields.java | 446 ------ .../ves/domain/ves7_0/ProcessStatsArray.java | 274 ---- .../ProcessorDimmAggregateThermalMarginArray.java | 121 -- .../ves/domain/ves7_0/SipSignalingFields.java | 386 ----- .../ves/domain/ves7_0/StateChangeFields.java | 327 ----- .../dcaegen2/ves/domain/ves7_0/SyslogFields.java | 578 -------- .../ves7_0/ThresholdCrossingAlertFields.java | 670 --------- .../ves/domain/ves7_0/VendorNfNameFields.java | 144 -- .../onap/dcaegen2/ves/domain/ves7_0/VesEvent.java | 116 -- .../ves/domain/ves7_0/VoiceQualityFields.java | 357 ----- .../adapter/UniversalEventAdapter.java | 370 ++--- .../universalvesadapter/utils/SmooksUtils.java | 152 +- UniversalVesAdapter/src/main/resources/kv.json | 28 +- UniversalVesAdapter/src/main/resources/kvTest.json | 2 +- .../domain/ves70/AdditionalMeasurementTest.java | 110 ++ .../ves/domain/ves70/AdditionalObjectTest.java | 193 +++ .../ves/domain/ves70/AdditionalParameterTest.java | 128 ++ .../ves70/AlarmAdditionalInformationTest.java | 90 ++ .../ves/domain/ves70/CodecUsageArrayTest.java | 110 ++ .../ves/domain/ves70/CommonEventHeaderTest.java | 472 ++++++ .../ves/domain/ves70/CpuUsageArrayTest.java | 410 ++++++ .../ves/domain/ves70/DiskUsageArrayTest.java | 1170 +++++++++++++++ .../domain/ves70/EndOfCallVqmSummariesTest.java | 651 +++++++++ .../onap/dcaegen2/ves/domain/ves70/EventTest.java | 343 +++++ .../dcaegen2/ves/domain/ves70/FaultFieldsTest.java | 253 ++++ .../ves/domain/ves70/FilesystemUsageArrayTest.java | 210 +++ .../ves/domain/ves70/GtpPerFlowMetricsTest.java | 1073 ++++++++++++++ .../ves/domain/ves70/HeartbeatFieldsTest.java | 132 ++ .../ves/domain/ves70/HugePagesArrayTest.java | 211 +++ .../ves/domain/ves70/InternalHeaderFieldsTest.java | 93 ++ .../ves70/IpmiBaseboardTemperatureArrayTest.java | 110 ++ .../IpmiBaseboardVoltageRegulatorArrayTest.java | 110 ++ .../ves/domain/ves70/IpmiBatteryArrayTest.java | 130 ++ .../ves/domain/ves70/IpmiFanArrayTest.java | 110 ++ ...iGlobalAggregateTemperatureMarginArrayTest.java | 111 ++ .../ves/domain/ves70/IpmiHsbpArrayTest.java | 110 ++ .../ves/domain/ves70/IpmiNicArrayTest.java | 110 ++ .../ves/domain/ves70/IpmiPowerSupplyArrayTest.java | 150 ++ .../ves/domain/ves70/IpmiProcessorArrayTest.java | 155 ++ .../onap/dcaegen2/ves/domain/ves70/IpmiTest.java | 343 +++++ .../ves/domain/ves70/LatencyDistributionTest.java | 130 ++ .../dcaegen2/ves/domain/ves70/LoadArrayTest.java | 130 ++ .../ves70/MachineCheckExceptionArrayTest.java | 170 +++ .../ves/domain/ves70/MeasurementFieldsTest.java | 553 ++++++++ .../ves/domain/ves70/MemoryUsageArrayTest.java | 410 ++++++ .../ves/domain/ves70/MobileFlowFieldsTest.java | 733 ++++++++++ .../ves/domain/ves70/NicPerformanceArrayTest.java | 856 +++++++++++ .../ves/domain/ves70/NotificationFieldsTest.java | 255 ++++ .../ves/domain/ves70/ObjectInstanceTest.java | 154 ++ .../dcaegen2/ves/domain/ves70/ObjectKeyTest.java | 130 ++ .../dcaegen2/ves/domain/ves70/OtherFieldsTest.java | 156 ++ .../domain/ves70/PnfRegistrationFieldsTest.java | 333 +++++ .../ves/domain/ves70/ProcessStatsArrayTest.java | 230 +++ ...ocessorDimmAggregateThermalMarginArrayTest.java | 111 ++ .../ves/domain/ves70/SipSignalingFieldsTest.java | 271 ++++ .../ves/domain/ves70/StateChangeFieldsTest.java | 174 +++ .../ves/domain/ves70/SyslogFieldsTest.java | 393 +++++ .../ves70/ThresholdCrossingAlertFieldsTest.java | 403 ++++++ .../ves/domain/ves70/VendorNfNameFieldsTest.java | 130 ++ .../dcaegen2/ves/domain/ves70/VesEventTest.java | 114 ++ .../ves/domain/ves70/VoiceQualityFieldsTest.java | 254 ++++ .../domain/ves7_0/AdditionalMeasurementTest.java | 106 -- .../ves/domain/ves7_0/AdditionalObjectTest.java | 189 --- .../ves/domain/ves7_0/AdditionalParameterTest.java | 127 -- .../ves7_0/AlarmAdditionalInformationTest.java | 88 -- .../ves/domain/ves7_0/CodecUsageArrayTest.java | 108 -- .../ves/domain/ves7_0/CommonEventHeaderTest.java | 471 ------ .../ves/domain/ves7_0/CpuUsageArrayTest.java | 407 ------ .../ves/domain/ves7_0/DiskUsageArrayTest.java | 1167 --------------- .../domain/ves7_0/EndOfCallVqmSummariesTest.java | 648 --------- .../onap/dcaegen2/ves/domain/ves7_0/EventTest.java | 327 ----- .../ves/domain/ves7_0/FaultFieldsTest.java | 250 ---- .../domain/ves7_0/FilesystemUsageArrayTest.java | 208 --- .../ves/domain/ves7_0/GtpPerFlowMetricsTest.java | 1069 -------------- .../ves/domain/ves7_0/HeartbeatFieldsTest.java | 129 -- .../ves/domain/ves7_0/HugePagesArrayTest.java | 209 --- .../domain/ves7_0/InternalHeaderFieldsTest.java | 90 -- .../ves7_0/IpmiBaseboardTemperatureArrayTest.java | 108 -- .../IpmiBaseboardVoltageRegulatorArrayTest.java | 108 -- .../ves/domain/ves7_0/IpmiBatteryArrayTest.java | 128 -- .../ves/domain/ves7_0/IpmiFanArrayTest.java | 108 -- ...iGlobalAggregateTemperatureMarginArrayTest.java | 108 -- .../ves/domain/ves7_0/IpmiHsbpArrayTest.java | 108 -- .../ves/domain/ves7_0/IpmiNicArrayTest.java | 108 -- .../domain/ves7_0/IpmiPowerSupplyArrayTest.java | 148 -- .../ves/domain/ves7_0/IpmiProcessorArrayTest.java | 150 -- .../onap/dcaegen2/ves/domain/ves7_0/IpmiTest.java | 331 ----- .../ves/domain/ves7_0/LatencyDistributionTest.java | 128 -- .../dcaegen2/ves/domain/ves7_0/LoadArrayTest.java | 128 -- .../ves7_0/MachineCheckExceptionArrayTest.java | 168 --- .../ves/domain/ves7_0/MeasurementFieldsTest.java | 550 ------- .../ves/domain/ves7_0/MemoryUsageArrayTest.java | 408 ------ .../ves/domain/ves7_0/MobileFlowFieldsTest.java | 729 ---------- .../ves/domain/ves7_0/NicPerformanceArrayTest.java | 851 ----------- .../ves/domain/ves7_0/NotificationFieldsTest.java | 250 ---- .../ves/domain/ves7_0/ObjectInstanceTest.java | 149 -- .../dcaegen2/ves/domain/ves7_0/ObjectKeyTest.java | 128 -- .../ves/domain/ves7_0/OtherFieldsTest.java | 150 -- .../domain/ves7_0/PnfRegistrationFieldsTest.java | 329 ----- .../ves/domain/ves7_0/ProcessStatsArrayTest.java | 228 --- ...ocessorDimmAggregateThermalMarginArrayTest.java | 109 -- .../ves/domain/ves7_0/SipSignalingFieldsTest.java | 269 ---- .../ves/domain/ves7_0/StateChangeFieldsTest.java | 171 --- .../ves/domain/ves7_0/SyslogFieldsTest.java | 390 ----- .../ves7_0/ThresholdCrossingAlertFieldsTest.java | 398 ------ .../ves/domain/ves7_0/VendorNfNameFieldsTest.java | 128 -- .../dcaegen2/ves/domain/ves7_0/VesEventTest.java | 110 -- .../ves/domain/ves7_0/VoiceQualityFieldsTest.java | 249 ---- .../adapter/UniversalEventAdapterTest.java | 236 +-- .../configs/DMaaPMRBaseConfigTest.java | 75 - .../configs/DmaapMrBaseConfigTest.java | 78 + .../controller/VesControllerTest.java | 134 +- .../ConfigFileSmooksConversionExceptionTest.java | 72 +- .../exception/DMaapExceptionTest.java | 84 +- .../exception/MapperConfigExceptionTest.java | 65 +- .../mappingconfig/EntryTest.java | 119 +- .../mappingconfig/EvaluationTest.java | 140 +- .../mappingconfig/MapperConfigTest.java | 109 +- .../service/VesServiceTest.java | 244 ++-- .../universalvesadapter/utils/SmooksUtilsTest.java | 217 +-- 204 files changed, 31487 insertions(+), 31339 deletions(-) create mode 100644 UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/AdditionalMeasurement.java create mode 100644 UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/AdditionalObject.java create mode 100644 UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/AdditionalParameter.java create mode 100644 UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/AlarmAdditionalInformation.java create mode 100644 UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/CodecUsageArray.java create mode 100644 UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/CommonEventHeader.java create mode 100644 UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/CpuUsageArray.java create mode 100644 UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/DiskUsageArray.java create mode 100644 UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/EndOfCallVqmSummaries.java create mode 100644 UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/Event.java create mode 100644 UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/FaultFields.java create mode 100644 UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/FilesystemUsageArray.java create mode 100644 UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/GtpPerFlowMetrics.java create mode 100644 UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/HeartbeatFields.java create mode 100644 UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/HugePagesArray.java create mode 100644 UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/InternalHeaderFields.java create mode 100644 UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/Ipmi.java create mode 100644 UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/IpmiBaseboardTemperatureArray.java create mode 100644 UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/IpmiBaseboardVoltageRegulatorArray.java create mode 100644 UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/IpmiBatteryArray.java create mode 100644 UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/IpmiFanArray.java create mode 100644 UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/IpmiGlobalAggregateTemperatureMarginArray.java create mode 100644 UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/IpmiHsbpArray.java create mode 100644 UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/IpmiNicArray.java create mode 100644 UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/IpmiPowerSupplyArray.java create mode 100644 UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/IpmiProcessorArray.java create mode 100644 UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/LatencyDistribution.java create mode 100644 UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/LoadArray.java create mode 100644 UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/MachineCheckExceptionArray.java create mode 100644 UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/MeasurementFields.java create mode 100644 UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/MemoryUsageArray.java create mode 100644 UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/MobileFlowFields.java create mode 100644 UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/NicPerformanceArray.java create mode 100644 UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/NotificationFields.java create mode 100644 UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/ObjectInstance.java create mode 100644 UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/ObjectKey.java create mode 100644 UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/OtherFields.java create mode 100644 UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/PnfRegistrationFields.java create mode 100644 UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/ProcessStatsArray.java create mode 100644 UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/ProcessorDimmAggregateThermalMarginArray.java create mode 100644 UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/SipSignalingFields.java create mode 100644 UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/StateChangeFields.java create mode 100644 UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/SyslogFields.java create mode 100644 UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/ThresholdCrossingAlertFields.java create mode 100644 UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/VendorNfNameFields.java create mode 100644 UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/VesEvent.java create mode 100644 UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/VoiceQualityFields.java delete mode 100644 UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/AdditionalMeasurement.java delete mode 100644 UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/AdditionalObject.java delete mode 100644 UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/AdditionalParameter.java delete mode 100644 UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/AlarmAdditionalInformation.java delete mode 100644 UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/CodecUsageArray.java delete mode 100644 UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/CommonEventHeader.java delete mode 100644 UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/CpuUsageArray.java delete mode 100644 UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/DiskUsageArray.java delete mode 100644 UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/EndOfCallVqmSummaries.java delete mode 100644 UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/Event.java delete mode 100644 UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/FaultFields.java delete mode 100644 UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/FilesystemUsageArray.java delete mode 100644 UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/GtpPerFlowMetrics.java delete mode 100644 UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/HeartbeatFields.java delete mode 100644 UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/HugePagesArray.java delete mode 100644 UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/InternalHeaderFields.java delete mode 100644 UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/Ipmi.java delete mode 100644 UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/IpmiBaseboardTemperatureArray.java delete mode 100644 UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/IpmiBaseboardVoltageRegulatorArray.java delete mode 100644 UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/IpmiBatteryArray.java delete mode 100644 UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/IpmiFanArray.java delete mode 100644 UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/IpmiGlobalAggregateTemperatureMarginArray.java delete mode 100644 UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/IpmiHsbpArray.java delete mode 100644 UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/IpmiNicArray.java delete mode 100644 UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/IpmiPowerSupplyArray.java delete mode 100644 UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/IpmiProcessorArray.java delete mode 100644 UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/LatencyDistribution.java delete mode 100644 UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/LoadArray.java delete mode 100644 UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/MachineCheckExceptionArray.java delete mode 100644 UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/MeasurementFields.java delete mode 100644 UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/MemoryUsageArray.java delete mode 100644 UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/MobileFlowFields.java delete mode 100644 UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/NicPerformanceArray.java delete mode 100644 UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/NotificationFields.java delete mode 100644 UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/ObjectInstance.java delete mode 100644 UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/ObjectKey.java delete mode 100644 UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/OtherFields.java delete mode 100644 UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/PnfRegistrationFields.java delete mode 100644 UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/ProcessStatsArray.java delete mode 100644 UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/ProcessorDimmAggregateThermalMarginArray.java delete mode 100644 UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/SipSignalingFields.java delete mode 100644 UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/StateChangeFields.java delete mode 100644 UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/SyslogFields.java delete mode 100644 UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/ThresholdCrossingAlertFields.java delete mode 100644 UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/VendorNfNameFields.java delete mode 100644 UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/VesEvent.java delete mode 100644 UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/VoiceQualityFields.java create mode 100644 UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/AdditionalMeasurementTest.java create mode 100644 UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/AdditionalObjectTest.java create mode 100644 UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/AdditionalParameterTest.java create mode 100644 UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/AlarmAdditionalInformationTest.java create mode 100644 UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/CodecUsageArrayTest.java create mode 100644 UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/CommonEventHeaderTest.java create mode 100644 UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/CpuUsageArrayTest.java create mode 100644 UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/DiskUsageArrayTest.java create mode 100644 UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/EndOfCallVqmSummariesTest.java create mode 100644 UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/EventTest.java create mode 100644 UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/FaultFieldsTest.java create mode 100644 UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/FilesystemUsageArrayTest.java create mode 100644 UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/GtpPerFlowMetricsTest.java create mode 100644 UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/HeartbeatFieldsTest.java create mode 100644 UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/HugePagesArrayTest.java create mode 100644 UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/InternalHeaderFieldsTest.java create mode 100644 UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/IpmiBaseboardTemperatureArrayTest.java create mode 100644 UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/IpmiBaseboardVoltageRegulatorArrayTest.java create mode 100644 UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/IpmiBatteryArrayTest.java create mode 100644 UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/IpmiFanArrayTest.java create mode 100644 UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/IpmiGlobalAggregateTemperatureMarginArrayTest.java create mode 100644 UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/IpmiHsbpArrayTest.java create mode 100644 UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/IpmiNicArrayTest.java create mode 100644 UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/IpmiPowerSupplyArrayTest.java create mode 100644 UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/IpmiProcessorArrayTest.java create mode 100644 UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/IpmiTest.java create mode 100644 UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/LatencyDistributionTest.java create mode 100644 UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/LoadArrayTest.java create mode 100644 UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/MachineCheckExceptionArrayTest.java create mode 100644 UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/MeasurementFieldsTest.java create mode 100644 UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/MemoryUsageArrayTest.java create mode 100644 UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/MobileFlowFieldsTest.java create mode 100644 UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/NicPerformanceArrayTest.java create mode 100644 UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/NotificationFieldsTest.java create mode 100644 UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/ObjectInstanceTest.java create mode 100644 UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/ObjectKeyTest.java create mode 100644 UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/OtherFieldsTest.java create mode 100644 UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/PnfRegistrationFieldsTest.java create mode 100644 UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/ProcessStatsArrayTest.java create mode 100644 UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/ProcessorDimmAggregateThermalMarginArrayTest.java create mode 100644 UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/SipSignalingFieldsTest.java create mode 100644 UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/StateChangeFieldsTest.java create mode 100644 UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/SyslogFieldsTest.java create mode 100644 UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/ThresholdCrossingAlertFieldsTest.java create mode 100644 UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/VendorNfNameFieldsTest.java create mode 100644 UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/VesEventTest.java create mode 100644 UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/VoiceQualityFieldsTest.java delete mode 100644 UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/AdditionalMeasurementTest.java delete mode 100644 UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/AdditionalObjectTest.java delete mode 100644 UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/AdditionalParameterTest.java delete mode 100644 UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/AlarmAdditionalInformationTest.java delete mode 100644 UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/CodecUsageArrayTest.java delete mode 100644 UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/CommonEventHeaderTest.java delete mode 100644 UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/CpuUsageArrayTest.java delete mode 100644 UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/DiskUsageArrayTest.java delete mode 100644 UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/EndOfCallVqmSummariesTest.java delete mode 100644 UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/EventTest.java delete mode 100644 UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/FaultFieldsTest.java delete mode 100644 UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/FilesystemUsageArrayTest.java delete mode 100644 UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/GtpPerFlowMetricsTest.java delete mode 100644 UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/HeartbeatFieldsTest.java delete mode 100644 UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/HugePagesArrayTest.java delete mode 100644 UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/InternalHeaderFieldsTest.java delete mode 100644 UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/IpmiBaseboardTemperatureArrayTest.java delete mode 100644 UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/IpmiBaseboardVoltageRegulatorArrayTest.java delete mode 100644 UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/IpmiBatteryArrayTest.java delete mode 100644 UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/IpmiFanArrayTest.java delete mode 100644 UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/IpmiGlobalAggregateTemperatureMarginArrayTest.java delete mode 100644 UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/IpmiHsbpArrayTest.java delete mode 100644 UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/IpmiNicArrayTest.java delete mode 100644 UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/IpmiPowerSupplyArrayTest.java delete mode 100644 UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/IpmiProcessorArrayTest.java delete mode 100644 UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/IpmiTest.java delete mode 100644 UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/LatencyDistributionTest.java delete mode 100644 UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/LoadArrayTest.java delete mode 100644 UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/MachineCheckExceptionArrayTest.java delete mode 100644 UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/MeasurementFieldsTest.java delete mode 100644 UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/MemoryUsageArrayTest.java delete mode 100644 UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/MobileFlowFieldsTest.java delete mode 100644 UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/NicPerformanceArrayTest.java delete mode 100644 UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/NotificationFieldsTest.java delete mode 100644 UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/ObjectInstanceTest.java delete mode 100644 UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/ObjectKeyTest.java delete mode 100644 UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/OtherFieldsTest.java delete mode 100644 UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/PnfRegistrationFieldsTest.java delete mode 100644 UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/ProcessStatsArrayTest.java delete mode 100644 UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/ProcessorDimmAggregateThermalMarginArrayTest.java delete mode 100644 UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/SipSignalingFieldsTest.java delete mode 100644 UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/StateChangeFieldsTest.java delete mode 100644 UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/SyslogFieldsTest.java delete mode 100644 UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/ThresholdCrossingAlertFieldsTest.java delete mode 100644 UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/VendorNfNameFieldsTest.java delete mode 100644 UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/VesEventTest.java delete mode 100644 UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/VoiceQualityFieldsTest.java delete mode 100644 UniversalVesAdapter/src/test/java/org/onap/universalvesadapter/configs/DMaaPMRBaseConfigTest.java create mode 100644 UniversalVesAdapter/src/test/java/org/onap/universalvesadapter/configs/DmaapMrBaseConfigTest.java (limited to 'UniversalVesAdapter/src') diff --git a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/AdditionalMeasurement.java b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/AdditionalMeasurement.java new file mode 100644 index 0000000..318e59c --- /dev/null +++ b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/AdditionalMeasurement.java @@ -0,0 +1,115 @@ +/* +* ============LICENSE_START======================================================= +* ONAP : DCAE +* ================================================================================ +* Copyright 2019 TechMahindra +*================================================================================= +* 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========================================================= +*/ +package org.onap.dcaegen2.ves.domain.ves70; + +import org.apache.commons.lang.builder.EqualsBuilder; +import org.apache.commons.lang.builder.HashCodeBuilder; +import org.apache.commons.lang.builder.ToStringBuilder; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyDescription; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; + + +/** + * a hashMap which is associated with and described by a name + * + */ +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonPropertyOrder({"name", "hashMap"}) +public class AdditionalMeasurement { + + /** + * + * (Required) + * + */ + @JsonProperty("name") + private String name; + /** + * an associative array which is an array of key:value pairs (Required) + * + */ + @JsonProperty("hashMap") + @JsonPropertyDescription("an associative array which is an array of key:value pairs") + private AlarmAdditionalInformation hashMap; + + /** + * + * (Required) + * + */ + @JsonProperty("name") + public String getName() { + return name; + } + + /** + * + * (Required) + * + */ + @JsonProperty("name") + public void setName(String name) { + this.name = name; + } + + /** + * an associative array which is an array of key:value pairs (Required) + * + */ + @JsonProperty("hashMap") + public AlarmAdditionalInformation getHashMap() { + return hashMap; + } + + /** + * an associative array which is an array of key:value pairs (Required) + * + */ + @JsonProperty("hashMap") + public void setHashMap(AlarmAdditionalInformation hashMap) { + this.hashMap = hashMap; + } + + @Override + public String toString() { + return ToStringBuilder.reflectionToString(this); + } + + @Override + public int hashCode() { + return new HashCodeBuilder().append(name).append(hashMap).toHashCode(); + } + + @Override + public boolean equals(Object other) { + if (other == this) { + return true; + } + if ((other instanceof AdditionalMeasurement) == false) { + return false; + } + AdditionalMeasurement rhs = ((AdditionalMeasurement) other); + return new EqualsBuilder().append(name, rhs.name).append(hashMap, rhs.hashMap).isEquals(); + } + +} diff --git a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/AdditionalObject.java b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/AdditionalObject.java new file mode 100644 index 0000000..9f7f871 --- /dev/null +++ b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/AdditionalObject.java @@ -0,0 +1,227 @@ +/* +* ============LICENSE_START======================================================= +* ONAP : DCAE +* ================================================================================ +* Copyright 2019 TechMahindra +*================================================================================= +* 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========================================================= +*/ +package org.onap.dcaegen2.ves.domain.ves70; + +import java.util.ArrayList; +import java.util.List; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyDescription; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import org.apache.commons.lang.builder.EqualsBuilder; +import org.apache.commons.lang.builder.HashCodeBuilder; +import org.apache.commons.lang.builder.ToStringBuilder; + + +/** + * json object schema, name and other meta-information along with one or more object instances + * + */ +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonPropertyOrder({ + "objectInstances", + "objectName", + "objectSchema", + "objectSchemaUrl", + "nfSubscribedObjectName", + "nfSubscriptionId" +}) +public class AdditionalObject { + + /** + * one or more instances of the jsonObject + * (Required) + * + */ + @JsonProperty("objectInstances") + @JsonPropertyDescription("one or more instances of the jsonObject") + private List objectInstances = new ArrayList(); + /** + * name of the JSON Object + * (Required) + * + */ + @JsonProperty("objectName") + @JsonPropertyDescription("name of the JSON Object") + private String objectName; + /** + * json schema for the object + * + */ + @JsonProperty("objectSchema") + @JsonPropertyDescription("json schema for the object") + private String objectSchema; + /** + * Url to the json schema for the object + * + */ + @JsonProperty("objectSchemaUrl") + @JsonPropertyDescription("Url to the json schema for the object") + private String objectSchemaUrl; + /** + * name of the object associated with the nfSubscriptonId + * + */ + @JsonProperty("nfSubscribedObjectName") + @JsonPropertyDescription("name of the object associated with the nfSubscriptonId") + private String nfSubscribedObjectName; + /** + * identifies an openConfig telemetry subscription on a network function, which configures the network function to send complex object data associated with the jsonObject + * + */ + @JsonProperty("nfSubscriptionId") + @JsonPropertyDescription("identifies an openConfig telemetry subscription on a network function, which configures the network function to send complex object data associated with the jsonObject") + private String nfSubscriptionId; + + /** + * one or more instances of the jsonObject + * (Required) + * + */ + @JsonProperty("objectInstances") + public List getObjectInstances() { + return objectInstances; + } + + /** + * one or more instances of the jsonObject + * (Required) + * + */ + @JsonProperty("objectInstances") + public void setObjectInstances(List objectInstances) { + this.objectInstances = objectInstances; + } + + /** + * name of the JSON Object + * (Required) + * + */ + @JsonProperty("objectName") + public String getObjectName() { + return objectName; + } + + /** + * name of the JSON Object + * (Required) + * + */ + @JsonProperty("objectName") + public void setObjectName(String objectName) { + this.objectName = objectName; + } + + /** + * json schema for the object + * + */ + @JsonProperty("objectSchema") + public String getObjectSchema() { + return objectSchema; + } + + /** + * json schema for the object + * + */ + @JsonProperty("objectSchema") + public void setObjectSchema(String objectSchema) { + this.objectSchema = objectSchema; + } + + /** + * Url to the json schema for the object + * + */ + @JsonProperty("objectSchemaUrl") + public String getObjectSchemaUrl() { + return objectSchemaUrl; + } + + /** + * Url to the json schema for the object + * + */ + @JsonProperty("objectSchemaUrl") + public void setObjectSchemaUrl(String objectSchemaUrl) { + this.objectSchemaUrl = objectSchemaUrl; + } + + /** + * name of the object associated with the nfSubscriptonId + * + */ + @JsonProperty("nfSubscribedObjectName") + public String getNfSubscribedObjectName() { + return nfSubscribedObjectName; + } + + /** + * name of the object associated with the nfSubscriptonId + * + */ + @JsonProperty("nfSubscribedObjectName") + public void setNfSubscribedObjectName(String nfSubscribedObjectName) { + this.nfSubscribedObjectName = nfSubscribedObjectName; + } + + /** + * identifies an openConfig telemetry subscription on a network function, which configures the network function to send complex object data associated with the jsonObject + * + */ + @JsonProperty("nfSubscriptionId") + public String getNfSubscriptionId() { + return nfSubscriptionId; + } + + /** + * identifies an openConfig telemetry subscription on a network function, which configures the network function to send complex object data associated with the jsonObject + * + */ + @JsonProperty("nfSubscriptionId") + public void setNfSubscriptionId(String nfSubscriptionId) { + this.nfSubscriptionId = nfSubscriptionId; + } + + @Override + public String toString() { + return ToStringBuilder.reflectionToString(this); + } + + @Override + public int hashCode() { + return new HashCodeBuilder().append(objectInstances).append(objectName).append(objectSchema).append(objectSchemaUrl).append(nfSubscribedObjectName).append(nfSubscriptionId).toHashCode(); + } + + @Override + public boolean equals(Object other) { + if (other == this) { + return true; + } + if ((other instanceof AdditionalObject) == false) { + return false; + } + AdditionalObject rhs = ((AdditionalObject) other); + return new EqualsBuilder().append(objectInstances, rhs.objectInstances).append(objectName, rhs.objectName).append(objectSchema, rhs.objectSchema).append(objectSchemaUrl, rhs.objectSchemaUrl).append(nfSubscribedObjectName, rhs.nfSubscribedObjectName).append(nfSubscriptionId, rhs.nfSubscriptionId).isEquals(); + } + +} diff --git a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/AdditionalParameter.java b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/AdditionalParameter.java new file mode 100644 index 0000000..eda4a1b --- /dev/null +++ b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/AdditionalParameter.java @@ -0,0 +1,191 @@ +/* +* ============LICENSE_START======================================================= +* ONAP : DCAE +* ================================================================================ +* Copyright 2019 TechMahindra +*================================================================================= +* 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========================================================= +*/ +package org.onap.dcaegen2.ves.domain.ves70; + +import java.util.HashMap; +import java.util.Map; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyDescription; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; +import org.apache.commons.lang.builder.EqualsBuilder; +import org.apache.commons.lang.builder.HashCodeBuilder; +import org.apache.commons.lang.builder.ToStringBuilder; + + +/** + * performance counter + * + */ +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonPropertyOrder({ + "criticality", + "hashMap", + "thresholdCrossed" +}) +public class AdditionalParameter { + + /** + * + * (Required) + * + */ + @JsonProperty("criticality") + private AdditionalParameter.Criticality criticality; + /** + * an associative array which is an array of key:value pairs + * (Required) + * + */ + @JsonProperty("hashMap") + @JsonPropertyDescription("an associative array which is an array of key:value pairs") + private AlarmAdditionalInformation hashMap; + /** + * + * (Required) + * + */ + @JsonProperty("thresholdCrossed") + private String thresholdCrossed; + + /** + * + * (Required) + * + */ + @JsonProperty("criticality") + public AdditionalParameter.Criticality getCriticality() { + return criticality; + } + + /** + * + * (Required) + * + */ + @JsonProperty("criticality") + public void setCriticality(AdditionalParameter.Criticality criticality) { + this.criticality = criticality; + } + + /** + * an associative array which is an array of key:value pairs + * (Required) + * + */ + @JsonProperty("hashMap") + public AlarmAdditionalInformation getHashMap() { + return hashMap; + } + + /** + * an associative array which is an array of key:value pairs + * (Required) + * + */ + @JsonProperty("hashMap") + public void setHashMap(AlarmAdditionalInformation hashMap) { + this.hashMap = hashMap; + } + + /** + * + * (Required) + * + */ + @JsonProperty("thresholdCrossed") + public String getThresholdCrossed() { + return thresholdCrossed; + } + + /** + * + * (Required) + * + */ + @JsonProperty("thresholdCrossed") + public void setThresholdCrossed(String thresholdCrossed) { + this.thresholdCrossed = thresholdCrossed; + } + + @Override + public String toString() { + return ToStringBuilder.reflectionToString(this); + } + + @Override + public int hashCode() { + return new HashCodeBuilder().append(criticality).append(hashMap).append(thresholdCrossed).toHashCode(); + } + + @Override + public boolean equals(Object other) { + if (other == this) { + return true; + } + if ((other instanceof AdditionalParameter) == false) { + return false; + } + AdditionalParameter rhs = ((AdditionalParameter) other); + return new EqualsBuilder().append(criticality, rhs.criticality).append(hashMap, rhs.hashMap).append(thresholdCrossed, rhs.thresholdCrossed).isEquals(); + } + + public enum Criticality { + + CRIT("CRIT"), + MAJ("MAJ"); + private final String value; + private final static Map CONSTANTS = new HashMap(); + + static { + for (AdditionalParameter.Criticality c: values()) { + CONSTANTS.put(c.value, c); + } + } + + private Criticality(String value) { + this.value = value; + } + + @Override + public String toString() { + return this.value; + } + + @JsonValue + public String value() { + return this.value; + } + + @JsonCreator + public static AdditionalParameter.Criticality fromValue(String value) { + AdditionalParameter.Criticality constant = CONSTANTS.get(value); + if (constant == null) { + throw new IllegalArgumentException(value); + } else { + return constant; + } + } + + } + +} diff --git a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/AlarmAdditionalInformation.java b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/AlarmAdditionalInformation.java new file mode 100644 index 0000000..afc63f8 --- /dev/null +++ b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/AlarmAdditionalInformation.java @@ -0,0 +1,79 @@ +/* +* ============LICENSE_START======================================================= +* ONAP : DCAE +* ================================================================================ +* Copyright 2019 TechMahindra +*================================================================================= +* 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========================================================= +*/ +package org.onap.dcaegen2.ves.domain.ves70; + +import java.util.HashMap; +import java.util.Map; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import org.apache.commons.lang.builder.EqualsBuilder; +import org.apache.commons.lang.builder.HashCodeBuilder; +import org.apache.commons.lang.builder.ToStringBuilder; + + +/** + * an associative array which is an array of key:value pairs + * + */ +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonPropertyOrder({ + +}) +public class AlarmAdditionalInformation { + + @JsonIgnore + private Map additionalProperties = new HashMap(); + + @Override + public String toString() { + return ToStringBuilder.reflectionToString(this); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + @JsonAnySetter + public void setAdditionalProperty(String name, String value) { + this.additionalProperties.put(name, value); + } + + @Override + public int hashCode() { + return new HashCodeBuilder().append(additionalProperties).toHashCode(); + } + + @Override + public boolean equals(Object other) { + if (other == this) { + return true; + } + if ((other instanceof AlarmAdditionalInformation) == false) { + return false; + } + AlarmAdditionalInformation rhs = ((AlarmAdditionalInformation) other); + return new EqualsBuilder().append(additionalProperties, rhs.additionalProperties).isEquals(); + } + +} diff --git a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/CodecUsageArray.java b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/CodecUsageArray.java new file mode 100644 index 0000000..c75279c --- /dev/null +++ b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/CodecUsageArray.java @@ -0,0 +1,118 @@ +/* +* ============LICENSE_START======================================================= +* ONAP : DCAE +* ================================================================================ +* Copyright 2019 TechMahindra +*================================================================================= +* 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========================================================= +*/ +package org.onap.dcaegen2.ves.domain.ves70; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import org.apache.commons.lang.builder.EqualsBuilder; +import org.apache.commons.lang.builder.HashCodeBuilder; +import org.apache.commons.lang.builder.ToStringBuilder; + + +/** + * number of times an identified codec was used over the measurementInterval + * + */ +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonPropertyOrder({ + "codecIdentifier", + "numberInUse" +}) +public class CodecUsageArray { + + /** + * + * (Required) + * + */ + @JsonProperty("codecIdentifier") + private String codecIdentifier; + /** + * + * (Required) + * + */ + @JsonProperty("numberInUse") + private Integer numberInUse; + + /** + * + * (Required) + * + */ + @JsonProperty("codecIdentifier") + public String getCodecIdentifier() { + return codecIdentifier; + } + + /** + * + * (Required) + * + */ + @JsonProperty("codecIdentifier") + public void setCodecIdentifier(String codecIdentifier) { + this.codecIdentifier = codecIdentifier; + } + + /** + * + * (Required) + * + */ + @JsonProperty("numberInUse") + public Integer getNumberInUse() { + return numberInUse; + } + + /** + * + * (Required) + * + */ + @JsonProperty("numberInUse") + public void setNumberInUse(Integer numberInUse) { + this.numberInUse = numberInUse; + } + + @Override + public String toString() { + return ToStringBuilder.reflectionToString(this); + } + + @Override + public int hashCode() { + return new HashCodeBuilder().append(codecIdentifier).append(numberInUse).toHashCode(); + } + + @Override + public boolean equals(Object other) { + if (other == this) { + return true; + } + if ((other instanceof CodecUsageArray) == false) { + return false; + } + CodecUsageArray rhs = ((CodecUsageArray) other); + return new EqualsBuilder().append(codecIdentifier, rhs.codecIdentifier).append(numberInUse, rhs.numberInUse).isEquals(); + } + +} diff --git a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/CommonEventHeader.java b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/CommonEventHeader.java new file mode 100644 index 0000000..a2554f6 --- /dev/null +++ b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/CommonEventHeader.java @@ -0,0 +1,777 @@ +/* +* ============LICENSE_START======================================================= +* ONAP : DCAE +* ================================================================================ +* Copyright 2019 TechMahindra +*================================================================================= +* 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========================================================= +*/ +package org.onap.dcaegen2.ves.domain.ves70; + +import java.util.Date; +import java.util.HashMap; +import java.util.Map; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyDescription; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; +import org.apache.commons.lang.builder.EqualsBuilder; +import org.apache.commons.lang.builder.HashCodeBuilder; +import org.apache.commons.lang.builder.ToStringBuilder; + + + +/** + * fields common to all events + * + */ +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonPropertyOrder({ + "domain", + "eventId", + "eventName", + "eventType", + "internalHeaderFields", + "lastEpochMicrosec", + "nfcNamingCode", + "nfNamingCode", + "nfVendorName", + "priority", + "reportingEntityId", + "reportingEntityName", + "sequence", + "sourceId", + "sourceName", + "startEpochMicrosec", + "timeZoneOffset", + "version", + "vesEventListenerVersion" +}) +public class CommonEventHeader { + + + + /** + * the eventing domain associated with the event + * (Required) + * + */ + @JsonProperty("domain") + @JsonPropertyDescription("the eventing domain associated with the event") + private CommonEventHeader.Domain domain; + /** + * event key that is unique to the event source + * (Required) + * + */ + @JsonProperty("eventId") + @JsonPropertyDescription("event key that is unique to the event source") + private String eventId; + /** + * unique event name + * (Required) + * + */ + @JsonProperty("eventName") + @JsonPropertyDescription("unique event name") + private String eventName; + /** + * for example - applicationNf, guestOS, hostOS, platform + * + */ + @JsonProperty("eventType") + @JsonPropertyDescription("for example - applicationNf, guestOS, hostOS, platform") + private String eventType; + /** + * enrichment fields for internal VES Event Listener service use only, not supplied by event sources + * + */ + @JsonProperty("internalHeaderFields") + @JsonPropertyDescription("enrichment fields for internal VES Event Listener service use only, not supplied by event sources") + private InternalHeaderFields internalHeaderFields; + /** + * the latest unix time aka epoch time associated with the event from any component--as microseconds elapsed since 1 Jan 1970 not including leap seconds + * (Required) + * + */ + @JsonProperty("lastEpochMicrosec") + @JsonPropertyDescription("the latest unix time aka epoch time associated with the event from any component--as microseconds elapsed since 1 Jan 1970 not including leap seconds") + private Double lastEpochMicrosec; + /** + * 3 character network function component type, aligned with vfc naming standards + * + */ + @JsonProperty("nfcNamingCode") + @JsonPropertyDescription("3 character network function component type, aligned with vfc naming standards") + private String nfcNamingCode; + /** + * 4 character network function type, aligned with nf naming standards + * + */ + @JsonProperty("nfNamingCode") + @JsonPropertyDescription("4 character network function type, aligned with nf naming standards") + private String nfNamingCode; + /** + * network function vendor name + * + */ + @JsonProperty("nfVendorName") + @JsonPropertyDescription("network function vendor name") + private String nfVendorName; + /** + * processing priority + * (Required) + * + */ + @JsonProperty("priority") + @JsonPropertyDescription("processing priority") + private CommonEventHeader.Priority priority; + /** + * UUID identifying the entity reporting the event, for example an OAM VM; must be populated by the ATT enrichment process + * + */ + @JsonProperty("reportingEntityId") + @JsonPropertyDescription("UUID identifying the entity reporting the event, for example an OAM VM; must be populated by the ATT enrichment process") + private String reportingEntityId; + /** + * name of the entity reporting the event, for example, an EMS name; may be the same as sourceName + * (Required) + * + */ + @JsonProperty("reportingEntityName") + @JsonPropertyDescription("name of the entity reporting the event, for example, an EMS name; may be the same as sourceName") + private String reportingEntityName; + /** + * ordering of events communicated by an event source instance or 0 if not needed + * (Required) + * + */ + @JsonProperty("sequence") + @JsonPropertyDescription("ordering of events communicated by an event source instance or 0 if not needed") + private Integer sequence; + /** + * UUID identifying the entity experiencing the event issue; must be populated by the ATT enrichment process + * + */ + @JsonProperty("sourceId") + @JsonPropertyDescription("UUID identifying the entity experiencing the event issue; must be populated by the ATT enrichment process") + private String sourceId; + /** + * name of the entity experiencing the event issue + * (Required) + * + */ + @JsonProperty("sourceName") + @JsonPropertyDescription("name of the entity experiencing the event issue") + private String sourceName; + /** + * the earliest unix time aka epoch time associated with the event from any component--as microseconds elapsed since 1 Jan 1970 not including leap seconds + * (Required) + * + */ + @JsonProperty("startEpochMicrosec") + @JsonPropertyDescription("the earliest unix time aka epoch time associated with the event from any component--as microseconds elapsed since 1 Jan 1970 not including leap seconds") + private Double startEpochMicrosec; + /** + * UTC offset for the local time zone of the device as UTC+/-hh.mm + * + */ + @JsonProperty("timeZoneOffset") + @JsonPropertyDescription("UTC offset for the local time zone of the device as UTC+/-hh.mm") + private String timeZoneOffset; + /** + * version of the event header + * (Required) + * + */ + @JsonProperty("version") + @JsonPropertyDescription("version of the event header") + private CommonEventHeader.Version version; + /** + * version of the VES Event Listener API + * (Required) + * + */ + @JsonProperty("vesEventListenerVersion") + @JsonPropertyDescription("version of the VES Event Listener API") + private CommonEventHeader.VesEventListenerVersion vesEventListenerVersion; + + @JsonIgnore + private long ts1 = new Date().getTime(); + @JsonIgnore + public long getTs1() { + return ts1; + } + + @JsonIgnore + public void setTs1(long ts1) { + this.ts1 = ts1; + } + + /** + * the eventing domain associated with the event + * (Required) + * + */ + @JsonProperty("domain") + public CommonEventHeader.Domain getDomain() { + return domain; + } + + /** + * the eventing domain associated with the event + * (Required) + * + */ + @JsonProperty("domain") + public void setDomain(CommonEventHeader.Domain domain) { + this.domain = domain; + } + + /** + * event key that is unique to the event source + * (Required) + * + */ + @JsonProperty("eventId") + public String getEventId() { + return eventId; + } + + /** + * event key that is unique to the event source + * (Required) + * + */ + @JsonProperty("eventId") + public void setEventId(String eventId) { + this.eventId = eventId; + } + + /** + * unique event name + * (Required) + * + */ + @JsonProperty("eventName") + public String getEventName() { + return eventName; + } + + /** + * unique event name + * (Required) + * + */ + @JsonProperty("eventName") + public void setEventName(String eventName) { + this.eventName = eventName; + } + + /** + * for example - applicationNf, guestOS, hostOS, platform + * + */ + @JsonProperty("eventType") + public String getEventType() { + return eventType; + } + + /** + * for example - applicationNf, guestOS, hostOS, platform + * + */ + @JsonProperty("eventType") + public void setEventType(String eventType) { + this.eventType = eventType; + } + + /** + * enrichment fields for internal VES Event Listener service use only, not supplied by event sources + * + */ + @JsonProperty("internalHeaderFields") + public InternalHeaderFields getInternalHeaderFields() { + return internalHeaderFields; + } + + /** + * enrichment fields for internal VES Event Listener service use only, not supplied by event sources + * + */ + @JsonProperty("internalHeaderFields") + public void setInternalHeaderFields(InternalHeaderFields internalHeaderFields) { + this.internalHeaderFields = internalHeaderFields; + } + + /** + * the latest unix time aka epoch time associated with the event from any component--as microseconds elapsed since 1 Jan 1970 not including leap seconds + * (Required) + * + */ + @JsonProperty("lastEpochMicrosec") + public Double getLastEpochMicrosec() { + return lastEpochMicrosec; + } + + /** + * the latest unix time aka epoch time associated with the event from any component--as microseconds elapsed since 1 Jan 1970 not including leap seconds + * (Required) + * + */ + @JsonProperty("lastEpochMicrosec") + public void setLastEpochMicrosec(Double lastEpochMicrosec) { + this.lastEpochMicrosec = lastEpochMicrosec; + } + + /** + * 3 character network function component type, aligned with vfc naming standards + * + */ + @JsonProperty("nfcNamingCode") + public String getNfcNamingCode() { + return nfcNamingCode; + } + + /** + * 3 character network function component type, aligned with vfc naming standards + * + */ + @JsonProperty("nfcNamingCode") + public void setNfcNamingCode(String nfcNamingCode) { + this.nfcNamingCode = nfcNamingCode; + } + + /** + * 4 character network function type, aligned with nf naming standards + * + */ + @JsonProperty("nfNamingCode") + public String getNfNamingCode() { + return nfNamingCode; + } + + /** + * 4 character network function type, aligned with nf naming standards + * + */ + @JsonProperty("nfNamingCode") + public void setNfNamingCode(String nfNamingCode) { + this.nfNamingCode = nfNamingCode; + } + + /** + * network function vendor name + * + */ + @JsonProperty("nfVendorName") + public String getNfVendorName() { + return nfVendorName; + } + + /** + * network function vendor name + * + */ + @JsonProperty("nfVendorName") + public void setNfVendorName(String nfVendorName) { + this.nfVendorName = nfVendorName; + } + + /** + * processing priority + * (Required) + * + */ + @JsonProperty("priority") + public CommonEventHeader.Priority getPriority() { + return priority; + } + + /** + * processing priority + * (Required) + * + */ + @JsonProperty("priority") + public void setPriority(CommonEventHeader.Priority priority) { + this.priority = priority; + } + + /** + * UUID identifying the entity reporting the event, for example an OAM VM; must be populated by the ATT enrichment process + * + */ + @JsonProperty("reportingEntityId") + public String getReportingEntityId() { + return reportingEntityId; + } + + /** + * UUID identifying the entity reporting the event, for example an OAM VM; must be populated by the ATT enrichment process + * + */ + @JsonProperty("reportingEntityId") + public void setReportingEntityId(String reportingEntityId) { + this.reportingEntityId = reportingEntityId; + } + + /** + * name of the entity reporting the event, for example, an EMS name; may be the same as sourceName + * (Required) + * + */ + @JsonProperty("reportingEntityName") + public String getReportingEntityName() { + return reportingEntityName; + } + + /** + * name of the entity reporting the event, for example, an EMS name; may be the same as sourceName + * (Required) + * + */ + @JsonProperty("reportingEntityName") + public void setReportingEntityName(String reportingEntityName) { + this.reportingEntityName = reportingEntityName; + } + + /** + * ordering of events communicated by an event source instance or 0 if not needed + * (Required) + * + */ + @JsonProperty("sequence") + public Integer getSequence() { + return sequence; + } + + /** + * ordering of events communicated by an event source instance or 0 if not needed + * (Required) + * + */ + @JsonProperty("sequence") + public void setSequence(Integer sequence) { + this.sequence = sequence; + } + + /** + * UUID identifying the entity experiencing the event issue; must be populated by the ATT enrichment process + * + */ + @JsonProperty("sourceId") + public String getSourceId() { + return sourceId; + } + + /** + * UUID identifying the entity experiencing the event issue; must be populated by the ATT enrichment process + * + */ + @JsonProperty("sourceId") + public void setSourceId(String sourceId) { + this.sourceId = sourceId; + } + + /** + * name of the entity experiencing the event issue + * (Required) + * + */ + @JsonProperty("sourceName") + public String getSourceName() { + return sourceName; + } + + /** + * name of the entity experiencing the event issue + * (Required) + * + */ + @JsonProperty("sourceName") + public void setSourceName(String sourceName) { + this.sourceName = sourceName; + } + + /** + * the earliest unix time aka epoch time associated with the event from any component--as microseconds elapsed since 1 Jan 1970 not including leap seconds + * (Required) + * + */ + @JsonProperty("startEpochMicrosec") + public Double getStartEpochMicrosec() { + return startEpochMicrosec; + } + + /** + * the earliest unix time aka epoch time associated with the event from any component--as microseconds elapsed since 1 Jan 1970 not including leap seconds + * (Required) + * + */ + @JsonProperty("startEpochMicrosec") + public void setStartEpochMicrosec(Double startEpochMicrosec) { + this.startEpochMicrosec = startEpochMicrosec; + } + + /** + * UTC offset for the local time zone of the device as UTC+/-hh.mm + * + */ + @JsonProperty("timeZoneOffset") + public String getTimeZoneOffset() { + return timeZoneOffset; + } + + /** + * UTC offset for the local time zone of the device as UTC+/-hh.mm + * + */ + @JsonProperty("timeZoneOffset") + public void setTimeZoneOffset(String timeZoneOffset) { + this.timeZoneOffset = timeZoneOffset; + } + + /** + * version of the event header + * (Required) + * + */ + @JsonProperty("version") + public CommonEventHeader.Version getVersion() { + return version; + } + + /** + * version of the event header + * (Required) + * + */ + @JsonProperty("version") + public void setVersion(CommonEventHeader.Version version) { + this.version = version; + } + + /** + * version of the VES Event Listener API + * (Required) + * + */ + @JsonProperty("vesEventListenerVersion") + public CommonEventHeader.VesEventListenerVersion getVesEventListenerVersion() { + return vesEventListenerVersion; + } + + /** + * version of the VES Event Listener API + * (Required) + * + */ + @JsonProperty("vesEventListenerVersion") + public void setVesEventListenerVersion(CommonEventHeader.VesEventListenerVersion vesEventListenerVersion) { + this.vesEventListenerVersion = vesEventListenerVersion; + } + + @Override + public String toString() { + return ToStringBuilder.reflectionToString(this); + } + + @Override + public int hashCode() { + return new HashCodeBuilder().append(domain).append(eventId).append(eventName).append(eventType).append(internalHeaderFields).append(lastEpochMicrosec).append(nfcNamingCode).append(nfNamingCode).append(nfVendorName).append(priority).append(reportingEntityId).append(reportingEntityName).append(sequence).append(sourceId).append(sourceName).append(startEpochMicrosec).append(timeZoneOffset).append(version).append(vesEventListenerVersion).toHashCode(); + } + + @Override + public boolean equals(Object other) { + if (other == this) { + return true; + } + if ((other instanceof CommonEventHeader) == false) { + return false; + } + CommonEventHeader rhs = ((CommonEventHeader) other); + return new EqualsBuilder().append(domain, rhs.domain).append(eventId, rhs.eventId).append(eventName, rhs.eventName).append(eventType, rhs.eventType).append(internalHeaderFields, rhs.internalHeaderFields).append(lastEpochMicrosec, rhs.lastEpochMicrosec).append(nfcNamingCode, rhs.nfcNamingCode).append(nfNamingCode, rhs.nfNamingCode).append(nfVendorName, rhs.nfVendorName).append(priority, rhs.priority).append(reportingEntityId, rhs.reportingEntityId).append(reportingEntityName, rhs.reportingEntityName).append(sequence, rhs.sequence).append(sourceId, rhs.sourceId).append(sourceName, rhs.sourceName).append(startEpochMicrosec, rhs.startEpochMicrosec).append(timeZoneOffset, rhs.timeZoneOffset).append(version, rhs.version).append(vesEventListenerVersion, rhs.vesEventListenerVersion).isEquals(); + } + + public enum Domain { + + FAULT("fault"), + HEARTBEAT("heartbeat"), + MEASUREMENT("measurement"), + MOBILE_FLOW("mobileFlow"), + NOTIFICATION("notification"), + OTHER("other"), + PNF_REGISTRATION("pnfRegistration"), + SIP_SIGNALING("sipSignaling"), + STATE_CHANGE("stateChange"), + SYSLOG("syslog"), + THRESHOLD_CROSSING_ALERT("thresholdCrossingAlert"), + VOICE_QUALITY("voiceQuality"); + private final String value; + private final static Map CONSTANTS = new HashMap(); + + static { + for (CommonEventHeader.Domain c: values()) { + CONSTANTS.put(c.value, c); + } + } + + private Domain(String value) { + this.value = value; + } + + @Override + public String toString() { + return this.value; + } + + @JsonValue + public String value() { + return this.value; + } + + @JsonCreator + public static CommonEventHeader.Domain fromValue(String value) { + CommonEventHeader.Domain constant = CONSTANTS.get(value); + if (constant == null) { + throw new IllegalArgumentException(value); + } else { + return constant; + } + } + + } + + public enum Priority { + + HIGH("High"), + MEDIUM("Medium"), + NORMAL("Normal"), + LOW("Low"); + private final String value; + private final static Map CONSTANTS = new HashMap(); + + static { + for (CommonEventHeader.Priority c: values()) { + CONSTANTS.put(c.value, c); + } + } + + private Priority(String value) { + this.value = value; + } + + @Override + public String toString() { + return this.value; + } + + @JsonValue + public String value() { + return this.value; + } + + @JsonCreator + public static CommonEventHeader.Priority fromValue(String value) { + CommonEventHeader.Priority constant = CONSTANTS.get(value); + if (constant == null) { + throw new IllegalArgumentException(value); + } else { + return constant; + } + } + + } + + public enum Version { + + _4_0_1("4.0.1"); + private final String value; + private final static Map CONSTANTS = new HashMap(); + + static { + for (CommonEventHeader.Version c: values()) { + CONSTANTS.put(c.value, c); + } + } + + private Version(String value) { + this.value = value; + } + + @Override + public String toString() { + return this.value; + } + + @JsonValue + public String value() { + return this.value; + } + + @JsonCreator + public static CommonEventHeader.Version fromValue(String value) { + CommonEventHeader.Version constant = CONSTANTS.get(value); + if (constant == null) { + throw new IllegalArgumentException(value); + } else { + return constant; + } + } + + } + + public enum VesEventListenerVersion { + + _7_0_1("7.0.1"); + private final String value; + private final static Map CONSTANTS = new HashMap(); + + static { + for (CommonEventHeader.VesEventListenerVersion c: values()) { + CONSTANTS.put(c.value, c); + } + } + + private VesEventListenerVersion(String value) { + this.value = value; + } + + @Override + public String toString() { + return this.value; + } + + @JsonValue + public String value() { + return this.value; + } + + @JsonCreator + public static CommonEventHeader.VesEventListenerVersion fromValue(String value) { + CommonEventHeader.VesEventListenerVersion constant = CONSTANTS.get(value); + if (constant == null) { + throw new IllegalArgumentException(value); + } else { + return constant; + } + } + + } + +} diff --git a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/CpuUsageArray.java b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/CpuUsageArray.java new file mode 100644 index 0000000..d259abe --- /dev/null +++ b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/CpuUsageArray.java @@ -0,0 +1,511 @@ +/* +* ============LICENSE_START======================================================= +* ONAP : DCAE +* ================================================================================ +* Copyright 2019 TechMahindra +*================================================================================= +* 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========================================================= +*/ +package org.onap.dcaegen2.ves.domain.ves70; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyDescription; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import org.apache.commons.lang.builder.EqualsBuilder; +import org.apache.commons.lang.builder.HashCodeBuilder; +import org.apache.commons.lang.builder.ToStringBuilder; + + +/** + * usage of an identified CPU + * + */ +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonPropertyOrder({ + "cpuCapacityContention", + "cpuDemandAvg", + "cpuDemandMhz", + "cpuDemandPct", + "cpuIdentifier", + "cpuIdle", + "cpuLatencyAvg", + "cpuOverheadAvg", + "cpuSwapWaitTime", + "cpuUsageInterrupt", + "cpuUsageNice", + "cpuUsageSoftIrq", + "cpuUsageSteal", + "cpuUsageSystem", + "cpuUsageUser", + "cpuWait", + "percentUsage" +}) +public class CpuUsageArray { + + /** + * the amount of time the CPU cannot run due to contention, in milliseconds over the measurementInterval + * + */ + @JsonProperty("cpuCapacityContention") + @JsonPropertyDescription("the amount of time the CPU cannot run due to contention, in milliseconds over the measurementInterval") + private Double cpuCapacityContention; + /** + * the total CPU time that the NF/NFC/VM could use if there was no contention, in milliseconds over the measurementInterval + * + */ + @JsonProperty("cpuDemandAvg") + @JsonPropertyDescription("the total CPU time that the NF/NFC/VM could use if there was no contention, in milliseconds over the measurementInterval") + private Double cpuDemandAvg; + /** + * CPU demand in megahertz + * + */ + @JsonProperty("cpuDemandMhz") + @JsonPropertyDescription("CPU demand in megahertz") + private Double cpuDemandMhz; + /** + * CPU demand as a percentage of the provisioned capacity + * + */ + @JsonProperty("cpuDemandPct") + @JsonPropertyDescription("CPU demand as a percentage of the provisioned capacity") + private Double cpuDemandPct; + /** + * cpu identifer + * (Required) + * + */ + @JsonProperty("cpuIdentifier") + @JsonPropertyDescription("cpu identifer") + private String cpuIdentifier; + /** + * percentage of CPU time spent in the idle task + * + */ + @JsonProperty("cpuIdle") + @JsonPropertyDescription("percentage of CPU time spent in the idle task") + private Double cpuIdle; + /** + * percentage of time the VM is unable to run because it is contending for access to the physical CPUs + * + */ + @JsonProperty("cpuLatencyAvg") + @JsonPropertyDescription("percentage of time the VM is unable to run because it is contending for access to the physical CPUs") + private Double cpuLatencyAvg; + /** + * the overhead demand above available allocations and reservations, in milliseconds over the measurementInterval + * + */ + @JsonProperty("cpuOverheadAvg") + @JsonPropertyDescription("the overhead demand above available allocations and reservations, in milliseconds over the measurementInterval") + private Double cpuOverheadAvg; + /** + * swap wait time. in milliseconds over the measurementInterval + * + */ + @JsonProperty("cpuSwapWaitTime") + @JsonPropertyDescription("swap wait time. in milliseconds over the measurementInterval") + private Double cpuSwapWaitTime; + /** + * percentage of time spent servicing interrupts + * + */ + @JsonProperty("cpuUsageInterrupt") + @JsonPropertyDescription("percentage of time spent servicing interrupts") + private Double cpuUsageInterrupt; + /** + * percentage of time spent running user space processes that have been niced + * + */ + @JsonProperty("cpuUsageNice") + @JsonPropertyDescription("percentage of time spent running user space processes that have been niced") + private Double cpuUsageNice; + /** + * percentage of time spent handling soft irq interrupts + * + */ + @JsonProperty("cpuUsageSoftIrq") + @JsonPropertyDescription("percentage of time spent handling soft irq interrupts") + private Double cpuUsageSoftIrq; + /** + * percentage of time spent in involuntary wait which is neither user, system or idle time and is effectively time that went missing + * + */ + @JsonProperty("cpuUsageSteal") + @JsonPropertyDescription("percentage of time spent in involuntary wait which is neither user, system or idle time and is effectively time that went missing") + private Double cpuUsageSteal; + /** + * percentage of time spent on system tasks running the kernel + * + */ + @JsonProperty("cpuUsageSystem") + @JsonPropertyDescription("percentage of time spent on system tasks running the kernel") + private Double cpuUsageSystem; + /** + * percentage of time spent running un-niced user space processes + * + */ + @JsonProperty("cpuUsageUser") + @JsonPropertyDescription("percentage of time spent running un-niced user space processes") + private Double cpuUsageUser; + /** + * percentage of CPU time spent waiting for I/O operations to complete + * + */ + @JsonProperty("cpuWait") + @JsonPropertyDescription("percentage of CPU time spent waiting for I/O operations to complete") + private Double cpuWait; + /** + * aggregate cpu usage of the virtual machine on which the xNFC reporting the event is running + * (Required) + * + */ + @JsonProperty("percentUsage") + @JsonPropertyDescription("aggregate cpu usage of the virtual machine on which the xNFC reporting the event is running") + private Double percentUsage; + + /** + * the amount of time the CPU cannot run due to contention, in milliseconds over the measurementInterval + * + */ + @JsonProperty("cpuCapacityContention") + public Double getCpuCapacityContention() { + return cpuCapacityContention; + } + + /** + * the amount of time the CPU cannot run due to contention, in milliseconds over the measurementInterval + * + */ + @JsonProperty("cpuCapacityContention") + public void setCpuCapacityContention(Double cpuCapacityContention) { + this.cpuCapacityContention = cpuCapacityContention; + } + + /** + * the total CPU time that the NF/NFC/VM could use if there was no contention, in milliseconds over the measurementInterval + * + */ + @JsonProperty("cpuDemandAvg") + public Double getCpuDemandAvg() { + return cpuDemandAvg; + } + + /** + * the total CPU time that the NF/NFC/VM could use if there was no contention, in milliseconds over the measurementInterval + * + */ + @JsonProperty("cpuDemandAvg") + public void setCpuDemandAvg(Double cpuDemandAvg) { + this.cpuDemandAvg = cpuDemandAvg; + } + + /** + * CPU demand in megahertz + * + */ + @JsonProperty("cpuDemandMhz") + public Double getCpuDemandMhz() { + return cpuDemandMhz; + } + + /** + * CPU demand in megahertz + * + */ + @JsonProperty("cpuDemandMhz") + public void setCpuDemandMhz(Double cpuDemandMhz) { + this.cpuDemandMhz = cpuDemandMhz; + } + + /** + * CPU demand as a percentage of the provisioned capacity + * + */ + @JsonProperty("cpuDemandPct") + public Double getCpuDemandPct() { + return cpuDemandPct; + } + + /** + * CPU demand as a percentage of the provisioned capacity + * + */ + @JsonProperty("cpuDemandPct") + public void setCpuDemandPct(Double cpuDemandPct) { + this.cpuDemandPct = cpuDemandPct; + } + + /** + * cpu identifer + * (Required) + * + */ + @JsonProperty("cpuIdentifier") + public String getCpuIdentifier() { + return cpuIdentifier; + } + + /** + * cpu identifer + * (Required) + * + */ + @JsonProperty("cpuIdentifier") + public void setCpuIdentifier(String cpuIdentifier) { + this.cpuIdentifier = cpuIdentifier; + } + + /** + * percentage of CPU time spent in the idle task + * + */ + @JsonProperty("cpuIdle") + public Double getCpuIdle() { + return cpuIdle; + } + + /** + * percentage of CPU time spent in the idle task + * + */ + @JsonProperty("cpuIdle") + public void setCpuIdle(Double cpuIdle) { + this.cpuIdle = cpuIdle; + } + + /** + * percentage of time the VM is unable to run because it is contending for access to the physical CPUs + * + */ + @JsonProperty("cpuLatencyAvg") + public Double getCpuLatencyAvg() { + return cpuLatencyAvg; + } + + /** + * percentage of time the VM is unable to run because it is contending for access to the physical CPUs + * + */ + @JsonProperty("cpuLatencyAvg") + public void setCpuLatencyAvg(Double cpuLatencyAvg) { + this.cpuLatencyAvg = cpuLatencyAvg; + } + + /** + * the overhead demand above available allocations and reservations, in milliseconds over the measurementInterval + * + */ + @JsonProperty("cpuOverheadAvg") + public Double getCpuOverheadAvg() { + return cpuOverheadAvg; + } + + /** + * the overhead demand above available allocations and reservations, in milliseconds over the measurementInterval + * + */ + @JsonProperty("cpuOverheadAvg") + public void setCpuOverheadAvg(Double cpuOverheadAvg) { + this.cpuOverheadAvg = cpuOverheadAvg; + } + + /** + * swap wait time. in milliseconds over the measurementInterval + * + */ + @JsonProperty("cpuSwapWaitTime") + public Double getCpuSwapWaitTime() { + return cpuSwapWaitTime; + } + + /** + * swap wait time. in milliseconds over the measurementInterval + * + */ + @JsonProperty("cpuSwapWaitTime") + public void setCpuSwapWaitTime(Double cpuSwapWaitTime) { + this.cpuSwapWaitTime = cpuSwapWaitTime; + } + + /** + * percentage of time spent servicing interrupts + * + */ + @JsonProperty("cpuUsageInterrupt") + public Double getCpuUsageInterrupt() { + return cpuUsageInterrupt; + } + + /** + * percentage of time spent servicing interrupts + * + */ + @JsonProperty("cpuUsageInterrupt") + public void setCpuUsageInterrupt(Double cpuUsageInterrupt) { + this.cpuUsageInterrupt = cpuUsageInterrupt; + } + + /** + * percentage of time spent running user space processes that have been niced + * + */ + @JsonProperty("cpuUsageNice") + public Double getCpuUsageNice() { + return cpuUsageNice; + } + + /** + * percentage of time spent running user space processes that have been niced + * + */ + @JsonProperty("cpuUsageNice") + public void setCpuUsageNice(Double cpuUsageNice) { + this.cpuUsageNice = cpuUsageNice; + } + + /** + * percentage of time spent handling soft irq interrupts + * + */ + @JsonProperty("cpuUsageSoftIrq") + public Double getCpuUsageSoftIrq() { + return cpuUsageSoftIrq; + } + + /** + * percentage of time spent handling soft irq interrupts + * + */ + @JsonProperty("cpuUsageSoftIrq") + public void setCpuUsageSoftIrq(Double cpuUsageSoftIrq) { + this.cpuUsageSoftIrq = cpuUsageSoftIrq; + } + + /** + * percentage of time spent in involuntary wait which is neither user, system or idle time and is effectively time that went missing + * + */ + @JsonProperty("cpuUsageSteal") + public Double getCpuUsageSteal() { + return cpuUsageSteal; + } + + /** + * percentage of time spent in involuntary wait which is neither user, system or idle time and is effectively time that went missing + * + */ + @JsonProperty("cpuUsageSteal") + public void setCpuUsageSteal(Double cpuUsageSteal) { + this.cpuUsageSteal = cpuUsageSteal; + } + + /** + * percentage of time spent on system tasks running the kernel + * + */ + @JsonProperty("cpuUsageSystem") + public Double getCpuUsageSystem() { + return cpuUsageSystem; + } + + /** + * percentage of time spent on system tasks running the kernel + * + */ + @JsonProperty("cpuUsageSystem") + public void setCpuUsageSystem(Double cpuUsageSystem) { + this.cpuUsageSystem = cpuUsageSystem; + } + + /** + * percentage of time spent running un-niced user space processes + * + */ + @JsonProperty("cpuUsageUser") + public Double getCpuUsageUser() { + return cpuUsageUser; + } + + /** + * percentage of time spent running un-niced user space processes + * + */ + @JsonProperty("cpuUsageUser") + public void setCpuUsageUser(Double cpuUsageUser) { + this.cpuUsageUser = cpuUsageUser; + } + + /** + * percentage of CPU time spent waiting for I/O operations to complete + * + */ + @JsonProperty("cpuWait") + public Double getCpuWait() { + return cpuWait; + } + + /** + * percentage of CPU time spent waiting for I/O operations to complete + * + */ + @JsonProperty("cpuWait") + public void setCpuWait(Double cpuWait) { + this.cpuWait = cpuWait; + } + + /** + * aggregate cpu usage of the virtual machine on which the xNFC reporting the event is running + * (Required) + * + */ + @JsonProperty("percentUsage") + public Double getPercentUsage() { + return percentUsage; + } + + /** + * aggregate cpu usage of the virtual machine on which the xNFC reporting the event is running + * (Required) + * + */ + @JsonProperty("percentUsage") + public void setPercentUsage(Double percentUsage) { + this.percentUsage = percentUsage; + } + + @Override + public String toString() { + return ToStringBuilder.reflectionToString(this); + } + + @Override + public int hashCode() { + return new HashCodeBuilder().append(cpuCapacityContention).append(cpuDemandAvg).append(cpuDemandMhz).append(cpuDemandPct).append(cpuIdentifier).append(cpuIdle).append(cpuLatencyAvg).append(cpuOverheadAvg).append(cpuSwapWaitTime).append(cpuUsageInterrupt).append(cpuUsageNice).append(cpuUsageSoftIrq).append(cpuUsageSteal).append(cpuUsageSystem).append(cpuUsageUser).append(cpuWait).append(percentUsage).toHashCode(); + } + + @Override + public boolean equals(Object other) { + if (other == this) { + return true; + } + if ((other instanceof CpuUsageArray) == false) { + return false; + } + CpuUsageArray rhs = ((CpuUsageArray) other); + return new EqualsBuilder().append(cpuCapacityContention, rhs.cpuCapacityContention).append(cpuDemandAvg, rhs.cpuDemandAvg).append(cpuDemandMhz, rhs.cpuDemandMhz).append(cpuDemandPct, rhs.cpuDemandPct).append(cpuIdentifier, rhs.cpuIdentifier).append(cpuIdle, rhs.cpuIdle).append(cpuLatencyAvg, rhs.cpuLatencyAvg).append(cpuOverheadAvg, rhs.cpuOverheadAvg).append(cpuSwapWaitTime, rhs.cpuSwapWaitTime).append(cpuUsageInterrupt, rhs.cpuUsageInterrupt).append(cpuUsageNice, rhs.cpuUsageNice).append(cpuUsageSoftIrq, rhs.cpuUsageSoftIrq).append(cpuUsageSteal, rhs.cpuUsageSteal).append(cpuUsageSystem, rhs.cpuUsageSystem).append(cpuUsageUser, rhs.cpuUsageUser).append(cpuWait, rhs.cpuWait).append(percentUsage, rhs.percentUsage).isEquals(); + } + +} diff --git a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/DiskUsageArray.java b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/DiskUsageArray.java new file mode 100644 index 0000000..5f73074 --- /dev/null +++ b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/DiskUsageArray.java @@ -0,0 +1,1496 @@ +/* +* ============LICENSE_START======================================================= +* ONAP : DCAE +* ================================================================================ +* Copyright 2019 TechMahindra +*================================================================================= +* 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========================================================= +*/ +package org.onap.dcaegen2.ves.domain.ves70; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyDescription; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import org.apache.commons.lang.builder.EqualsBuilder; +import org.apache.commons.lang.builder.HashCodeBuilder; +import org.apache.commons.lang.builder.ToStringBuilder; + + +/** + * usage of an identified disk + * + */ +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonPropertyOrder({ + "diskBusResets", + "diskCommandsAborted", + "diskCommandsAvg", + "diskFlushRequests", + "diskFlushTime", + "diskIdentifier", + "diskIoTimeAvg", + "diskIoTimeLast", + "diskIoTimeMax", + "diskIoTimeMin", + "diskMergedReadAvg", + "diskMergedReadLast", + "diskMergedReadMax", + "diskMergedReadMin", + "diskMergedWriteAvg", + "diskMergedWriteLast", + "diskMergedWriteMax", + "diskMergedWriteMin", + "diskOctetsReadAvg", + "diskOctetsReadLast", + "diskOctetsReadMax", + "diskOctetsReadMin", + "diskOctetsWriteAvg", + "diskOctetsWriteLast", + "diskOctetsWriteMax", + "diskOctetsWriteMin", + "diskOpsReadAvg", + "diskOpsReadLast", + "diskOpsReadMax", + "diskOpsReadMin", + "diskOpsWriteAvg", + "diskOpsWriteLast", + "diskOpsWriteMax", + "diskOpsWriteMin", + "diskPendingOperationsAvg", + "diskPendingOperationsLast", + "diskPendingOperationsMax", + "diskPendingOperationsMin", + "diskReadCommandsAvg", + "diskTime", + "diskTimeReadAvg", + "diskTimeReadLast", + "diskTimeReadMax", + "diskTimeReadMin", + "diskTimeWriteAvg", + "diskTimeWriteLast", + "diskTimeWriteMax", + "diskTimeWriteMin", + "diskTotalReadLatencyAvg", + "diskTotalWriteLatencyAvg", + "diskWeightedIoTimeAvg", + "diskWeightedIoTimeLast", + "diskWeightedIoTimeMax", + "diskWeightedIoTimeMin", + "diskWriteCommandsAvg" +}) +public class DiskUsageArray { + + /** + * number of bus resets over the measurementInterval + * + */ + @JsonProperty("diskBusResets") + @JsonPropertyDescription("number of bus resets over the measurementInterval") + private Double diskBusResets; + /** + * number of disk commands aborted over the measurementInterval + * + */ + @JsonProperty("diskCommandsAborted") + @JsonPropertyDescription("number of disk commands aborted over the measurementInterval") + private Double diskCommandsAborted; + /** + * average number of commands per second over the measurementInterval + * + */ + @JsonProperty("diskCommandsAvg") + @JsonPropertyDescription("average number of commands per second over the measurementInterval") + private Double diskCommandsAvg; + /** + * total flush requests of the disk cache over the measurementInterval + * + */ + @JsonProperty("diskFlushRequests") + @JsonPropertyDescription("total flush requests of the disk cache over the measurementInterval") + private Double diskFlushRequests; + /** + * milliseconds spent on disk cache flushing over the measurementInterval + * + */ + @JsonProperty("diskFlushTime") + @JsonPropertyDescription("milliseconds spent on disk cache flushing over the measurementInterval") + private Double diskFlushTime; + /** + * disk identifier + * (Required) + * + */ + @JsonProperty("diskIdentifier") + @JsonPropertyDescription("disk identifier") + private String diskIdentifier; + /** + * milliseconds spent doing input/output operations over 1 sec; treat this metric as a device load percentage where 1000ms matches 100% load; provide the average over the measurement interval + * + */ + @JsonProperty("diskIoTimeAvg") + @JsonPropertyDescription("milliseconds spent doing input/output operations over 1 sec; treat this metric as a device load percentage where 1000ms matches 100% load; provide the average over the measurement interval") + private Double diskIoTimeAvg; + /** + * milliseconds spent doing input/output operations over 1 sec; treat this metric as a device load percentage where 1000ms matches 100% load; provide the last value measurement within the measurement interval + * + */ + @JsonProperty("diskIoTimeLast") + @JsonPropertyDescription("milliseconds spent doing input/output operations over 1 sec; treat this metric as a device load percentage where 1000ms matches 100% load; provide the last value measurement within the measurement interval") + private Double diskIoTimeLast; + /** + * milliseconds spent doing input/output operations over 1 sec; treat this metric as a device load percentage where 1000ms matches 100% load; provide the maximum value measurement within the measurement interval + * + */ + @JsonProperty("diskIoTimeMax") + @JsonPropertyDescription("milliseconds spent doing input/output operations over 1 sec; treat this metric as a device load percentage where 1000ms matches 100% load; provide the maximum value measurement within the measurement interval") + private Double diskIoTimeMax; + /** + * milliseconds spent doing input/output operations over 1 sec; treat this metric as a device load percentage where 1000ms matches 100% load; provide the minimum value measurement within the measurement interval + * + */ + @JsonProperty("diskIoTimeMin") + @JsonPropertyDescription("milliseconds spent doing input/output operations over 1 sec; treat this metric as a device load percentage where 1000ms matches 100% load; provide the minimum value measurement within the measurement interval") + private Double diskIoTimeMin; + /** + * number of logical read operations that were merged into physical read operations, e.g., two logical reads were served by one physical disk access; provide the average measurement within the measurement interval + * + */ + @JsonProperty("diskMergedReadAvg") + @JsonPropertyDescription("number of logical read operations that were merged into physical read operations, e.g., two logical reads were served by one physical disk access; provide the average measurement within the measurement interval") + private Double diskMergedReadAvg; + /** + * number of logical read operations that were merged into physical read operations, e.g., two logical reads were served by one physical disk access; provide the last value measurement within the measurement interval + * + */ + @JsonProperty("diskMergedReadLast") + @JsonPropertyDescription("number of logical read operations that were merged into physical read operations, e.g., two logical reads were served by one physical disk access; provide the last value measurement within the measurement interval") + private Double diskMergedReadLast; + /** + * number of logical read operations that were merged into physical read operations, e.g., two logical reads were served by one physical disk access; provide the maximum value measurement within the measurement interval + * + */ + @JsonProperty("diskMergedReadMax") + @JsonPropertyDescription("number of logical read operations that were merged into physical read operations, e.g., two logical reads were served by one physical disk access; provide the maximum value measurement within the measurement interval") + private Double diskMergedReadMax; + /** + * number of logical read operations that were merged into physical read operations, e.g., two logical reads were served by one physical disk access; provide the minimum value measurement within the measurement interval + * + */ + @JsonProperty("diskMergedReadMin") + @JsonPropertyDescription("number of logical read operations that were merged into physical read operations, e.g., two logical reads were served by one physical disk access; provide the minimum value measurement within the measurement interval") + private Double diskMergedReadMin; + /** + * number of logical write operations that were merged into physical write operations, e.g., two logical writes were served by one physical disk access; provide the average measurement within the measurement interval + * + */ + @JsonProperty("diskMergedWriteAvg") + @JsonPropertyDescription("number of logical write operations that were merged into physical write operations, e.g., two logical writes were served by one physical disk access; provide the average measurement within the measurement interval") + private Double diskMergedWriteAvg; + /** + * number of logical write operations that were merged into physical write operations, e.g., two logical writes were served by one physical disk access; provide the last value measurement within the measurement interval + * + */ + @JsonProperty("diskMergedWriteLast") + @JsonPropertyDescription("number of logical write operations that were merged into physical write operations, e.g., two logical writes were served by one physical disk access; provide the last value measurement within the measurement interval") + private Double diskMergedWriteLast; + /** + * number of logical write operations that were merged into physical write operations, e.g., two logical writes were served by one physical disk access; provide the maximum value measurement within the measurement interval + * + */ + @JsonProperty("diskMergedWriteMax") + @JsonPropertyDescription("number of logical write operations that were merged into physical write operations, e.g., two logical writes were served by one physical disk access; provide the maximum value measurement within the measurement interval") + private Double diskMergedWriteMax; + /** + * number of logical write operations that were merged into physical write operations, e.g., two logical writes were served by one physical disk access; provide the minimum value measurement within the measurement interval + * + */ + @JsonProperty("diskMergedWriteMin") + @JsonPropertyDescription("number of logical write operations that were merged into physical write operations, e.g., two logical writes were served by one physical disk access; provide the minimum value measurement within the measurement interval") + private Double diskMergedWriteMin; + /** + * number of octets per second read from a disk or partition; provide the average measurement within the measurement interval + * + */ + @JsonProperty("diskOctetsReadAvg") + @JsonPropertyDescription("number of octets per second read from a disk or partition; provide the average measurement within the measurement interval") + private Double diskOctetsReadAvg; + /** + * number of octets per second read from a disk or partition; provide the last measurement within the measurement interval + * + */ + @JsonProperty("diskOctetsReadLast") + @JsonPropertyDescription("number of octets per second read from a disk or partition; provide the last measurement within the measurement interval") + private Double diskOctetsReadLast; + /** + * number of octets per second read from a disk or partition; provide the maximum measurement within the measurement interval + * + */ + @JsonProperty("diskOctetsReadMax") + @JsonPropertyDescription("number of octets per second read from a disk or partition; provide the maximum measurement within the measurement interval") + private Double diskOctetsReadMax; + /** + * number of octets per second read from a disk or partition; provide the minimum measurement within the measurement interval + * + */ + @JsonProperty("diskOctetsReadMin") + @JsonPropertyDescription("number of octets per second read from a disk or partition; provide the minimum measurement within the measurement interval") + private Double diskOctetsReadMin; + /** + * number of octets per second written to a disk or partition; provide the average measurement within the measurement interval + * + */ + @JsonProperty("diskOctetsWriteAvg") + @JsonPropertyDescription("number of octets per second written to a disk or partition; provide the average measurement within the measurement interval") + private Double diskOctetsWriteAvg; + /** + * number of octets per second written to a disk or partition; provide the last measurement within the measurement interval + * + */ + @JsonProperty("diskOctetsWriteLast") + @JsonPropertyDescription("number of octets per second written to a disk or partition; provide the last measurement within the measurement interval") + private Double diskOctetsWriteLast; + /** + * number of octets per second written to a disk or partition; provide the maximum measurement within the measurement interval + * + */ + @JsonProperty("diskOctetsWriteMax") + @JsonPropertyDescription("number of octets per second written to a disk or partition; provide the maximum measurement within the measurement interval") + private Double diskOctetsWriteMax; + /** + * number of octets per second written to a disk or partition; provide the minimum measurement within the measurement interval + * + */ + @JsonProperty("diskOctetsWriteMin") + @JsonPropertyDescription("number of octets per second written to a disk or partition; provide the minimum measurement within the measurement interval") + private Double diskOctetsWriteMin; + /** + * number of read operations per second issued to the disk; provide the average measurement within the measurement interval + * + */ + @JsonProperty("diskOpsReadAvg") + @JsonPropertyDescription("number of read operations per second issued to the disk; provide the average measurement within the measurement interval") + private Double diskOpsReadAvg; + /** + * number of read operations per second issued to the disk; provide the last measurement within the measurement interval + * + */ + @JsonProperty("diskOpsReadLast") + @JsonPropertyDescription("number of read operations per second issued to the disk; provide the last measurement within the measurement interval") + private Double diskOpsReadLast; + /** + * number of read operations per second issued to the disk; provide the maximum measurement within the measurement interval + * + */ + @JsonProperty("diskOpsReadMax") + @JsonPropertyDescription("number of read operations per second issued to the disk; provide the maximum measurement within the measurement interval") + private Double diskOpsReadMax; + /** + * number of read operations per second issued to the disk; provide the minimum measurement within the measurement interval + * + */ + @JsonProperty("diskOpsReadMin") + @JsonPropertyDescription("number of read operations per second issued to the disk; provide the minimum measurement within the measurement interval") + private Double diskOpsReadMin; + /** + * number of write operations per second issued to the disk; provide the average measurement within the measurement interval + * + */ + @JsonProperty("diskOpsWriteAvg") + @JsonPropertyDescription("number of write operations per second issued to the disk; provide the average measurement within the measurement interval") + private Double diskOpsWriteAvg; + /** + * number of write operations per second issued to the disk; provide the last measurement within the measurement interval + * + */ + @JsonProperty("diskOpsWriteLast") + @JsonPropertyDescription("number of write operations per second issued to the disk; provide the last measurement within the measurement interval") + private Double diskOpsWriteLast; + /** + * number of write operations per second issued to the disk; provide the maximum measurement within the measurement interval + * + */ + @JsonProperty("diskOpsWriteMax") + @JsonPropertyDescription("number of write operations per second issued to the disk; provide the maximum measurement within the measurement interval") + private Double diskOpsWriteMax; + /** + * number of write operations per second issued to the disk; provide the minimum measurement within the measurement interval + * + */ + @JsonProperty("diskOpsWriteMin") + @JsonPropertyDescription("number of write operations per second issued to the disk; provide the minimum measurement within the measurement interval") + private Double diskOpsWriteMin; + /** + * queue size of pending I/O operations per second; provide the average measurement within the measurement interval + * + */ + @JsonProperty("diskPendingOperationsAvg") + @JsonPropertyDescription("queue size of pending I/O operations per second; provide the average measurement within the measurement interval") + private Double diskPendingOperationsAvg; + /** + * queue size of pending I/O operations per second; provide the last measurement within the measurement interval + * + */ + @JsonProperty("diskPendingOperationsLast") + @JsonPropertyDescription("queue size of pending I/O operations per second; provide the last measurement within the measurement interval") + private Double diskPendingOperationsLast; + /** + * queue size of pending I/O operations per second; provide the maximum measurement within the measurement interval + * + */ + @JsonProperty("diskPendingOperationsMax") + @JsonPropertyDescription("queue size of pending I/O operations per second; provide the maximum measurement within the measurement interval") + private Double diskPendingOperationsMax; + /** + * queue size of pending I/O operations per second; provide the minimum measurement within the measurement interval + * + */ + @JsonProperty("diskPendingOperationsMin") + @JsonPropertyDescription("queue size of pending I/O operations per second; provide the minimum measurement within the measurement interval") + private Double diskPendingOperationsMin; + /** + * average number of read commands issued per second to the disk over the measurementInterval + * + */ + @JsonProperty("diskReadCommandsAvg") + @JsonPropertyDescription("average number of read commands issued per second to the disk over the measurementInterval") + private Double diskReadCommandsAvg; + /** + * nanoseconds spent on disk cache reads/writes within the measurement interval + * + */ + @JsonProperty("diskTime") + @JsonPropertyDescription("nanoseconds spent on disk cache reads/writes within the measurement interval") + private Double diskTime; + /** + * milliseconds a read operation took to complete; provide the average measurement within the measurement interval + * + */ + @JsonProperty("diskTimeReadAvg") + @JsonPropertyDescription("milliseconds a read operation took to complete; provide the average measurement within the measurement interval") + private Double diskTimeReadAvg; + /** + * milliseconds a read operation took to complete; provide the last measurement within the measurement interval + * + */ + @JsonProperty("diskTimeReadLast") + @JsonPropertyDescription("milliseconds a read operation took to complete; provide the last measurement within the measurement interval") + private Double diskTimeReadLast; + /** + * milliseconds a read operation took to complete; provide the maximum measurement within the measurement interval + * + */ + @JsonProperty("diskTimeReadMax") + @JsonPropertyDescription("milliseconds a read operation took to complete; provide the maximum measurement within the measurement interval") + private Double diskTimeReadMax; + /** + * milliseconds a read operation took to complete; provide the minimum measurement within the measurement interval + * + */ + @JsonProperty("diskTimeReadMin") + @JsonPropertyDescription("milliseconds a read operation took to complete; provide the minimum measurement within the measurement interval") + private Double diskTimeReadMin; + /** + * milliseconds a write operation took to complete; provide the average measurement within the measurement interval + * + */ + @JsonProperty("diskTimeWriteAvg") + @JsonPropertyDescription("milliseconds a write operation took to complete; provide the average measurement within the measurement interval") + private Double diskTimeWriteAvg; + /** + * milliseconds a write operation took to complete; provide the last measurement within the measurement interval + * + */ + @JsonProperty("diskTimeWriteLast") + @JsonPropertyDescription("milliseconds a write operation took to complete; provide the last measurement within the measurement interval") + private Double diskTimeWriteLast; + /** + * milliseconds a write operation took to complete; provide the maximum measurement within the measurement interval + * + */ + @JsonProperty("diskTimeWriteMax") + @JsonPropertyDescription("milliseconds a write operation took to complete; provide the maximum measurement within the measurement interval") + private Double diskTimeWriteMax; + /** + * milliseconds a write operation took to complete; provide the minimum measurement within the measurement interval + * + */ + @JsonProperty("diskTimeWriteMin") + @JsonPropertyDescription("milliseconds a write operation took to complete; provide the minimum measurement within the measurement interval") + private Double diskTimeWriteMin; + /** + * average read time from the perspective of a Guest OS: sum of the Kernel Read Latency and Physical Device Read Latency in milliseconds over the measurement interval + * + */ + @JsonProperty("diskTotalReadLatencyAvg") + @JsonPropertyDescription("average read time from the perspective of a Guest OS: sum of the Kernel Read Latency and Physical Device Read Latency in milliseconds over the measurement interval") + private Double diskTotalReadLatencyAvg; + /** + * average write time from the perspective of a Guest OS: sum of the Kernel Write Latency and Physical Device Write Latency in milliseconds over the measurement interval + * + */ + @JsonProperty("diskTotalWriteLatencyAvg") + @JsonPropertyDescription("average write time from the perspective of a Guest OS: sum of the Kernel Write Latency and Physical Device Write Latency in milliseconds over the measurement interval") + private Double diskTotalWriteLatencyAvg; + /** + * measure in ms over 1 sec of both I/O completion time and the backlog that may be accumulating; value is the average within the collection interval + * + */ + @JsonProperty("diskWeightedIoTimeAvg") + @JsonPropertyDescription("measure in ms over 1 sec of both I/O completion time and the backlog that may be accumulating; value is the average within the collection interval") + private Double diskWeightedIoTimeAvg; + /** + * measure in ms over 1 sec of both I/O completion time and the backlog that may be accumulating; value is the last within the collection interval + * + */ + @JsonProperty("diskWeightedIoTimeLast") + @JsonPropertyDescription("measure in ms over 1 sec of both I/O completion time and the backlog that may be accumulating; value is the last within the collection interval") + private Double diskWeightedIoTimeLast; + /** + * measure in ms over 1 sec of both I/O completion time and the backlog that may be accumulating; value is the maximum within the collection interval + * + */ + @JsonProperty("diskWeightedIoTimeMax") + @JsonPropertyDescription("measure in ms over 1 sec of both I/O completion time and the backlog that may be accumulating; value is the maximum within the collection interval") + private Double diskWeightedIoTimeMax; + /** + * measure in ms over 1 sec of both I/O completion time and the backlog that may be accumulating; value is the minimum within the collection interval + * + */ + @JsonProperty("diskWeightedIoTimeMin") + @JsonPropertyDescription("measure in ms over 1 sec of both I/O completion time and the backlog that may be accumulating; value is the minimum within the collection interval") + private Double diskWeightedIoTimeMin; + /** + * average number of write commands issued per second to the disk over the measurementInterval + * + */ + @JsonProperty("diskWriteCommandsAvg") + @JsonPropertyDescription("average number of write commands issued per second to the disk over the measurementInterval") + private Double diskWriteCommandsAvg; + + /** + * number of bus resets over the measurementInterval + * + */ + @JsonProperty("diskBusResets") + public Double getDiskBusResets() { + return diskBusResets; + } + + /** + * number of bus resets over the measurementInterval + * + */ + @JsonProperty("diskBusResets") + public void setDiskBusResets(Double diskBusResets) { + this.diskBusResets = diskBusResets; + } + + /** + * number of disk commands aborted over the measurementInterval + * + */ + @JsonProperty("diskCommandsAborted") + public Double getDiskCommandsAborted() { + return diskCommandsAborted; + } + + /** + * number of disk commands aborted over the measurementInterval + * + */ + @JsonProperty("diskCommandsAborted") + public void setDiskCommandsAborted(Double diskCommandsAborted) { + this.diskCommandsAborted = diskCommandsAborted; + } + + /** + * average number of commands per second over the measurementInterval + * + */ + @JsonProperty("diskCommandsAvg") + public Double getDiskCommandsAvg() { + return diskCommandsAvg; + } + + /** + * average number of commands per second over the measurementInterval + * + */ + @JsonProperty("diskCommandsAvg") + public void setDiskCommandsAvg(Double diskCommandsAvg) { + this.diskCommandsAvg = diskCommandsAvg; + } + + /** + * total flush requests of the disk cache over the measurementInterval + * + */ + @JsonProperty("diskFlushRequests") + public Double getDiskFlushRequests() { + return diskFlushRequests; + } + + /** + * total flush requests of the disk cache over the measurementInterval + * + */ + @JsonProperty("diskFlushRequests") + public void setDiskFlushRequests(Double diskFlushRequests) { + this.diskFlushRequests = diskFlushRequests; + } + + /** + * milliseconds spent on disk cache flushing over the measurementInterval + * + */ + @JsonProperty("diskFlushTime") + public Double getDiskFlushTime() { + return diskFlushTime; + } + + /** + * milliseconds spent on disk cache flushing over the measurementInterval + * + */ + @JsonProperty("diskFlushTime") + public void setDiskFlushTime(Double diskFlushTime) { + this.diskFlushTime = diskFlushTime; + } + + /** + * disk identifier + * (Required) + * + */ + @JsonProperty("diskIdentifier") + public String getDiskIdentifier() { + return diskIdentifier; + } + + /** + * disk identifier + * (Required) + * + */ + @JsonProperty("diskIdentifier") + public void setDiskIdentifier(String diskIdentifier) { + this.diskIdentifier = diskIdentifier; + } + + /** + * milliseconds spent doing input/output operations over 1 sec; treat this metric as a device load percentage where 1000ms matches 100% load; provide the average over the measurement interval + * + */ + @JsonProperty("diskIoTimeAvg") + public Double getDiskIoTimeAvg() { + return diskIoTimeAvg; + } + + /** + * milliseconds spent doing input/output operations over 1 sec; treat this metric as a device load percentage where 1000ms matches 100% load; provide the average over the measurement interval + * + */ + @JsonProperty("diskIoTimeAvg") + public void setDiskIoTimeAvg(Double diskIoTimeAvg) { + this.diskIoTimeAvg = diskIoTimeAvg; + } + + /** + * milliseconds spent doing input/output operations over 1 sec; treat this metric as a device load percentage where 1000ms matches 100% load; provide the last value measurement within the measurement interval + * + */ + @JsonProperty("diskIoTimeLast") + public Double getDiskIoTimeLast() { + return diskIoTimeLast; + } + + /** + * milliseconds spent doing input/output operations over 1 sec; treat this metric as a device load percentage where 1000ms matches 100% load; provide the last value measurement within the measurement interval + * + */ + @JsonProperty("diskIoTimeLast") + public void setDiskIoTimeLast(Double diskIoTimeLast) { + this.diskIoTimeLast = diskIoTimeLast; + } + + /** + * milliseconds spent doing input/output operations over 1 sec; treat this metric as a device load percentage where 1000ms matches 100% load; provide the maximum value measurement within the measurement interval + * + */ + @JsonProperty("diskIoTimeMax") + public Double getDiskIoTimeMax() { + return diskIoTimeMax; + } + + /** + * milliseconds spent doing input/output operations over 1 sec; treat this metric as a device load percentage where 1000ms matches 100% load; provide the maximum value measurement within the measurement interval + * + */ + @JsonProperty("diskIoTimeMax") + public void setDiskIoTimeMax(Double diskIoTimeMax) { + this.diskIoTimeMax = diskIoTimeMax; + } + + /** + * milliseconds spent doing input/output operations over 1 sec; treat this metric as a device load percentage where 1000ms matches 100% load; provide the minimum value measurement within the measurement interval + * + */ + @JsonProperty("diskIoTimeMin") + public Double getDiskIoTimeMin() { + return diskIoTimeMin; + } + + /** + * milliseconds spent doing input/output operations over 1 sec; treat this metric as a device load percentage where 1000ms matches 100% load; provide the minimum value measurement within the measurement interval + * + */ + @JsonProperty("diskIoTimeMin") + public void setDiskIoTimeMin(Double diskIoTimeMin) { + this.diskIoTimeMin = diskIoTimeMin; + } + + /** + * number of logical read operations that were merged into physical read operations, e.g., two logical reads were served by one physical disk access; provide the average measurement within the measurement interval + * + */ + @JsonProperty("diskMergedReadAvg") + public Double getDiskMergedReadAvg() { + return diskMergedReadAvg; + } + + /** + * number of logical read operations that were merged into physical read operations, e.g., two logical reads were served by one physical disk access; provide the average measurement within the measurement interval + * + */ + @JsonProperty("diskMergedReadAvg") + public void setDiskMergedReadAvg(Double diskMergedReadAvg) { + this.diskMergedReadAvg = diskMergedReadAvg; + } + + /** + * number of logical read operations that were merged into physical read operations, e.g., two logical reads were served by one physical disk access; provide the last value measurement within the measurement interval + * + */ + @JsonProperty("diskMergedReadLast") + public Double getDiskMergedReadLast() { + return diskMergedReadLast; + } + + /** + * number of logical read operations that were merged into physical read operations, e.g., two logical reads were served by one physical disk access; provide the last value measurement within the measurement interval + * + */ + @JsonProperty("diskMergedReadLast") + public void setDiskMergedReadLast(Double diskMergedReadLast) { + this.diskMergedReadLast = diskMergedReadLast; + } + + /** + * number of logical read operations that were merged into physical read operations, e.g., two logical reads were served by one physical disk access; provide the maximum value measurement within the measurement interval + * + */ + @JsonProperty("diskMergedReadMax") + public Double getDiskMergedReadMax() { + return diskMergedReadMax; + } + + /** + * number of logical read operations that were merged into physical read operations, e.g., two logical reads were served by one physical disk access; provide the maximum value measurement within the measurement interval + * + */ + @JsonProperty("diskMergedReadMax") + public void setDiskMergedReadMax(Double diskMergedReadMax) { + this.diskMergedReadMax = diskMergedReadMax; + } + + /** + * number of logical read operations that were merged into physical read operations, e.g., two logical reads were served by one physical disk access; provide the minimum value measurement within the measurement interval + * + */ + @JsonProperty("diskMergedReadMin") + public Double getDiskMergedReadMin() { + return diskMergedReadMin; + } + + /** + * number of logical read operations that were merged into physical read operations, e.g., two logical reads were served by one physical disk access; provide the minimum value measurement within the measurement interval + * + */ + @JsonProperty("diskMergedReadMin") + public void setDiskMergedReadMin(Double diskMergedReadMin) { + this.diskMergedReadMin = diskMergedReadMin; + } + + /** + * number of logical write operations that were merged into physical write operations, e.g., two logical writes were served by one physical disk access; provide the average measurement within the measurement interval + * + */ + @JsonProperty("diskMergedWriteAvg") + public Double getDiskMergedWriteAvg() { + return diskMergedWriteAvg; + } + + /** + * number of logical write operations that were merged into physical write operations, e.g., two logical writes were served by one physical disk access; provide the average measurement within the measurement interval + * + */ + @JsonProperty("diskMergedWriteAvg") + public void setDiskMergedWriteAvg(Double diskMergedWriteAvg) { + this.diskMergedWriteAvg = diskMergedWriteAvg; + } + + /** + * number of logical write operations that were merged into physical write operations, e.g., two logical writes were served by one physical disk access; provide the last value measurement within the measurement interval + * + */ + @JsonProperty("diskMergedWriteLast") + public Double getDiskMergedWriteLast() { + return diskMergedWriteLast; + } + + /** + * number of logical write operations that were merged into physical write operations, e.g., two logical writes were served by one physical disk access; provide the last value measurement within the measurement interval + * + */ + @JsonProperty("diskMergedWriteLast") + public void setDiskMergedWriteLast(Double diskMergedWriteLast) { + this.diskMergedWriteLast = diskMergedWriteLast; + } + + /** + * number of logical write operations that were merged into physical write operations, e.g., two logical writes were served by one physical disk access; provide the maximum value measurement within the measurement interval + * + */ + @JsonProperty("diskMergedWriteMax") + public Double getDiskMergedWriteMax() { + return diskMergedWriteMax; + } + + /** + * number of logical write operations that were merged into physical write operations, e.g., two logical writes were served by one physical disk access; provide the maximum value measurement within the measurement interval + * + */ + @JsonProperty("diskMergedWriteMax") + public void setDiskMergedWriteMax(Double diskMergedWriteMax) { + this.diskMergedWriteMax = diskMergedWriteMax; + } + + /** + * number of logical write operations that were merged into physical write operations, e.g., two logical writes were served by one physical disk access; provide the minimum value measurement within the measurement interval + * + */ + @JsonProperty("diskMergedWriteMin") + public Double getDiskMergedWriteMin() { + return diskMergedWriteMin; + } + + /** + * number of logical write operations that were merged into physical write operations, e.g., two logical writes were served by one physical disk access; provide the minimum value measurement within the measurement interval + * + */ + @JsonProperty("diskMergedWriteMin") + public void setDiskMergedWriteMin(Double diskMergedWriteMin) { + this.diskMergedWriteMin = diskMergedWriteMin; + } + + /** + * number of octets per second read from a disk or partition; provide the average measurement within the measurement interval + * + */ + @JsonProperty("diskOctetsReadAvg") + public Double getDiskOctetsReadAvg() { + return diskOctetsReadAvg; + } + + /** + * number of octets per second read from a disk or partition; provide the average measurement within the measurement interval + * + */ + @JsonProperty("diskOctetsReadAvg") + public void setDiskOctetsReadAvg(Double diskOctetsReadAvg) { + this.diskOctetsReadAvg = diskOctetsReadAvg; + } + + /** + * number of octets per second read from a disk or partition; provide the last measurement within the measurement interval + * + */ + @JsonProperty("diskOctetsReadLast") + public Double getDiskOctetsReadLast() { + return diskOctetsReadLast; + } + + /** + * number of octets per second read from a disk or partition; provide the last measurement within the measurement interval + * + */ + @JsonProperty("diskOctetsReadLast") + public void setDiskOctetsReadLast(Double diskOctetsReadLast) { + this.diskOctetsReadLast = diskOctetsReadLast; + } + + /** + * number of octets per second read from a disk or partition; provide the maximum measurement within the measurement interval + * + */ + @JsonProperty("diskOctetsReadMax") + public Double getDiskOctetsReadMax() { + return diskOctetsReadMax; + } + + /** + * number of octets per second read from a disk or partition; provide the maximum measurement within the measurement interval + * + */ + @JsonProperty("diskOctetsReadMax") + public void setDiskOctetsReadMax(Double diskOctetsReadMax) { + this.diskOctetsReadMax = diskOctetsReadMax; + } + + /** + * number of octets per second read from a disk or partition; provide the minimum measurement within the measurement interval + * + */ + @JsonProperty("diskOctetsReadMin") + public Double getDiskOctetsReadMin() { + return diskOctetsReadMin; + } + + /** + * number of octets per second read from a disk or partition; provide the minimum measurement within the measurement interval + * + */ + @JsonProperty("diskOctetsReadMin") + public void setDiskOctetsReadMin(Double diskOctetsReadMin) { + this.diskOctetsReadMin = diskOctetsReadMin; + } + + /** + * number of octets per second written to a disk or partition; provide the average measurement within the measurement interval + * + */ + @JsonProperty("diskOctetsWriteAvg") + public Double getDiskOctetsWriteAvg() { + return diskOctetsWriteAvg; + } + + /** + * number of octets per second written to a disk or partition; provide the average measurement within the measurement interval + * + */ + @JsonProperty("diskOctetsWriteAvg") + public void setDiskOctetsWriteAvg(Double diskOctetsWriteAvg) { + this.diskOctetsWriteAvg = diskOctetsWriteAvg; + } + + /** + * number of octets per second written to a disk or partition; provide the last measurement within the measurement interval + * + */ + @JsonProperty("diskOctetsWriteLast") + public Double getDiskOctetsWriteLast() { + return diskOctetsWriteLast; + } + + /** + * number of octets per second written to a disk or partition; provide the last measurement within the measurement interval + * + */ + @JsonProperty("diskOctetsWriteLast") + public void setDiskOctetsWriteLast(Double diskOctetsWriteLast) { + this.diskOctetsWriteLast = diskOctetsWriteLast; + } + + /** + * number of octets per second written to a disk or partition; provide the maximum measurement within the measurement interval + * + */ + @JsonProperty("diskOctetsWriteMax") + public Double getDiskOctetsWriteMax() { + return diskOctetsWriteMax; + } + + /** + * number of octets per second written to a disk or partition; provide the maximum measurement within the measurement interval + * + */ + @JsonProperty("diskOctetsWriteMax") + public void setDiskOctetsWriteMax(Double diskOctetsWriteMax) { + this.diskOctetsWriteMax = diskOctetsWriteMax; + } + + /** + * number of octets per second written to a disk or partition; provide the minimum measurement within the measurement interval + * + */ + @JsonProperty("diskOctetsWriteMin") + public Double getDiskOctetsWriteMin() { + return diskOctetsWriteMin; + } + + /** + * number of octets per second written to a disk or partition; provide the minimum measurement within the measurement interval + * + */ + @JsonProperty("diskOctetsWriteMin") + public void setDiskOctetsWriteMin(Double diskOctetsWriteMin) { + this.diskOctetsWriteMin = diskOctetsWriteMin; + } + + /** + * number of read operations per second issued to the disk; provide the average measurement within the measurement interval + * + */ + @JsonProperty("diskOpsReadAvg") + public Double getDiskOpsReadAvg() { + return diskOpsReadAvg; + } + + /** + * number of read operations per second issued to the disk; provide the average measurement within the measurement interval + * + */ + @JsonProperty("diskOpsReadAvg") + public void setDiskOpsReadAvg(Double diskOpsReadAvg) { + this.diskOpsReadAvg = diskOpsReadAvg; + } + + /** + * number of read operations per second issued to the disk; provide the last measurement within the measurement interval + * + */ + @JsonProperty("diskOpsReadLast") + public Double getDiskOpsReadLast() { + return diskOpsReadLast; + } + + /** + * number of read operations per second issued to the disk; provide the last measurement within the measurement interval + * + */ + @JsonProperty("diskOpsReadLast") + public void setDiskOpsReadLast(Double diskOpsReadLast) { + this.diskOpsReadLast = diskOpsReadLast; + } + + /** + * number of read operations per second issued to the disk; provide the maximum measurement within the measurement interval + * + */ + @JsonProperty("diskOpsReadMax") + public Double getDiskOpsReadMax() { + return diskOpsReadMax; + } + + /** + * number of read operations per second issued to the disk; provide the maximum measurement within the measurement interval + * + */ + @JsonProperty("diskOpsReadMax") + public void setDiskOpsReadMax(Double diskOpsReadMax) { + this.diskOpsReadMax = diskOpsReadMax; + } + + /** + * number of read operations per second issued to the disk; provide the minimum measurement within the measurement interval + * + */ + @JsonProperty("diskOpsReadMin") + public Double getDiskOpsReadMin() { + return diskOpsReadMin; + } + + /** + * number of read operations per second issued to the disk; provide the minimum measurement within the measurement interval + * + */ + @JsonProperty("diskOpsReadMin") + public void setDiskOpsReadMin(Double diskOpsReadMin) { + this.diskOpsReadMin = diskOpsReadMin; + } + + /** + * number of write operations per second issued to the disk; provide the average measurement within the measurement interval + * + */ + @JsonProperty("diskOpsWriteAvg") + public Double getDiskOpsWriteAvg() { + return diskOpsWriteAvg; + } + + /** + * number of write operations per second issued to the disk; provide the average measurement within the measurement interval + * + */ + @JsonProperty("diskOpsWriteAvg") + public void setDiskOpsWriteAvg(Double diskOpsWriteAvg) { + this.diskOpsWriteAvg = diskOpsWriteAvg; + } + + /** + * number of write operations per second issued to the disk; provide the last measurement within the measurement interval + * + */ + @JsonProperty("diskOpsWriteLast") + public Double getDiskOpsWriteLast() { + return diskOpsWriteLast; + } + + /** + * number of write operations per second issued to the disk; provide the last measurement within the measurement interval + * + */ + @JsonProperty("diskOpsWriteLast") + public void setDiskOpsWriteLast(Double diskOpsWriteLast) { + this.diskOpsWriteLast = diskOpsWriteLast; + } + + /** + * number of write operations per second issued to the disk; provide the maximum measurement within the measurement interval + * + */ + @JsonProperty("diskOpsWriteMax") + public Double getDiskOpsWriteMax() { + return diskOpsWriteMax; + } + + /** + * number of write operations per second issued to the disk; provide the maximum measurement within the measurement interval + * + */ + @JsonProperty("diskOpsWriteMax") + public void setDiskOpsWriteMax(Double diskOpsWriteMax) { + this.diskOpsWriteMax = diskOpsWriteMax; + } + + /** + * number of write operations per second issued to the disk; provide the minimum measurement within the measurement interval + * + */ + @JsonProperty("diskOpsWriteMin") + public Double getDiskOpsWriteMin() { + return diskOpsWriteMin; + } + + /** + * number of write operations per second issued to the disk; provide the minimum measurement within the measurement interval + * + */ + @JsonProperty("diskOpsWriteMin") + public void setDiskOpsWriteMin(Double diskOpsWriteMin) { + this.diskOpsWriteMin = diskOpsWriteMin; + } + + /** + * queue size of pending I/O operations per second; provide the average measurement within the measurement interval + * + */ + @JsonProperty("diskPendingOperationsAvg") + public Double getDiskPendingOperationsAvg() { + return diskPendingOperationsAvg; + } + + /** + * queue size of pending I/O operations per second; provide the average measurement within the measurement interval + * + */ + @JsonProperty("diskPendingOperationsAvg") + public void setDiskPendingOperationsAvg(Double diskPendingOperationsAvg) { + this.diskPendingOperationsAvg = diskPendingOperationsAvg; + } + + /** + * queue size of pending I/O operations per second; provide the last measurement within the measurement interval + * + */ + @JsonProperty("diskPendingOperationsLast") + public Double getDiskPendingOperationsLast() { + return diskPendingOperationsLast; + } + + /** + * queue size of pending I/O operations per second; provide the last measurement within the measurement interval + * + */ + @JsonProperty("diskPendingOperationsLast") + public void setDiskPendingOperationsLast(Double diskPendingOperationsLast) { + this.diskPendingOperationsLast = diskPendingOperationsLast; + } + + /** + * queue size of pending I/O operations per second; provide the maximum measurement within the measurement interval + * + */ + @JsonProperty("diskPendingOperationsMax") + public Double getDiskPendingOperationsMax() { + return diskPendingOperationsMax; + } + + /** + * queue size of pending I/O operations per second; provide the maximum measurement within the measurement interval + * + */ + @JsonProperty("diskPendingOperationsMax") + public void setDiskPendingOperationsMax(Double diskPendingOperationsMax) { + this.diskPendingOperationsMax = diskPendingOperationsMax; + } + + /** + * queue size of pending I/O operations per second; provide the minimum measurement within the measurement interval + * + */ + @JsonProperty("diskPendingOperationsMin") + public Double getDiskPendingOperationsMin() { + return diskPendingOperationsMin; + } + + /** + * queue size of pending I/O operations per second; provide the minimum measurement within the measurement interval + * + */ + @JsonProperty("diskPendingOperationsMin") + public void setDiskPendingOperationsMin(Double diskPendingOperationsMin) { + this.diskPendingOperationsMin = diskPendingOperationsMin; + } + + /** + * average number of read commands issued per second to the disk over the measurementInterval + * + */ + @JsonProperty("diskReadCommandsAvg") + public Double getDiskReadCommandsAvg() { + return diskReadCommandsAvg; + } + + /** + * average number of read commands issued per second to the disk over the measurementInterval + * + */ + @JsonProperty("diskReadCommandsAvg") + public void setDiskReadCommandsAvg(Double diskReadCommandsAvg) { + this.diskReadCommandsAvg = diskReadCommandsAvg; + } + + /** + * nanoseconds spent on disk cache reads/writes within the measurement interval + * + */ + @JsonProperty("diskTime") + public Double getDiskTime() { + return diskTime; + } + + /** + * nanoseconds spent on disk cache reads/writes within the measurement interval + * + */ + @JsonProperty("diskTime") + public void setDiskTime(Double diskTime) { + this.diskTime = diskTime; + } + + /** + * milliseconds a read operation took to complete; provide the average measurement within the measurement interval + * + */ + @JsonProperty("diskTimeReadAvg") + public Double getDiskTimeReadAvg() { + return diskTimeReadAvg; + } + + /** + * milliseconds a read operation took to complete; provide the average measurement within the measurement interval + * + */ + @JsonProperty("diskTimeReadAvg") + public void setDiskTimeReadAvg(Double diskTimeReadAvg) { + this.diskTimeReadAvg = diskTimeReadAvg; + } + + /** + * milliseconds a read operation took to complete; provide the last measurement within the measurement interval + * + */ + @JsonProperty("diskTimeReadLast") + public Double getDiskTimeReadLast() { + return diskTimeReadLast; + } + + /** + * milliseconds a read operation took to complete; provide the last measurement within the measurement interval + * + */ + @JsonProperty("diskTimeReadLast") + public void setDiskTimeReadLast(Double diskTimeReadLast) { + this.diskTimeReadLast = diskTimeReadLast; + } + + /** + * milliseconds a read operation took to complete; provide the maximum measurement within the measurement interval + * + */ + @JsonProperty("diskTimeReadMax") + public Double getDiskTimeReadMax() { + return diskTimeReadMax; + } + + /** + * milliseconds a read operation took to complete; provide the maximum measurement within the measurement interval + * + */ + @JsonProperty("diskTimeReadMax") + public void setDiskTimeReadMax(Double diskTimeReadMax) { + this.diskTimeReadMax = diskTimeReadMax; + } + + /** + * milliseconds a read operation took to complete; provide the minimum measurement within the measurement interval + * + */ + @JsonProperty("diskTimeReadMin") + public Double getDiskTimeReadMin() { + return diskTimeReadMin; + } + + /** + * milliseconds a read operation took to complete; provide the minimum measurement within the measurement interval + * + */ + @JsonProperty("diskTimeReadMin") + public void setDiskTimeReadMin(Double diskTimeReadMin) { + this.diskTimeReadMin = diskTimeReadMin; + } + + /** + * milliseconds a write operation took to complete; provide the average measurement within the measurement interval + * + */ + @JsonProperty("diskTimeWriteAvg") + public Double getDiskTimeWriteAvg() { + return diskTimeWriteAvg; + } + + /** + * milliseconds a write operation took to complete; provide the average measurement within the measurement interval + * + */ + @JsonProperty("diskTimeWriteAvg") + public void setDiskTimeWriteAvg(Double diskTimeWriteAvg) { + this.diskTimeWriteAvg = diskTimeWriteAvg; + } + + /** + * milliseconds a write operation took to complete; provide the last measurement within the measurement interval + * + */ + @JsonProperty("diskTimeWriteLast") + public Double getDiskTimeWriteLast() { + return diskTimeWriteLast; + } + + /** + * milliseconds a write operation took to complete; provide the last measurement within the measurement interval + * + */ + @JsonProperty("diskTimeWriteLast") + public void setDiskTimeWriteLast(Double diskTimeWriteLast) { + this.diskTimeWriteLast = diskTimeWriteLast; + } + + /** + * milliseconds a write operation took to complete; provide the maximum measurement within the measurement interval + * + */ + @JsonProperty("diskTimeWriteMax") + public Double getDiskTimeWriteMax() { + return diskTimeWriteMax; + } + + /** + * milliseconds a write operation took to complete; provide the maximum measurement within the measurement interval + * + */ + @JsonProperty("diskTimeWriteMax") + public void setDiskTimeWriteMax(Double diskTimeWriteMax) { + this.diskTimeWriteMax = diskTimeWriteMax; + } + + /** + * milliseconds a write operation took to complete; provide the minimum measurement within the measurement interval + * + */ + @JsonProperty("diskTimeWriteMin") + public Double getDiskTimeWriteMin() { + return diskTimeWriteMin; + } + + /** + * milliseconds a write operation took to complete; provide the minimum measurement within the measurement interval + * + */ + @JsonProperty("diskTimeWriteMin") + public void setDiskTimeWriteMin(Double diskTimeWriteMin) { + this.diskTimeWriteMin = diskTimeWriteMin; + } + + /** + * average read time from the perspective of a Guest OS: sum of the Kernel Read Latency and Physical Device Read Latency in milliseconds over the measurement interval + * + */ + @JsonProperty("diskTotalReadLatencyAvg") + public Double getDiskTotalReadLatencyAvg() { + return diskTotalReadLatencyAvg; + } + + /** + * average read time from the perspective of a Guest OS: sum of the Kernel Read Latency and Physical Device Read Latency in milliseconds over the measurement interval + * + */ + @JsonProperty("diskTotalReadLatencyAvg") + public void setDiskTotalReadLatencyAvg(Double diskTotalReadLatencyAvg) { + this.diskTotalReadLatencyAvg = diskTotalReadLatencyAvg; + } + + /** + * average write time from the perspective of a Guest OS: sum of the Kernel Write Latency and Physical Device Write Latency in milliseconds over the measurement interval + * + */ + @JsonProperty("diskTotalWriteLatencyAvg") + public Double getDiskTotalWriteLatencyAvg() { + return diskTotalWriteLatencyAvg; + } + + /** + * average write time from the perspective of a Guest OS: sum of the Kernel Write Latency and Physical Device Write Latency in milliseconds over the measurement interval + * + */ + @JsonProperty("diskTotalWriteLatencyAvg") + public void setDiskTotalWriteLatencyAvg(Double diskTotalWriteLatencyAvg) { + this.diskTotalWriteLatencyAvg = diskTotalWriteLatencyAvg; + } + + /** + * measure in ms over 1 sec of both I/O completion time and the backlog that may be accumulating; value is the average within the collection interval + * + */ + @JsonProperty("diskWeightedIoTimeAvg") + public Double getDiskWeightedIoTimeAvg() { + return diskWeightedIoTimeAvg; + } + + /** + * measure in ms over 1 sec of both I/O completion time and the backlog that may be accumulating; value is the average within the collection interval + * + */ + @JsonProperty("diskWeightedIoTimeAvg") + public void setDiskWeightedIoTimeAvg(Double diskWeightedIoTimeAvg) { + this.diskWeightedIoTimeAvg = diskWeightedIoTimeAvg; + } + + /** + * measure in ms over 1 sec of both I/O completion time and the backlog that may be accumulating; value is the last within the collection interval + * + */ + @JsonProperty("diskWeightedIoTimeLast") + public Double getDiskWeightedIoTimeLast() { + return diskWeightedIoTimeLast; + } + + /** + * measure in ms over 1 sec of both I/O completion time and the backlog that may be accumulating; value is the last within the collection interval + * + */ + @JsonProperty("diskWeightedIoTimeLast") + public void setDiskWeightedIoTimeLast(Double diskWeightedIoTimeLast) { + this.diskWeightedIoTimeLast = diskWeightedIoTimeLast; + } + + /** + * measure in ms over 1 sec of both I/O completion time and the backlog that may be accumulating; value is the maximum within the collection interval + * + */ + @JsonProperty("diskWeightedIoTimeMax") + public Double getDiskWeightedIoTimeMax() { + return diskWeightedIoTimeMax; + } + + /** + * measure in ms over 1 sec of both I/O completion time and the backlog that may be accumulating; value is the maximum within the collection interval + * + */ + @JsonProperty("diskWeightedIoTimeMax") + public void setDiskWeightedIoTimeMax(Double diskWeightedIoTimeMax) { + this.diskWeightedIoTimeMax = diskWeightedIoTimeMax; + } + + /** + * measure in ms over 1 sec of both I/O completion time and the backlog that may be accumulating; value is the minimum within the collection interval + * + */ + @JsonProperty("diskWeightedIoTimeMin") + public Double getDiskWeightedIoTimeMin() { + return diskWeightedIoTimeMin; + } + + /** + * measure in ms over 1 sec of both I/O completion time and the backlog that may be accumulating; value is the minimum within the collection interval + * + */ + @JsonProperty("diskWeightedIoTimeMin") + public void setDiskWeightedIoTimeMin(Double diskWeightedIoTimeMin) { + this.diskWeightedIoTimeMin = diskWeightedIoTimeMin; + } + + /** + * average number of write commands issued per second to the disk over the measurementInterval + * + */ + @JsonProperty("diskWriteCommandsAvg") + public Double getDiskWriteCommandsAvg() { + return diskWriteCommandsAvg; + } + + /** + * average number of write commands issued per second to the disk over the measurementInterval + * + */ + @JsonProperty("diskWriteCommandsAvg") + public void setDiskWriteCommandsAvg(Double diskWriteCommandsAvg) { + this.diskWriteCommandsAvg = diskWriteCommandsAvg; + } + + @Override + public String toString() { + return ToStringBuilder.reflectionToString(this); + } + + @Override + public int hashCode() { + return new HashCodeBuilder().append(diskBusResets).append(diskCommandsAborted).append(diskCommandsAvg).append(diskFlushRequests).append(diskFlushTime).append(diskIdentifier).append(diskIoTimeAvg).append(diskIoTimeLast).append(diskIoTimeMax).append(diskIoTimeMin).append(diskMergedReadAvg).append(diskMergedReadLast).append(diskMergedReadMax).append(diskMergedReadMin).append(diskMergedWriteAvg).append(diskMergedWriteLast).append(diskMergedWriteMax).append(diskMergedWriteMin).append(diskOctetsReadAvg).append(diskOctetsReadLast).append(diskOctetsReadMax).append(diskOctetsReadMin).append(diskOctetsWriteAvg).append(diskOctetsWriteLast).append(diskOctetsWriteMax).append(diskOctetsWriteMin).append(diskOpsReadAvg).append(diskOpsReadLast).append(diskOpsReadMax).append(diskOpsReadMin).append(diskOpsWriteAvg).append(diskOpsWriteLast).append(diskOpsWriteMax).append(diskOpsWriteMin).append(diskPendingOperationsAvg).append(diskPendingOperationsLast).append(diskPendingOperationsMax).append(diskPendingOperationsMin).append(diskReadCommandsAvg).append(diskTime).append(diskTimeReadAvg).append(diskTimeReadLast).append(diskTimeReadMax).append(diskTimeReadMin).append(diskTimeWriteAvg).append(diskTimeWriteLast).append(diskTimeWriteMax).append(diskTimeWriteMin).append(diskTotalReadLatencyAvg).append(diskTotalWriteLatencyAvg).append(diskWeightedIoTimeAvg).append(diskWeightedIoTimeLast).append(diskWeightedIoTimeMax).append(diskWeightedIoTimeMin).append(diskWriteCommandsAvg).toHashCode(); + } + + @Override + public boolean equals(Object other) { + if (other == this) { + return true; + } + if ((other instanceof DiskUsageArray) == false) { + return false; + } + DiskUsageArray rhs = ((DiskUsageArray) other); + return new EqualsBuilder().append(diskBusResets, rhs.diskBusResets).append(diskCommandsAborted, rhs.diskCommandsAborted).append(diskCommandsAvg, rhs.diskCommandsAvg).append(diskFlushRequests, rhs.diskFlushRequests).append(diskFlushTime, rhs.diskFlushTime).append(diskIdentifier, rhs.diskIdentifier).append(diskIoTimeAvg, rhs.diskIoTimeAvg).append(diskIoTimeLast, rhs.diskIoTimeLast).append(diskIoTimeMax, rhs.diskIoTimeMax).append(diskIoTimeMin, rhs.diskIoTimeMin).append(diskMergedReadAvg, rhs.diskMergedReadAvg).append(diskMergedReadLast, rhs.diskMergedReadLast).append(diskMergedReadMax, rhs.diskMergedReadMax).append(diskMergedReadMin, rhs.diskMergedReadMin).append(diskMergedWriteAvg, rhs.diskMergedWriteAvg).append(diskMergedWriteLast, rhs.diskMergedWriteLast).append(diskMergedWriteMax, rhs.diskMergedWriteMax).append(diskMergedWriteMin, rhs.diskMergedWriteMin).append(diskOctetsReadAvg, rhs.diskOctetsReadAvg).append(diskOctetsReadLast, rhs.diskOctetsReadLast).append(diskOctetsReadMax, rhs.diskOctetsReadMax).append(diskOctetsReadMin, rhs.diskOctetsReadMin).append(diskOctetsWriteAvg, rhs.diskOctetsWriteAvg).append(diskOctetsWriteLast, rhs.diskOctetsWriteLast).append(diskOctetsWriteMax, rhs.diskOctetsWriteMax).append(diskOctetsWriteMin, rhs.diskOctetsWriteMin).append(diskOpsReadAvg, rhs.diskOpsReadAvg).append(diskOpsReadLast, rhs.diskOpsReadLast).append(diskOpsReadMax, rhs.diskOpsReadMax).append(diskOpsReadMin, rhs.diskOpsReadMin).append(diskOpsWriteAvg, rhs.diskOpsWriteAvg).append(diskOpsWriteLast, rhs.diskOpsWriteLast).append(diskOpsWriteMax, rhs.diskOpsWriteMax).append(diskOpsWriteMin, rhs.diskOpsWriteMin).append(diskPendingOperationsAvg, rhs.diskPendingOperationsAvg).append(diskPendingOperationsLast, rhs.diskPendingOperationsLast).append(diskPendingOperationsMax, rhs.diskPendingOperationsMax).append(diskPendingOperationsMin, rhs.diskPendingOperationsMin).append(diskReadCommandsAvg, rhs.diskReadCommandsAvg).append(diskTime, rhs.diskTime).append(diskTimeReadAvg, rhs.diskTimeReadAvg).append(diskTimeReadLast, rhs.diskTimeReadLast).append(diskTimeReadMax, rhs.diskTimeReadMax).append(diskTimeReadMin, rhs.diskTimeReadMin).append(diskTimeWriteAvg, rhs.diskTimeWriteAvg).append(diskTimeWriteLast, rhs.diskTimeWriteLast).append(diskTimeWriteMax, rhs.diskTimeWriteMax).append(diskTimeWriteMin, rhs.diskTimeWriteMin).append(diskTotalReadLatencyAvg, rhs.diskTotalReadLatencyAvg).append(diskTotalWriteLatencyAvg, rhs.diskTotalWriteLatencyAvg).append(diskWeightedIoTimeAvg, rhs.diskWeightedIoTimeAvg).append(diskWeightedIoTimeLast, rhs.diskWeightedIoTimeLast).append(diskWeightedIoTimeMax, rhs.diskWeightedIoTimeMax).append(diskWeightedIoTimeMin, rhs.diskWeightedIoTimeMin).append(diskWriteCommandsAvg, rhs.diskWriteCommandsAvg).isEquals(); + } + +} diff --git a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/EndOfCallVqmSummaries.java b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/EndOfCallVqmSummaries.java new file mode 100644 index 0000000..6fd47fb --- /dev/null +++ b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/EndOfCallVqmSummaries.java @@ -0,0 +1,866 @@ +/* +* ============LICENSE_START======================================================= +* ONAP : DCAE +* ================================================================================ +* Copyright 2019 TechMahindra +*================================================================================= +* 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========================================================= +*/ +package org.onap.dcaegen2.ves.domain.ves70; + +import java.util.HashMap; +import java.util.Map; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyDescription; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; +import org.apache.commons.lang.builder.EqualsBuilder; +import org.apache.commons.lang.builder.HashCodeBuilder; +import org.apache.commons.lang.builder.ToStringBuilder; + + +/** + * provides end of call voice quality metrics + * + */ +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonPropertyOrder({ + "adjacencyName", + "endpointAverageJitter", + "endpointDescription", + "endpointMaxJitter", + "endpointRtpOctetsDiscarded", + "endpointRtpOctetsLost", + "endpointRtpOctetsReceived", + "endpointRtpOctetsSent", + "endpointRtpPacketsDiscarded", + "endpointRtpPacketsLost", + "endpointRtpPacketsReceived", + "endpointRtpPacketsSent", + "localAverageJitter", + "localAverageJitterBufferDelay", + "localMaxJitter", + "localMaxJitterBufferDelay", + "localRtpOctetsDiscarded", + "localRtpOctetsLost", + "localRtpOctetsReceived", + "localRtpOctetsSent", + "localRtpPacketsDiscarded", + "localRtpPacketsLost", + "localRtpPacketsReceived", + "localRtpPacketsSent", + "mosCqe", + "oneWayDelay", + "packetLossPercent", + "rFactor", + "roundTripDelay" +}) +public class EndOfCallVqmSummaries { + + /** + * adjacency name + * (Required) + * + */ + @JsonProperty("adjacencyName") + @JsonPropertyDescription(" adjacency name") + private String adjacencyName; + /** + * endpoint average jitter + * + */ + @JsonProperty("endpointAverageJitter") + @JsonPropertyDescription("endpoint average jitter") + private Double endpointAverageJitter; + /** + * either Caller or Callee + * (Required) + * + */ + @JsonProperty("endpointDescription") + @JsonPropertyDescription("either Caller or Callee") + private EndOfCallVqmSummaries.EndpointDescription endpointDescription; + /** + * endpoint maximum jitter + * + */ + @JsonProperty("endpointMaxJitter") + @JsonPropertyDescription("endpoint maximum jitter") + private Double endpointMaxJitter; + /** + * + * + */ + @JsonProperty("endpointRtpOctetsDiscarded") + @JsonPropertyDescription("") + private Double endpointRtpOctetsDiscarded; + /** + * endpoint RTP octets lost + * + */ + @JsonProperty("endpointRtpOctetsLost") + @JsonPropertyDescription("endpoint RTP octets lost") + private Double endpointRtpOctetsLost; + /** + * + * + */ + @JsonProperty("endpointRtpOctetsReceived") + @JsonPropertyDescription("") + private Double endpointRtpOctetsReceived; + /** + * + * + */ + @JsonProperty("endpointRtpOctetsSent") + @JsonPropertyDescription("") + private Double endpointRtpOctetsSent; + /** + * + * + */ + @JsonProperty("endpointRtpPacketsDiscarded") + @JsonPropertyDescription("") + private Double endpointRtpPacketsDiscarded; + /** + * endpoint RTP packets lost + * + */ + @JsonProperty("endpointRtpPacketsLost") + @JsonPropertyDescription("endpoint RTP packets lost") + private Double endpointRtpPacketsLost; + /** + * + * + */ + @JsonProperty("endpointRtpPacketsReceived") + @JsonPropertyDescription("") + private Double endpointRtpPacketsReceived; + /** + * + * + */ + @JsonProperty("endpointRtpPacketsSent") + @JsonPropertyDescription("") + private Double endpointRtpPacketsSent; + /** + * Local average jitter + * + */ + @JsonProperty("localAverageJitter") + @JsonPropertyDescription("Local average jitter") + private Double localAverageJitter; + /** + * Local average jitter delay + * + */ + @JsonProperty("localAverageJitterBufferDelay") + @JsonPropertyDescription("Local average jitter delay") + private Double localAverageJitterBufferDelay; + /** + * Local maximum jitter + * + */ + @JsonProperty("localMaxJitter") + @JsonPropertyDescription("Local maximum jitter") + private Double localMaxJitter; + /** + * Local maximum jitter delay + * + */ + @JsonProperty("localMaxJitterBufferDelay") + @JsonPropertyDescription("Local maximum jitter delay") + private Double localMaxJitterBufferDelay; + /** + * + * + */ + @JsonProperty("localRtpOctetsDiscarded") + @JsonPropertyDescription("") + private Double localRtpOctetsDiscarded; + /** + * Local RTP octets lost + * + */ + @JsonProperty("localRtpOctetsLost") + @JsonPropertyDescription("Local RTP octets lost") + private Double localRtpOctetsLost; + /** + * + * + */ + @JsonProperty("localRtpOctetsReceived") + @JsonPropertyDescription("") + private Double localRtpOctetsReceived; + /** + * + * + */ + @JsonProperty("localRtpOctetsSent") + @JsonPropertyDescription("") + private Double localRtpOctetsSent; + /** + * + * + */ + @JsonProperty("localRtpPacketsDiscarded") + @JsonPropertyDescription("") + private Double localRtpPacketsDiscarded; + /** + * Local RTP packets lost + * + */ + @JsonProperty("localRtpPacketsLost") + @JsonPropertyDescription("Local RTP packets lost") + private Double localRtpPacketsLost; + /** + * + * + */ + @JsonProperty("localRtpPacketsReceived") + @JsonPropertyDescription("") + private Double localRtpPacketsReceived; + /** + * + * + */ + @JsonProperty("localRtpPacketsSent") + @JsonPropertyDescription("") + private Double localRtpPacketsSent; + /** + * 1-5 1dp + * + */ + @JsonProperty("mosCqe") + @JsonPropertyDescription("1-5 1dp") + private Double mosCqe; + /** + * one-way path delay in milliseconds + * + */ + @JsonProperty("oneWayDelay") + @JsonPropertyDescription("one-way path delay in milliseconds") + private Double oneWayDelay; + /** + * Calculated percentage packet loss based on Endpoint RTP packets lost (as reported in RTCP) and Local RTP packets sent. Direction is based on Endpoint description (Caller, Callee). Decimal (2 dp) + * + */ + @JsonProperty("packetLossPercent") + @JsonPropertyDescription("Calculated percentage packet loss based on Endpoint RTP packets lost (as reported in RTCP) and Local RTP packets sent. Direction is based on Endpoint description (Caller, Callee). Decimal (2 dp)") + private Double packetLossPercent; + /** + * 0-100 + * + */ + @JsonProperty("rFactor") + @JsonPropertyDescription("0-100") + private Double rFactor; + /** + * millisecs + * + */ + @JsonProperty("roundTripDelay") + @JsonPropertyDescription("millisecs") + private Double roundTripDelay; + + /** + * adjacency name + * (Required) + * + */ + @JsonProperty("adjacencyName") + public String getAdjacencyName() { + return adjacencyName; + } + + /** + * adjacency name + * (Required) + * + */ + @JsonProperty("adjacencyName") + public void setAdjacencyName(String adjacencyName) { + this.adjacencyName = adjacencyName; + } + + /** + * endpoint average jitter + * + */ + @JsonProperty("endpointAverageJitter") + public Double getEndpointAverageJitter() { + return endpointAverageJitter; + } + + /** + * endpoint average jitter + * + */ + @JsonProperty("endpointAverageJitter") + public void setEndpointAverageJitter(Double endpointAverageJitter) { + this.endpointAverageJitter = endpointAverageJitter; + } + + /** + * either Caller or Callee + * (Required) + * + */ + @JsonProperty("endpointDescription") + public EndOfCallVqmSummaries.EndpointDescription getEndpointDescription() { + return endpointDescription; + } + + /** + * either Caller or Callee + * (Required) + * + */ + @JsonProperty("endpointDescription") + public void setEndpointDescription(EndOfCallVqmSummaries.EndpointDescription endpointDescription) { + this.endpointDescription = endpointDescription; + } + + /** + * endpoint maximum jitter + * + */ + @JsonProperty("endpointMaxJitter") + public Double getEndpointMaxJitter() { + return endpointMaxJitter; + } + + /** + * endpoint maximum jitter + * + */ + @JsonProperty("endpointMaxJitter") + public void setEndpointMaxJitter(Double endpointMaxJitter) { + this.endpointMaxJitter = endpointMaxJitter; + } + + /** + * + * + */ + @JsonProperty("endpointRtpOctetsDiscarded") + public Double getEndpointRtpOctetsDiscarded() { + return endpointRtpOctetsDiscarded; + } + + /** + * + * + */ + @JsonProperty("endpointRtpOctetsDiscarded") + public void setEndpointRtpOctetsDiscarded(Double endpointRtpOctetsDiscarded) { + this.endpointRtpOctetsDiscarded = endpointRtpOctetsDiscarded; + } + + /** + * endpoint RTP octets lost + * + */ + @JsonProperty("endpointRtpOctetsLost") + public Double getEndpointRtpOctetsLost() { + return endpointRtpOctetsLost; + } + + /** + * endpoint RTP octets lost + * + */ + @JsonProperty("endpointRtpOctetsLost") + public void setEndpointRtpOctetsLost(Double endpointRtpOctetsLost) { + this.endpointRtpOctetsLost = endpointRtpOctetsLost; + } + + /** + * + * + */ + @JsonProperty("endpointRtpOctetsReceived") + public Double getEndpointRtpOctetsReceived() { + return endpointRtpOctetsReceived; + } + + /** + * + * + */ + @JsonProperty("endpointRtpOctetsReceived") + public void setEndpointRtpOctetsReceived(Double endpointRtpOctetsReceived) { + this.endpointRtpOctetsReceived = endpointRtpOctetsReceived; + } + + /** + * + * + */ + @JsonProperty("endpointRtpOctetsSent") + public Double getEndpointRtpOctetsSent() { + return endpointRtpOctetsSent; + } + + /** + * + * + */ + @JsonProperty("endpointRtpOctetsSent") + public void setEndpointRtpOctetsSent(Double endpointRtpOctetsSent) { + this.endpointRtpOctetsSent = endpointRtpOctetsSent; + } + + /** + * + * + */ + @JsonProperty("endpointRtpPacketsDiscarded") + public Double getEndpointRtpPacketsDiscarded() { + return endpointRtpPacketsDiscarded; + } + + /** + * + * + */ + @JsonProperty("endpointRtpPacketsDiscarded") + public void setEndpointRtpPacketsDiscarded(Double endpointRtpPacketsDiscarded) { + this.endpointRtpPacketsDiscarded = endpointRtpPacketsDiscarded; + } + + /** + * endpoint RTP packets lost + * + */ + @JsonProperty("endpointRtpPacketsLost") + public Double getEndpointRtpPacketsLost() { + return endpointRtpPacketsLost; + } + + /** + * endpoint RTP packets lost + * + */ + @JsonProperty("endpointRtpPacketsLost") + public void setEndpointRtpPacketsLost(Double endpointRtpPacketsLost) { + this.endpointRtpPacketsLost = endpointRtpPacketsLost; + } + + /** + * + * + */ + @JsonProperty("endpointRtpPacketsReceived") + public Double getEndpointRtpPacketsReceived() { + return endpointRtpPacketsReceived; + } + + /** + * + * + */ + @JsonProperty("endpointRtpPacketsReceived") + public void setEndpointRtpPacketsReceived(Double endpointRtpPacketsReceived) { + this.endpointRtpPacketsReceived = endpointRtpPacketsReceived; + } + + /** + * + * + */ + @JsonProperty("endpointRtpPacketsSent") + public Double getEndpointRtpPacketsSent() { + return endpointRtpPacketsSent; + } + + /** + * + * + */ + @JsonProperty("endpointRtpPacketsSent") + public void setEndpointRtpPacketsSent(Double endpointRtpPacketsSent) { + this.endpointRtpPacketsSent = endpointRtpPacketsSent; + } + + /** + * Local average jitter + * + */ + @JsonProperty("localAverageJitter") + public Double getLocalAverageJitter() { + return localAverageJitter; + } + + /** + * Local average jitter + * + */ + @JsonProperty("localAverageJitter") + public void setLocalAverageJitter(Double localAverageJitter) { + this.localAverageJitter = localAverageJitter; + } + + /** + * Local average jitter delay + * + */ + @JsonProperty("localAverageJitterBufferDelay") + public Double getLocalAverageJitterBufferDelay() { + return localAverageJitterBufferDelay; + } + + /** + * Local average jitter delay + * + */ + @JsonProperty("localAverageJitterBufferDelay") + public void setLocalAverageJitterBufferDelay(Double localAverageJitterBufferDelay) { + this.localAverageJitterBufferDelay = localAverageJitterBufferDelay; + } + + /** + * Local maximum jitter + * + */ + @JsonProperty("localMaxJitter") + public Double getLocalMaxJitter() { + return localMaxJitter; + } + + /** + * Local maximum jitter + * + */ + @JsonProperty("localMaxJitter") + public void setLocalMaxJitter(Double localMaxJitter) { + this.localMaxJitter = localMaxJitter; + } + + /** + * Local maximum jitter delay + * + */ + @JsonProperty("localMaxJitterBufferDelay") + public Double getLocalMaxJitterBufferDelay() { + return localMaxJitterBufferDelay; + } + + /** + * Local maximum jitter delay + * + */ + @JsonProperty("localMaxJitterBufferDelay") + public void setLocalMaxJitterBufferDelay(Double localMaxJitterBufferDelay) { + this.localMaxJitterBufferDelay = localMaxJitterBufferDelay; + } + + /** + * + * + */ + @JsonProperty("localRtpOctetsDiscarded") + public Double getLocalRtpOctetsDiscarded() { + return localRtpOctetsDiscarded; + } + + /** + * + * + */ + @JsonProperty("localRtpOctetsDiscarded") + public void setLocalRtpOctetsDiscarded(Double localRtpOctetsDiscarded) { + this.localRtpOctetsDiscarded = localRtpOctetsDiscarded; + } + + /** + * Local RTP octets lost + * + */ + @JsonProperty("localRtpOctetsLost") + public Double getLocalRtpOctetsLost() { + return localRtpOctetsLost; + } + + /** + * Local RTP octets lost + * + */ + @JsonProperty("localRtpOctetsLost") + public void setLocalRtpOctetsLost(Double localRtpOctetsLost) { + this.localRtpOctetsLost = localRtpOctetsLost; + } + + /** + * + * + */ + @JsonProperty("localRtpOctetsReceived") + public Double getLocalRtpOctetsReceived() { + return localRtpOctetsReceived; + } + + /** + * + * + */ + @JsonProperty("localRtpOctetsReceived") + public void setLocalRtpOctetsReceived(Double localRtpOctetsReceived) { + this.localRtpOctetsReceived = localRtpOctetsReceived; + } + + /** + * + * + */ + @JsonProperty("localRtpOctetsSent") + public Double getLocalRtpOctetsSent() { + return localRtpOctetsSent; + } + + /** + * + * + */ + @JsonProperty("localRtpOctetsSent") + public void setLocalRtpOctetsSent(Double localRtpOctetsSent) { + this.localRtpOctetsSent = localRtpOctetsSent; + } + + /** + * + * + */ + @JsonProperty("localRtpPacketsDiscarded") + public Double getLocalRtpPacketsDiscarded() { + return localRtpPacketsDiscarded; + } + + /** + * + * + */ + @JsonProperty("localRtpPacketsDiscarded") + public void setLocalRtpPacketsDiscarded(Double localRtpPacketsDiscarded) { + this.localRtpPacketsDiscarded = localRtpPacketsDiscarded; + } + + /** + * Local RTP packets lost + * + */ + @JsonProperty("localRtpPacketsLost") + public Double getLocalRtpPacketsLost() { + return localRtpPacketsLost; + } + + /** + * Local RTP packets lost + * + */ + @JsonProperty("localRtpPacketsLost") + public void setLocalRtpPacketsLost(Double localRtpPacketsLost) { + this.localRtpPacketsLost = localRtpPacketsLost; + } + + /** + * + * + */ + @JsonProperty("localRtpPacketsReceived") + public Double getLocalRtpPacketsReceived() { + return localRtpPacketsReceived; + } + + /** + * + * + */ + @JsonProperty("localRtpPacketsReceived") + public void setLocalRtpPacketsReceived(Double localRtpPacketsReceived) { + this.localRtpPacketsReceived = localRtpPacketsReceived; + } + + /** + * + * + */ + @JsonProperty("localRtpPacketsSent") + public Double getLocalRtpPacketsSent() { + return localRtpPacketsSent; + } + + /** + * + * + */ + @JsonProperty("localRtpPacketsSent") + public void setLocalRtpPacketsSent(Double localRtpPacketsSent) { + this.localRtpPacketsSent = localRtpPacketsSent; + } + + /** + * 1-5 1dp + * + */ + @JsonProperty("mosCqe") + public Double getMosCqe() { + return mosCqe; + } + + /** + * 1-5 1dp + * + */ + @JsonProperty("mosCqe") + public void setMosCqe(Double mosCqe) { + this.mosCqe = mosCqe; + } + + /** + * one-way path delay in milliseconds + * + */ + @JsonProperty("oneWayDelay") + public Double getOneWayDelay() { + return oneWayDelay; + } + + /** + * one-way path delay in milliseconds + * + */ + @JsonProperty("oneWayDelay") + public void setOneWayDelay(Double oneWayDelay) { + this.oneWayDelay = oneWayDelay; + } + + /** + * Calculated percentage packet loss based on Endpoint RTP packets lost (as reported in RTCP) and Local RTP packets sent. Direction is based on Endpoint description (Caller, Callee). Decimal (2 dp) + * + */ + @JsonProperty("packetLossPercent") + public Double getPacketLossPercent() { + return packetLossPercent; + } + + /** + * Calculated percentage packet loss based on Endpoint RTP packets lost (as reported in RTCP) and Local RTP packets sent. Direction is based on Endpoint description (Caller, Callee). Decimal (2 dp) + * + */ + @JsonProperty("packetLossPercent") + public void setPacketLossPercent(Double packetLossPercent) { + this.packetLossPercent = packetLossPercent; + } + + /** + * 0-100 + * + */ + @JsonProperty("rFactor") + public Double getRFactor() { + return rFactor; + } + + /** + * 0-100 + * + */ + @JsonProperty("rFactor") + public void setRFactor(Double rFactor) { + this.rFactor = rFactor; + } + + /** + * millisecs + * + */ + @JsonProperty("roundTripDelay") + public Double getRoundTripDelay() { + return roundTripDelay; + } + + /** + * millisecs + * + */ + @JsonProperty("roundTripDelay") + public void setRoundTripDelay(Double roundTripDelay) { + this.roundTripDelay = roundTripDelay; + } + + @Override + public String toString() { + return ToStringBuilder.reflectionToString(this); + } + + @Override + public int hashCode() { + return new HashCodeBuilder().append(adjacencyName).append(endpointAverageJitter).append(endpointDescription).append(endpointMaxJitter).append(endpointRtpOctetsDiscarded).append(endpointRtpOctetsLost).append(endpointRtpOctetsReceived).append(endpointRtpOctetsSent).append(endpointRtpPacketsDiscarded).append(endpointRtpPacketsLost).append(endpointRtpPacketsReceived).append(endpointRtpPacketsSent).append(localAverageJitter).append(localAverageJitterBufferDelay).append(localMaxJitter).append(localMaxJitterBufferDelay).append(localRtpOctetsDiscarded).append(localRtpOctetsLost).append(localRtpOctetsReceived).append(localRtpOctetsSent).append(localRtpPacketsDiscarded).append(localRtpPacketsLost).append(localRtpPacketsReceived).append(localRtpPacketsSent).append(mosCqe).append(oneWayDelay).append(packetLossPercent).append(rFactor).append(roundTripDelay).toHashCode(); + } + + @Override + public boolean equals(Object other) { + if (other == this) { + return true; + } + if ((other instanceof EndOfCallVqmSummaries) == false) { + return false; + } + EndOfCallVqmSummaries rhs = ((EndOfCallVqmSummaries) other); + return new EqualsBuilder().append(adjacencyName, rhs.adjacencyName).append(endpointAverageJitter, rhs.endpointAverageJitter).append(endpointDescription, rhs.endpointDescription).append(endpointMaxJitter, rhs.endpointMaxJitter).append(endpointRtpOctetsDiscarded, rhs.endpointRtpOctetsDiscarded).append(endpointRtpOctetsLost, rhs.endpointRtpOctetsLost).append(endpointRtpOctetsReceived, rhs.endpointRtpOctetsReceived).append(endpointRtpOctetsSent, rhs.endpointRtpOctetsSent).append(endpointRtpPacketsDiscarded, rhs.endpointRtpPacketsDiscarded).append(endpointRtpPacketsLost, rhs.endpointRtpPacketsLost).append(endpointRtpPacketsReceived, rhs.endpointRtpPacketsReceived).append(endpointRtpPacketsSent, rhs.endpointRtpPacketsSent).append(localAverageJitter, rhs.localAverageJitter).append(localAverageJitterBufferDelay, rhs.localAverageJitterBufferDelay).append(localMaxJitter, rhs.localMaxJitter).append(localMaxJitterBufferDelay, rhs.localMaxJitterBufferDelay).append(localRtpOctetsDiscarded, rhs.localRtpOctetsDiscarded).append(localRtpOctetsLost, rhs.localRtpOctetsLost).append(localRtpOctetsReceived, rhs.localRtpOctetsReceived).append(localRtpOctetsSent, rhs.localRtpOctetsSent).append(localRtpPacketsDiscarded, rhs.localRtpPacketsDiscarded).append(localRtpPacketsLost, rhs.localRtpPacketsLost).append(localRtpPacketsReceived, rhs.localRtpPacketsReceived).append(localRtpPacketsSent, rhs.localRtpPacketsSent).append(mosCqe, rhs.mosCqe).append(oneWayDelay, rhs.oneWayDelay).append(packetLossPercent, rhs.packetLossPercent).append(rFactor, rhs.rFactor).append(roundTripDelay, rhs.roundTripDelay).isEquals(); + } + + public enum EndpointDescription { + + CALLER("Caller"), + CALLEE("Callee"); + private final String value; + private final static Map CONSTANTS = new HashMap(); + + static { + for (EndOfCallVqmSummaries.EndpointDescription c: values()) { + CONSTANTS.put(c.value, c); + } + } + + private EndpointDescription(String value) { + this.value = value; + } + + @Override + public String toString() { + return this.value; + } + + @JsonValue + public String value() { + return this.value; + } + + @JsonCreator + public static EndOfCallVqmSummaries.EndpointDescription fromValue(String value) { + EndOfCallVqmSummaries.EndpointDescription constant = CONSTANTS.get(value); + if (constant == null) { + throw new IllegalArgumentException(value); + } else { + return constant; + } + } + + } + +} diff --git a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/Event.java b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/Event.java new file mode 100644 index 0000000..83ca4f8 --- /dev/null +++ b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/Event.java @@ -0,0 +1,404 @@ +/* +* ============LICENSE_START======================================================= +* ONAP : DCAE +* ================================================================================ +* Copyright 2019 TechMahindra +*================================================================================= +* 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========================================================= +*/ +package org.onap.dcaegen2.ves.domain.ves70; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyDescription; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import org.apache.commons.lang.builder.EqualsBuilder; +import org.apache.commons.lang.builder.HashCodeBuilder; +import org.apache.commons.lang.builder.ToStringBuilder; + + +/** + * the root level of the common event format + * + */ +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonPropertyOrder({ + "commonEventHeader", + "faultFields", + "heartbeatFields", + "measurementFields", + "mobileFlowFields", + "notificationFields", + "otherFields", + "pnfRegistrationFields", + "sipSignalingFields", + "stateChangeFields", + "syslogFields", + "thresholdCrossingAlertFields", + "voiceQualityFields" +}) +public class Event { + + /** + * fields common to all events + * (Required) + * + */ + @JsonProperty("commonEventHeader") + @JsonPropertyDescription("fields common to all events") + private CommonEventHeader commonEventHeader; + /** + * fields specific to fault events + * + */ + @JsonProperty("faultFields") + @JsonPropertyDescription("fields specific to fault events") + private FaultFields faultFields; + /** + * optional field block for fields specific to heartbeat events + * + */ + @JsonProperty("heartbeatFields") + @JsonPropertyDescription("optional field block for fields specific to heartbeat events") + private HeartbeatFields heartbeatFields; + /** + * measurement fields + * + */ + @JsonProperty("measurementFields") + @JsonPropertyDescription("measurement fields") + private MeasurementFields measurementFields; + /** + * mobileFlow fields + * + */ + @JsonProperty("mobileFlowFields") + @JsonPropertyDescription("mobileFlow fields") + private MobileFlowFields mobileFlowFields; + /** + * notification fields + * + */ + @JsonProperty("notificationFields") + @JsonPropertyDescription("notification fields") + private NotificationFields notificationFields; + /** + * fields for events belonging to the 'other' domain of the commonEventHeader domain enumeration + * + */ + @JsonProperty("otherFields") + @JsonPropertyDescription("fields for events belonging to the 'other' domain of the commonEventHeader domain enumeration") + private OtherFields otherFields; + /** + * hardware device registration fields + * + */ + @JsonProperty("pnfRegistrationFields") + @JsonPropertyDescription("hardware device registration fields") + private PnfRegistrationFields pnfRegistrationFields; + /** + * sip signaling fields + * + */ + @JsonProperty("sipSignalingFields") + @JsonPropertyDescription("sip signaling fields") + private SipSignalingFields sipSignalingFields; + /** + * stateChange fields + * + */ + @JsonProperty("stateChangeFields") + @JsonPropertyDescription("stateChange fields") + private StateChangeFields stateChangeFields; + /** + * sysLog fields + * + */ + @JsonProperty("syslogFields") + @JsonPropertyDescription("sysLog fields") + private SyslogFields syslogFields; + /** + * fields specific to threshold crossing alert events + * + */ + @JsonProperty("thresholdCrossingAlertFields") + @JsonPropertyDescription("fields specific to threshold crossing alert events") + private ThresholdCrossingAlertFields thresholdCrossingAlertFields; + /** + * provides statistics related to customer facing voice products + * + */ + @JsonProperty("voiceQualityFields") + @JsonPropertyDescription("provides statistics related to customer facing voice products") + private VoiceQualityFields voiceQualityFields; + + /** + * fields common to all events + * (Required) + * + */ + @JsonProperty("commonEventHeader") + public CommonEventHeader getCommonEventHeader() { + return commonEventHeader; + } + + /** + * fields common to all events + * (Required) + * + */ + @JsonProperty("commonEventHeader") + public void setCommonEventHeader(CommonEventHeader commonEventHeader) { + this.commonEventHeader = commonEventHeader; + } + + /** + * fields specific to fault events + * + */ + @JsonProperty("faultFields") + public FaultFields getFaultFields() { + return faultFields; + } + + /** + * fields specific to fault events + * + */ + @JsonProperty("faultFields") + public void setFaultFields(FaultFields faultFields) { + this.faultFields = faultFields; + } + + /** + * optional field block for fields specific to heartbeat events + * + */ + @JsonProperty("heartbeatFields") + public HeartbeatFields getHeartbeatFields() { + return heartbeatFields; + } + + /** + * optional field block for fields specific to heartbeat events + * + */ + @JsonProperty("heartbeatFields") + public void setHeartbeatFields(HeartbeatFields heartbeatFields) { + this.heartbeatFields = heartbeatFields; + } + + /** + * measurement fields + * + */ + @JsonProperty("measurementFields") + public MeasurementFields getMeasurementFields() { + return measurementFields; + } + + /** + * measurement fields + * + */ + @JsonProperty("measurementFields") + public void setMeasurementFields(MeasurementFields measurementFields) { + this.measurementFields = measurementFields; + } + + /** + * mobileFlow fields + * + */ + @JsonProperty("mobileFlowFields") + public MobileFlowFields getMobileFlowFields() { + return mobileFlowFields; + } + + /** + * mobileFlow fields + * + */ + @JsonProperty("mobileFlowFields") + public void setMobileFlowFields(MobileFlowFields mobileFlowFields) { + this.mobileFlowFields = mobileFlowFields; + } + + /** + * notification fields + * + */ + @JsonProperty("notificationFields") + public NotificationFields getNotificationFields() { + return notificationFields; + } + + /** + * notification fields + * + */ + @JsonProperty("notificationFields") + public void setNotificationFields(NotificationFields notificationFields) { + this.notificationFields = notificationFields; + } + + /** + * fields for events belonging to the 'other' domain of the commonEventHeader domain enumeration + * + */ + @JsonProperty("otherFields") + public OtherFields getOtherFields() { + return otherFields; + } + + /** + * fields for events belonging to the 'other' domain of the commonEventHeader domain enumeration + * + */ + @JsonProperty("otherFields") + public void setOtherFields(OtherFields otherFields) { + this.otherFields = otherFields; + } + + /** + * hardware device registration fields + * + */ + @JsonProperty("pnfRegistrationFields") + public PnfRegistrationFields getPnfRegistrationFields() { + return pnfRegistrationFields; + } + + /** + * hardware device registration fields + * + */ + @JsonProperty("pnfRegistrationFields") + public void setPnfRegistrationFields(PnfRegistrationFields pnfRegistrationFields) { + this.pnfRegistrationFields = pnfRegistrationFields; + } + + /** + * sip signaling fields + * + */ + @JsonProperty("sipSignalingFields") + public SipSignalingFields getSipSignalingFields() { + return sipSignalingFields; + } + + /** + * sip signaling fields + * + */ + @JsonProperty("sipSignalingFields") + public void setSipSignalingFields(SipSignalingFields sipSignalingFields) { + this.sipSignalingFields = sipSignalingFields; + } + + /** + * stateChange fields + * + */ + @JsonProperty("stateChangeFields") + public StateChangeFields getStateChangeFields() { + return stateChangeFields; + } + + /** + * stateChange fields + * + */ + @JsonProperty("stateChangeFields") + public void setStateChangeFields(StateChangeFields stateChangeFields) { + this.stateChangeFields = stateChangeFields; + } + + /** + * sysLog fields + * + */ + @JsonProperty("syslogFields") + public SyslogFields getSyslogFields() { + return syslogFields; + } + + /** + * sysLog fields + * + */ + @JsonProperty("syslogFields") + public void setSyslogFields(SyslogFields syslogFields) { + this.syslogFields = syslogFields; + } + + /** + * fields specific to threshold crossing alert events + * + */ + @JsonProperty("thresholdCrossingAlertFields") + public ThresholdCrossingAlertFields getThresholdCrossingAlertFields() { + return thresholdCrossingAlertFields; + } + + /** + * fields specific to threshold crossing alert events + * + */ + @JsonProperty("thresholdCrossingAlertFields") + public void setThresholdCrossingAlertFields(ThresholdCrossingAlertFields thresholdCrossingAlertFields) { + this.thresholdCrossingAlertFields = thresholdCrossingAlertFields; + } + + /** + * provides statistics related to customer facing voice products + * + */ + @JsonProperty("voiceQualityFields") + public VoiceQualityFields getVoiceQualityFields() { + return voiceQualityFields; + } + + /** + * provides statistics related to customer facing voice products + * + */ + @JsonProperty("voiceQualityFields") + public void setVoiceQualityFields(VoiceQualityFields voiceQualityFields) { + this.voiceQualityFields = voiceQualityFields; + } + + @Override + public String toString() { + return ToStringBuilder.reflectionToString(this); + } + + @Override + public int hashCode() { + return new HashCodeBuilder().append(commonEventHeader).append(faultFields).append(heartbeatFields).append(measurementFields).append(mobileFlowFields).append(notificationFields).append(otherFields).append(pnfRegistrationFields).append(sipSignalingFields).append(stateChangeFields).append(syslogFields).append(thresholdCrossingAlertFields).append(voiceQualityFields).toHashCode(); + } + + @Override + public boolean equals(Object other) { + if (other == this) { + return true; + } + if ((other instanceof Event) == false) { + return false; + } + Event rhs = ((Event) other); + return new EqualsBuilder().append(commonEventHeader, rhs.commonEventHeader).append(faultFields, rhs.faultFields).append(heartbeatFields, rhs.heartbeatFields).append(measurementFields, rhs.measurementFields).append(mobileFlowFields, rhs.mobileFlowFields).append(notificationFields, rhs.notificationFields).append(otherFields, rhs.otherFields).append(pnfRegistrationFields, rhs.pnfRegistrationFields).append(sipSignalingFields, rhs.sipSignalingFields).append(stateChangeFields, rhs.stateChangeFields).append(syslogFields, rhs.syslogFields).append(thresholdCrossingAlertFields, rhs.thresholdCrossingAlertFields).append(voiceQualityFields, rhs.voiceQualityFields).isEquals(); + } + +} diff --git a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/FaultFields.java b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/FaultFields.java new file mode 100644 index 0000000..202317f --- /dev/null +++ b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/FaultFields.java @@ -0,0 +1,441 @@ +/* +* ============LICENSE_START======================================================= +* ONAP : DCAE +* ================================================================================ +* Copyright 2019 TechMahindra +*================================================================================= +* 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========================================================= +*/ +package org.onap.dcaegen2.ves.domain.ves70; + +import java.util.HashMap; +import java.util.Map; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyDescription; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; +import org.apache.commons.lang.builder.EqualsBuilder; +import org.apache.commons.lang.builder.HashCodeBuilder; +import org.apache.commons.lang.builder.ToStringBuilder; + + +/** + * fields specific to fault events + * + */ +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonPropertyOrder({ + "alarmAdditionalInformation", + "alarmCondition", + "alarmInterfaceA", + "eventCategory", + "eventSeverity", + "eventSourceType", + "faultFieldsVersion", + "specificProblem", + "vfStatus" +}) +public class FaultFields { + + /** + * an associative array which is an array of key:value pairs + * + */ + @JsonProperty("alarmAdditionalInformation") + @JsonPropertyDescription("an associative array which is an array of key:value pairs") + private AlarmAdditionalInformation alarmAdditionalInformation; + /** + * alarm condition reported by the device + * (Required) + * + */ + @JsonProperty("alarmCondition") + @JsonPropertyDescription("alarm condition reported by the device") + private String alarmCondition; + /** + * card, port, channel or interface name of the device generating the alarm + * + */ + @JsonProperty("alarmInterfaceA") + @JsonPropertyDescription("card, port, channel or interface name of the device generating the alarm") + private String alarmInterfaceA; + /** + * Event category, for example: license, link, routing, security, signaling + * + */ + @JsonProperty("eventCategory") + @JsonPropertyDescription("Event category, for example: license, link, routing, security, signaling") + private String eventCategory; + /** + * event severity + * (Required) + * + */ + @JsonProperty("eventSeverity") + @JsonPropertyDescription("event severity") + private FaultFields.EventSeverity eventSeverity; + /** + * type of event source; examples: card, host, other, port, portThreshold, router, slotThreshold, switch, virtualMachine, virtualNetworkFunction + * (Required) + * + */ + @JsonProperty("eventSourceType") + @JsonPropertyDescription("type of event source; examples: card, host, other, port, portThreshold, router, slotThreshold, switch, virtualMachine, virtualNetworkFunction") + private String eventSourceType; + /** + * version of the faultFields block + * (Required) + * + */ + @JsonProperty("faultFieldsVersion") + @JsonPropertyDescription("version of the faultFields block") + private FaultFields.FaultFieldsVersion faultFieldsVersion; + /** + * short description of the alarm or problem + * (Required) + * + */ + @JsonProperty("specificProblem") + @JsonPropertyDescription("short description of the alarm or problem") + private String specificProblem; + /** + * virtual function status enumeration + * (Required) + * + */ + @JsonProperty("vfStatus") + @JsonPropertyDescription("virtual function status enumeration") + private FaultFields.VfStatus vfStatus; + + /** + * an associative array which is an array of key:value pairs + * + */ + @JsonProperty("alarmAdditionalInformation") + public AlarmAdditionalInformation getAlarmAdditionalInformation() { + return alarmAdditionalInformation; + } + + /** + * an associative array which is an array of key:value pairs + * + */ + @JsonProperty("alarmAdditionalInformation") + public void setAlarmAdditionalInformation(AlarmAdditionalInformation alarmAdditionalInformation) { + this.alarmAdditionalInformation = alarmAdditionalInformation; + } + + /** + * alarm condition reported by the device + * (Required) + * + */ + @JsonProperty("alarmCondition") + public String getAlarmCondition() { + return alarmCondition; + } + + /** + * alarm condition reported by the device + * (Required) + * + */ + @JsonProperty("alarmCondition") + public void setAlarmCondition(String alarmCondition) { + this.alarmCondition = alarmCondition; + } + + /** + * card, port, channel or interface name of the device generating the alarm + * + */ + @JsonProperty("alarmInterfaceA") + public String getAlarmInterfaceA() { + return alarmInterfaceA; + } + + /** + * card, port, channel or interface name of the device generating the alarm + * + */ + @JsonProperty("alarmInterfaceA") + public void setAlarmInterfaceA(String alarmInterfaceA) { + this.alarmInterfaceA = alarmInterfaceA; + } + + /** + * Event category, for example: license, link, routing, security, signaling + * + */ + @JsonProperty("eventCategory") + public String getEventCategory() { + return eventCategory; + } + + /** + * Event category, for example: license, link, routing, security, signaling + * + */ + @JsonProperty("eventCategory") + public void setEventCategory(String eventCategory) { + this.eventCategory = eventCategory; + } + + /** + * event severity + * (Required) + * + */ + @JsonProperty("eventSeverity") + public FaultFields.EventSeverity getEventSeverity() { + return eventSeverity; + } + + /** + * event severity + * (Required) + * + */ + @JsonProperty("eventSeverity") + public void setEventSeverity(FaultFields.EventSeverity eventSeverity) { + this.eventSeverity = eventSeverity; + } + + /** + * type of event source; examples: card, host, other, port, portThreshold, router, slotThreshold, switch, virtualMachine, virtualNetworkFunction + * (Required) + * + */ + @JsonProperty("eventSourceType") + public String getEventSourceType() { + return eventSourceType; + } + + /** + * type of event source; examples: card, host, other, port, portThreshold, router, slotThreshold, switch, virtualMachine, virtualNetworkFunction + * (Required) + * + */ + @JsonProperty("eventSourceType") + public void setEventSourceType(String eventSourceType) { + this.eventSourceType = eventSourceType; + } + + /** + * version of the faultFields block + * (Required) + * + */ + @JsonProperty("faultFieldsVersion") + public FaultFields.FaultFieldsVersion getFaultFieldsVersion() { + return faultFieldsVersion; + } + + /** + * version of the faultFields block + * (Required) + * + */ + @JsonProperty("faultFieldsVersion") + public void setFaultFieldsVersion(FaultFields.FaultFieldsVersion faultFieldsVersion) { + this.faultFieldsVersion = faultFieldsVersion; + } + + /** + * short description of the alarm or problem + * (Required) + * + */ + @JsonProperty("specificProblem") + public String getSpecificProblem() { + return specificProblem; + } + + /** + * short description of the alarm or problem + * (Required) + * + */ + @JsonProperty("specificProblem") + public void setSpecificProblem(String specificProblem) { + this.specificProblem = specificProblem; + } + + /** + * virtual function status enumeration + * (Required) + * + */ + @JsonProperty("vfStatus") + public FaultFields.VfStatus getVfStatus() { + return vfStatus; + } + + /** + * virtual function status enumeration + * (Required) + * + */ + @JsonProperty("vfStatus") + public void setVfStatus(FaultFields.VfStatus vfStatus) { + this.vfStatus = vfStatus; + } + + @Override + public String toString() { + return ToStringBuilder.reflectionToString(this); + } + + @Override + public int hashCode() { + return new HashCodeBuilder().append(alarmAdditionalInformation).append(alarmCondition).append(alarmInterfaceA).append(eventCategory).append(eventSeverity).append(eventSourceType).append(faultFieldsVersion).append(specificProblem).append(vfStatus).toHashCode(); + } + + @Override + public boolean equals(Object other) { + if (other == this) { + return true; + } + if ((other instanceof FaultFields) == false) { + return false; + } + FaultFields rhs = ((FaultFields) other); + return new EqualsBuilder().append(alarmAdditionalInformation, rhs.alarmAdditionalInformation).append(alarmCondition, rhs.alarmCondition).append(alarmInterfaceA, rhs.alarmInterfaceA).append(eventCategory, rhs.eventCategory).append(eventSeverity, rhs.eventSeverity).append(eventSourceType, rhs.eventSourceType).append(faultFieldsVersion, rhs.faultFieldsVersion).append(specificProblem, rhs.specificProblem).append(vfStatus, rhs.vfStatus).isEquals(); + } + + public enum EventSeverity { + + CRITICAL("CRITICAL"), + MAJOR("MAJOR"), + MINOR("MINOR"), + WARNING("WARNING"), + NORMAL("NORMAL"); + private final String value; + private final static Map CONSTANTS = new HashMap(); + + static { + for (FaultFields.EventSeverity c: values()) { + CONSTANTS.put(c.value, c); + } + } + + private EventSeverity(String value) { + this.value = value; + } + + @Override + public String toString() { + return this.value; + } + + @JsonValue + public String value() { + return this.value; + } + + @JsonCreator + public static FaultFields.EventSeverity fromValue(String value) { + FaultFields.EventSeverity constant = CONSTANTS.get(value); + if (constant == null) { + throw new IllegalArgumentException(value); + } else { + return constant; + } + } + + } + + public enum FaultFieldsVersion { + + _4_0("4.0"); + private final String value; + private final static Map CONSTANTS = new HashMap(); + + static { + for (FaultFields.FaultFieldsVersion c: values()) { + CONSTANTS.put(c.value, c); + } + } + + private FaultFieldsVersion(String value) { + this.value = value; + } + + @Override + public String toString() { + return this.value; + } + + @JsonValue + public String value() { + return this.value; + } + + @JsonCreator + public static FaultFields.FaultFieldsVersion fromValue(String value) { + FaultFields.FaultFieldsVersion constant = CONSTANTS.get(value); + if (constant == null) { + throw new IllegalArgumentException(value); + } else { + return constant; + } + } + + } + + public enum VfStatus { + + ACTIVE("Active"), + IDLE("Idle"), + PREPARING_TO_TERMINATE("Preparing to terminate"), + READY_TO_TERMINATE("Ready to terminate"), + REQUESTING_TERMINATION("Requesting termination"); + private final String value; + private final static Map CONSTANTS = new HashMap(); + + static { + for (FaultFields.VfStatus c: values()) { + CONSTANTS.put(c.value, c); + } + } + + private VfStatus(String value) { + this.value = value; + } + + @Override + public String toString() { + return this.value; + } + + @JsonValue + public String value() { + return this.value; + } + + @JsonCreator + public static FaultFields.VfStatus fromValue(String value) { + FaultFields.VfStatus constant = CONSTANTS.get(value); + if (constant == null) { + throw new IllegalArgumentException(value); + } else { + return constant; + } + } + + } + +} diff --git a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/FilesystemUsageArray.java b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/FilesystemUsageArray.java new file mode 100644 index 0000000..693bbd5 --- /dev/null +++ b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/FilesystemUsageArray.java @@ -0,0 +1,258 @@ +/* +* ============LICENSE_START======================================================= +* ONAP : DCAE +* ================================================================================ +* Copyright 2019 TechMahindra +*================================================================================= +* 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========================================================= +*/ +package org.onap.dcaegen2.ves.domain.ves70; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import org.apache.commons.lang.builder.EqualsBuilder; +import org.apache.commons.lang.builder.HashCodeBuilder; +import org.apache.commons.lang.builder.ToStringBuilder; + + +/** + * disk usage of an identified virtual machine in gigabytes and/or gigabytes per second + * + */ +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonPropertyOrder({ + "blockConfigured", + "blockIops", + "blockUsed", + "ephemeralConfigured", + "ephemeralIops", + "ephemeralUsed", + "filesystemName" +}) +public class FilesystemUsageArray { + + /** + * + * (Required) + * + */ + @JsonProperty("blockConfigured") + private Double blockConfigured; + /** + * + * (Required) + * + */ + @JsonProperty("blockIops") + private Double blockIops; + /** + * + * (Required) + * + */ + @JsonProperty("blockUsed") + private Double blockUsed; + /** + * + * (Required) + * + */ + @JsonProperty("ephemeralConfigured") + private Double ephemeralConfigured; + /** + * + * (Required) + * + */ + @JsonProperty("ephemeralIops") + private Double ephemeralIops; + /** + * + * (Required) + * + */ + @JsonProperty("ephemeralUsed") + private Double ephemeralUsed; + /** + * + * (Required) + * + */ + @JsonProperty("filesystemName") + private String filesystemName; + + /** + * + * (Required) + * + */ + @JsonProperty("blockConfigured") + public Double getBlockConfigured() { + return blockConfigured; + } + + /** + * + * (Required) + * + */ + @JsonProperty("blockConfigured") + public void setBlockConfigured(Double blockConfigured) { + this.blockConfigured = blockConfigured; + } + + /** + * + * (Required) + * + */ + @JsonProperty("blockIops") + public Double getBlockIops() { + return blockIops; + } + + /** + * + * (Required) + * + */ + @JsonProperty("blockIops") + public void setBlockIops(Double blockIops) { + this.blockIops = blockIops; + } + + /** + * + * (Required) + * + */ + @JsonProperty("blockUsed") + public Double getBlockUsed() { + return blockUsed; + } + + /** + * + * (Required) + * + */ + @JsonProperty("blockUsed") + public void setBlockUsed(Double blockUsed) { + this.blockUsed = blockUsed; + } + + /** + * + * (Required) + * + */ + @JsonProperty("ephemeralConfigured") + public Double getEphemeralConfigured() { + return ephemeralConfigured; + } + + /** + * + * (Required) + * + */ + @JsonProperty("ephemeralConfigured") + public void setEphemeralConfigured(Double ephemeralConfigured) { + this.ephemeralConfigured = ephemeralConfigured; + } + + /** + * + * (Required) + * + */ + @JsonProperty("ephemeralIops") + public Double getEphemeralIops() { + return ephemeralIops; + } + + /** + * + * (Required) + * + */ + @JsonProperty("ephemeralIops") + public void setEphemeralIops(Double ephemeralIops) { + this.ephemeralIops = ephemeralIops; + } + + /** + * + * (Required) + * + */ + @JsonProperty("ephemeralUsed") + public Double getEphemeralUsed() { + return ephemeralUsed; + } + + /** + * + * (Required) + * + */ + @JsonProperty("ephemeralUsed") + public void setEphemeralUsed(Double ephemeralUsed) { + this.ephemeralUsed = ephemeralUsed; + } + + /** + * + * (Required) + * + */ + @JsonProperty("filesystemName") + public String getFilesystemName() { + return filesystemName; + } + + /** + * + * (Required) + * + */ + @JsonProperty("filesystemName") + public void setFilesystemName(String filesystemName) { + this.filesystemName = filesystemName; + } + + @Override + public String toString() { + return ToStringBuilder.reflectionToString(this); + } + + @Override + public int hashCode() { + return new HashCodeBuilder().append(blockConfigured).append(blockIops).append(blockUsed).append(ephemeralConfigured).append(ephemeralIops).append(ephemeralUsed).append(filesystemName).toHashCode(); + } + + @Override + public boolean equals(Object other) { + if (other == this) { + return true; + } + if ((other instanceof FilesystemUsageArray) == false) { + return false; + } + FilesystemUsageArray rhs = ((FilesystemUsageArray) other); + return new EqualsBuilder().append(blockConfigured, rhs.blockConfigured).append(blockIops, rhs.blockIops).append(blockUsed, rhs.blockUsed).append(ephemeralConfigured, rhs.ephemeralConfigured).append(ephemeralIops, rhs.ephemeralIops).append(ephemeralUsed, rhs.ephemeralUsed).append(filesystemName, rhs.filesystemName).isEquals(); + } + +} diff --git a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/GtpPerFlowMetrics.java b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/GtpPerFlowMetrics.java new file mode 100644 index 0000000..c0da0e4 --- /dev/null +++ b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/GtpPerFlowMetrics.java @@ -0,0 +1,1455 @@ +/* +* ============LICENSE_START======================================================= +* ONAP : DCAE +* ================================================================================ +* Copyright 2019 TechMahindra +*================================================================================= +* 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========================================================= +*/ +package org.onap.dcaegen2.ves.domain.ves70; + +import java.util.ArrayList; +import java.util.List; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyDescription; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import org.apache.commons.lang.builder.EqualsBuilder; +import org.apache.commons.lang.builder.HashCodeBuilder; +import org.apache.commons.lang.builder.ToStringBuilder; + + +/** + * Mobility GTP Protocol per flow metrics + * + */ +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonPropertyOrder({ + "avgBitErrorRate", + "avgPacketDelayVariation", + "avgPacketLatency", + "avgReceiveThroughput", + "avgTransmitThroughput", + "durConnectionFailedStatus", + "durTunnelFailedStatus", + "flowActivatedBy", + "flowActivationEpoch", + "flowActivationMicrosec", + "flowActivationTime", + "flowDeactivatedBy", + "flowDeactivationEpoch", + "flowDeactivationMicrosec", + "flowDeactivationTime", + "flowStatus", + "gtpConnectionStatus", + "gtpTunnelStatus", + "ipTosCountList", + "ipTosList", + "largePacketRtt", + "largePacketThreshold", + "maxPacketDelayVariation", + "maxReceiveBitRate", + "maxTransmitBitRate", + "mobileQciCosCountList", + "mobileQciCosList", + "numActivationFailures", + "numBitErrors", + "numBytesReceived", + "numBytesTransmitted", + "numDroppedPackets", + "numGtpEchoFailures", + "numGtpTunnelErrors", + "numHttpErrors", + "numL7BytesReceived", + "numL7BytesTransmitted", + "numLostPackets", + "numOutOfOrderPackets", + "numPacketErrors", + "numPacketsReceivedExclRetrans", + "numPacketsReceivedInclRetrans", + "numPacketsTransmittedInclRetrans", + "numRetries", + "numTimeouts", + "numTunneledL7BytesReceived", + "roundTripTime", + "tcpFlagCountList", + "tcpFlagList", + "timeToFirstByte" +}) +public class GtpPerFlowMetrics { + + /** + * average bit error rate + * (Required) + * + */ + @JsonProperty("avgBitErrorRate") + @JsonPropertyDescription("average bit error rate") + private Double avgBitErrorRate; + /** + * Average packet delay variation or jitter in milliseconds for received packets: Average difference between the packet timestamp and time received for all pairs of consecutive packets + * (Required) + * + */ + @JsonProperty("avgPacketDelayVariation") + @JsonPropertyDescription("Average packet delay variation or jitter in milliseconds for received packets: Average difference between the packet timestamp and time received for all pairs of consecutive packets") + private Double avgPacketDelayVariation; + /** + * average delivery latency + * (Required) + * + */ + @JsonProperty("avgPacketLatency") + @JsonPropertyDescription("average delivery latency") + private Double avgPacketLatency; + /** + * average receive throughput + * (Required) + * + */ + @JsonProperty("avgReceiveThroughput") + @JsonPropertyDescription("average receive throughput") + private Double avgReceiveThroughput; + /** + * average transmit throughput + * (Required) + * + */ + @JsonProperty("avgTransmitThroughput") + @JsonPropertyDescription("average transmit throughput") + private Double avgTransmitThroughput; + /** + * duration of failed state in milliseconds, computed as the cumulative time between a failed echo request and the next following successful error request, over this reporting interval + * + */ + @JsonProperty("durConnectionFailedStatus") + @JsonPropertyDescription("duration of failed state in milliseconds, computed as the cumulative time between a failed echo request and the next following successful error request, over this reporting interval") + private Double durConnectionFailedStatus; + /** + * Duration of errored state, computed as the cumulative time between a tunnel error indicator and the next following non-errored indicator, over this reporting interval + * + */ + @JsonProperty("durTunnelFailedStatus") + @JsonPropertyDescription("Duration of errored state, computed as the cumulative time between a tunnel error indicator and the next following non-errored indicator, over this reporting interval") + private Double durTunnelFailedStatus; + /** + * Endpoint activating the flow + * + */ + @JsonProperty("flowActivatedBy") + @JsonPropertyDescription("Endpoint activating the flow") + private String flowActivatedBy; + /** + * Time the connection is activated in the flow (connection) being reported on, or transmission time of the first packet if activation time is not available + * (Required) + * + */ + @JsonProperty("flowActivationEpoch") + @JsonPropertyDescription("Time the connection is activated in the flow (connection) being reported on, or transmission time of the first packet if activation time is not available") + private Double flowActivationEpoch; + /** + * Integer microseconds for the start of the flow connection + * (Required) + * + */ + @JsonProperty("flowActivationMicrosec") + @JsonPropertyDescription("Integer microseconds for the start of the flow connection") + private Double flowActivationMicrosec; + /** + * time the connection is activated in the flow being reported on, or transmission time of the first packet if activation time is not available; with RFC 2822 compliant format: Sat, 13 Mar 2010 11:29:05 -0800 + * + */ + @JsonProperty("flowActivationTime") + @JsonPropertyDescription("time the connection is activated in the flow being reported on, or transmission time of the first packet if activation time is not available; with RFC 2822 compliant format: Sat, 13 Mar 2010 11:29:05 -0800") + private String flowActivationTime; + /** + * Endpoint deactivating the flow + * + */ + @JsonProperty("flowDeactivatedBy") + @JsonPropertyDescription("Endpoint deactivating the flow") + private String flowDeactivatedBy; + /** + * Time for the start of the flow connection, in integer UTC epoch time aka UNIX time + * (Required) + * + */ + @JsonProperty("flowDeactivationEpoch") + @JsonPropertyDescription("Time for the start of the flow connection, in integer UTC epoch time aka UNIX time") + private Double flowDeactivationEpoch; + /** + * Integer microseconds for the start of the flow connection + * (Required) + * + */ + @JsonProperty("flowDeactivationMicrosec") + @JsonPropertyDescription("Integer microseconds for the start of the flow connection") + private Double flowDeactivationMicrosec; + /** + * Transmission time of the first packet in the flow connection being reported on; with RFC 2822 compliant format: Sat, 13 Mar 2010 11:29:05 -0800 + * (Required) + * + */ + @JsonProperty("flowDeactivationTime") + @JsonPropertyDescription("Transmission time of the first packet in the flow connection being reported on; with RFC 2822 compliant format: Sat, 13 Mar 2010 11:29:05 -0800") + private String flowDeactivationTime; + /** + * connection status at reporting time as a working / inactive / failed indicator value + * (Required) + * + */ + @JsonProperty("flowStatus") + @JsonPropertyDescription("connection status at reporting time as a working / inactive / failed indicator value") + private String flowStatus; + /** + * Current connection state at reporting time + * + */ + @JsonProperty("gtpConnectionStatus") + @JsonPropertyDescription("Current connection state at reporting time") + private String gtpConnectionStatus; + /** + * Current tunnel state at reporting time + * + */ + @JsonProperty("gtpTunnelStatus") + @JsonPropertyDescription("Current tunnel state at reporting time") + private String gtpTunnelStatus; + /** + * an associative array which is an array of key:value pairs + * + */ + @JsonProperty("ipTosCountList") + @JsonPropertyDescription("an associative array which is an array of key:value pairs") + private AlarmAdditionalInformation ipTosCountList; + /** + * Array of unique IP Type-of-Service values observed in the flow where values range from '0' to '255' + * + */ + @JsonProperty("ipTosList") + @JsonPropertyDescription("Array of unique IP Type-of-Service values observed in the flow where values range from '0' to '255'") + private List ipTosList = new ArrayList(); + /** + * large packet round trip time + * + */ + @JsonProperty("largePacketRtt") + @JsonPropertyDescription("large packet round trip time") + private Double largePacketRtt; + /** + * large packet threshold being applied + * + */ + @JsonProperty("largePacketThreshold") + @JsonPropertyDescription("large packet threshold being applied") + private Double largePacketThreshold; + /** + * Maximum packet delay variation or jitter in milliseconds for received packets: Maximum of the difference between the packet timestamp and time received for all pairs of consecutive packets + * (Required) + * + */ + @JsonProperty("maxPacketDelayVariation") + @JsonPropertyDescription("Maximum packet delay variation or jitter in milliseconds for received packets: Maximum of the difference between the packet timestamp and time received for all pairs of consecutive packets") + private Double maxPacketDelayVariation; + /** + * maximum receive bit rate + * + */ + @JsonProperty("maxReceiveBitRate") + @JsonPropertyDescription("maximum receive bit rate") + private Double maxReceiveBitRate; + /** + * maximum transmit bit rate + * + */ + @JsonProperty("maxTransmitBitRate") + @JsonPropertyDescription("maximum transmit bit rate") + private Double maxTransmitBitRate; + /** + * an associative array which is an array of key:value pairs + * + */ + @JsonProperty("mobileQciCosCountList") + @JsonPropertyDescription("an associative array which is an array of key:value pairs") + private AlarmAdditionalInformation mobileQciCosCountList; + /** + * Array of unique LTE QCI or UMTS class-of-service values observed in the flow + * + */ + @JsonProperty("mobileQciCosList") + @JsonPropertyDescription("Array of unique LTE QCI or UMTS class-of-service values observed in the flow") + private List mobileQciCosList = new ArrayList(); + /** + * Number of failed activation requests, as observed by the reporting node + * (Required) + * + */ + @JsonProperty("numActivationFailures") + @JsonPropertyDescription("Number of failed activation requests, as observed by the reporting node") + private Double numActivationFailures; + /** + * number of errored bits + * (Required) + * + */ + @JsonProperty("numBitErrors") + @JsonPropertyDescription("number of errored bits") + private Double numBitErrors; + /** + * number of bytes received, including retransmissions + * (Required) + * + */ + @JsonProperty("numBytesReceived") + @JsonPropertyDescription("number of bytes received, including retransmissions") + private Double numBytesReceived; + /** + * number of bytes transmitted, including retransmissions + * (Required) + * + */ + @JsonProperty("numBytesTransmitted") + @JsonPropertyDescription("number of bytes transmitted, including retransmissions") + private Double numBytesTransmitted; + /** + * number of received packets dropped due to errors per virtual interface + * (Required) + * + */ + @JsonProperty("numDroppedPackets") + @JsonPropertyDescription("number of received packets dropped due to errors per virtual interface") + private Double numDroppedPackets; + /** + * Number of Echo request path failures where failed paths are defined in 3GPP TS 29.281 sec 7.2.1 and 3GPP TS 29.060 sec. 11.2 + * + */ + @JsonProperty("numGtpEchoFailures") + @JsonPropertyDescription("Number of Echo request path failures where failed paths are defined in 3GPP TS 29.281 sec 7.2.1 and 3GPP TS 29.060 sec. 11.2") + private Double numGtpEchoFailures; + /** + * Number of tunnel error indications where errors are defined in 3GPP TS 29.281 sec 7.3.1 and 3GPP TS 29.060 sec. 11.1 + * + */ + @JsonProperty("numGtpTunnelErrors") + @JsonPropertyDescription("Number of tunnel error indications where errors are defined in 3GPP TS 29.281 sec 7.3.1 and 3GPP TS 29.060 sec. 11.1") + private Double numGtpTunnelErrors; + /** + * Http error count + * + */ + @JsonProperty("numHttpErrors") + @JsonPropertyDescription("Http error count") + private Double numHttpErrors; + /** + * number of tunneled layer 7 bytes received, including retransmissions + * (Required) + * + */ + @JsonProperty("numL7BytesReceived") + @JsonPropertyDescription("number of tunneled layer 7 bytes received, including retransmissions") + private Double numL7BytesReceived; + /** + * number of tunneled layer 7 bytes transmitted, excluding retransmissions + * (Required) + * + */ + @JsonProperty("numL7BytesTransmitted") + @JsonPropertyDescription("number of tunneled layer 7 bytes transmitted, excluding retransmissions") + private Double numL7BytesTransmitted; + /** + * number of lost packets + * (Required) + * + */ + @JsonProperty("numLostPackets") + @JsonPropertyDescription("number of lost packets") + private Double numLostPackets; + /** + * number of out-of-order packets + * (Required) + * + */ + @JsonProperty("numOutOfOrderPackets") + @JsonPropertyDescription("number of out-of-order packets") + private Double numOutOfOrderPackets; + /** + * number of errored packets + * (Required) + * + */ + @JsonProperty("numPacketErrors") + @JsonPropertyDescription("number of errored packets") + private Double numPacketErrors; + /** + * number of packets received, excluding retransmission + * (Required) + * + */ + @JsonProperty("numPacketsReceivedExclRetrans") + @JsonPropertyDescription("number of packets received, excluding retransmission") + private Double numPacketsReceivedExclRetrans; + /** + * number of packets received, including retransmission + * (Required) + * + */ + @JsonProperty("numPacketsReceivedInclRetrans") + @JsonPropertyDescription("number of packets received, including retransmission") + private Double numPacketsReceivedInclRetrans; + /** + * number of packets transmitted, including retransmissions + * (Required) + * + */ + @JsonProperty("numPacketsTransmittedInclRetrans") + @JsonPropertyDescription("number of packets transmitted, including retransmissions") + private Double numPacketsTransmittedInclRetrans; + /** + * number of packet retries + * (Required) + * + */ + @JsonProperty("numRetries") + @JsonPropertyDescription("number of packet retries") + private Double numRetries; + /** + * number of packet timeouts + * (Required) + * + */ + @JsonProperty("numTimeouts") + @JsonPropertyDescription("number of packet timeouts") + private Double numTimeouts; + /** + * number of tunneled layer 7 bytes received, excluding retransmissions + * (Required) + * + */ + @JsonProperty("numTunneledL7BytesReceived") + @JsonPropertyDescription("number of tunneled layer 7 bytes received, excluding retransmissions") + private Double numTunneledL7BytesReceived; + /** + * round trip time + * (Required) + * + */ + @JsonProperty("roundTripTime") + @JsonPropertyDescription("round trip time") + private Double roundTripTime; + /** + * an associative array which is an array of key:value pairs + * + */ + @JsonProperty("tcpFlagCountList") + @JsonPropertyDescription("an associative array which is an array of key:value pairs") + private AlarmAdditionalInformation tcpFlagCountList; + /** + * Array of unique TCP Flags observed in the flow + * + */ + @JsonProperty("tcpFlagList") + @JsonPropertyDescription("Array of unique TCP Flags observed in the flow") + private List tcpFlagList = new ArrayList(); + /** + * Time in milliseconds between the connection activation and first byte received + * (Required) + * + */ + @JsonProperty("timeToFirstByte") + @JsonPropertyDescription("Time in milliseconds between the connection activation and first byte received") + private Double timeToFirstByte; + + /** + * average bit error rate + * (Required) + * + */ + @JsonProperty("avgBitErrorRate") + public Double getAvgBitErrorRate() { + return avgBitErrorRate; + } + + /** + * average bit error rate + * (Required) + * + */ + @JsonProperty("avgBitErrorRate") + public void setAvgBitErrorRate(Double avgBitErrorRate) { + this.avgBitErrorRate = avgBitErrorRate; + } + + /** + * Average packet delay variation or jitter in milliseconds for received packets: Average difference between the packet timestamp and time received for all pairs of consecutive packets + * (Required) + * + */ + @JsonProperty("avgPacketDelayVariation") + public Double getAvgPacketDelayVariation() { + return avgPacketDelayVariation; + } + + /** + * Average packet delay variation or jitter in milliseconds for received packets: Average difference between the packet timestamp and time received for all pairs of consecutive packets + * (Required) + * + */ + @JsonProperty("avgPacketDelayVariation") + public void setAvgPacketDelayVariation(Double avgPacketDelayVariation) { + this.avgPacketDelayVariation = avgPacketDelayVariation; + } + + /** + * average delivery latency + * (Required) + * + */ + @JsonProperty("avgPacketLatency") + public Double getAvgPacketLatency() { + return avgPacketLatency; + } + + /** + * average delivery latency + * (Required) + * + */ + @JsonProperty("avgPacketLatency") + public void setAvgPacketLatency(Double avgPacketLatency) { + this.avgPacketLatency = avgPacketLatency; + } + + /** + * average receive throughput + * (Required) + * + */ + @JsonProperty("avgReceiveThroughput") + public Double getAvgReceiveThroughput() { + return avgReceiveThroughput; + } + + /** + * average receive throughput + * (Required) + * + */ + @JsonProperty("avgReceiveThroughput") + public void setAvgReceiveThroughput(Double avgReceiveThroughput) { + this.avgReceiveThroughput = avgReceiveThroughput; + } + + /** + * average transmit throughput + * (Required) + * + */ + @JsonProperty("avgTransmitThroughput") + public Double getAvgTransmitThroughput() { + return avgTransmitThroughput; + } + + /** + * average transmit throughput + * (Required) + * + */ + @JsonProperty("avgTransmitThroughput") + public void setAvgTransmitThroughput(Double avgTransmitThroughput) { + this.avgTransmitThroughput = avgTransmitThroughput; + } + + /** + * duration of failed state in milliseconds, computed as the cumulative time between a failed echo request and the next following successful error request, over this reporting interval + * + */ + @JsonProperty("durConnectionFailedStatus") + public Double getDurConnectionFailedStatus() { + return durConnectionFailedStatus; + } + + /** + * duration of failed state in milliseconds, computed as the cumulative time between a failed echo request and the next following successful error request, over this reporting interval + * + */ + @JsonProperty("durConnectionFailedStatus") + public void setDurConnectionFailedStatus(Double durConnectionFailedStatus) { + this.durConnectionFailedStatus = durConnectionFailedStatus; + } + + /** + * Duration of errored state, computed as the cumulative time between a tunnel error indicator and the next following non-errored indicator, over this reporting interval + * + */ + @JsonProperty("durTunnelFailedStatus") + public Double getDurTunnelFailedStatus() { + return durTunnelFailedStatus; + } + + /** + * Duration of errored state, computed as the cumulative time between a tunnel error indicator and the next following non-errored indicator, over this reporting interval + * + */ + @JsonProperty("durTunnelFailedStatus") + public void setDurTunnelFailedStatus(Double durTunnelFailedStatus) { + this.durTunnelFailedStatus = durTunnelFailedStatus; + } + + /** + * Endpoint activating the flow + * + */ + @JsonProperty("flowActivatedBy") + public String getFlowActivatedBy() { + return flowActivatedBy; + } + + /** + * Endpoint activating the flow + * + */ + @JsonProperty("flowActivatedBy") + public void setFlowActivatedBy(String flowActivatedBy) { + this.flowActivatedBy = flowActivatedBy; + } + + /** + * Time the connection is activated in the flow (connection) being reported on, or transmission time of the first packet if activation time is not available + * (Required) + * + */ + @JsonProperty("flowActivationEpoch") + public Double getFlowActivationEpoch() { + return flowActivationEpoch; + } + + /** + * Time the connection is activated in the flow (connection) being reported on, or transmission time of the first packet if activation time is not available + * (Required) + * + */ + @JsonProperty("flowActivationEpoch") + public void setFlowActivationEpoch(Double flowActivationEpoch) { + this.flowActivationEpoch = flowActivationEpoch; + } + + /** + * Integer microseconds for the start of the flow connection + * (Required) + * + */ + @JsonProperty("flowActivationMicrosec") + public Double getFlowActivationMicrosec() { + return flowActivationMicrosec; + } + + /** + * Integer microseconds for the start of the flow connection + * (Required) + * + */ + @JsonProperty("flowActivationMicrosec") + public void setFlowActivationMicrosec(Double flowActivationMicrosec) { + this.flowActivationMicrosec = flowActivationMicrosec; + } + + /** + * time the connection is activated in the flow being reported on, or transmission time of the first packet if activation time is not available; with RFC 2822 compliant format: Sat, 13 Mar 2010 11:29:05 -0800 + * + */ + @JsonProperty("flowActivationTime") + public String getFlowActivationTime() { + return flowActivationTime; + } + + /** + * time the connection is activated in the flow being reported on, or transmission time of the first packet if activation time is not available; with RFC 2822 compliant format: Sat, 13 Mar 2010 11:29:05 -0800 + * + */ + @JsonProperty("flowActivationTime") + public void setFlowActivationTime(String flowActivationTime) { + this.flowActivationTime = flowActivationTime; + } + + /** + * Endpoint deactivating the flow + * + */ + @JsonProperty("flowDeactivatedBy") + public String getFlowDeactivatedBy() { + return flowDeactivatedBy; + } + + /** + * Endpoint deactivating the flow + * + */ + @JsonProperty("flowDeactivatedBy") + public void setFlowDeactivatedBy(String flowDeactivatedBy) { + this.flowDeactivatedBy = flowDeactivatedBy; + } + + /** + * Time for the start of the flow connection, in integer UTC epoch time aka UNIX time + * (Required) + * + */ + @JsonProperty("flowDeactivationEpoch") + public Double getFlowDeactivationEpoch() { + return flowDeactivationEpoch; + } + + /** + * Time for the start of the flow connection, in integer UTC epoch time aka UNIX time + * (Required) + * + */ + @JsonProperty("flowDeactivationEpoch") + public void setFlowDeactivationEpoch(Double flowDeactivationEpoch) { + this.flowDeactivationEpoch = flowDeactivationEpoch; + } + + /** + * Integer microseconds for the start of the flow connection + * (Required) + * + */ + @JsonProperty("flowDeactivationMicrosec") + public Double getFlowDeactivationMicrosec() { + return flowDeactivationMicrosec; + } + + /** + * Integer microseconds for the start of the flow connection + * (Required) + * + */ + @JsonProperty("flowDeactivationMicrosec") + public void setFlowDeactivationMicrosec(Double flowDeactivationMicrosec) { + this.flowDeactivationMicrosec = flowDeactivationMicrosec; + } + + /** + * Transmission time of the first packet in the flow connection being reported on; with RFC 2822 compliant format: Sat, 13 Mar 2010 11:29:05 -0800 + * (Required) + * + */ + @JsonProperty("flowDeactivationTime") + public String getFlowDeactivationTime() { + return flowDeactivationTime; + } + + /** + * Transmission time of the first packet in the flow connection being reported on; with RFC 2822 compliant format: Sat, 13 Mar 2010 11:29:05 -0800 + * (Required) + * + */ + @JsonProperty("flowDeactivationTime") + public void setFlowDeactivationTime(String flowDeactivationTime) { + this.flowDeactivationTime = flowDeactivationTime; + } + + /** + * connection status at reporting time as a working / inactive / failed indicator value + * (Required) + * + */ + @JsonProperty("flowStatus") + public String getFlowStatus() { + return flowStatus; + } + + /** + * connection status at reporting time as a working / inactive / failed indicator value + * (Required) + * + */ + @JsonProperty("flowStatus") + public void setFlowStatus(String flowStatus) { + this.flowStatus = flowStatus; + } + + /** + * Current connection state at reporting time + * + */ + @JsonProperty("gtpConnectionStatus") + public String getGtpConnectionStatus() { + return gtpConnectionStatus; + } + + /** + * Current connection state at reporting time + * + */ + @JsonProperty("gtpConnectionStatus") + public void setGtpConnectionStatus(String gtpConnectionStatus) { + this.gtpConnectionStatus = gtpConnectionStatus; + } + + /** + * Current tunnel state at reporting time + * + */ + @JsonProperty("gtpTunnelStatus") + public String getGtpTunnelStatus() { + return gtpTunnelStatus; + } + + /** + * Current tunnel state at reporting time + * + */ + @JsonProperty("gtpTunnelStatus") + public void setGtpTunnelStatus(String gtpTunnelStatus) { + this.gtpTunnelStatus = gtpTunnelStatus; + } + + /** + * an associative array which is an array of key:value pairs + * + */ + @JsonProperty("ipTosCountList") + public AlarmAdditionalInformation getIpTosCountList() { + return ipTosCountList; + } + + /** + * an associative array which is an array of key:value pairs + * + */ + @JsonProperty("ipTosCountList") + public void setIpTosCountList(AlarmAdditionalInformation ipTosCountList) { + this.ipTosCountList = ipTosCountList; + } + + /** + * Array of unique IP Type-of-Service values observed in the flow where values range from '0' to '255' + * + */ + @JsonProperty("ipTosList") + public List getIpTosList() { + return ipTosList; + } + + /** + * Array of unique IP Type-of-Service values observed in the flow where values range from '0' to '255' + * + */ + @JsonProperty("ipTosList") + public void setIpTosList(List ipTosList) { + this.ipTosList = ipTosList; + } + + /** + * large packet round trip time + * + */ + @JsonProperty("largePacketRtt") + public Double getLargePacketRtt() { + return largePacketRtt; + } + + /** + * large packet round trip time + * + */ + @JsonProperty("largePacketRtt") + public void setLargePacketRtt(Double largePacketRtt) { + this.largePacketRtt = largePacketRtt; + } + + /** + * large packet threshold being applied + * + */ + @JsonProperty("largePacketThreshold") + public Double getLargePacketThreshold() { + return largePacketThreshold; + } + + /** + * large packet threshold being applied + * + */ + @JsonProperty("largePacketThreshold") + public void setLargePacketThreshold(Double largePacketThreshold) { + this.largePacketThreshold = largePacketThreshold; + } + + /** + * Maximum packet delay variation or jitter in milliseconds for received packets: Maximum of the difference between the packet timestamp and time received for all pairs of consecutive packets + * (Required) + * + */ + @JsonProperty("maxPacketDelayVariation") + public Double getMaxPacketDelayVariation() { + return maxPacketDelayVariation; + } + + /** + * Maximum packet delay variation or jitter in milliseconds for received packets: Maximum of the difference between the packet timestamp and time received for all pairs of consecutive packets + * (Required) + * + */ + @JsonProperty("maxPacketDelayVariation") + public void setMaxPacketDelayVariation(Double maxPacketDelayVariation) { + this.maxPacketDelayVariation = maxPacketDelayVariation; + } + + /** + * maximum receive bit rate + * + */ + @JsonProperty("maxReceiveBitRate") + public Double getMaxReceiveBitRate() { + return maxReceiveBitRate; + } + + /** + * maximum receive bit rate + * + */ + @JsonProperty("maxReceiveBitRate") + public void setMaxReceiveBitRate(Double maxReceiveBitRate) { + this.maxReceiveBitRate = maxReceiveBitRate; + } + + /** + * maximum transmit bit rate + * + */ + @JsonProperty("maxTransmitBitRate") + public Double getMaxTransmitBitRate() { + return maxTransmitBitRate; + } + + /** + * maximum transmit bit rate + * + */ + @JsonProperty("maxTransmitBitRate") + public void setMaxTransmitBitRate(Double maxTransmitBitRate) { + this.maxTransmitBitRate = maxTransmitBitRate; + } + + /** + * an associative array which is an array of key:value pairs + * + */ + @JsonProperty("mobileQciCosCountList") + public AlarmAdditionalInformation getMobileQciCosCountList() { + return mobileQciCosCountList; + } + + /** + * an associative array which is an array of key:value pairs + * + */ + @JsonProperty("mobileQciCosCountList") + public void setMobileQciCosCountList(AlarmAdditionalInformation mobileQciCosCountList) { + this.mobileQciCosCountList = mobileQciCosCountList; + } + + /** + * Array of unique LTE QCI or UMTS class-of-service values observed in the flow + * + */ + @JsonProperty("mobileQciCosList") + public List getMobileQciCosList() { + return mobileQciCosList; + } + + /** + * Array of unique LTE QCI or UMTS class-of-service values observed in the flow + * + */ + @JsonProperty("mobileQciCosList") + public void setMobileQciCosList(List mobileQciCosList) { + this.mobileQciCosList = mobileQciCosList; + } + + /** + * Number of failed activation requests, as observed by the reporting node + * (Required) + * + */ + @JsonProperty("numActivationFailures") + public Double getNumActivationFailures() { + return numActivationFailures; + } + + /** + * Number of failed activation requests, as observed by the reporting node + * (Required) + * + */ + @JsonProperty("numActivationFailures") + public void setNumActivationFailures(Double numActivationFailures) { + this.numActivationFailures = numActivationFailures; + } + + /** + * number of errored bits + * (Required) + * + */ + @JsonProperty("numBitErrors") + public Double getNumBitErrors() { + return numBitErrors; + } + + /** + * number of errored bits + * (Required) + * + */ + @JsonProperty("numBitErrors") + public void setNumBitErrors(Double numBitErrors) { + this.numBitErrors = numBitErrors; + } + + /** + * number of bytes received, including retransmissions + * (Required) + * + */ + @JsonProperty("numBytesReceived") + public Double getNumBytesReceived() { + return numBytesReceived; + } + + /** + * number of bytes received, including retransmissions + * (Required) + * + */ + @JsonProperty("numBytesReceived") + public void setNumBytesReceived(Double numBytesReceived) { + this.numBytesReceived = numBytesReceived; + } + + /** + * number of bytes transmitted, including retransmissions + * (Required) + * + */ + @JsonProperty("numBytesTransmitted") + public Double getNumBytesTransmitted() { + return numBytesTransmitted; + } + + /** + * number of bytes transmitted, including retransmissions + * (Required) + * + */ + @JsonProperty("numBytesTransmitted") + public void setNumBytesTransmitted(Double numBytesTransmitted) { + this.numBytesTransmitted = numBytesTransmitted; + } + + /** + * number of received packets dropped due to errors per virtual interface + * (Required) + * + */ + @JsonProperty("numDroppedPackets") + public Double getNumDroppedPackets() { + return numDroppedPackets; + } + + /** + * number of received packets dropped due to errors per virtual interface + * (Required) + * + */ + @JsonProperty("numDroppedPackets") + public void setNumDroppedPackets(Double numDroppedPackets) { + this.numDroppedPackets = numDroppedPackets; + } + + /** + * Number of Echo request path failures where failed paths are defined in 3GPP TS 29.281 sec 7.2.1 and 3GPP TS 29.060 sec. 11.2 + * + */ + @JsonProperty("numGtpEchoFailures") + public Double getNumGtpEchoFailures() { + return numGtpEchoFailures; + } + + /** + * Number of Echo request path failures where failed paths are defined in 3GPP TS 29.281 sec 7.2.1 and 3GPP TS 29.060 sec. 11.2 + * + */ + @JsonProperty("numGtpEchoFailures") + public void setNumGtpEchoFailures(Double numGtpEchoFailures) { + this.numGtpEchoFailures = numGtpEchoFailures; + } + + /** + * Number of tunnel error indications where errors are defined in 3GPP TS 29.281 sec 7.3.1 and 3GPP TS 29.060 sec. 11.1 + * + */ + @JsonProperty("numGtpTunnelErrors") + public Double getNumGtpTunnelErrors() { + return numGtpTunnelErrors; + } + + /** + * Number of tunnel error indications where errors are defined in 3GPP TS 29.281 sec 7.3.1 and 3GPP TS 29.060 sec. 11.1 + * + */ + @JsonProperty("numGtpTunnelErrors") + public void setNumGtpTunnelErrors(Double numGtpTunnelErrors) { + this.numGtpTunnelErrors = numGtpTunnelErrors; + } + + /** + * Http error count + * + */ + @JsonProperty("numHttpErrors") + public Double getNumHttpErrors() { + return numHttpErrors; + } + + /** + * Http error count + * + */ + @JsonProperty("numHttpErrors") + public void setNumHttpErrors(Double numHttpErrors) { + this.numHttpErrors = numHttpErrors; + } + + /** + * number of tunneled layer 7 bytes received, including retransmissions + * (Required) + * + */ + @JsonProperty("numL7BytesReceived") + public Double getNumL7BytesReceived() { + return numL7BytesReceived; + } + + /** + * number of tunneled layer 7 bytes received, including retransmissions + * (Required) + * + */ + @JsonProperty("numL7BytesReceived") + public void setNumL7BytesReceived(Double numL7BytesReceived) { + this.numL7BytesReceived = numL7BytesReceived; + } + + /** + * number of tunneled layer 7 bytes transmitted, excluding retransmissions + * (Required) + * + */ + @JsonProperty("numL7BytesTransmitted") + public Double getNumL7BytesTransmitted() { + return numL7BytesTransmitted; + } + + /** + * number of tunneled layer 7 bytes transmitted, excluding retransmissions + * (Required) + * + */ + @JsonProperty("numL7BytesTransmitted") + public void setNumL7BytesTransmitted(Double numL7BytesTransmitted) { + this.numL7BytesTransmitted = numL7BytesTransmitted; + } + + /** + * number of lost packets + * (Required) + * + */ + @JsonProperty("numLostPackets") + public Double getNumLostPackets() { + return numLostPackets; + } + + /** + * number of lost packets + * (Required) + * + */ + @JsonProperty("numLostPackets") + public void setNumLostPackets(Double numLostPackets) { + this.numLostPackets = numLostPackets; + } + + /** + * number of out-of-order packets + * (Required) + * + */ + @JsonProperty("numOutOfOrderPackets") + public Double getNumOutOfOrderPackets() { + return numOutOfOrderPackets; + } + + /** + * number of out-of-order packets + * (Required) + * + */ + @JsonProperty("numOutOfOrderPackets") + public void setNumOutOfOrderPackets(Double numOutOfOrderPackets) { + this.numOutOfOrderPackets = numOutOfOrderPackets; + } + + /** + * number of errored packets + * (Required) + * + */ + @JsonProperty("numPacketErrors") + public Double getNumPacketErrors() { + return numPacketErrors; + } + + /** + * number of errored packets + * (Required) + * + */ + @JsonProperty("numPacketErrors") + public void setNumPacketErrors(Double numPacketErrors) { + this.numPacketErrors = numPacketErrors; + } + + /** + * number of packets received, excluding retransmission + * (Required) + * + */ + @JsonProperty("numPacketsReceivedExclRetrans") + public Double getNumPacketsReceivedExclRetrans() { + return numPacketsReceivedExclRetrans; + } + + /** + * number of packets received, excluding retransmission + * (Required) + * + */ + @JsonProperty("numPacketsReceivedExclRetrans") + public void setNumPacketsReceivedExclRetrans(Double numPacketsReceivedExclRetrans) { + this.numPacketsReceivedExclRetrans = numPacketsReceivedExclRetrans; + } + + /** + * number of packets received, including retransmission + * (Required) + * + */ + @JsonProperty("numPacketsReceivedInclRetrans") + public Double getNumPacketsReceivedInclRetrans() { + return numPacketsReceivedInclRetrans; + } + + /** + * number of packets received, including retransmission + * (Required) + * + */ + @JsonProperty("numPacketsReceivedInclRetrans") + public void setNumPacketsReceivedInclRetrans(Double numPacketsReceivedInclRetrans) { + this.numPacketsReceivedInclRetrans = numPacketsReceivedInclRetrans; + } + + /** + * number of packets transmitted, including retransmissions + * (Required) + * + */ + @JsonProperty("numPacketsTransmittedInclRetrans") + public Double getNumPacketsTransmittedInclRetrans() { + return numPacketsTransmittedInclRetrans; + } + + /** + * number of packets transmitted, including retransmissions + * (Required) + * + */ + @JsonProperty("numPacketsTransmittedInclRetrans") + public void setNumPacketsTransmittedInclRetrans(Double numPacketsTransmittedInclRetrans) { + this.numPacketsTransmittedInclRetrans = numPacketsTransmittedInclRetrans; + } + + /** + * number of packet retries + * (Required) + * + */ + @JsonProperty("numRetries") + public Double getNumRetries() { + return numRetries; + } + + /** + * number of packet retries + * (Required) + * + */ + @JsonProperty("numRetries") + public void setNumRetries(Double numRetries) { + this.numRetries = numRetries; + } + + /** + * number of packet timeouts + * (Required) + * + */ + @JsonProperty("numTimeouts") + public Double getNumTimeouts() { + return numTimeouts; + } + + /** + * number of packet timeouts + * (Required) + * + */ + @JsonProperty("numTimeouts") + public void setNumTimeouts(Double numTimeouts) { + this.numTimeouts = numTimeouts; + } + + /** + * number of tunneled layer 7 bytes received, excluding retransmissions + * (Required) + * + */ + @JsonProperty("numTunneledL7BytesReceived") + public Double getNumTunneledL7BytesReceived() { + return numTunneledL7BytesReceived; + } + + /** + * number of tunneled layer 7 bytes received, excluding retransmissions + * (Required) + * + */ + @JsonProperty("numTunneledL7BytesReceived") + public void setNumTunneledL7BytesReceived(Double numTunneledL7BytesReceived) { + this.numTunneledL7BytesReceived = numTunneledL7BytesReceived; + } + + /** + * round trip time + * (Required) + * + */ + @JsonProperty("roundTripTime") + public Double getRoundTripTime() { + return roundTripTime; + } + + /** + * round trip time + * (Required) + * + */ + @JsonProperty("roundTripTime") + public void setRoundTripTime(Double roundTripTime) { + this.roundTripTime = roundTripTime; + } + + /** + * an associative array which is an array of key:value pairs + * + */ + @JsonProperty("tcpFlagCountList") + public AlarmAdditionalInformation getTcpFlagCountList() { + return tcpFlagCountList; + } + + /** + * an associative array which is an array of key:value pairs + * + */ + @JsonProperty("tcpFlagCountList") + public void setTcpFlagCountList(AlarmAdditionalInformation tcpFlagCountList) { + this.tcpFlagCountList = tcpFlagCountList; + } + + /** + * Array of unique TCP Flags observed in the flow + * + */ + @JsonProperty("tcpFlagList") + public List getTcpFlagList() { + return tcpFlagList; + } + + /** + * Array of unique TCP Flags observed in the flow + * + */ + @JsonProperty("tcpFlagList") + public void setTcpFlagList(List tcpFlagList) { + this.tcpFlagList = tcpFlagList; + } + + /** + * Time in milliseconds between the connection activation and first byte received + * (Required) + * + */ + @JsonProperty("timeToFirstByte") + public Double getTimeToFirstByte() { + return timeToFirstByte; + } + + /** + * Time in milliseconds between the connection activation and first byte received + * (Required) + * + */ + @JsonProperty("timeToFirstByte") + public void setTimeToFirstByte(Double timeToFirstByte) { + this.timeToFirstByte = timeToFirstByte; + } + + @Override + public String toString() { + return ToStringBuilder.reflectionToString(this); + } + + @Override + public int hashCode() { + return new HashCodeBuilder().append(avgBitErrorRate).append(avgPacketDelayVariation).append(avgPacketLatency).append(avgReceiveThroughput).append(avgTransmitThroughput).append(durConnectionFailedStatus).append(durTunnelFailedStatus).append(flowActivatedBy).append(flowActivationEpoch).append(flowActivationMicrosec).append(flowActivationTime).append(flowDeactivatedBy).append(flowDeactivationEpoch).append(flowDeactivationMicrosec).append(flowDeactivationTime).append(flowStatus).append(gtpConnectionStatus).append(gtpTunnelStatus).append(ipTosCountList).append(ipTosList).append(largePacketRtt).append(largePacketThreshold).append(maxPacketDelayVariation).append(maxReceiveBitRate).append(maxTransmitBitRate).append(mobileQciCosCountList).append(mobileQciCosList).append(numActivationFailures).append(numBitErrors).append(numBytesReceived).append(numBytesTransmitted).append(numDroppedPackets).append(numGtpEchoFailures).append(numGtpTunnelErrors).append(numHttpErrors).append(numL7BytesReceived).append(numL7BytesTransmitted).append(numLostPackets).append(numOutOfOrderPackets).append(numPacketErrors).append(numPacketsReceivedExclRetrans).append(numPacketsReceivedInclRetrans).append(numPacketsTransmittedInclRetrans).append(numRetries).append(numTimeouts).append(numTunneledL7BytesReceived).append(roundTripTime).append(tcpFlagCountList).append(tcpFlagList).append(timeToFirstByte).toHashCode(); + } + + @Override + public boolean equals(Object other) { + if (other == this) { + return true; + } + if ((other instanceof GtpPerFlowMetrics) == false) { + return false; + } + GtpPerFlowMetrics rhs = ((GtpPerFlowMetrics) other); + return new EqualsBuilder().append(avgBitErrorRate, rhs.avgBitErrorRate).append(avgPacketDelayVariation, rhs.avgPacketDelayVariation).append(avgPacketLatency, rhs.avgPacketLatency).append(avgReceiveThroughput, rhs.avgReceiveThroughput).append(avgTransmitThroughput, rhs.avgTransmitThroughput).append(durConnectionFailedStatus, rhs.durConnectionFailedStatus).append(durTunnelFailedStatus, rhs.durTunnelFailedStatus).append(flowActivatedBy, rhs.flowActivatedBy).append(flowActivationEpoch, rhs.flowActivationEpoch).append(flowActivationMicrosec, rhs.flowActivationMicrosec).append(flowActivationTime, rhs.flowActivationTime).append(flowDeactivatedBy, rhs.flowDeactivatedBy).append(flowDeactivationEpoch, rhs.flowDeactivationEpoch).append(flowDeactivationMicrosec, rhs.flowDeactivationMicrosec).append(flowDeactivationTime, rhs.flowDeactivationTime).append(flowStatus, rhs.flowStatus).append(gtpConnectionStatus, rhs.gtpConnectionStatus).append(gtpTunnelStatus, rhs.gtpTunnelStatus).append(ipTosCountList, rhs.ipTosCountList).append(ipTosList, rhs.ipTosList).append(largePacketRtt, rhs.largePacketRtt).append(largePacketThreshold, rhs.largePacketThreshold).append(maxPacketDelayVariation, rhs.maxPacketDelayVariation).append(maxReceiveBitRate, rhs.maxReceiveBitRate).append(maxTransmitBitRate, rhs.maxTransmitBitRate).append(mobileQciCosCountList, rhs.mobileQciCosCountList).append(mobileQciCosList, rhs.mobileQciCosList).append(numActivationFailures, rhs.numActivationFailures).append(numBitErrors, rhs.numBitErrors).append(numBytesReceived, rhs.numBytesReceived).append(numBytesTransmitted, rhs.numBytesTransmitted).append(numDroppedPackets, rhs.numDroppedPackets).append(numGtpEchoFailures, rhs.numGtpEchoFailures).append(numGtpTunnelErrors, rhs.numGtpTunnelErrors).append(numHttpErrors, rhs.numHttpErrors).append(numL7BytesReceived, rhs.numL7BytesReceived).append(numL7BytesTransmitted, rhs.numL7BytesTransmitted).append(numLostPackets, rhs.numLostPackets).append(numOutOfOrderPackets, rhs.numOutOfOrderPackets).append(numPacketErrors, rhs.numPacketErrors).append(numPacketsReceivedExclRetrans, rhs.numPacketsReceivedExclRetrans).append(numPacketsReceivedInclRetrans, rhs.numPacketsReceivedInclRetrans).append(numPacketsTransmittedInclRetrans, rhs.numPacketsTransmittedInclRetrans).append(numRetries, rhs.numRetries).append(numTimeouts, rhs.numTimeouts).append(numTunneledL7BytesReceived, rhs.numTunneledL7BytesReceived).append(roundTripTime, rhs.roundTripTime).append(tcpFlagCountList, rhs.tcpFlagCountList).append(tcpFlagList, rhs.tcpFlagList).append(timeToFirstByte, rhs.timeToFirstByte).isEquals(); + } + +} diff --git a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/HeartbeatFields.java b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/HeartbeatFields.java new file mode 100644 index 0000000..c2f32a1 --- /dev/null +++ b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/HeartbeatFields.java @@ -0,0 +1,189 @@ +/* +* ============LICENSE_START======================================================= +* ONAP : DCAE +* ================================================================================ +* Copyright 2019 TechMahindra +*================================================================================= +* 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========================================================= +*/ +package org.onap.dcaegen2.ves.domain.ves70; + +import java.util.HashMap; +import java.util.Map; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyDescription; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; +import org.apache.commons.lang.builder.EqualsBuilder; +import org.apache.commons.lang.builder.HashCodeBuilder; +import org.apache.commons.lang.builder.ToStringBuilder; + + +/** + * optional field block for fields specific to heartbeat events + * + */ +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonPropertyOrder({ + "additionalFields", + "heartbeatFieldsVersion", + "heartbeatInterval" +}) +public class HeartbeatFields { + + /** + * an associative array which is an array of key:value pairs + * + */ + @JsonProperty("additionalFields") + @JsonPropertyDescription("an associative array which is an array of key:value pairs") + private AlarmAdditionalInformation additionalFields; + /** + * version of the heartbeatFields block + * (Required) + * + */ + @JsonProperty("heartbeatFieldsVersion") + @JsonPropertyDescription("version of the heartbeatFields block") + private HeartbeatFields.HeartbeatFieldsVersion heartbeatFieldsVersion; + /** + * current heartbeat interval in seconds + * (Required) + * + */ + @JsonProperty("heartbeatInterval") + @JsonPropertyDescription("current heartbeat interval in seconds") + private Integer heartbeatInterval; + + /** + * an associative array which is an array of key:value pairs + * + */ + @JsonProperty("additionalFields") + public AlarmAdditionalInformation getAdditionalFields() { + return additionalFields; + } + + /** + * an associative array which is an array of key:value pairs + * + */ + @JsonProperty("additionalFields") + public void setAdditionalFields(AlarmAdditionalInformation additionalFields) { + this.additionalFields = additionalFields; + } + + /** + * version of the heartbeatFields block + * (Required) + * + */ + @JsonProperty("heartbeatFieldsVersion") + public HeartbeatFields.HeartbeatFieldsVersion getHeartbeatFieldsVersion() { + return heartbeatFieldsVersion; + } + + /** + * version of the heartbeatFields block + * (Required) + * + */ + @JsonProperty("heartbeatFieldsVersion") + public void setHeartbeatFieldsVersion(HeartbeatFields.HeartbeatFieldsVersion heartbeatFieldsVersion) { + this.heartbeatFieldsVersion = heartbeatFieldsVersion; + } + + /** + * current heartbeat interval in seconds + * (Required) + * + */ + @JsonProperty("heartbeatInterval") + public Integer getHeartbeatInterval() { + return heartbeatInterval; + } + + /** + * current heartbeat interval in seconds + * (Required) + * + */ + @JsonProperty("heartbeatInterval") + public void setHeartbeatInterval(Integer heartbeatInterval) { + this.heartbeatInterval = heartbeatInterval; + } + + @Override + public String toString() { + return ToStringBuilder.reflectionToString(this); + } + + @Override + public int hashCode() { + return new HashCodeBuilder().append(additionalFields).append(heartbeatFieldsVersion).append(heartbeatInterval).toHashCode(); + } + + @Override + public boolean equals(Object other) { + if (other == this) { + return true; + } + if ((other instanceof HeartbeatFields) == false) { + return false; + } + HeartbeatFields rhs = ((HeartbeatFields) other); + return new EqualsBuilder().append(additionalFields, rhs.additionalFields).append(heartbeatFieldsVersion, rhs.heartbeatFieldsVersion).append(heartbeatInterval, rhs.heartbeatInterval).isEquals(); + } + + public enum HeartbeatFieldsVersion { + + _3_0("3.0"); + private final String value; + private final static Map CONSTANTS = new HashMap(); + + static { + for (HeartbeatFields.HeartbeatFieldsVersion c: values()) { + CONSTANTS.put(c.value, c); + } + } + + private HeartbeatFieldsVersion(String value) { + this.value = value; + } + + @Override + public String toString() { + return this.value; + } + + @JsonValue + public String value() { + return this.value; + } + + @JsonCreator + public static HeartbeatFields.HeartbeatFieldsVersion fromValue(String value) { + HeartbeatFields.HeartbeatFieldsVersion constant = CONSTANTS.get(value); + if (constant == null) { + throw new IllegalArgumentException(value); + } else { + return constant; + } + } + + } + +} diff --git a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/HugePagesArray.java b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/HugePagesArray.java new file mode 100644 index 0000000..67b63cb --- /dev/null +++ b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/HugePagesArray.java @@ -0,0 +1,248 @@ +/* +* ============LICENSE_START======================================================= +* ONAP : DCAE +* ================================================================================ +* Copyright 2019 TechMahindra +*================================================================================= +* 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========================================================= +*/ +package org.onap.dcaegen2.ves.domain.ves70; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyDescription; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import org.apache.commons.lang.builder.EqualsBuilder; +import org.apache.commons.lang.builder.HashCodeBuilder; +import org.apache.commons.lang.builder.ToStringBuilder; + + +/** + * metrics on system hugepages + * + */ +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonPropertyOrder({ + "bytesFree", + "bytesUsed", + "hugePagesIdentifier", + "percentFree", + "percentUsed", + "vmPageNumberFree", + "vmPageNumberUsed" +}) +public class HugePagesArray { + + /** + * number of free hugepages in bytes + * + */ + @JsonProperty("bytesFree") + @JsonPropertyDescription("number of free hugepages in bytes") + private Double bytesFree; + /** + * number of used hugepages in bytes + * + */ + @JsonProperty("bytesUsed") + @JsonPropertyDescription("number of used hugepages in bytes") + private Double bytesUsed; + /** + * hugePages identifier + * (Required) + * + */ + @JsonProperty("hugePagesIdentifier") + @JsonPropertyDescription("hugePages identifier") + private Double hugePagesIdentifier; + /** + * number of free hugepages in percent + * + */ + @JsonProperty("percentFree") + @JsonPropertyDescription("number of free hugepages in percent") + private Double percentFree; + /** + * number of free hugepages in percent + * + */ + @JsonProperty("percentUsed") + @JsonPropertyDescription("number of free hugepages in percent") + private Double percentUsed; + /** + * number of free vmPages in numbers + * + */ + @JsonProperty("vmPageNumberFree") + @JsonPropertyDescription("number of free vmPages in numbers") + private Double vmPageNumberFree; + /** + * number of used vmPages in numbers + * + */ + @JsonProperty("vmPageNumberUsed") + @JsonPropertyDescription("number of used vmPages in numbers") + private Double vmPageNumberUsed; + + /** + * number of free hugepages in bytes + * + */ + @JsonProperty("bytesFree") + public Double getBytesFree() { + return bytesFree; + } + + /** + * number of free hugepages in bytes + * + */ + @JsonProperty("bytesFree") + public void setBytesFree(Double bytesFree) { + this.bytesFree = bytesFree; + } + + /** + * number of used hugepages in bytes + * + */ + @JsonProperty("bytesUsed") + public Double getBytesUsed() { + return bytesUsed; + } + + /** + * number of used hugepages in bytes + * + */ + @JsonProperty("bytesUsed") + public void setBytesUsed(Double bytesUsed) { + this.bytesUsed = bytesUsed; + } + + /** + * hugePages identifier + * (Required) + * + */ + @JsonProperty("hugePagesIdentifier") + public Double getHugePagesIdentifier() { + return hugePagesIdentifier; + } + + /** + * hugePages identifier + * (Required) + * + */ + @JsonProperty("hugePagesIdentifier") + public void setHugePagesIdentifier(Double hugePagesIdentifier) { + this.hugePagesIdentifier = hugePagesIdentifier; + } + + /** + * number of free hugepages in percent + * + */ + @JsonProperty("percentFree") + public Double getPercentFree() { + return percentFree; + } + + /** + * number of free hugepages in percent + * + */ + @JsonProperty("percentFree") + public void setPercentFree(Double percentFree) { + this.percentFree = percentFree; + } + + /** + * number of free hugepages in percent + * + */ + @JsonProperty("percentUsed") + public Double getPercentUsed() { + return percentUsed; + } + + /** + * number of free hugepages in percent + * + */ + @JsonProperty("percentUsed") + public void setPercentUsed(Double percentUsed) { + this.percentUsed = percentUsed; + } + + /** + * number of free vmPages in numbers + * + */ + @JsonProperty("vmPageNumberFree") + public Double getVmPageNumberFree() { + return vmPageNumberFree; + } + + /** + * number of free vmPages in numbers + * + */ + @JsonProperty("vmPageNumberFree") + public void setVmPageNumberFree(Double vmPageNumberFree) { + this.vmPageNumberFree = vmPageNumberFree; + } + + /** + * number of used vmPages in numbers + * + */ + @JsonProperty("vmPageNumberUsed") + public Double getVmPageNumberUsed() { + return vmPageNumberUsed; + } + + /** + * number of used vmPages in numbers + * + */ + @JsonProperty("vmPageNumberUsed") + public void setVmPageNumberUsed(Double vmPageNumberUsed) { + this.vmPageNumberUsed = vmPageNumberUsed; + } + + @Override + public String toString() { + return ToStringBuilder.reflectionToString(this); + } + + @Override + public int hashCode() { + return new HashCodeBuilder().append(bytesFree).append(bytesUsed).append(hugePagesIdentifier).append(percentFree).append(percentUsed).append(vmPageNumberFree).append(vmPageNumberUsed).toHashCode(); + } + + @Override + public boolean equals(Object other) { + if (other == this) { + return true; + } + if ((other instanceof HugePagesArray) == false) { + return false; + } + HugePagesArray rhs = ((HugePagesArray) other); + return new EqualsBuilder().append(bytesFree, rhs.bytesFree).append(bytesUsed, rhs.bytesUsed).append(hugePagesIdentifier, rhs.hugePagesIdentifier).append(percentFree, rhs.percentFree).append(percentUsed, rhs.percentUsed).append(vmPageNumberFree, rhs.vmPageNumberFree).append(vmPageNumberUsed, rhs.vmPageNumberUsed).isEquals(); + } + +} diff --git a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/InternalHeaderFields.java b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/InternalHeaderFields.java new file mode 100644 index 0000000..e3b30f8 --- /dev/null +++ b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/InternalHeaderFields.java @@ -0,0 +1,79 @@ +/* +* ============LICENSE_START======================================================= +* ONAP : DCAE +* ================================================================================ +* Copyright 2019 TechMahindra +*================================================================================= +* 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========================================================= +*/ +package org.onap.dcaegen2.ves.domain.ves70; + +import java.util.HashMap; +import java.util.Map; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import org.apache.commons.lang.builder.EqualsBuilder; +import org.apache.commons.lang.builder.HashCodeBuilder; +import org.apache.commons.lang.builder.ToStringBuilder; + + +/** + * enrichment fields for internal VES Event Listener service use only, not supplied by event sources + * + */ +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonPropertyOrder({ + +}) +public class InternalHeaderFields { + + @JsonIgnore + private Map additionalProperties = new HashMap(); + + @Override + public String toString() { + return ToStringBuilder.reflectionToString(this); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + @JsonAnySetter + public void setAdditionalProperty(String name, Object value) { + this.additionalProperties.put(name, value); + } + + @Override + public int hashCode() { + return new HashCodeBuilder().append(additionalProperties).toHashCode(); + } + + @Override + public boolean equals(Object other) { + if (other == this) { + return true; + } + if ((other instanceof InternalHeaderFields) == false) { + return false; + } + InternalHeaderFields rhs = ((InternalHeaderFields) other); + return new EqualsBuilder().append(additionalProperties, rhs.additionalProperties).isEquals(); + } + +} diff --git a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/Ipmi.java b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/Ipmi.java new file mode 100644 index 0000000..4b8fe8e --- /dev/null +++ b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/Ipmi.java @@ -0,0 +1,403 @@ +/* +* ============LICENSE_START======================================================= +* ONAP : DCAE +* ================================================================================ +* Copyright 2019 TechMahindra +*================================================================================= +* 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========================================================= +*/ +package org.onap.dcaegen2.ves.domain.ves70; + +import java.util.ArrayList; +import java.util.List; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyDescription; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import org.apache.commons.lang.builder.EqualsBuilder; +import org.apache.commons.lang.builder.HashCodeBuilder; +import org.apache.commons.lang.builder.ToStringBuilder; + + +/** + * intelligent platform management interface metrics + * + */ +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonPropertyOrder({ + "exitAirTemperature", + "frontPanelTemperature", + "ioModuleTemperature", + "ipmiBaseboardTemperatureArray", + "ipmiBaseboardVoltageRegulatorArray", + "ipmiBatteryArray", + "ipmiFanArray", + "ipmiHsbpArray", + "ipmiGlobalAggregateTemperatureMarginArray", + "ipmiNicArray", + "ipmiPowerSupplyArray", + "ipmiProcessorArray", + "systemAirflow" +}) +public class Ipmi { + + /** + * system fan exit air flow temperature in celsius + * + */ + @JsonProperty("exitAirTemperature") + @JsonPropertyDescription("system fan exit air flow temperature in celsius") + private Double exitAirTemperature; + /** + * front panel temperature in celsius + * + */ + @JsonProperty("frontPanelTemperature") + @JsonPropertyDescription("front panel temperature in celsius") + private Double frontPanelTemperature; + /** + * io module temperature in celsius + * + */ + @JsonProperty("ioModuleTemperature") + @JsonPropertyDescription("io module temperature in celsius") + private Double ioModuleTemperature; + /** + * array of ipmiBaseboardTemperature objects + * + */ + @JsonProperty("ipmiBaseboardTemperatureArray") + @JsonPropertyDescription("array of ipmiBaseboardTemperature objects") + private List ipmiBaseboardTemperatureArray = new ArrayList(); + /** + * array of ipmiBaseboardVoltageRegulator objects + * + */ + @JsonProperty("ipmiBaseboardVoltageRegulatorArray") + @JsonPropertyDescription("array of ipmiBaseboardVoltageRegulator objects") + private List ipmiBaseboardVoltageRegulatorArray = new ArrayList(); + /** + * array of ipmiBattery objects + * + */ + @JsonProperty("ipmiBatteryArray") + @JsonPropertyDescription("array of ipmiBattery objects") + private List ipmiBatteryArray = new ArrayList(); + /** + * array of ipmiFan objects + * + */ + @JsonProperty("ipmiFanArray") + @JsonPropertyDescription("array of ipmiFan objects") + private List ipmiFanArray = new ArrayList(); + /** + * array of ipmiHsbp objects + * + */ + @JsonProperty("ipmiHsbpArray") + @JsonPropertyDescription("array of ipmiHsbp objects") + private List ipmiHsbpArray = new ArrayList(); + /** + * array of ipmiGlobalAggregateTemperatureMargin objects + * + */ + @JsonProperty("ipmiGlobalAggregateTemperatureMarginArray") + @JsonPropertyDescription("array of ipmiGlobalAggregateTemperatureMargin objects") + private List ipmiGlobalAggregateTemperatureMarginArray = new ArrayList(); + /** + * array of ipmiNic objects + * + */ + @JsonProperty("ipmiNicArray") + @JsonPropertyDescription("array of ipmiNic objects") + private List ipmiNicArray = new ArrayList(); + /** + * array of ipmiPowerSupply objects + * + */ + @JsonProperty("ipmiPowerSupplyArray") + @JsonPropertyDescription("array of ipmiPowerSupply objects") + private List ipmiPowerSupplyArray = new ArrayList(); + /** + * array of ipmiProcessor objects + * + */ + @JsonProperty("ipmiProcessorArray") + @JsonPropertyDescription("array of ipmiProcessor objects") + private List ipmiProcessorArray = new ArrayList(); + /** + * airfflow in cubic feet per minute (cfm) + * + */ + @JsonProperty("systemAirflow") + @JsonPropertyDescription("airfflow in cubic feet per minute (cfm)") + private Double systemAirflow; + + /** + * system fan exit air flow temperature in celsius + * + */ + @JsonProperty("exitAirTemperature") + public Double getExitAirTemperature() { + return exitAirTemperature; + } + + /** + * system fan exit air flow temperature in celsius + * + */ + @JsonProperty("exitAirTemperature") + public void setExitAirTemperature(Double exitAirTemperature) { + this.exitAirTemperature = exitAirTemperature; + } + + /** + * front panel temperature in celsius + * + */ + @JsonProperty("frontPanelTemperature") + public Double getFrontPanelTemperature() { + return frontPanelTemperature; + } + + /** + * front panel temperature in celsius + * + */ + @JsonProperty("frontPanelTemperature") + public void setFrontPanelTemperature(Double frontPanelTemperature) { + this.frontPanelTemperature = frontPanelTemperature; + } + + /** + * io module temperature in celsius + * + */ + @JsonProperty("ioModuleTemperature") + public Double getIoModuleTemperature() { + return ioModuleTemperature; + } + + /** + * io module temperature in celsius + * + */ + @JsonProperty("ioModuleTemperature") + public void setIoModuleTemperature(Double ioModuleTemperature) { + this.ioModuleTemperature = ioModuleTemperature; + } + + /** + * array of ipmiBaseboardTemperature objects + * + */ + @JsonProperty("ipmiBaseboardTemperatureArray") + public List getIpmiBaseboardTemperatureArray() { + return ipmiBaseboardTemperatureArray; + } + + /** + * array of ipmiBaseboardTemperature objects + * + */ + @JsonProperty("ipmiBaseboardTemperatureArray") + public void setIpmiBaseboardTemperatureArray(List ipmiBaseboardTemperatureArray) { + this.ipmiBaseboardTemperatureArray = ipmiBaseboardTemperatureArray; + } + + /** + * array of ipmiBaseboardVoltageRegulator objects + * + */ + @JsonProperty("ipmiBaseboardVoltageRegulatorArray") + public List getIpmiBaseboardVoltageRegulatorArray() { + return ipmiBaseboardVoltageRegulatorArray; + } + + /** + * array of ipmiBaseboardVoltageRegulator objects + * + */ + @JsonProperty("ipmiBaseboardVoltageRegulatorArray") + public void setIpmiBaseboardVoltageRegulatorArray(List ipmiBaseboardVoltageRegulatorArray) { + this.ipmiBaseboardVoltageRegulatorArray = ipmiBaseboardVoltageRegulatorArray; + } + + /** + * array of ipmiBattery objects + * + */ + @JsonProperty("ipmiBatteryArray") + public List getIpmiBatteryArray() { + return ipmiBatteryArray; + } + + /** + * array of ipmiBattery objects + * + */ + @JsonProperty("ipmiBatteryArray") + public void setIpmiBatteryArray(List ipmiBatteryArray) { + this.ipmiBatteryArray = ipmiBatteryArray; + } + + /** + * array of ipmiFan objects + * + */ + @JsonProperty("ipmiFanArray") + public List getIpmiFanArray() { + return ipmiFanArray; + } + + /** + * array of ipmiFan objects + * + */ + @JsonProperty("ipmiFanArray") + public void setIpmiFanArray(List ipmiFanArray) { + this.ipmiFanArray = ipmiFanArray; + } + + /** + * array of ipmiHsbp objects + * + */ + @JsonProperty("ipmiHsbpArray") + public List getIpmiHsbpArray() { + return ipmiHsbpArray; + } + + /** + * array of ipmiHsbp objects + * + */ + @JsonProperty("ipmiHsbpArray") + public void setIpmiHsbpArray(List ipmiHsbpArray) { + this.ipmiHsbpArray = ipmiHsbpArray; + } + + /** + * array of ipmiGlobalAggregateTemperatureMargin objects + * + */ + @JsonProperty("ipmiGlobalAggregateTemperatureMarginArray") + public List getIpmiGlobalAggregateTemperatureMarginArray() { + return ipmiGlobalAggregateTemperatureMarginArray; + } + + /** + * array of ipmiGlobalAggregateTemperatureMargin objects + * + */ + @JsonProperty("ipmiGlobalAggregateTemperatureMarginArray") + public void setIpmiGlobalAggregateTemperatureMarginArray(List ipmiGlobalAggregateTemperatureMarginArray) { + this.ipmiGlobalAggregateTemperatureMarginArray = ipmiGlobalAggregateTemperatureMarginArray; + } + + /** + * array of ipmiNic objects + * + */ + @JsonProperty("ipmiNicArray") + public List getIpmiNicArray() { + return ipmiNicArray; + } + + /** + * array of ipmiNic objects + * + */ + @JsonProperty("ipmiNicArray") + public void setIpmiNicArray(List ipmiNicArray) { + this.ipmiNicArray = ipmiNicArray; + } + + /** + * array of ipmiPowerSupply objects + * + */ + @JsonProperty("ipmiPowerSupplyArray") + public List getIpmiPowerSupplyArray() { + return ipmiPowerSupplyArray; + } + + /** + * array of ipmiPowerSupply objects + * + */ + @JsonProperty("ipmiPowerSupplyArray") + public void setIpmiPowerSupplyArray(List ipmiPowerSupplyArray) { + this.ipmiPowerSupplyArray = ipmiPowerSupplyArray; + } + + /** + * array of ipmiProcessor objects + * + */ + @JsonProperty("ipmiProcessorArray") + public List getIpmiProcessorArray() { + return ipmiProcessorArray; + } + + /** + * array of ipmiProcessor objects + * + */ + @JsonProperty("ipmiProcessorArray") + public void setIpmiProcessorArray(List ipmiProcessorArray) { + this.ipmiProcessorArray = ipmiProcessorArray; + } + + /** + * airfflow in cubic feet per minute (cfm) + * + */ + @JsonProperty("systemAirflow") + public Double getSystemAirflow() { + return systemAirflow; + } + + /** + * airfflow in cubic feet per minute (cfm) + * + */ + @JsonProperty("systemAirflow") + public void setSystemAirflow(Double systemAirflow) { + this.systemAirflow = systemAirflow; + } + + @Override + public String toString() { + return ToStringBuilder.reflectionToString(this); + } + + @Override + public int hashCode() { + return new HashCodeBuilder().append(exitAirTemperature).append(frontPanelTemperature).append(ioModuleTemperature).append(ipmiBaseboardTemperatureArray).append(ipmiBaseboardVoltageRegulatorArray).append(ipmiBatteryArray).append(ipmiFanArray).append(ipmiHsbpArray).append(ipmiGlobalAggregateTemperatureMarginArray).append(ipmiNicArray).append(ipmiPowerSupplyArray).append(ipmiProcessorArray).append(systemAirflow).toHashCode(); + } + + @Override + public boolean equals(Object other) { + if (other == this) { + return true; + } + if ((other instanceof Ipmi) == false) { + return false; + } + Ipmi rhs = ((Ipmi) other); + return new EqualsBuilder().append(exitAirTemperature, rhs.exitAirTemperature).append(frontPanelTemperature, rhs.frontPanelTemperature).append(ioModuleTemperature, rhs.ioModuleTemperature).append(ipmiBaseboardTemperatureArray, rhs.ipmiBaseboardTemperatureArray).append(ipmiBaseboardVoltageRegulatorArray, rhs.ipmiBaseboardVoltageRegulatorArray).append(ipmiBatteryArray, rhs.ipmiBatteryArray).append(ipmiFanArray, rhs.ipmiFanArray).append(ipmiHsbpArray, rhs.ipmiHsbpArray).append(ipmiGlobalAggregateTemperatureMarginArray, rhs.ipmiGlobalAggregateTemperatureMarginArray).append(ipmiNicArray, rhs.ipmiNicArray).append(ipmiPowerSupplyArray, rhs.ipmiPowerSupplyArray).append(ipmiProcessorArray, rhs.ipmiProcessorArray).append(systemAirflow, rhs.systemAirflow).isEquals(); + } + +} diff --git a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/IpmiBaseboardTemperatureArray.java b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/IpmiBaseboardTemperatureArray.java new file mode 100644 index 0000000..6992883 --- /dev/null +++ b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/IpmiBaseboardTemperatureArray.java @@ -0,0 +1,118 @@ +/* +* ============LICENSE_START======================================================= +* ONAP : DCAE +* ================================================================================ +* Copyright 2019 TechMahindra +*================================================================================= +* 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========================================================= +*/ +package org.onap.dcaegen2.ves.domain.ves70; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyDescription; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import org.apache.commons.lang.builder.EqualsBuilder; +import org.apache.commons.lang.builder.HashCodeBuilder; +import org.apache.commons.lang.builder.ToStringBuilder; + + +/** + * intelligent platform management interface (ipmi) baseboard temperature metrics + * + */ +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonPropertyOrder({ + "baseboardTemperatureIdentifier", + "baseboardTemperature" +}) +public class IpmiBaseboardTemperatureArray { + + /** + * identifier for the location where the temperature is taken + * (Required) + * + */ + @JsonProperty("baseboardTemperatureIdentifier") + @JsonPropertyDescription("identifier for the location where the temperature is taken") + private String baseboardTemperatureIdentifier; + /** + * baseboard temperature in celsius + * + */ + @JsonProperty("baseboardTemperature") + @JsonPropertyDescription("baseboard temperature in celsius") + private Double baseboardTemperature; + + /** + * identifier for the location where the temperature is taken + * (Required) + * + */ + @JsonProperty("baseboardTemperatureIdentifier") + public String getBaseboardTemperatureIdentifier() { + return baseboardTemperatureIdentifier; + } + + /** + * identifier for the location where the temperature is taken + * (Required) + * + */ + @JsonProperty("baseboardTemperatureIdentifier") + public void setBaseboardTemperatureIdentifier(String baseboardTemperatureIdentifier) { + this.baseboardTemperatureIdentifier = baseboardTemperatureIdentifier; + } + + /** + * baseboard temperature in celsius + * + */ + @JsonProperty("baseboardTemperature") + public Double getBaseboardTemperature() { + return baseboardTemperature; + } + + /** + * baseboard temperature in celsius + * + */ + @JsonProperty("baseboardTemperature") + public void setBaseboardTemperature(Double baseboardTemperature) { + this.baseboardTemperature = baseboardTemperature; + } + + @Override + public String toString() { + return ToStringBuilder.reflectionToString(this); + } + + @Override + public int hashCode() { + return new HashCodeBuilder().append(baseboardTemperatureIdentifier).append(baseboardTemperature).toHashCode(); + } + + @Override + public boolean equals(Object other) { + if (other == this) { + return true; + } + if ((other instanceof IpmiBaseboardTemperatureArray) == false) { + return false; + } + IpmiBaseboardTemperatureArray rhs = ((IpmiBaseboardTemperatureArray) other); + return new EqualsBuilder().append(baseboardTemperatureIdentifier, rhs.baseboardTemperatureIdentifier).append(baseboardTemperature, rhs.baseboardTemperature).isEquals(); + } + +} diff --git a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/IpmiBaseboardVoltageRegulatorArray.java b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/IpmiBaseboardVoltageRegulatorArray.java new file mode 100644 index 0000000..d7a9404 --- /dev/null +++ b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/IpmiBaseboardVoltageRegulatorArray.java @@ -0,0 +1,118 @@ +/* +* ============LICENSE_START======================================================= +* ONAP : DCAE +* ================================================================================ +* Copyright 2019 TechMahindra +*================================================================================= +* 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========================================================= +*/ +package org.onap.dcaegen2.ves.domain.ves70; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyDescription; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import org.apache.commons.lang.builder.EqualsBuilder; +import org.apache.commons.lang.builder.HashCodeBuilder; +import org.apache.commons.lang.builder.ToStringBuilder; + + +/** + * intelligent platform management interface (ipmi) baseboard voltage regulator metrics + * + */ +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonPropertyOrder({ + "baseboardVoltageRegulatorIdentifier", + "voltageRegulatorTemperature" +}) +public class IpmiBaseboardVoltageRegulatorArray { + + /** + * identifier for the baseboard voltage regulator + * (Required) + * + */ + @JsonProperty("baseboardVoltageRegulatorIdentifier") + @JsonPropertyDescription("identifier for the baseboard voltage regulator") + private String baseboardVoltageRegulatorIdentifier; + /** + * voltage regulator temperature in celsius + * + */ + @JsonProperty("voltageRegulatorTemperature") + @JsonPropertyDescription("voltage regulator temperature in celsius") + private Double voltageRegulatorTemperature; + + /** + * identifier for the baseboard voltage regulator + * (Required) + * + */ + @JsonProperty("baseboardVoltageRegulatorIdentifier") + public String getBaseboardVoltageRegulatorIdentifier() { + return baseboardVoltageRegulatorIdentifier; + } + + /** + * identifier for the baseboard voltage regulator + * (Required) + * + */ + @JsonProperty("baseboardVoltageRegulatorIdentifier") + public void setBaseboardVoltageRegulatorIdentifier(String baseboardVoltageRegulatorIdentifier) { + this.baseboardVoltageRegulatorIdentifier = baseboardVoltageRegulatorIdentifier; + } + + /** + * voltage regulator temperature in celsius + * + */ + @JsonProperty("voltageRegulatorTemperature") + public Double getVoltageRegulatorTemperature() { + return voltageRegulatorTemperature; + } + + /** + * voltage regulator temperature in celsius + * + */ + @JsonProperty("voltageRegulatorTemperature") + public void setVoltageRegulatorTemperature(Double voltageRegulatorTemperature) { + this.voltageRegulatorTemperature = voltageRegulatorTemperature; + } + + @Override + public String toString() { + return ToStringBuilder.reflectionToString(this); + } + + @Override + public int hashCode() { + return new HashCodeBuilder().append(baseboardVoltageRegulatorIdentifier).append(voltageRegulatorTemperature).toHashCode(); + } + + @Override + public boolean equals(Object other) { + if (other == this) { + return true; + } + if ((other instanceof IpmiBaseboardVoltageRegulatorArray) == false) { + return false; + } + IpmiBaseboardVoltageRegulatorArray rhs = ((IpmiBaseboardVoltageRegulatorArray) other); + return new EqualsBuilder().append(baseboardVoltageRegulatorIdentifier, rhs.baseboardVoltageRegulatorIdentifier).append(voltageRegulatorTemperature, rhs.voltageRegulatorTemperature).isEquals(); + } + +} diff --git a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/IpmiBatteryArray.java b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/IpmiBatteryArray.java new file mode 100644 index 0000000..17d29a7 --- /dev/null +++ b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/IpmiBatteryArray.java @@ -0,0 +1,144 @@ +/* +* ============LICENSE_START======================================================= +* ONAP : DCAE +* ================================================================================ +* Copyright 2019 TechMahindra +*================================================================================= +* 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========================================================= +*/ +package org.onap.dcaegen2.ves.domain.ves70; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyDescription; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import org.apache.commons.lang.builder.EqualsBuilder; +import org.apache.commons.lang.builder.HashCodeBuilder; +import org.apache.commons.lang.builder.ToStringBuilder; + + +/** + * intelligent platform management interface (ipmi) battery metrics + * + */ +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonPropertyOrder({ + "batteryIdentifier", + "batteryType", + "batteryVoltageLevel" +}) +public class IpmiBatteryArray { + + /** + * identifier for the battery + * (Required) + * + */ + @JsonProperty("batteryIdentifier") + @JsonPropertyDescription("identifier for the battery") + private String batteryIdentifier; + /** + * type of battery + * + */ + @JsonProperty("batteryType") + @JsonPropertyDescription("type of battery") + private String batteryType; + /** + * battery voltage level + * + */ + @JsonProperty("batteryVoltageLevel") + @JsonPropertyDescription("battery voltage level") + private Double batteryVoltageLevel; + + /** + * identifier for the battery + * (Required) + * + */ + @JsonProperty("batteryIdentifier") + public String getBatteryIdentifier() { + return batteryIdentifier; + } + + /** + * identifier for the battery + * (Required) + * + */ + @JsonProperty("batteryIdentifier") + public void setBatteryIdentifier(String batteryIdentifier) { + this.batteryIdentifier = batteryIdentifier; + } + + /** + * type of battery + * + */ + @JsonProperty("batteryType") + public String getBatteryType() { + return batteryType; + } + + /** + * type of battery + * + */ + @JsonProperty("batteryType") + public void setBatteryType(String batteryType) { + this.batteryType = batteryType; + } + + /** + * battery voltage level + * + */ + @JsonProperty("batteryVoltageLevel") + public Double getBatteryVoltageLevel() { + return batteryVoltageLevel; + } + + /** + * battery voltage level + * + */ + @JsonProperty("batteryVoltageLevel") + public void setBatteryVoltageLevel(Double batteryVoltageLevel) { + this.batteryVoltageLevel = batteryVoltageLevel; + } + + @Override + public String toString() { + return ToStringBuilder.reflectionToString(this); + } + + @Override + public int hashCode() { + return new HashCodeBuilder().append(batteryIdentifier).append(batteryType).append(batteryVoltageLevel).toHashCode(); + } + + @Override + public boolean equals(Object other) { + if (other == this) { + return true; + } + if ((other instanceof IpmiBatteryArray) == false) { + return false; + } + IpmiBatteryArray rhs = ((IpmiBatteryArray) other); + return new EqualsBuilder().append(batteryIdentifier, rhs.batteryIdentifier).append(batteryType, rhs.batteryType).append(batteryVoltageLevel, rhs.batteryVoltageLevel).isEquals(); + } + +} diff --git a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/IpmiFanArray.java b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/IpmiFanArray.java new file mode 100644 index 0000000..5b1e110 --- /dev/null +++ b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/IpmiFanArray.java @@ -0,0 +1,118 @@ +/* +* ============LICENSE_START======================================================= +* ONAP : DCAE +* ================================================================================ +* Copyright 2019 TechMahindra +*================================================================================= +* 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========================================================= +*/ +package org.onap.dcaegen2.ves.domain.ves70; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyDescription; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import org.apache.commons.lang.builder.EqualsBuilder; +import org.apache.commons.lang.builder.HashCodeBuilder; +import org.apache.commons.lang.builder.ToStringBuilder; + + +/** + * intelligent platform management interface (ipmi) fan metrics + * + */ +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonPropertyOrder({ + "fanIdentifier", + "fanSpeed" +}) +public class IpmiFanArray { + + /** + * identifier for the fan + * (Required) + * + */ + @JsonProperty("fanIdentifier") + @JsonPropertyDescription("identifier for the fan") + private String fanIdentifier; + /** + * fan speed in revolutions per minute (rpm) + * + */ + @JsonProperty("fanSpeed") + @JsonPropertyDescription("fan speed in revolutions per minute (rpm)") + private Double fanSpeed; + + /** + * identifier for the fan + * (Required) + * + */ + @JsonProperty("fanIdentifier") + public String getFanIdentifier() { + return fanIdentifier; + } + + /** + * identifier for the fan + * (Required) + * + */ + @JsonProperty("fanIdentifier") + public void setFanIdentifier(String fanIdentifier) { + this.fanIdentifier = fanIdentifier; + } + + /** + * fan speed in revolutions per minute (rpm) + * + */ + @JsonProperty("fanSpeed") + public Double getFanSpeed() { + return fanSpeed; + } + + /** + * fan speed in revolutions per minute (rpm) + * + */ + @JsonProperty("fanSpeed") + public void setFanSpeed(Double fanSpeed) { + this.fanSpeed = fanSpeed; + } + + @Override + public String toString() { + return ToStringBuilder.reflectionToString(this); + } + + @Override + public int hashCode() { + return new HashCodeBuilder().append(fanIdentifier).append(fanSpeed).toHashCode(); + } + + @Override + public boolean equals(Object other) { + if (other == this) { + return true; + } + if ((other instanceof IpmiFanArray) == false) { + return false; + } + IpmiFanArray rhs = ((IpmiFanArray) other); + return new EqualsBuilder().append(fanIdentifier, rhs.fanIdentifier).append(fanSpeed, rhs.fanSpeed).isEquals(); + } + +} diff --git a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/IpmiGlobalAggregateTemperatureMarginArray.java b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/IpmiGlobalAggregateTemperatureMarginArray.java new file mode 100644 index 0000000..fd843b3 --- /dev/null +++ b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/IpmiGlobalAggregateTemperatureMarginArray.java @@ -0,0 +1,121 @@ +/* +* ============LICENSE_START======================================================= +* ONAP : DCAE +* ================================================================================ +* Copyright 2019 TechMahindra +*================================================================================= +* 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========================================================= +*/ +package org.onap.dcaegen2.ves.domain.ves70; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyDescription; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import org.apache.commons.lang.builder.EqualsBuilder; +import org.apache.commons.lang.builder.HashCodeBuilder; +import org.apache.commons.lang.builder.ToStringBuilder; + + +/** + * intelligent platform management interface (ipmi) global aggregate temperature margin + * + */ +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonPropertyOrder({ + "ipmiGlobalAggregateTemperatureMarginIdentifier", + "globalAggregateTemperatureMargin" +}) +public class IpmiGlobalAggregateTemperatureMarginArray { + + /** + * identifier for the ipmi global aggregate temperature margin metrics + * (Required) + * + */ + @JsonProperty("ipmiGlobalAggregateTemperatureMarginIdentifier") + @JsonPropertyDescription("identifier for the ipmi global aggregate temperature margin metrics") + private String ipmiGlobalAggregateTemperatureMarginIdentifier; + /** + * the difference between the current global aggregate temperature, in celsius, and the global aggregate throttling thermal trip point + * (Required) + * + */ + @JsonProperty("globalAggregateTemperatureMargin") + @JsonPropertyDescription("the difference between the current global aggregate temperature, in celsius, and the global aggregate throttling thermal trip point") + private Double globalAggregateTemperatureMargin; + + /** + * identifier for the ipmi global aggregate temperature margin metrics + * (Required) + * + */ + @JsonProperty("ipmiGlobalAggregateTemperatureMarginIdentifier") + public String getIpmiGlobalAggregateTemperatureMarginIdentifier() { + return ipmiGlobalAggregateTemperatureMarginIdentifier; + } + + /** + * identifier for the ipmi global aggregate temperature margin metrics + * (Required) + * + */ + @JsonProperty("ipmiGlobalAggregateTemperatureMarginIdentifier") + public void setIpmiGlobalAggregateTemperatureMarginIdentifier(String ipmiGlobalAggregateTemperatureMarginIdentifier) { + this.ipmiGlobalAggregateTemperatureMarginIdentifier = ipmiGlobalAggregateTemperatureMarginIdentifier; + } + + /** + * the difference between the current global aggregate temperature, in celsius, and the global aggregate throttling thermal trip point + * (Required) + * + */ + @JsonProperty("globalAggregateTemperatureMargin") + public Double getGlobalAggregateTemperatureMargin() { + return globalAggregateTemperatureMargin; + } + + /** + * the difference between the current global aggregate temperature, in celsius, and the global aggregate throttling thermal trip point + * (Required) + * + */ + @JsonProperty("globalAggregateTemperatureMargin") + public void setGlobalAggregateTemperatureMargin(Double globalAggregateTemperatureMargin) { + this.globalAggregateTemperatureMargin = globalAggregateTemperatureMargin; + } + + @Override + public String toString() { + return ToStringBuilder.reflectionToString(this); + } + + @Override + public int hashCode() { + return new HashCodeBuilder().append(ipmiGlobalAggregateTemperatureMarginIdentifier).append(globalAggregateTemperatureMargin).toHashCode(); + } + + @Override + public boolean equals(Object other) { + if (other == this) { + return true; + } + if ((other instanceof IpmiGlobalAggregateTemperatureMarginArray) == false) { + return false; + } + IpmiGlobalAggregateTemperatureMarginArray rhs = ((IpmiGlobalAggregateTemperatureMarginArray) other); + return new EqualsBuilder().append(ipmiGlobalAggregateTemperatureMarginIdentifier, rhs.ipmiGlobalAggregateTemperatureMarginIdentifier).append(globalAggregateTemperatureMargin, rhs.globalAggregateTemperatureMargin).isEquals(); + } + +} diff --git a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/IpmiHsbpArray.java b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/IpmiHsbpArray.java new file mode 100644 index 0000000..7715879 --- /dev/null +++ b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/IpmiHsbpArray.java @@ -0,0 +1,119 @@ +/* +* ============LICENSE_START======================================================= +* ONAP : DCAE +* ================================================================================ +* Copyright 2019 TechMahindra +*================================================================================= +* 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========================================================= +*/ + +package org.onap.dcaegen2.ves.domain.ves70; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyDescription; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import org.apache.commons.lang.builder.EqualsBuilder; +import org.apache.commons.lang.builder.HashCodeBuilder; +import org.apache.commons.lang.builder.ToStringBuilder; + + +/** + * intelligent platform management interface (ipmi) hot swap backplane power metrics + * + */ +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonPropertyOrder({ + "hsbpIdentifier", + "hsbpTemperature" +}) +public class IpmiHsbpArray { + + /** + * identifier for the hot swap backplane power unit + * (Required) + * + */ + @JsonProperty("hsbpIdentifier") + @JsonPropertyDescription("identifier for the hot swap backplane power unit") + private String hsbpIdentifier; + /** + * hot swap backplane power temperature in celsius + * + */ + @JsonProperty("hsbpTemperature") + @JsonPropertyDescription("hot swap backplane power temperature in celsius") + private Double hsbpTemperature; + + /** + * identifier for the hot swap backplane power unit + * (Required) + * + */ + @JsonProperty("hsbpIdentifier") + public String getHsbpIdentifier() { + return hsbpIdentifier; + } + + /** + * identifier for the hot swap backplane power unit + * (Required) + * + */ + @JsonProperty("hsbpIdentifier") + public void setHsbpIdentifier(String hsbpIdentifier) { + this.hsbpIdentifier = hsbpIdentifier; + } + + /** + * hot swap backplane power temperature in celsius + * + */ + @JsonProperty("hsbpTemperature") + public Double getHsbpTemperature() { + return hsbpTemperature; + } + + /** + * hot swap backplane power temperature in celsius + * + */ + @JsonProperty("hsbpTemperature") + public void setHsbpTemperature(Double hsbpTemperature) { + this.hsbpTemperature = hsbpTemperature; + } + + @Override + public String toString() { + return ToStringBuilder.reflectionToString(this); + } + + @Override + public int hashCode() { + return new HashCodeBuilder().append(hsbpIdentifier).append(hsbpTemperature).toHashCode(); + } + + @Override + public boolean equals(Object other) { + if (other == this) { + return true; + } + if ((other instanceof IpmiHsbpArray) == false) { + return false; + } + IpmiHsbpArray rhs = ((IpmiHsbpArray) other); + return new EqualsBuilder().append(hsbpIdentifier, rhs.hsbpIdentifier).append(hsbpTemperature, rhs.hsbpTemperature).isEquals(); + } + +} diff --git a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/IpmiNicArray.java b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/IpmiNicArray.java new file mode 100644 index 0000000..c820319 --- /dev/null +++ b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/IpmiNicArray.java @@ -0,0 +1,118 @@ +/* +* ============LICENSE_START======================================================= +* ONAP : DCAE +* ================================================================================ +* Copyright 2019 TechMahindra +*================================================================================= +* 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========================================================= +*/ +package org.onap.dcaegen2.ves.domain.ves70; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyDescription; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import org.apache.commons.lang.builder.EqualsBuilder; +import org.apache.commons.lang.builder.HashCodeBuilder; +import org.apache.commons.lang.builder.ToStringBuilder; + + +/** + * intelligent platform management interface (ipmi) network interface control card (nic) metrics + * + */ +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonPropertyOrder({ + "nicIdentifier", + "nicTemperature" +}) +public class IpmiNicArray { + + /** + * identifier for the network interface control card + * (Required) + * + */ + @JsonProperty("nicIdentifier") + @JsonPropertyDescription("identifier for the network interface control card") + private String nicIdentifier; + /** + * nic temperature in celsius + * + */ + @JsonProperty("nicTemperature") + @JsonPropertyDescription("nic temperature in celsius") + private Double nicTemperature; + + /** + * identifier for the network interface control card + * (Required) + * + */ + @JsonProperty("nicIdentifier") + public String getNicIdentifier() { + return nicIdentifier; + } + + /** + * identifier for the network interface control card + * (Required) + * + */ + @JsonProperty("nicIdentifier") + public void setNicIdentifier(String nicIdentifier) { + this.nicIdentifier = nicIdentifier; + } + + /** + * nic temperature in celsius + * + */ + @JsonProperty("nicTemperature") + public Double getNicTemperature() { + return nicTemperature; + } + + /** + * nic temperature in celsius + * + */ + @JsonProperty("nicTemperature") + public void setNicTemperature(Double nicTemperature) { + this.nicTemperature = nicTemperature; + } + + @Override + public String toString() { + return ToStringBuilder.reflectionToString(this); + } + + @Override + public int hashCode() { + return new HashCodeBuilder().append(nicIdentifier).append(nicTemperature).toHashCode(); + } + + @Override + public boolean equals(Object other) { + if (other == this) { + return true; + } + if ((other instanceof IpmiNicArray) == false) { + return false; + } + IpmiNicArray rhs = ((IpmiNicArray) other); + return new EqualsBuilder().append(nicIdentifier, rhs.nicIdentifier).append(nicTemperature, rhs.nicTemperature).isEquals(); + } + +} diff --git a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/IpmiPowerSupplyArray.java b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/IpmiPowerSupplyArray.java new file mode 100644 index 0000000..a3dff4e --- /dev/null +++ b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/IpmiPowerSupplyArray.java @@ -0,0 +1,170 @@ +/* +* ============LICENSE_START======================================================= +* ONAP : DCAE +* ================================================================================ +* Copyright 2019 TechMahindra +*================================================================================= +* 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========================================================= +*/ +package org.onap.dcaegen2.ves.domain.ves70; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyDescription; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import org.apache.commons.lang.builder.EqualsBuilder; +import org.apache.commons.lang.builder.HashCodeBuilder; +import org.apache.commons.lang.builder.ToStringBuilder; + + +/** + * intelligent platform management interface (ipmi) power supply metrics + * + */ +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonPropertyOrder({ + "powerSupplyIdentifier", + "powerSupplyInputPower", + "powerSupplyCurrentOutputPercent", + "powerSupplyTemperature" +}) +public class IpmiPowerSupplyArray { + + /** + * identifier for the power supply + * (Required) + * + */ + @JsonProperty("powerSupplyIdentifier") + @JsonPropertyDescription("identifier for the power supply") + private String powerSupplyIdentifier; + /** + * input power in watts + * + */ + @JsonProperty("powerSupplyInputPower") + @JsonPropertyDescription("input power in watts") + private Double powerSupplyInputPower; + /** + * current output voltage as a percentage of the design specified level + * + */ + @JsonProperty("powerSupplyCurrentOutputPercent") + @JsonPropertyDescription("current output voltage as a percentage of the design specified level") + private Double powerSupplyCurrentOutputPercent; + /** + * power supply temperature in celsius + * + */ + @JsonProperty("powerSupplyTemperature") + @JsonPropertyDescription("power supply temperature in celsius") + private Double powerSupplyTemperature; + + /** + * identifier for the power supply + * (Required) + * + */ + @JsonProperty("powerSupplyIdentifier") + public String getPowerSupplyIdentifier() { + return powerSupplyIdentifier; + } + + /** + * identifier for the power supply + * (Required) + * + */ + @JsonProperty("powerSupplyIdentifier") + public void setPowerSupplyIdentifier(String powerSupplyIdentifier) { + this.powerSupplyIdentifier = powerSupplyIdentifier; + } + + /** + * input power in watts + * + */ + @JsonProperty("powerSupplyInputPower") + public Double getPowerSupplyInputPower() { + return powerSupplyInputPower; + } + + /** + * input power in watts + * + */ + @JsonProperty("powerSupplyInputPower") + public void setPowerSupplyInputPower(Double powerSupplyInputPower) { + this.powerSupplyInputPower = powerSupplyInputPower; + } + + /** + * current output voltage as a percentage of the design specified level + * + */ + @JsonProperty("powerSupplyCurrentOutputPercent") + public Double getPowerSupplyCurrentOutputPercent() { + return powerSupplyCurrentOutputPercent; + } + + /** + * current output voltage as a percentage of the design specified level + * + */ + @JsonProperty("powerSupplyCurrentOutputPercent") + public void setPowerSupplyCurrentOutputPercent(Double powerSupplyCurrentOutputPercent) { + this.powerSupplyCurrentOutputPercent = powerSupplyCurrentOutputPercent; + } + + /** + * power supply temperature in celsius + * + */ + @JsonProperty("powerSupplyTemperature") + public Double getPowerSupplyTemperature() { + return powerSupplyTemperature; + } + + /** + * power supply temperature in celsius + * + */ + @JsonProperty("powerSupplyTemperature") + public void setPowerSupplyTemperature(Double powerSupplyTemperature) { + this.powerSupplyTemperature = powerSupplyTemperature; + } + + @Override + public String toString() { + return ToStringBuilder.reflectionToString(this); + } + + @Override + public int hashCode() { + return new HashCodeBuilder().append(powerSupplyIdentifier).append(powerSupplyInputPower).append(powerSupplyCurrentOutputPercent).append(powerSupplyTemperature).toHashCode(); + } + + @Override + public boolean equals(Object other) { + if (other == this) { + return true; + } + if ((other instanceof IpmiPowerSupplyArray) == false) { + return false; + } + IpmiPowerSupplyArray rhs = ((IpmiPowerSupplyArray) other); + return new EqualsBuilder().append(powerSupplyIdentifier, rhs.powerSupplyIdentifier).append(powerSupplyInputPower, rhs.powerSupplyInputPower).append(powerSupplyCurrentOutputPercent, rhs.powerSupplyCurrentOutputPercent).append(powerSupplyTemperature, rhs.powerSupplyTemperature).isEquals(); + } + +} diff --git a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/IpmiProcessorArray.java b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/IpmiProcessorArray.java new file mode 100644 index 0000000..829abc1 --- /dev/null +++ b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/IpmiProcessorArray.java @@ -0,0 +1,172 @@ +/* +* ============LICENSE_START======================================================= +* ONAP : DCAE +* ================================================================================ +* Copyright 2019 TechMahindra +*================================================================================= +* 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========================================================= +*/ +package org.onap.dcaegen2.ves.domain.ves70; + +import java.util.ArrayList; +import java.util.List; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyDescription; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import org.apache.commons.lang.builder.EqualsBuilder; +import org.apache.commons.lang.builder.HashCodeBuilder; +import org.apache.commons.lang.builder.ToStringBuilder; + + +/** + * intelligent platform management interface processor metrics + * + */ +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonPropertyOrder({ + "processorIdentifier", + "processorThermalControlPercent", + "processorDtsThermalMargin", + "processorDimmAggregateThermalMarginArray" +}) +public class IpmiProcessorArray { + + /** + * identifier for an ipmi processor + * (Required) + * + */ + @JsonProperty("processorIdentifier") + @JsonPropertyDescription("identifier for an ipmi processor") + private String processorIdentifier; + /** + * io module temperature in celsius + * + */ + @JsonProperty("processorThermalControlPercent") + @JsonPropertyDescription("io module temperature in celsius") + private Double processorThermalControlPercent; + /** + * front panel temperature in celsius + * + */ + @JsonProperty("processorDtsThermalMargin") + @JsonPropertyDescription("front panel temperature in celsius") + private Double processorDtsThermalMargin; + /** + * array of processorDimmAggregateThermalMargin objects + * + */ + @JsonProperty("processorDimmAggregateThermalMarginArray") + @JsonPropertyDescription("array of processorDimmAggregateThermalMargin objects") + private List processorDimmAggregateThermalMarginArray = new ArrayList(); + + /** + * identifier for an ipmi processor + * (Required) + * + */ + @JsonProperty("processorIdentifier") + public String getProcessorIdentifier() { + return processorIdentifier; + } + + /** + * identifier for an ipmi processor + * (Required) + * + */ + @JsonProperty("processorIdentifier") + public void setProcessorIdentifier(String processorIdentifier) { + this.processorIdentifier = processorIdentifier; + } + + /** + * io module temperature in celsius + * + */ + @JsonProperty("processorThermalControlPercent") + public Double getProcessorThermalControlPercent() { + return processorThermalControlPercent; + } + + /** + * io module temperature in celsius + * + */ + @JsonProperty("processorThermalControlPercent") + public void setProcessorThermalControlPercent(Double processorThermalControlPercent) { + this.processorThermalControlPercent = processorThermalControlPercent; + } + + /** + * front panel temperature in celsius + * + */ + @JsonProperty("processorDtsThermalMargin") + public Double getProcessorDtsThermalMargin() { + return processorDtsThermalMargin; + } + + /** + * front panel temperature in celsius + * + */ + @JsonProperty("processorDtsThermalMargin") + public void setProcessorDtsThermalMargin(Double processorDtsThermalMargin) { + this.processorDtsThermalMargin = processorDtsThermalMargin; + } + + /** + * array of processorDimmAggregateThermalMargin objects + * + */ + @JsonProperty("processorDimmAggregateThermalMarginArray") + public List getProcessorDimmAggregateThermalMarginArray() { + return processorDimmAggregateThermalMarginArray; + } + + /** + * array of processorDimmAggregateThermalMargin objects + * + */ + @JsonProperty("processorDimmAggregateThermalMarginArray") + public void setProcessorDimmAggregateThermalMarginArray(List processorDimmAggregateThermalMarginArray) { + this.processorDimmAggregateThermalMarginArray = processorDimmAggregateThermalMarginArray; + } + + @Override + public String toString() { + return ToStringBuilder.reflectionToString(this); + } + + @Override + public int hashCode() { + return new HashCodeBuilder().append(processorIdentifier).append(processorThermalControlPercent).append(processorDtsThermalMargin).append(processorDimmAggregateThermalMarginArray).toHashCode(); + } + + @Override + public boolean equals(Object other) { + if (other == this) { + return true; + } + if ((other instanceof IpmiProcessorArray) == false) { + return false; + } + IpmiProcessorArray rhs = ((IpmiProcessorArray) other); + return new EqualsBuilder().append(processorIdentifier, rhs.processorIdentifier).append(processorThermalControlPercent, rhs.processorThermalControlPercent).append(processorDtsThermalMargin, rhs.processorDtsThermalMargin).append(processorDimmAggregateThermalMarginArray, rhs.processorDimmAggregateThermalMarginArray).isEquals(); + } + +} diff --git a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/LatencyDistribution.java b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/LatencyDistribution.java new file mode 100644 index 0000000..7bdf886 --- /dev/null +++ b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/LatencyDistribution.java @@ -0,0 +1,117 @@ +/* +* ============LICENSE_START======================================================= +* ONAP : DCAE +* ================================================================================ +* Copyright 2019 TechMahindra +*================================================================================= +* 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========================================================= +*/ + +package org.onap.dcaegen2.ves.domain.ves70; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import org.apache.commons.lang.builder.EqualsBuilder; +import org.apache.commons.lang.builder.HashCodeBuilder; +import org.apache.commons.lang.builder.ToStringBuilder; + + +/** + * number of counts falling within a defined latency bucket + * + */ +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonPropertyOrder({ + "countsInTheBucket", + "highEndOfLatencyBucket", + "lowEndOfLatencyBucket" +}) +public class LatencyDistribution { + + /** + * + * (Required) + * + */ + @JsonProperty("countsInTheBucket") + private Double countsInTheBucket; + @JsonProperty("highEndOfLatencyBucket") + private Double highEndOfLatencyBucket; + @JsonProperty("lowEndOfLatencyBucket") + private Double lowEndOfLatencyBucket; + + /** + * + * (Required) + * + */ + @JsonProperty("countsInTheBucket") + public Double getCountsInTheBucket() { + return countsInTheBucket; + } + + /** + * + * (Required) + * + */ + @JsonProperty("countsInTheBucket") + public void setCountsInTheBucket(Double countsInTheBucket) { + this.countsInTheBucket = countsInTheBucket; + } + + @JsonProperty("highEndOfLatencyBucket") + public Double getHighEndOfLatencyBucket() { + return highEndOfLatencyBucket; + } + + @JsonProperty("highEndOfLatencyBucket") + public void setHighEndOfLatencyBucket(Double highEndOfLatencyBucket) { + this.highEndOfLatencyBucket = highEndOfLatencyBucket; + } + + @JsonProperty("lowEndOfLatencyBucket") + public Double getLowEndOfLatencyBucket() { + return lowEndOfLatencyBucket; + } + + @JsonProperty("lowEndOfLatencyBucket") + public void setLowEndOfLatencyBucket(Double lowEndOfLatencyBucket) { + this.lowEndOfLatencyBucket = lowEndOfLatencyBucket; + } + + @Override + public String toString() { + return ToStringBuilder.reflectionToString(this); + } + + @Override + public int hashCode() { + return new HashCodeBuilder().append(countsInTheBucket).append(highEndOfLatencyBucket).append(lowEndOfLatencyBucket).toHashCode(); + } + + @Override + public boolean equals(Object other) { + if (other == this) { + return true; + } + if ((other instanceof LatencyDistribution) == false) { + return false; + } + LatencyDistribution rhs = ((LatencyDistribution) other); + return new EqualsBuilder().append(countsInTheBucket, rhs.countsInTheBucket).append(highEndOfLatencyBucket, rhs.highEndOfLatencyBucket).append(lowEndOfLatencyBucket, rhs.lowEndOfLatencyBucket).isEquals(); + } + +} diff --git a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/LoadArray.java b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/LoadArray.java new file mode 100644 index 0000000..5a407c4 --- /dev/null +++ b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/LoadArray.java @@ -0,0 +1,142 @@ +/* +* ============LICENSE_START======================================================= +* ONAP : DCAE +* ================================================================================ +* Copyright 2019 TechMahindra +*================================================================================= +* 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========================================================= +*/ + +package org.onap.dcaegen2.ves.domain.ves70; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyDescription; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import org.apache.commons.lang.builder.EqualsBuilder; +import org.apache.commons.lang.builder.HashCodeBuilder; +import org.apache.commons.lang.builder.ToStringBuilder; + + +/** + * /proc/loadavg cpu utilization and io utilization metrics + * + */ +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonPropertyOrder({ + "longTerm", + "midTerm", + "shortTerm" +}) +public class LoadArray { + + /** + * number of jobs in the run queue (state R, cpu utilization) or waiting for disk I/O (state D, io utilization) averaged over 15 minutes using /proc/loadavg + * + */ + @JsonProperty("longTerm") + @JsonPropertyDescription("number of jobs in the run queue (state R, cpu utilization) or waiting for disk I/O (state D, io utilization) averaged over 15 minutes using /proc/loadavg") + private Double longTerm; + /** + * number of jobs in the run queue (state R, cpu utilization) or waiting for disk I/O (state D, io utilization) averaged over 5 minutes using /proc/loadavg + * + */ + @JsonProperty("midTerm") + @JsonPropertyDescription("number of jobs in the run queue (state R, cpu utilization) or waiting for disk I/O (state D, io utilization) averaged over 5 minutes using /proc/loadavg") + private Double midTerm; + /** + * number of jobs in the run queue (state R, cpu utilization) or waiting for disk I/O (state D, io utilization) averaged over 1 minute using /proc/loadavg + * + */ + @JsonProperty("shortTerm") + @JsonPropertyDescription("number of jobs in the run queue (state R, cpu utilization) or waiting for disk I/O (state D, io utilization) averaged over 1 minute using /proc/loadavg") + private Double shortTerm; + + /** + * number of jobs in the run queue (state R, cpu utilization) or waiting for disk I/O (state D, io utilization) averaged over 15 minutes using /proc/loadavg + * + */ + @JsonProperty("longTerm") + public Double getLongTerm() { + return longTerm; + } + + /** + * number of jobs in the run queue (state R, cpu utilization) or waiting for disk I/O (state D, io utilization) averaged over 15 minutes using /proc/loadavg + * + */ + @JsonProperty("longTerm") + public void setLongTerm(Double longTerm) { + this.longTerm = longTerm; + } + + /** + * number of jobs in the run queue (state R, cpu utilization) or waiting for disk I/O (state D, io utilization) averaged over 5 minutes using /proc/loadavg + * + */ + @JsonProperty("midTerm") + public Double getMidTerm() { + return midTerm; + } + + /** + * number of jobs in the run queue (state R, cpu utilization) or waiting for disk I/O (state D, io utilization) averaged over 5 minutes using /proc/loadavg + * + */ + @JsonProperty("midTerm") + public void setMidTerm(Double midTerm) { + this.midTerm = midTerm; + } + + /** + * number of jobs in the run queue (state R, cpu utilization) or waiting for disk I/O (state D, io utilization) averaged over 1 minute using /proc/loadavg + * + */ + @JsonProperty("shortTerm") + public Double getShortTerm() { + return shortTerm; + } + + /** + * number of jobs in the run queue (state R, cpu utilization) or waiting for disk I/O (state D, io utilization) averaged over 1 minute using /proc/loadavg + * + */ + @JsonProperty("shortTerm") + public void setShortTerm(Double shortTerm) { + this.shortTerm = shortTerm; + } + + @Override + public String toString() { + return ToStringBuilder.reflectionToString(this); + } + + @Override + public int hashCode() { + return new HashCodeBuilder().append(longTerm).append(midTerm).append(shortTerm).toHashCode(); + } + + @Override + public boolean equals(Object other) { + if (other == this) { + return true; + } + if ((other instanceof LoadArray) == false) { + return false; + } + LoadArray rhs = ((LoadArray) other); + return new EqualsBuilder().append(longTerm, rhs.longTerm).append(midTerm, rhs.midTerm).append(shortTerm, rhs.shortTerm).isEquals(); + } + +} diff --git a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/MachineCheckExceptionArray.java b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/MachineCheckExceptionArray.java new file mode 100644 index 0000000..47ab244 --- /dev/null +++ b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/MachineCheckExceptionArray.java @@ -0,0 +1,197 @@ +/* +* ============LICENSE_START======================================================= +* ONAP : DCAE +* ================================================================================ +* Copyright 2019 TechMahindra +*================================================================================= +* 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========================================================= +*/ + +package org.onap.dcaegen2.ves.domain.ves70; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyDescription; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import org.apache.commons.lang.builder.EqualsBuilder; +import org.apache.commons.lang.builder.HashCodeBuilder; +import org.apache.commons.lang.builder.ToStringBuilder; + + +/** + * metrics on vm machine check exceptions + * + */ +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonPropertyOrder({ + "correctedMemoryErrors", + "correctedMemoryErrorsIn1Hr", + "uncorrectedMemoryErrors", + "uncorrectedMemoryErrorsIn1Hr", + "vmIdentifier" +}) +public class MachineCheckExceptionArray { + + /** + * total hardware errors that were corrected by the hardware (e.g. data corruption corrected via ECC) over the measurementInterval + * + */ + @JsonProperty("correctedMemoryErrors") + @JsonPropertyDescription("total hardware errors that were corrected by the hardware (e.g. data corruption corrected via ECC) over the measurementInterval") + private Double correctedMemoryErrors; + /** + * total hardware errors that were corrected by the hardware over the last one hour + * + */ + @JsonProperty("correctedMemoryErrorsIn1Hr") + @JsonPropertyDescription("total hardware errors that were corrected by the hardware over the last one hour") + private Double correctedMemoryErrorsIn1Hr; + /** + * total uncorrected hardware errors that were detected by the hardware (e.g., causing data corruption) over the measurementInterval + * + */ + @JsonProperty("uncorrectedMemoryErrors") + @JsonPropertyDescription("total uncorrected hardware errors that were detected by the hardware (e.g., causing data corruption) over the measurementInterval") + private Double uncorrectedMemoryErrors; + /** + * total uncorrected hardware errors that were detected by the hardware over the last one hour + * + */ + @JsonProperty("uncorrectedMemoryErrorsIn1Hr") + @JsonPropertyDescription("total uncorrected hardware errors that were detected by the hardware over the last one hour") + private Double uncorrectedMemoryErrorsIn1Hr; + /** + * virtual machine identifier associated with the machine check exception + * (Required) + * + */ + @JsonProperty("vmIdentifier") + @JsonPropertyDescription("virtual machine identifier associated with the machine check exception") + private String vmIdentifier; + + /** + * total hardware errors that were corrected by the hardware (e.g. data corruption corrected via ECC) over the measurementInterval + * + */ + @JsonProperty("correctedMemoryErrors") + public Double getCorrectedMemoryErrors() { + return correctedMemoryErrors; + } + + /** + * total hardware errors that were corrected by the hardware (e.g. data corruption corrected via ECC) over the measurementInterval + * + */ + @JsonProperty("correctedMemoryErrors") + public void setCorrectedMemoryErrors(Double correctedMemoryErrors) { + this.correctedMemoryErrors = correctedMemoryErrors; + } + + /** + * total hardware errors that were corrected by the hardware over the last one hour + * + */ + @JsonProperty("correctedMemoryErrorsIn1Hr") + public Double getCorrectedMemoryErrorsIn1Hr() { + return correctedMemoryErrorsIn1Hr; + } + + /** + * total hardware errors that were corrected by the hardware over the last one hour + * + */ + @JsonProperty("correctedMemoryErrorsIn1Hr") + public void setCorrectedMemoryErrorsIn1Hr(Double correctedMemoryErrorsIn1Hr) { + this.correctedMemoryErrorsIn1Hr = correctedMemoryErrorsIn1Hr; + } + + /** + * total uncorrected hardware errors that were detected by the hardware (e.g., causing data corruption) over the measurementInterval + * + */ + @JsonProperty("uncorrectedMemoryErrors") + public Double getUncorrectedMemoryErrors() { + return uncorrectedMemoryErrors; + } + + /** + * total uncorrected hardware errors that were detected by the hardware (e.g., causing data corruption) over the measurementInterval + * + */ + @JsonProperty("uncorrectedMemoryErrors") + public void setUncorrectedMemoryErrors(Double uncorrectedMemoryErrors) { + this.uncorrectedMemoryErrors = uncorrectedMemoryErrors; + } + + /** + * total uncorrected hardware errors that were detected by the hardware over the last one hour + * + */ + @JsonProperty("uncorrectedMemoryErrorsIn1Hr") + public Double getUncorrectedMemoryErrorsIn1Hr() { + return uncorrectedMemoryErrorsIn1Hr; + } + + /** + * total uncorrected hardware errors that were detected by the hardware over the last one hour + * + */ + @JsonProperty("uncorrectedMemoryErrorsIn1Hr") + public void setUncorrectedMemoryErrorsIn1Hr(Double uncorrectedMemoryErrorsIn1Hr) { + this.uncorrectedMemoryErrorsIn1Hr = uncorrectedMemoryErrorsIn1Hr; + } + + /** + * virtual machine identifier associated with the machine check exception + * (Required) + * + */ + @JsonProperty("vmIdentifier") + public String getVmIdentifier() { + return vmIdentifier; + } + + /** + * virtual machine identifier associated with the machine check exception + * (Required) + * + */ + @JsonProperty("vmIdentifier") + public void setVmIdentifier(String vmIdentifier) { + this.vmIdentifier = vmIdentifier; + } + + @Override + public String toString() { + return ToStringBuilder.reflectionToString(this); + } + + @Override + public int hashCode() { + return new HashCodeBuilder().append(correctedMemoryErrors).append(correctedMemoryErrorsIn1Hr).append(uncorrectedMemoryErrors).append(uncorrectedMemoryErrorsIn1Hr).append(vmIdentifier).toHashCode(); + } + + @Override + public boolean equals(Object other) { + if (other == this) { + return true; + } + if ((other instanceof MachineCheckExceptionArray) == false) { + return false; + } + MachineCheckExceptionArray rhs = ((MachineCheckExceptionArray) other); + return new EqualsBuilder().append(correctedMemoryErrors, rhs.correctedMemoryErrors).append(correctedMemoryErrorsIn1Hr, rhs.correctedMemoryErrorsIn1Hr).append(uncorrectedMemoryErrors, rhs.uncorrectedMemoryErrors).append(uncorrectedMemoryErrorsIn1Hr, rhs.uncorrectedMemoryErrorsIn1Hr).append(vmIdentifier, rhs.vmIdentifier).isEquals(); + } + +} diff --git a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/MeasurementFields.java b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/MeasurementFields.java new file mode 100644 index 0000000..a4cd30c --- /dev/null +++ b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/MeasurementFields.java @@ -0,0 +1,737 @@ +/* +* ============LICENSE_START======================================================= +* ONAP : DCAE +* ================================================================================ +* Copyright 2019 TechMahindra +*================================================================================= +* 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========================================================= +*/ +package org.onap.dcaegen2.ves.domain.ves70; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyDescription; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; +import org.apache.commons.lang.builder.EqualsBuilder; +import org.apache.commons.lang.builder.HashCodeBuilder; +import org.apache.commons.lang.builder.ToStringBuilder; + + +/** + * measurement fields + * + */ +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonPropertyOrder({ + "additionalFields", + "additionalMeasurements", + "additionalObjects", + "codecUsageArray", + "concurrentSessions", + "configuredEntities", + "cpuUsageArray", + "diskUsageArray", + "featureUsageArray", + "filesystemUsageArray", + "hugePagesArray", + "ipmi", + "latencyDistribution", + "loadArray", + "machineCheckExceptionArray", + "meanRequestLatency", + "measurementInterval", + "measurementFieldsVersion", + "memoryUsageArray", + "numberOfMediaPortsInUse", + "requestRate", + "nfcScalingMetric", + "nicPerformanceArray", + "processStatsArray" +}) +public class MeasurementFields { + + /** + * an associative array which is an array of key:value pairs + * + */ + @JsonProperty("additionalFields") + @JsonPropertyDescription("an associative array which is an array of key:value pairs") + private AlarmAdditionalInformation additionalFields; + /** + * array of named hashMaps + * + */ + @JsonProperty("additionalMeasurements") + @JsonPropertyDescription("array of named hashMaps") + private List additionalMeasurements = new ArrayList(); + /** + * array of json objects described by name, schema and other meta-information + * + */ + @JsonProperty("additionalObjects") + @JsonPropertyDescription("array of json objects described by name, schema and other meta-information") + private List additionalObjects = new ArrayList(); + /** + * array of codecs in use + * + */ + @JsonProperty("codecUsageArray") + @JsonPropertyDescription("array of codecs in use") + private List codecUsageArray = new ArrayList(); + /** + * peak concurrent sessions for the VM or xNF over the measurementInterval + * + */ + @JsonProperty("concurrentSessions") + @JsonPropertyDescription("peak concurrent sessions for the VM or xNF over the measurementInterval") + private Integer concurrentSessions; + /** + * over the measurementInterval, peak total number of: users, subscribers, devices, adjacencies, etc., for the VM, or subscribers, devices, etc., for the xNF + * + */ + @JsonProperty("configuredEntities") + @JsonPropertyDescription("over the measurementInterval, peak total number of: users, subscribers, devices, adjacencies, etc., for the VM, or subscribers, devices, etc., for the xNF") + private Integer configuredEntities; + /** + * usage of an array of CPUs + * + */ + @JsonProperty("cpuUsageArray") + @JsonPropertyDescription("usage of an array of CPUs") + private List cpuUsageArray = new ArrayList(); + /** + * usage of an array of disks + * + */ + @JsonProperty("diskUsageArray") + @JsonPropertyDescription("usage of an array of disks") + private List diskUsageArray = new ArrayList(); + /** + * an associative array which is an array of key:value pairs + * + */ + @JsonProperty("featureUsageArray") + @JsonPropertyDescription("an associative array which is an array of key:value pairs") + private AlarmAdditionalInformation featureUsageArray; + /** + * filesystem usage of the VM on which the xNFC reporting the event is running + * + */ + @JsonProperty("filesystemUsageArray") + @JsonPropertyDescription("filesystem usage of the VM on which the xNFC reporting the event is running") + private List filesystemUsageArray = new ArrayList(); + /** + * array of metrics on hugepPages + * + */ + @JsonProperty("hugePagesArray") + @JsonPropertyDescription("array of metrics on hugepPages") + private List hugePagesArray = new ArrayList(); + /** + * intelligent platform management interface metrics + * + */ + @JsonProperty("ipmi") + @JsonPropertyDescription("intelligent platform management interface metrics") + private Ipmi ipmi; + /** + * array of integers representing counts of requests whose latency in milliseconds falls within per-xNF configured ranges + * + */ + @JsonProperty("latencyDistribution") + @JsonPropertyDescription("array of integers representing counts of requests whose latency in milliseconds falls within per-xNF configured ranges") + private List latencyDistribution = new ArrayList(); + /** + * array of system load metrics + * + */ + @JsonProperty("loadArray") + @JsonPropertyDescription("array of system load metrics") + private List loadArray = new ArrayList(); + /** + * array of machine check exceptions + * + */ + @JsonProperty("machineCheckExceptionArray") + @JsonPropertyDescription("array of machine check exceptions") + private List machineCheckExceptionArray = new ArrayList(); + /** + * mean seconds required to respond to each request for the VM on which the xNFC reporting the event is running + * + */ + @JsonProperty("meanRequestLatency") + @JsonPropertyDescription("mean seconds required to respond to each request for the VM on which the xNFC reporting the event is running") + private Double meanRequestLatency; + /** + * interval over which measurements are being reported in seconds + * (Required) + * + */ + @JsonProperty("measurementInterval") + @JsonPropertyDescription("interval over which measurements are being reported in seconds") + private Double measurementInterval; + /** + * version of the measurementFields block + * (Required) + * + */ + @JsonProperty("measurementFieldsVersion") + @JsonPropertyDescription("version of the measurementFields block") + private MeasurementFields.MeasurementFieldsVersion measurementFieldsVersion; + /** + * memory usage of an array of VMs + * + */ + @JsonProperty("memoryUsageArray") + @JsonPropertyDescription("memory usage of an array of VMs") + private List memoryUsageArray = new ArrayList(); + /** + * number of media ports in use + * + */ + @JsonProperty("numberOfMediaPortsInUse") + @JsonPropertyDescription("number of media ports in use") + private Integer numberOfMediaPortsInUse; + /** + * peak rate of service requests per second to the xNF over the measurementInterval + * + */ + @JsonProperty("requestRate") + @JsonPropertyDescription("peak rate of service requests per second to the xNF over the measurementInterval") + private Double requestRate; + /** + * represents busy-ness of the network function from 0 to 100 as reported by the xNFC + * + */ + @JsonProperty("nfcScalingMetric") + @JsonPropertyDescription("represents busy-ness of the network function from 0 to 100 as reported by the xNFC") + private Integer nfcScalingMetric; + /** + * usage of an array of network interface cards + * + */ + @JsonProperty("nicPerformanceArray") + @JsonPropertyDescription("usage of an array of network interface cards") + private List nicPerformanceArray = new ArrayList(); + /** + * array of metrics on system processes + * + */ + @JsonProperty("processStatsArray") + @JsonPropertyDescription("array of metrics on system processes") + private List processStatsArray = new ArrayList(); + + /** + * an associative array which is an array of key:value pairs + * + */ + @JsonProperty("additionalFields") + public AlarmAdditionalInformation getAdditionalFields() { + return additionalFields; + } + + /** + * an associative array which is an array of key:value pairs + * + */ + @JsonProperty("additionalFields") + public void setAdditionalFields(AlarmAdditionalInformation additionalFields) { + this.additionalFields = additionalFields; + } + + /** + * array of named hashMaps + * + */ + @JsonProperty("additionalMeasurements") + public List getAdditionalMeasurements() { + return additionalMeasurements; + } + + /** + * array of named hashMaps + * + */ + @JsonProperty("additionalMeasurements") + public void setAdditionalMeasurements(List additionalMeasurements) { + this.additionalMeasurements = additionalMeasurements; + } + + /** + * array of json objects described by name, schema and other meta-information + * + */ + @JsonProperty("additionalObjects") + public List getAdditionalObjects() { + return additionalObjects; + } + + /** + * array of json objects described by name, schema and other meta-information + * + */ + @JsonProperty("additionalObjects") + public void setAdditionalObjects(List additionalObjects) { + this.additionalObjects = additionalObjects; + } + + /** + * array of codecs in use + * + */ + @JsonProperty("codecUsageArray") + public List getCodecUsageArray() { + return codecUsageArray; + } + + /** + * array of codecs in use + * + */ + @JsonProperty("codecUsageArray") + public void setCodecUsageArray(List codecUsageArray) { + this.codecUsageArray = codecUsageArray; + } + + /** + * peak concurrent sessions for the VM or xNF over the measurementInterval + * + */ + @JsonProperty("concurrentSessions") + public Integer getConcurrentSessions() { + return concurrentSessions; + } + + /** + * peak concurrent sessions for the VM or xNF over the measurementInterval + * + */ + @JsonProperty("concurrentSessions") + public void setConcurrentSessions(Integer concurrentSessions) { + this.concurrentSessions = concurrentSessions; + } + + /** + * over the measurementInterval, peak total number of: users, subscribers, devices, adjacencies, etc., for the VM, or subscribers, devices, etc., for the xNF + * + */ + @JsonProperty("configuredEntities") + public Integer getConfiguredEntities() { + return configuredEntities; + } + + /** + * over the measurementInterval, peak total number of: users, subscribers, devices, adjacencies, etc., for the VM, or subscribers, devices, etc., for the xNF + * + */ + @JsonProperty("configuredEntities") + public void setConfiguredEntities(Integer configuredEntities) { + this.configuredEntities = configuredEntities; + } + + /** + * usage of an array of CPUs + * + */ + @JsonProperty("cpuUsageArray") + public List getCpuUsageArray() { + return cpuUsageArray; + } + + /** + * usage of an array of CPUs + * + */ + @JsonProperty("cpuUsageArray") + public void setCpuUsageArray(List cpuUsageArray) { + this.cpuUsageArray = cpuUsageArray; + } + + /** + * usage of an array of disks + * + */ + @JsonProperty("diskUsageArray") + public List getDiskUsageArray() { + return diskUsageArray; + } + + /** + * usage of an array of disks + * + */ + @JsonProperty("diskUsageArray") + public void setDiskUsageArray(List diskUsageArray) { + this.diskUsageArray = diskUsageArray; + } + + /** + * an associative array which is an array of key:value pairs + * + */ + @JsonProperty("featureUsageArray") + public AlarmAdditionalInformation getFeatureUsageArray() { + return featureUsageArray; + } + + /** + * an associative array which is an array of key:value pairs + * + */ + @JsonProperty("featureUsageArray") + public void setFeatureUsageArray(AlarmAdditionalInformation featureUsageArray) { + this.featureUsageArray = featureUsageArray; + } + + /** + * filesystem usage of the VM on which the xNFC reporting the event is running + * + */ + @JsonProperty("filesystemUsageArray") + public List getFilesystemUsageArray() { + return filesystemUsageArray; + } + + /** + * filesystem usage of the VM on which the xNFC reporting the event is running + * + */ + @JsonProperty("filesystemUsageArray") + public void setFilesystemUsageArray(List filesystemUsageArray) { + this.filesystemUsageArray = filesystemUsageArray; + } + + /** + * array of metrics on hugepPages + * + */ + @JsonProperty("hugePagesArray") + public List getHugePagesArray() { + return hugePagesArray; + } + + /** + * array of metrics on hugepPages + * + */ + @JsonProperty("hugePagesArray") + public void setHugePagesArray(List hugePagesArray) { + this.hugePagesArray = hugePagesArray; + } + + /** + * intelligent platform management interface metrics + * + */ + @JsonProperty("ipmi") + public Ipmi getIpmi() { + return ipmi; + } + + /** + * intelligent platform management interface metrics + * + */ + @JsonProperty("ipmi") + public void setIpmi(Ipmi ipmi) { + this.ipmi = ipmi; + } + + /** + * array of integers representing counts of requests whose latency in milliseconds falls within per-xNF configured ranges + * + */ + @JsonProperty("latencyDistribution") + public List getLatencyDistribution() { + return latencyDistribution; + } + + /** + * array of integers representing counts of requests whose latency in milliseconds falls within per-xNF configured ranges + * + */ + @JsonProperty("latencyDistribution") + public void setLatencyDistribution(List latencyDistribution) { + this.latencyDistribution = latencyDistribution; + } + + /** + * array of system load metrics + * + */ + @JsonProperty("loadArray") + public List getLoadArray() { + return loadArray; + } + + /** + * array of system load metrics + * + */ + @JsonProperty("loadArray") + public void setLoadArray(List loadArray) { + this.loadArray = loadArray; + } + + /** + * array of machine check exceptions + * + */ + @JsonProperty("machineCheckExceptionArray") + public List getMachineCheckExceptionArray() { + return machineCheckExceptionArray; + } + + /** + * array of machine check exceptions + * + */ + @JsonProperty("machineCheckExceptionArray") + public void setMachineCheckExceptionArray(List machineCheckExceptionArray) { + this.machineCheckExceptionArray = machineCheckExceptionArray; + } + + /** + * mean seconds required to respond to each request for the VM on which the xNFC reporting the event is running + * + */ + @JsonProperty("meanRequestLatency") + public Double getMeanRequestLatency() { + return meanRequestLatency; + } + + /** + * mean seconds required to respond to each request for the VM on which the xNFC reporting the event is running + * + */ + @JsonProperty("meanRequestLatency") + public void setMeanRequestLatency(Double meanRequestLatency) { + this.meanRequestLatency = meanRequestLatency; + } + + /** + * interval over which measurements are being reported in seconds + * (Required) + * + */ + @JsonProperty("measurementInterval") + public Double getMeasurementInterval() { + return measurementInterval; + } + + /** + * interval over which measurements are being reported in seconds + * (Required) + * + */ + @JsonProperty("measurementInterval") + public void setMeasurementInterval(Double measurementInterval) { + this.measurementInterval = measurementInterval; + } + + /** + * version of the measurementFields block + * (Required) + * + */ + @JsonProperty("measurementFieldsVersion") + public MeasurementFields.MeasurementFieldsVersion getMeasurementFieldsVersion() { + return measurementFieldsVersion; + } + + /** + * version of the measurementFields block + * (Required) + * + */ + @JsonProperty("measurementFieldsVersion") + public void setMeasurementFieldsVersion(MeasurementFields.MeasurementFieldsVersion measurementFieldsVersion) { + this.measurementFieldsVersion = measurementFieldsVersion; + } + + /** + * memory usage of an array of VMs + * + */ + @JsonProperty("memoryUsageArray") + public List getMemoryUsageArray() { + return memoryUsageArray; + } + + /** + * memory usage of an array of VMs + * + */ + @JsonProperty("memoryUsageArray") + public void setMemoryUsageArray(List memoryUsageArray) { + this.memoryUsageArray = memoryUsageArray; + } + + /** + * number of media ports in use + * + */ + @JsonProperty("numberOfMediaPortsInUse") + public Integer getNumberOfMediaPortsInUse() { + return numberOfMediaPortsInUse; + } + + /** + * number of media ports in use + * + */ + @JsonProperty("numberOfMediaPortsInUse") + public void setNumberOfMediaPortsInUse(Integer numberOfMediaPortsInUse) { + this.numberOfMediaPortsInUse = numberOfMediaPortsInUse; + } + + /** + * peak rate of service requests per second to the xNF over the measurementInterval + * + */ + @JsonProperty("requestRate") + public Double getRequestRate() { + return requestRate; + } + + /** + * peak rate of service requests per second to the xNF over the measurementInterval + * + */ + @JsonProperty("requestRate") + public void setRequestRate(Double requestRate) { + this.requestRate = requestRate; + } + + /** + * represents busy-ness of the network function from 0 to 100 as reported by the xNFC + * + */ + @JsonProperty("nfcScalingMetric") + public Integer getNfcScalingMetric() { + return nfcScalingMetric; + } + + /** + * represents busy-ness of the network function from 0 to 100 as reported by the xNFC + * + */ + @JsonProperty("nfcScalingMetric") + public void setNfcScalingMetric(Integer nfcScalingMetric) { + this.nfcScalingMetric = nfcScalingMetric; + } + + /** + * usage of an array of network interface cards + * + */ + @JsonProperty("nicPerformanceArray") + public List getNicPerformanceArray() { + return nicPerformanceArray; + } + + /** + * usage of an array of network interface cards + * + */ + @JsonProperty("nicPerformanceArray") + public void setNicPerformanceArray(List nicPerformanceArray) { + this.nicPerformanceArray = nicPerformanceArray; + } + + /** + * array of metrics on system processes + * + */ + @JsonProperty("processStatsArray") + public List getProcessStatsArray() { + return processStatsArray; + } + + /** + * array of metrics on system processes + * + */ + @JsonProperty("processStatsArray") + public void setProcessStatsArray(List processStatsArray) { + this.processStatsArray = processStatsArray; + } + + @Override + public String toString() { + return ToStringBuilder.reflectionToString(this); + } + + @Override + public int hashCode() { + return new HashCodeBuilder().append(additionalFields).append(additionalMeasurements).append(additionalObjects).append(codecUsageArray).append(concurrentSessions).append(configuredEntities).append(cpuUsageArray).append(diskUsageArray).append(featureUsageArray).append(filesystemUsageArray).append(hugePagesArray).append(ipmi).append(latencyDistribution).append(loadArray).append(machineCheckExceptionArray).append(meanRequestLatency).append(measurementInterval).append(measurementFieldsVersion).append(memoryUsageArray).append(numberOfMediaPortsInUse).append(requestRate).append(nfcScalingMetric).append(nicPerformanceArray).append(processStatsArray).toHashCode(); + } + + @Override + public boolean equals(Object other) { + if (other == this) { + return true; + } + if ((other instanceof MeasurementFields) == false) { + return false; + } + MeasurementFields rhs = ((MeasurementFields) other); + return new EqualsBuilder().append(additionalFields, rhs.additionalFields).append(additionalMeasurements, rhs.additionalMeasurements).append(additionalObjects, rhs.additionalObjects).append(codecUsageArray, rhs.codecUsageArray).append(concurrentSessions, rhs.concurrentSessions).append(configuredEntities, rhs.configuredEntities).append(cpuUsageArray, rhs.cpuUsageArray).append(diskUsageArray, rhs.diskUsageArray).append(featureUsageArray, rhs.featureUsageArray).append(filesystemUsageArray, rhs.filesystemUsageArray).append(hugePagesArray, rhs.hugePagesArray).append(ipmi, rhs.ipmi).append(latencyDistribution, rhs.latencyDistribution).append(loadArray, rhs.loadArray).append(machineCheckExceptionArray, rhs.machineCheckExceptionArray).append(meanRequestLatency, rhs.meanRequestLatency).append(measurementInterval, rhs.measurementInterval).append(measurementFieldsVersion, rhs.measurementFieldsVersion).append(memoryUsageArray, rhs.memoryUsageArray).append(numberOfMediaPortsInUse, rhs.numberOfMediaPortsInUse).append(requestRate, rhs.requestRate).append(nfcScalingMetric, rhs.nfcScalingMetric).append(nicPerformanceArray, rhs.nicPerformanceArray).append(processStatsArray, rhs.processStatsArray).isEquals(); + } + + public enum MeasurementFieldsVersion { + + _4_0("4.0"); + private final String value; + private final static Map CONSTANTS = new HashMap(); + + static { + for (MeasurementFields.MeasurementFieldsVersion c: values()) { + CONSTANTS.put(c.value, c); + } + } + + private MeasurementFieldsVersion(String value) { + this.value = value; + } + + @Override + public String toString() { + return this.value; + } + + @JsonValue + public String value() { + return this.value; + } + + @JsonCreator + public static MeasurementFields.MeasurementFieldsVersion fromValue(String value) { + MeasurementFields.MeasurementFieldsVersion constant = CONSTANTS.get(value); + if (constant == null) { + throw new IllegalArgumentException(value); + } else { + return constant; + } + } + + } + +} diff --git a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/MemoryUsageArray.java b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/MemoryUsageArray.java new file mode 100644 index 0000000..a13cc73 --- /dev/null +++ b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/MemoryUsageArray.java @@ -0,0 +1,514 @@ +/* +* ============LICENSE_START======================================================= +* ONAP : DCAE +* ================================================================================ +* Copyright 2019 TechMahindra +*================================================================================= +* 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========================================================= +*/ +package org.onap.dcaegen2.ves.domain.ves70; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyDescription; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import org.apache.commons.lang.builder.EqualsBuilder; +import org.apache.commons.lang.builder.HashCodeBuilder; +import org.apache.commons.lang.builder.ToStringBuilder; + + +/** + * memory usage of an identified virtual machine + * + */ +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonPropertyOrder({ + "memoryBuffered", + "memoryCached", + "memoryConfigured", + "memoryDemand", + "memoryFree", + "memoryLatencyAvg", + "memorySharedAvg", + "memorySlabRecl", + "memorySlabUnrecl", + "memorySwapInAvg", + "memorySwapInRateAvg", + "memorySwapOutAvg", + "memorySwapOutRateAvg", + "memorySwapUsedAvg", + "memoryUsed", + "percentMemoryUsage", + "vmIdentifier" +}) +public class MemoryUsageArray { + + /** + * kibibytes of temporary storage for raw disk blocks + * + */ + @JsonProperty("memoryBuffered") + @JsonPropertyDescription("kibibytes of temporary storage for raw disk blocks") + private Double memoryBuffered; + /** + * kibibytes of memory used for cache + * + */ + @JsonProperty("memoryCached") + @JsonPropertyDescription("kibibytes of memory used for cache") + private Double memoryCached; + /** + * kibibytes of memory configured in the virtual machine on which the xNFC reporting the event is running + * + */ + @JsonProperty("memoryConfigured") + @JsonPropertyDescription("kibibytes of memory configured in the virtual machine on which the xNFC reporting the event is running") + private Double memoryConfigured; + /** + * host demand in kibibytes + * + */ + @JsonProperty("memoryDemand") + @JsonPropertyDescription("host demand in kibibytes") + private Double memoryDemand; + /** + * kibibytes of physical RAM left unused by the system + * (Required) + * + */ + @JsonProperty("memoryFree") + @JsonPropertyDescription("kibibytes of physical RAM left unused by the system") + private Double memoryFree; + /** + * Percentage of time the VM is waiting to access swapped or compressed memory + * + */ + @JsonProperty("memoryLatencyAvg") + @JsonPropertyDescription("Percentage of time the VM is waiting to access swapped or compressed memory") + private Double memoryLatencyAvg; + /** + * shared memory in kilobytes + * + */ + @JsonProperty("memorySharedAvg") + @JsonPropertyDescription("shared memory in kilobytes") + private Double memorySharedAvg; + /** + * the part of the slab that can be reclaimed such as caches measured in kibibytes + * + */ + @JsonProperty("memorySlabRecl") + @JsonPropertyDescription("the part of the slab that can be reclaimed such as caches measured in kibibytes") + private Double memorySlabRecl; + /** + * the part of the slab that cannot be reclaimed even when lacking memory measured in kibibytes + * + */ + @JsonProperty("memorySlabUnrecl") + @JsonPropertyDescription("the part of the slab that cannot be reclaimed even when lacking memory measured in kibibytes") + private Double memorySlabUnrecl; + /** + * Amount of memory swapped-in from host cache in kibibytes + * + */ + @JsonProperty("memorySwapInAvg") + @JsonPropertyDescription("Amount of memory swapped-in from host cache in kibibytes") + private Double memorySwapInAvg; + /** + * rate at which memory is swapped from disk into active memory during the interval in kilobytes per second + * + */ + @JsonProperty("memorySwapInRateAvg") + @JsonPropertyDescription("rate at which memory is swapped from disk into active memory during the interval in kilobytes per second") + private Double memorySwapInRateAvg; + /** + * Amount of memory swapped-out to host cache in kibibytes + * + */ + @JsonProperty("memorySwapOutAvg") + @JsonPropertyDescription("Amount of memory swapped-out to host cache in kibibytes") + private Double memorySwapOutAvg; + /** + * rate at which memory is being swapped from active memory to disk during the current interval in kilobytes per second + * + */ + @JsonProperty("memorySwapOutRateAvg") + @JsonPropertyDescription("rate at which memory is being swapped from active memory to disk during the current interval in kilobytes per second") + private Double memorySwapOutRateAvg; + /** + * space used for caching swapped pages in the host cache in kibibytes + * + */ + @JsonProperty("memorySwapUsedAvg") + @JsonPropertyDescription("space used for caching swapped pages in the host cache in kibibytes") + private Double memorySwapUsedAvg; + /** + * total memory minus the sum of free, buffered, cached and slab memory measured in kibibytes + * (Required) + * + */ + @JsonProperty("memoryUsed") + @JsonPropertyDescription("total memory minus the sum of free, buffered, cached and slab memory measured in kibibytes") + private Double memoryUsed; + /** + * Percentage of memory usage; value = (memoryUsed / (memoryUsed + memoryFree) x 100 if denomintor is nonzero, or 0, if otherwise + * + */ + @JsonProperty("percentMemoryUsage") + @JsonPropertyDescription("Percentage of memory usage; value = (memoryUsed / (memoryUsed + memoryFree) x 100 if denomintor is nonzero, or 0, if otherwise") + private Double percentMemoryUsage; + /** + * virtual machine identifier associated with the memory metrics + * (Required) + * + */ + @JsonProperty("vmIdentifier") + @JsonPropertyDescription("virtual machine identifier associated with the memory metrics") + private String vmIdentifier; + + /** + * kibibytes of temporary storage for raw disk blocks + * + */ + @JsonProperty("memoryBuffered") + public Double getMemoryBuffered() { + return memoryBuffered; + } + + /** + * kibibytes of temporary storage for raw disk blocks + * + */ + @JsonProperty("memoryBuffered") + public void setMemoryBuffered(Double memoryBuffered) { + this.memoryBuffered = memoryBuffered; + } + + /** + * kibibytes of memory used for cache + * + */ + @JsonProperty("memoryCached") + public Double getMemoryCached() { + return memoryCached; + } + + /** + * kibibytes of memory used for cache + * + */ + @JsonProperty("memoryCached") + public void setMemoryCached(Double memoryCached) { + this.memoryCached = memoryCached; + } + + /** + * kibibytes of memory configured in the virtual machine on which the xNFC reporting the event is running + * + */ + @JsonProperty("memoryConfigured") + public Double getMemoryConfigured() { + return memoryConfigured; + } + + /** + * kibibytes of memory configured in the virtual machine on which the xNFC reporting the event is running + * + */ + @JsonProperty("memoryConfigured") + public void setMemoryConfigured(Double memoryConfigured) { + this.memoryConfigured = memoryConfigured; + } + + /** + * host demand in kibibytes + * + */ + @JsonProperty("memoryDemand") + public Double getMemoryDemand() { + return memoryDemand; + } + + /** + * host demand in kibibytes + * + */ + @JsonProperty("memoryDemand") + public void setMemoryDemand(Double memoryDemand) { + this.memoryDemand = memoryDemand; + } + + /** + * kibibytes of physical RAM left unused by the system + * (Required) + * + */ + @JsonProperty("memoryFree") + public Double getMemoryFree() { + return memoryFree; + } + + /** + * kibibytes of physical RAM left unused by the system + * (Required) + * + */ + @JsonProperty("memoryFree") + public void setMemoryFree(Double memoryFree) { + this.memoryFree = memoryFree; + } + + /** + * Percentage of time the VM is waiting to access swapped or compressed memory + * + */ + @JsonProperty("memoryLatencyAvg") + public Double getMemoryLatencyAvg() { + return memoryLatencyAvg; + } + + /** + * Percentage of time the VM is waiting to access swapped or compressed memory + * + */ + @JsonProperty("memoryLatencyAvg") + public void setMemoryLatencyAvg(Double memoryLatencyAvg) { + this.memoryLatencyAvg = memoryLatencyAvg; + } + + /** + * shared memory in kilobytes + * + */ + @JsonProperty("memorySharedAvg") + public Double getMemorySharedAvg() { + return memorySharedAvg; + } + + /** + * shared memory in kilobytes + * + */ + @JsonProperty("memorySharedAvg") + public void setMemorySharedAvg(Double memorySharedAvg) { + this.memorySharedAvg = memorySharedAvg; + } + + /** + * the part of the slab that can be reclaimed such as caches measured in kibibytes + * + */ + @JsonProperty("memorySlabRecl") + public Double getMemorySlabRecl() { + return memorySlabRecl; + } + + /** + * the part of the slab that can be reclaimed such as caches measured in kibibytes + * + */ + @JsonProperty("memorySlabRecl") + public void setMemorySlabRecl(Double memorySlabRecl) { + this.memorySlabRecl = memorySlabRecl; + } + + /** + * the part of the slab that cannot be reclaimed even when lacking memory measured in kibibytes + * + */ + @JsonProperty("memorySlabUnrecl") + public Double getMemorySlabUnrecl() { + return memorySlabUnrecl; + } + + /** + * the part of the slab that cannot be reclaimed even when lacking memory measured in kibibytes + * + */ + @JsonProperty("memorySlabUnrecl") + public void setMemorySlabUnrecl(Double memorySlabUnrecl) { + this.memorySlabUnrecl = memorySlabUnrecl; + } + + /** + * Amount of memory swapped-in from host cache in kibibytes + * + */ + @JsonProperty("memorySwapInAvg") + public Double getMemorySwapInAvg() { + return memorySwapInAvg; + } + + /** + * Amount of memory swapped-in from host cache in kibibytes + * + */ + @JsonProperty("memorySwapInAvg") + public void setMemorySwapInAvg(Double memorySwapInAvg) { + this.memorySwapInAvg = memorySwapInAvg; + } + + /** + * rate at which memory is swapped from disk into active memory during the interval in kilobytes per second + * + */ + @JsonProperty("memorySwapInRateAvg") + public Double getMemorySwapInRateAvg() { + return memorySwapInRateAvg; + } + + /** + * rate at which memory is swapped from disk into active memory during the interval in kilobytes per second + * + */ + @JsonProperty("memorySwapInRateAvg") + public void setMemorySwapInRateAvg(Double memorySwapInRateAvg) { + this.memorySwapInRateAvg = memorySwapInRateAvg; + } + + /** + * Amount of memory swapped-out to host cache in kibibytes + * + */ + @JsonProperty("memorySwapOutAvg") + public Double getMemorySwapOutAvg() { + return memorySwapOutAvg; + } + + /** + * Amount of memory swapped-out to host cache in kibibytes + * + */ + @JsonProperty("memorySwapOutAvg") + public void setMemorySwapOutAvg(Double memorySwapOutAvg) { + this.memorySwapOutAvg = memorySwapOutAvg; + } + + /** + * rate at which memory is being swapped from active memory to disk during the current interval in kilobytes per second + * + */ + @JsonProperty("memorySwapOutRateAvg") + public Double getMemorySwapOutRateAvg() { + return memorySwapOutRateAvg; + } + + /** + * rate at which memory is being swapped from active memory to disk during the current interval in kilobytes per second + * + */ + @JsonProperty("memorySwapOutRateAvg") + public void setMemorySwapOutRateAvg(Double memorySwapOutRateAvg) { + this.memorySwapOutRateAvg = memorySwapOutRateAvg; + } + + /** + * space used for caching swapped pages in the host cache in kibibytes + * + */ + @JsonProperty("memorySwapUsedAvg") + public Double getMemorySwapUsedAvg() { + return memorySwapUsedAvg; + } + + /** + * space used for caching swapped pages in the host cache in kibibytes + * + */ + @JsonProperty("memorySwapUsedAvg") + public void setMemorySwapUsedAvg(Double memorySwapUsedAvg) { + this.memorySwapUsedAvg = memorySwapUsedAvg; + } + + /** + * total memory minus the sum of free, buffered, cached and slab memory measured in kibibytes + * (Required) + * + */ + @JsonProperty("memoryUsed") + public Double getMemoryUsed() { + return memoryUsed; + } + + /** + * total memory minus the sum of free, buffered, cached and slab memory measured in kibibytes + * (Required) + * + */ + @JsonProperty("memoryUsed") + public void setMemoryUsed(Double memoryUsed) { + this.memoryUsed = memoryUsed; + } + + /** + * Percentage of memory usage; value = (memoryUsed / (memoryUsed + memoryFree) x 100 if denomintor is nonzero, or 0, if otherwise + * + */ + @JsonProperty("percentMemoryUsage") + public Double getPercentMemoryUsage() { + return percentMemoryUsage; + } + + /** + * Percentage of memory usage; value = (memoryUsed / (memoryUsed + memoryFree) x 100 if denomintor is nonzero, or 0, if otherwise + * + */ + @JsonProperty("percentMemoryUsage") + public void setPercentMemoryUsage(Double percentMemoryUsage) { + this.percentMemoryUsage = percentMemoryUsage; + } + + /** + * virtual machine identifier associated with the memory metrics + * (Required) + * + */ + @JsonProperty("vmIdentifier") + public String getVmIdentifier() { + return vmIdentifier; + } + + /** + * virtual machine identifier associated with the memory metrics + * (Required) + * + */ + @JsonProperty("vmIdentifier") + public void setVmIdentifier(String vmIdentifier) { + this.vmIdentifier = vmIdentifier; + } + + @Override + public String toString() { + return ToStringBuilder.reflectionToString(this); + } + + @Override + public int hashCode() { + return new HashCodeBuilder().append(memoryBuffered).append(memoryCached).append(memoryConfigured).append(memoryDemand).append(memoryFree).append(memoryLatencyAvg).append(memorySharedAvg).append(memorySlabRecl).append(memorySlabUnrecl).append(memorySwapInAvg).append(memorySwapInRateAvg).append(memorySwapOutAvg).append(memorySwapOutRateAvg).append(memorySwapUsedAvg).append(memoryUsed).append(percentMemoryUsage).append(vmIdentifier).toHashCode(); + } + + @Override + public boolean equals(Object other) { + if (other == this) { + return true; + } + if ((other instanceof MemoryUsageArray) == false) { + return false; + } + MemoryUsageArray rhs = ((MemoryUsageArray) other); + return new EqualsBuilder().append(memoryBuffered, rhs.memoryBuffered).append(memoryCached, rhs.memoryCached).append(memoryConfigured, rhs.memoryConfigured).append(memoryDemand, rhs.memoryDemand).append(memoryFree, rhs.memoryFree).append(memoryLatencyAvg, rhs.memoryLatencyAvg).append(memorySharedAvg, rhs.memorySharedAvg).append(memorySlabRecl, rhs.memorySlabRecl).append(memorySlabUnrecl, rhs.memorySlabUnrecl).append(memorySwapInAvg, rhs.memorySwapInAvg).append(memorySwapInRateAvg, rhs.memorySwapInRateAvg).append(memorySwapOutAvg, rhs.memorySwapOutAvg).append(memorySwapOutRateAvg, rhs.memorySwapOutRateAvg).append(memorySwapUsedAvg, rhs.memorySwapUsedAvg).append(memoryUsed, rhs.memoryUsed).append(percentMemoryUsage, rhs.percentMemoryUsage).append(vmIdentifier, rhs.vmIdentifier).isEquals(); + } + +} diff --git a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/MobileFlowFields.java b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/MobileFlowFields.java new file mode 100644 index 0000000..adddaaf --- /dev/null +++ b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/MobileFlowFields.java @@ -0,0 +1,990 @@ +/* +* ============LICENSE_START======================================================= +* ONAP : DCAE +* ================================================================================ +* Copyright 2019 TechMahindra +*================================================================================= +* 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========================================================= +*/ +package org.onap.dcaegen2.ves.domain.ves70; + +import java.util.HashMap; +import java.util.Map; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyDescription; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; +import org.apache.commons.lang.builder.EqualsBuilder; +import org.apache.commons.lang.builder.HashCodeBuilder; +import org.apache.commons.lang.builder.ToStringBuilder; + + +/** + * mobileFlow fields + * + */ +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonPropertyOrder({ + "additionalFields", + "applicationType", + "appProtocolType", + "appProtocolVersion", + "cid", + "connectionType", + "ecgi", + "flowDirection", + "gtpPerFlowMetrics", + "gtpProtocolType", + "gtpVersion", + "httpHeader", + "imei", + "imsi", + "ipProtocolType", + "ipVersion", + "lac", + "mcc", + "mnc", + "mobileFlowFieldsVersion", + "msisdn", + "otherEndpointIpAddress", + "otherEndpointPort", + "otherFunctionalRole", + "rac", + "radioAccessTechnology", + "reportingEndpointIpAddr", + "reportingEndpointPort", + "sac", + "samplingAlgorithm", + "tac", + "tunnelId", + "vlanId" +}) +public class MobileFlowFields { + + /** + * an associative array which is an array of key:value pairs + * + */ + @JsonProperty("additionalFields") + @JsonPropertyDescription("an associative array which is an array of key:value pairs") + private AlarmAdditionalInformation additionalFields; + /** + * Application type inferred + * + */ + @JsonProperty("applicationType") + @JsonPropertyDescription("Application type inferred") + private String applicationType; + /** + * application protocol + * + */ + @JsonProperty("appProtocolType") + @JsonPropertyDescription("application protocol") + private String appProtocolType; + /** + * application protocol version + * + */ + @JsonProperty("appProtocolVersion") + @JsonPropertyDescription("application protocol version") + private String appProtocolVersion; + /** + * cell id + * + */ + @JsonProperty("cid") + @JsonPropertyDescription("cell id") + private String cid; + /** + * Abbreviation referencing a 3GPP reference point e.g., S1-U, S11, etc + * + */ + @JsonProperty("connectionType") + @JsonPropertyDescription("Abbreviation referencing a 3GPP reference point e.g., S1-U, S11, etc") + private String connectionType; + /** + * Evolved Cell Global Id + * + */ + @JsonProperty("ecgi") + @JsonPropertyDescription("Evolved Cell Global Id") + private String ecgi; + /** + * Flow direction, indicating if the reporting node is the source of the flow or destination for the flow + * (Required) + * + */ + @JsonProperty("flowDirection") + @JsonPropertyDescription("Flow direction, indicating if the reporting node is the source of the flow or destination for the flow") + private String flowDirection; + /** + * Mobility GTP Protocol per flow metrics + * (Required) + * + */ + @JsonProperty("gtpPerFlowMetrics") + @JsonPropertyDescription("Mobility GTP Protocol per flow metrics") + private GtpPerFlowMetrics gtpPerFlowMetrics; + /** + * GTP protocol + * + */ + @JsonProperty("gtpProtocolType") + @JsonPropertyDescription("GTP protocol") + private String gtpProtocolType; + /** + * GTP protocol version + * + */ + @JsonProperty("gtpVersion") + @JsonPropertyDescription("GTP protocol version") + private String gtpVersion; + /** + * HTTP request header, if the flow connects to a node referenced by HTTP + * + */ + @JsonProperty("httpHeader") + @JsonPropertyDescription("HTTP request header, if the flow connects to a node referenced by HTTP") + private String httpHeader; + /** + * IMEI for the subscriber UE used in this flow, if the flow connects to a mobile device + * + */ + @JsonProperty("imei") + @JsonPropertyDescription("IMEI for the subscriber UE used in this flow, if the flow connects to a mobile device") + private String imei; + /** + * IMSI for the subscriber UE used in this flow, if the flow connects to a mobile device + * + */ + @JsonProperty("imsi") + @JsonPropertyDescription("IMSI for the subscriber UE used in this flow, if the flow connects to a mobile device") + private String imsi; + /** + * IP protocol type e.g., TCP, UDP, RTP... + * (Required) + * + */ + @JsonProperty("ipProtocolType") + @JsonPropertyDescription("IP protocol type e.g., TCP, UDP, RTP...") + private String ipProtocolType; + /** + * IP protocol version e.g., IPv4, IPv6 + * (Required) + * + */ + @JsonProperty("ipVersion") + @JsonPropertyDescription("IP protocol version e.g., IPv4, IPv6") + private String ipVersion; + /** + * location area code + * + */ + @JsonProperty("lac") + @JsonPropertyDescription("location area code") + private String lac; + /** + * mobile country code + * + */ + @JsonProperty("mcc") + @JsonPropertyDescription("mobile country code") + private String mcc; + /** + * mobile network code + * + */ + @JsonProperty("mnc") + @JsonPropertyDescription("mobile network code") + private String mnc; + /** + * version of the mobileFlowFields block + * (Required) + * + */ + @JsonProperty("mobileFlowFieldsVersion") + @JsonPropertyDescription("version of the mobileFlowFields block") + private MobileFlowFields.MobileFlowFieldsVersion mobileFlowFieldsVersion; + /** + * MSISDN for the subscriber UE used in this flow, as an integer, if the flow connects to a mobile device + * + */ + @JsonProperty("msisdn") + @JsonPropertyDescription("MSISDN for the subscriber UE used in this flow, as an integer, if the flow connects to a mobile device") + private String msisdn; + /** + * IP address for the other endpoint, as used for the flow being reported on + * (Required) + * + */ + @JsonProperty("otherEndpointIpAddress") + @JsonPropertyDescription("IP address for the other endpoint, as used for the flow being reported on") + private String otherEndpointIpAddress; + /** + * IP Port for the reporting entity, as used for the flow being reported on + * (Required) + * + */ + @JsonProperty("otherEndpointPort") + @JsonPropertyDescription("IP Port for the reporting entity, as used for the flow being reported on") + private Integer otherEndpointPort; + /** + * Functional role of the other endpoint for the flow being reported on e.g., MME, S-GW, P-GW, PCRF... + * + */ + @JsonProperty("otherFunctionalRole") + @JsonPropertyDescription("Functional role of the other endpoint for the flow being reported on e.g., MME, S-GW, P-GW, PCRF...") + private String otherFunctionalRole; + /** + * routing area code + * + */ + @JsonProperty("rac") + @JsonPropertyDescription("routing area code") + private String rac; + /** + * Radio Access Technology e.g., 2G, 3G, LTE + * + */ + @JsonProperty("radioAccessTechnology") + @JsonPropertyDescription("Radio Access Technology e.g., 2G, 3G, LTE") + private String radioAccessTechnology; + /** + * IP address for the reporting entity, as used for the flow being reported on + * (Required) + * + */ + @JsonProperty("reportingEndpointIpAddr") + @JsonPropertyDescription("IP address for the reporting entity, as used for the flow being reported on") + private String reportingEndpointIpAddr; + /** + * IP port for the reporting entity, as used for the flow being reported on + * (Required) + * + */ + @JsonProperty("reportingEndpointPort") + @JsonPropertyDescription("IP port for the reporting entity, as used for the flow being reported on") + private Integer reportingEndpointPort; + /** + * service area code + * + */ + @JsonProperty("sac") + @JsonPropertyDescription("service area code") + private String sac; + /** + * Integer identifier for the sampling algorithm or rule being applied in calculating the flow metrics if metrics are calculated based on a sample of packets, or 0 if no sampling is applied + * + */ + @JsonProperty("samplingAlgorithm") + @JsonPropertyDescription("Integer identifier for the sampling algorithm or rule being applied in calculating the flow metrics if metrics are calculated based on a sample of packets, or 0 if no sampling is applied") + private Integer samplingAlgorithm; + /** + * transport area code + * + */ + @JsonProperty("tac") + @JsonPropertyDescription("transport area code") + private String tac; + /** + * tunnel identifier + * + */ + @JsonProperty("tunnelId") + @JsonPropertyDescription("tunnel identifier") + private String tunnelId; + /** + * VLAN identifier used by this flow + * + */ + @JsonProperty("vlanId") + @JsonPropertyDescription("VLAN identifier used by this flow") + private String vlanId; + + /** + * an associative array which is an array of key:value pairs + * + */ + @JsonProperty("additionalFields") + public AlarmAdditionalInformation getAdditionalFields() { + return additionalFields; + } + + /** + * an associative array which is an array of key:value pairs + * + */ + @JsonProperty("additionalFields") + public void setAdditionalFields(AlarmAdditionalInformation additionalFields) { + this.additionalFields = additionalFields; + } + + /** + * Application type inferred + * + */ + @JsonProperty("applicationType") + public String getApplicationType() { + return applicationType; + } + + /** + * Application type inferred + * + */ + @JsonProperty("applicationType") + public void setApplicationType(String applicationType) { + this.applicationType = applicationType; + } + + /** + * application protocol + * + */ + @JsonProperty("appProtocolType") + public String getAppProtocolType() { + return appProtocolType; + } + + /** + * application protocol + * + */ + @JsonProperty("appProtocolType") + public void setAppProtocolType(String appProtocolType) { + this.appProtocolType = appProtocolType; + } + + /** + * application protocol version + * + */ + @JsonProperty("appProtocolVersion") + public String getAppProtocolVersion() { + return appProtocolVersion; + } + + /** + * application protocol version + * + */ + @JsonProperty("appProtocolVersion") + public void setAppProtocolVersion(String appProtocolVersion) { + this.appProtocolVersion = appProtocolVersion; + } + + /** + * cell id + * + */ + @JsonProperty("cid") + public String getCid() { + return cid; + } + + /** + * cell id + * + */ + @JsonProperty("cid") + public void setCid(String cid) { + this.cid = cid; + } + + /** + * Abbreviation referencing a 3GPP reference point e.g., S1-U, S11, etc + * + */ + @JsonProperty("connectionType") + public String getConnectionType() { + return connectionType; + } + + /** + * Abbreviation referencing a 3GPP reference point e.g., S1-U, S11, etc + * + */ + @JsonProperty("connectionType") + public void setConnectionType(String connectionType) { + this.connectionType = connectionType; + } + + /** + * Evolved Cell Global Id + * + */ + @JsonProperty("ecgi") + public String getEcgi() { + return ecgi; + } + + /** + * Evolved Cell Global Id + * + */ + @JsonProperty("ecgi") + public void setEcgi(String ecgi) { + this.ecgi = ecgi; + } + + /** + * Flow direction, indicating if the reporting node is the source of the flow or destination for the flow + * (Required) + * + */ + @JsonProperty("flowDirection") + public String getFlowDirection() { + return flowDirection; + } + + /** + * Flow direction, indicating if the reporting node is the source of the flow or destination for the flow + * (Required) + * + */ + @JsonProperty("flowDirection") + public void setFlowDirection(String flowDirection) { + this.flowDirection = flowDirection; + } + + /** + * Mobility GTP Protocol per flow metrics + * (Required) + * + */ + @JsonProperty("gtpPerFlowMetrics") + public GtpPerFlowMetrics getGtpPerFlowMetrics() { + return gtpPerFlowMetrics; + } + + /** + * Mobility GTP Protocol per flow metrics + * (Required) + * + */ + @JsonProperty("gtpPerFlowMetrics") + public void setGtpPerFlowMetrics(GtpPerFlowMetrics gtpPerFlowMetrics) { + this.gtpPerFlowMetrics = gtpPerFlowMetrics; + } + + /** + * GTP protocol + * + */ + @JsonProperty("gtpProtocolType") + public String getGtpProtocolType() { + return gtpProtocolType; + } + + /** + * GTP protocol + * + */ + @JsonProperty("gtpProtocolType") + public void setGtpProtocolType(String gtpProtocolType) { + this.gtpProtocolType = gtpProtocolType; + } + + /** + * GTP protocol version + * + */ + @JsonProperty("gtpVersion") + public String getGtpVersion() { + return gtpVersion; + } + + /** + * GTP protocol version + * + */ + @JsonProperty("gtpVersion") + public void setGtpVersion(String gtpVersion) { + this.gtpVersion = gtpVersion; + } + + /** + * HTTP request header, if the flow connects to a node referenced by HTTP + * + */ + @JsonProperty("httpHeader") + public String getHttpHeader() { + return httpHeader; + } + + /** + * HTTP request header, if the flow connects to a node referenced by HTTP + * + */ + @JsonProperty("httpHeader") + public void setHttpHeader(String httpHeader) { + this.httpHeader = httpHeader; + } + + /** + * IMEI for the subscriber UE used in this flow, if the flow connects to a mobile device + * + */ + @JsonProperty("imei") + public String getImei() { + return imei; + } + + /** + * IMEI for the subscriber UE used in this flow, if the flow connects to a mobile device + * + */ + @JsonProperty("imei") + public void setImei(String imei) { + this.imei = imei; + } + + /** + * IMSI for the subscriber UE used in this flow, if the flow connects to a mobile device + * + */ + @JsonProperty("imsi") + public String getImsi() { + return imsi; + } + + /** + * IMSI for the subscriber UE used in this flow, if the flow connects to a mobile device + * + */ + @JsonProperty("imsi") + public void setImsi(String imsi) { + this.imsi = imsi; + } + + /** + * IP protocol type e.g., TCP, UDP, RTP... + * (Required) + * + */ + @JsonProperty("ipProtocolType") + public String getIpProtocolType() { + return ipProtocolType; + } + + /** + * IP protocol type e.g., TCP, UDP, RTP... + * (Required) + * + */ + @JsonProperty("ipProtocolType") + public void setIpProtocolType(String ipProtocolType) { + this.ipProtocolType = ipProtocolType; + } + + /** + * IP protocol version e.g., IPv4, IPv6 + * (Required) + * + */ + @JsonProperty("ipVersion") + public String getIpVersion() { + return ipVersion; + } + + /** + * IP protocol version e.g., IPv4, IPv6 + * (Required) + * + */ + @JsonProperty("ipVersion") + public void setIpVersion(String ipVersion) { + this.ipVersion = ipVersion; + } + + /** + * location area code + * + */ + @JsonProperty("lac") + public String getLac() { + return lac; + } + + /** + * location area code + * + */ + @JsonProperty("lac") + public void setLac(String lac) { + this.lac = lac; + } + + /** + * mobile country code + * + */ + @JsonProperty("mcc") + public String getMcc() { + return mcc; + } + + /** + * mobile country code + * + */ + @JsonProperty("mcc") + public void setMcc(String mcc) { + this.mcc = mcc; + } + + /** + * mobile network code + * + */ + @JsonProperty("mnc") + public String getMnc() { + return mnc; + } + + /** + * mobile network code + * + */ + @JsonProperty("mnc") + public void setMnc(String mnc) { + this.mnc = mnc; + } + + /** + * version of the mobileFlowFields block + * (Required) + * + */ + @JsonProperty("mobileFlowFieldsVersion") + public MobileFlowFields.MobileFlowFieldsVersion getMobileFlowFieldsVersion() { + return mobileFlowFieldsVersion; + } + + /** + * version of the mobileFlowFields block + * (Required) + * + */ + @JsonProperty("mobileFlowFieldsVersion") + public void setMobileFlowFieldsVersion(MobileFlowFields.MobileFlowFieldsVersion mobileFlowFieldsVersion) { + this.mobileFlowFieldsVersion = mobileFlowFieldsVersion; + } + + /** + * MSISDN for the subscriber UE used in this flow, as an integer, if the flow connects to a mobile device + * + */ + @JsonProperty("msisdn") + public String getMsisdn() { + return msisdn; + } + + /** + * MSISDN for the subscriber UE used in this flow, as an integer, if the flow connects to a mobile device + * + */ + @JsonProperty("msisdn") + public void setMsisdn(String msisdn) { + this.msisdn = msisdn; + } + + /** + * IP address for the other endpoint, as used for the flow being reported on + * (Required) + * + */ + @JsonProperty("otherEndpointIpAddress") + public String getOtherEndpointIpAddress() { + return otherEndpointIpAddress; + } + + /** + * IP address for the other endpoint, as used for the flow being reported on + * (Required) + * + */ + @JsonProperty("otherEndpointIpAddress") + public void setOtherEndpointIpAddress(String otherEndpointIpAddress) { + this.otherEndpointIpAddress = otherEndpointIpAddress; + } + + /** + * IP Port for the reporting entity, as used for the flow being reported on + * (Required) + * + */ + @JsonProperty("otherEndpointPort") + public Integer getOtherEndpointPort() { + return otherEndpointPort; + } + + /** + * IP Port for the reporting entity, as used for the flow being reported on + * (Required) + * + */ + @JsonProperty("otherEndpointPort") + public void setOtherEndpointPort(Integer otherEndpointPort) { + this.otherEndpointPort = otherEndpointPort; + } + + /** + * Functional role of the other endpoint for the flow being reported on e.g., MME, S-GW, P-GW, PCRF... + * + */ + @JsonProperty("otherFunctionalRole") + public String getOtherFunctionalRole() { + return otherFunctionalRole; + } + + /** + * Functional role of the other endpoint for the flow being reported on e.g., MME, S-GW, P-GW, PCRF... + * + */ + @JsonProperty("otherFunctionalRole") + public void setOtherFunctionalRole(String otherFunctionalRole) { + this.otherFunctionalRole = otherFunctionalRole; + } + + /** + * routing area code + * + */ + @JsonProperty("rac") + public String getRac() { + return rac; + } + + /** + * routing area code + * + */ + @JsonProperty("rac") + public void setRac(String rac) { + this.rac = rac; + } + + /** + * Radio Access Technology e.g., 2G, 3G, LTE + * + */ + @JsonProperty("radioAccessTechnology") + public String getRadioAccessTechnology() { + return radioAccessTechnology; + } + + /** + * Radio Access Technology e.g., 2G, 3G, LTE + * + */ + @JsonProperty("radioAccessTechnology") + public void setRadioAccessTechnology(String radioAccessTechnology) { + this.radioAccessTechnology = radioAccessTechnology; + } + + /** + * IP address for the reporting entity, as used for the flow being reported on + * (Required) + * + */ + @JsonProperty("reportingEndpointIpAddr") + public String getReportingEndpointIpAddr() { + return reportingEndpointIpAddr; + } + + /** + * IP address for the reporting entity, as used for the flow being reported on + * (Required) + * + */ + @JsonProperty("reportingEndpointIpAddr") + public void setReportingEndpointIpAddr(String reportingEndpointIpAddr) { + this.reportingEndpointIpAddr = reportingEndpointIpAddr; + } + + /** + * IP port for the reporting entity, as used for the flow being reported on + * (Required) + * + */ + @JsonProperty("reportingEndpointPort") + public Integer getReportingEndpointPort() { + return reportingEndpointPort; + } + + /** + * IP port for the reporting entity, as used for the flow being reported on + * (Required) + * + */ + @JsonProperty("reportingEndpointPort") + public void setReportingEndpointPort(Integer reportingEndpointPort) { + this.reportingEndpointPort = reportingEndpointPort; + } + + /** + * service area code + * + */ + @JsonProperty("sac") + public String getSac() { + return sac; + } + + /** + * service area code + * + */ + @JsonProperty("sac") + public void setSac(String sac) { + this.sac = sac; + } + + /** + * Integer identifier for the sampling algorithm or rule being applied in calculating the flow metrics if metrics are calculated based on a sample of packets, or 0 if no sampling is applied + * + */ + @JsonProperty("samplingAlgorithm") + public Integer getSamplingAlgorithm() { + return samplingAlgorithm; + } + + /** + * Integer identifier for the sampling algorithm or rule being applied in calculating the flow metrics if metrics are calculated based on a sample of packets, or 0 if no sampling is applied + * + */ + @JsonProperty("samplingAlgorithm") + public void setSamplingAlgorithm(Integer samplingAlgorithm) { + this.samplingAlgorithm = samplingAlgorithm; + } + + /** + * transport area code + * + */ + @JsonProperty("tac") + public String getTac() { + return tac; + } + + /** + * transport area code + * + */ + @JsonProperty("tac") + public void setTac(String tac) { + this.tac = tac; + } + + /** + * tunnel identifier + * + */ + @JsonProperty("tunnelId") + public String getTunnelId() { + return tunnelId; + } + + /** + * tunnel identifier + * + */ + @JsonProperty("tunnelId") + public void setTunnelId(String tunnelId) { + this.tunnelId = tunnelId; + } + + /** + * VLAN identifier used by this flow + * + */ + @JsonProperty("vlanId") + public String getVlanId() { + return vlanId; + } + + /** + * VLAN identifier used by this flow + * + */ + @JsonProperty("vlanId") + public void setVlanId(String vlanId) { + this.vlanId = vlanId; + } + + @Override + public String toString() { + return ToStringBuilder.reflectionToString(this); + } + + @Override + public int hashCode() { + return new HashCodeBuilder().append(additionalFields).append(applicationType).append(appProtocolType).append(appProtocolVersion).append(cid).append(connectionType).append(ecgi).append(flowDirection).append(gtpPerFlowMetrics).append(gtpProtocolType).append(gtpVersion).append(httpHeader).append(imei).append(imsi).append(ipProtocolType).append(ipVersion).append(lac).append(mcc).append(mnc).append(mobileFlowFieldsVersion).append(msisdn).append(otherEndpointIpAddress).append(otherEndpointPort).append(otherFunctionalRole).append(rac).append(radioAccessTechnology).append(reportingEndpointIpAddr).append(reportingEndpointPort).append(sac).append(samplingAlgorithm).append(tac).append(tunnelId).append(vlanId).toHashCode(); + } + + @Override + public boolean equals(Object other) { + if (other == this) { + return true; + } + if ((other instanceof MobileFlowFields) == false) { + return false; + } + MobileFlowFields rhs = ((MobileFlowFields) other); + return new EqualsBuilder().append(additionalFields, rhs.additionalFields).append(applicationType, rhs.applicationType).append(appProtocolType, rhs.appProtocolType).append(appProtocolVersion, rhs.appProtocolVersion).append(cid, rhs.cid).append(connectionType, rhs.connectionType).append(ecgi, rhs.ecgi).append(flowDirection, rhs.flowDirection).append(gtpPerFlowMetrics, rhs.gtpPerFlowMetrics).append(gtpProtocolType, rhs.gtpProtocolType).append(gtpVersion, rhs.gtpVersion).append(httpHeader, rhs.httpHeader).append(imei, rhs.imei).append(imsi, rhs.imsi).append(ipProtocolType, rhs.ipProtocolType).append(ipVersion, rhs.ipVersion).append(lac, rhs.lac).append(mcc, rhs.mcc).append(mnc, rhs.mnc).append(mobileFlowFieldsVersion, rhs.mobileFlowFieldsVersion).append(msisdn, rhs.msisdn).append(otherEndpointIpAddress, rhs.otherEndpointIpAddress).append(otherEndpointPort, rhs.otherEndpointPort).append(otherFunctionalRole, rhs.otherFunctionalRole).append(rac, rhs.rac).append(radioAccessTechnology, rhs.radioAccessTechnology).append(reportingEndpointIpAddr, rhs.reportingEndpointIpAddr).append(reportingEndpointPort, rhs.reportingEndpointPort).append(sac, rhs.sac).append(samplingAlgorithm, rhs.samplingAlgorithm).append(tac, rhs.tac).append(tunnelId, rhs.tunnelId).append(vlanId, rhs.vlanId).isEquals(); + } + + public enum MobileFlowFieldsVersion { + + _4_0("4.0"); + private final String value; + private final static Map CONSTANTS = new HashMap(); + + static { + for (MobileFlowFields.MobileFlowFieldsVersion c: values()) { + CONSTANTS.put(c.value, c); + } + } + + private MobileFlowFieldsVersion(String value) { + this.value = value; + } + + @Override + public String toString() { + return this.value; + } + + @JsonValue + public String value() { + return this.value; + } + + @JsonCreator + public static MobileFlowFields.MobileFlowFieldsVersion fromValue(String value) { + MobileFlowFields.MobileFlowFieldsVersion constant = CONSTANTS.get(value); + if (constant == null) { + throw new IllegalArgumentException(value); + } else { + return constant; + } + } + + } + +} diff --git a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/NicPerformanceArray.java b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/NicPerformanceArray.java new file mode 100644 index 0000000..bb6ea1f --- /dev/null +++ b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/NicPerformanceArray.java @@ -0,0 +1,1204 @@ +/* +* ============LICENSE_START======================================================= +* ONAP : DCAE +* ================================================================================ +* Copyright 2019 TechMahindra +*================================================================================= +* 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========================================================= +*/ +package org.onap.dcaegen2.ves.domain.ves70; + +import java.util.HashMap; +import java.util.Map; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyDescription; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; +import org.apache.commons.lang.builder.EqualsBuilder; +import org.apache.commons.lang.builder.HashCodeBuilder; +import org.apache.commons.lang.builder.ToStringBuilder; + + +/** + * describes the performance and errors of an identified network interface card + * + */ +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonPropertyOrder({ + "administrativeState", + "nicIdentifier", + "operationalState", + "receivedBroadcastPacketsAccumulated", + "receivedBroadcastPacketsDelta", + "receivedDiscardedPacketsAccumulated", + "receivedDiscardedPacketsDelta", + "receivedErrorPacketsAccumulated", + "receivedErrorPacketsDelta", + "receivedMulticastPacketsAccumulated", + "receivedMulticastPacketsDelta", + "receivedOctetsAccumulated", + "receivedOctetsDelta", + "receivedTotalPacketsAccumulated", + "receivedPercentDiscard", + "receivedPercentError", + "receivedTotalPacketsDelta", + "receivedUnicastPacketsAccumulated", + "receivedUnicastPacketsDelta", + "receivedUtilization", + "speed", + "transmittedBroadcastPacketsAccumulated", + "transmittedBroadcastPacketsDelta", + "transmittedDiscardedPacketsAccumulated", + "transmittedDiscardedPacketsDelta", + "transmittedErrorPacketsAccumulated", + "transmittedErrorPacketsDelta", + "transmittedMulticastPacketsAccumulated", + "transmittedMulticastPacketsDelta", + "transmittedOctetsAccumulated", + "transmittedOctetsDelta", + "transmittedTotalPacketsAccumulated", + "transmittedTotalPacketsDelta", + "transmittedUnicastPacketsAccumulated", + "transmittedUnicastPacketsDelta", + "transmittedPercentDiscard", + "transmittedPercentError", + "transmittedUtilization", + "valuesAreSuspect" +}) +public class NicPerformanceArray { + + /** + * administrative state + * + */ + @JsonProperty("administrativeState") + @JsonPropertyDescription("administrative state") + private NicPerformanceArray.AdministrativeState administrativeState; + /** + * nic identification + * (Required) + * + */ + @JsonProperty("nicIdentifier") + @JsonPropertyDescription("nic identification") + private String nicIdentifier; + /** + * operational state + * + */ + @JsonProperty("operationalState") + @JsonPropertyDescription("operational state") + private NicPerformanceArray.OperationalState operationalState; + /** + * Cumulative count of broadcast packets received as read at the end of the measurement interval + * + */ + @JsonProperty("receivedBroadcastPacketsAccumulated") + @JsonPropertyDescription("Cumulative count of broadcast packets received as read at the end of the measurement interval") + private Double receivedBroadcastPacketsAccumulated; + /** + * Count of broadcast packets received within the measurement interval + * + */ + @JsonProperty("receivedBroadcastPacketsDelta") + @JsonPropertyDescription("Count of broadcast packets received within the measurement interval") + private Double receivedBroadcastPacketsDelta; + /** + * Cumulative count of discarded packets received as read at the end of the measurement interval + * + */ + @JsonProperty("receivedDiscardedPacketsAccumulated") + @JsonPropertyDescription("Cumulative count of discarded packets received as read at the end of the measurement interval") + private Double receivedDiscardedPacketsAccumulated; + /** + * Count of discarded packets received within the measurement interval + * + */ + @JsonProperty("receivedDiscardedPacketsDelta") + @JsonPropertyDescription("Count of discarded packets received within the measurement interval") + private Double receivedDiscardedPacketsDelta; + /** + * Cumulative count of error packets received as read at the end of the measurement interval + * + */ + @JsonProperty("receivedErrorPacketsAccumulated") + @JsonPropertyDescription("Cumulative count of error packets received as read at the end of the measurement interval") + private Double receivedErrorPacketsAccumulated; + /** + * Count of error packets received within the measurement interval + * + */ + @JsonProperty("receivedErrorPacketsDelta") + @JsonPropertyDescription("Count of error packets received within the measurement interval") + private Double receivedErrorPacketsDelta; + /** + * Cumulative count of multicast packets received as read at the end of the measurement interval + * + */ + @JsonProperty("receivedMulticastPacketsAccumulated") + @JsonPropertyDescription("Cumulative count of multicast packets received as read at the end of the measurement interval") + private Double receivedMulticastPacketsAccumulated; + /** + * Count of multicast packets received within the measurement interval + * + */ + @JsonProperty("receivedMulticastPacketsDelta") + @JsonPropertyDescription("Count of multicast packets received within the measurement interval") + private Double receivedMulticastPacketsDelta; + /** + * Cumulative count of octets received as read at the end of the measurement interval + * + */ + @JsonProperty("receivedOctetsAccumulated") + @JsonPropertyDescription("Cumulative count of octets received as read at the end of the measurement interval") + private Double receivedOctetsAccumulated; + /** + * Count of octets received within the measurement interval + * + */ + @JsonProperty("receivedOctetsDelta") + @JsonPropertyDescription("Count of octets received within the measurement interval") + private Double receivedOctetsDelta; + /** + * Cumulative count of all packets received as read at the end of the measurement interval + * + */ + @JsonProperty("receivedTotalPacketsAccumulated") + @JsonPropertyDescription("Cumulative count of all packets received as read at the end of the measurement interval") + private Double receivedTotalPacketsAccumulated; + /** + * Percentage of discarded packets received; value = (receivedDiscardedPacketsDelta / receivedTotalPacketsDelta) x 100, if denominator is nonzero, or 0, if otherwise + * + */ + @JsonProperty("receivedPercentDiscard") + @JsonPropertyDescription("Percentage of discarded packets received; value = (receivedDiscardedPacketsDelta / receivedTotalPacketsDelta) x 100, if denominator is nonzero, or 0, if otherwise") + private Double receivedPercentDiscard; + /** + * Percentage of error packets received; value = (receivedErrorPacketsDelta / receivedTotalPacketsDelta) x 100, if denominator is nonzero, or 0, if otherwise. + * + */ + @JsonProperty("receivedPercentError") + @JsonPropertyDescription("Percentage of error packets received; value = (receivedErrorPacketsDelta / receivedTotalPacketsDelta) x 100, if denominator is nonzero, or 0, if otherwise.") + private Double receivedPercentError; + /** + * Count of all packets received within the measurement interval + * + */ + @JsonProperty("receivedTotalPacketsDelta") + @JsonPropertyDescription("Count of all packets received within the measurement interval") + private Double receivedTotalPacketsDelta; + /** + * Cumulative count of unicast packets received as read at the end of the measurement interval + * + */ + @JsonProperty("receivedUnicastPacketsAccumulated") + @JsonPropertyDescription("Cumulative count of unicast packets received as read at the end of the measurement interval") + private Double receivedUnicastPacketsAccumulated; + /** + * Count of unicast packets received within the measurement interval + * + */ + @JsonProperty("receivedUnicastPacketsDelta") + @JsonPropertyDescription("Count of unicast packets received within the measurement interval") + private Double receivedUnicastPacketsDelta; + /** + * Percentage of utilization received; value = (receivedOctetsDelta / (speed x (lastEpochMicrosec - startEpochMicrosec))) x 100, if denominator is nonzero, or 0, if otherwise + * + */ + @JsonProperty("receivedUtilization") + @JsonPropertyDescription("Percentage of utilization received; value = (receivedOctetsDelta / (speed x (lastEpochMicrosec - startEpochMicrosec))) x 100, if denominator is nonzero, or 0, if otherwise") + private Double receivedUtilization; + /** + * Speed configured in mbps + * + */ + @JsonProperty("speed") + @JsonPropertyDescription("Speed configured in mbps") + private Double speed; + /** + * Cumulative count of broadcast packets transmitted as read at the end of the measurement interval + * + */ + @JsonProperty("transmittedBroadcastPacketsAccumulated") + @JsonPropertyDescription("Cumulative count of broadcast packets transmitted as read at the end of the measurement interval") + private Double transmittedBroadcastPacketsAccumulated; + /** + * Count of broadcast packets transmitted within the measurement interval + * + */ + @JsonProperty("transmittedBroadcastPacketsDelta") + @JsonPropertyDescription("Count of broadcast packets transmitted within the measurement interval") + private Double transmittedBroadcastPacketsDelta; + /** + * Cumulative count of discarded packets transmitted as read at the end of the measurement interval + * + */ + @JsonProperty("transmittedDiscardedPacketsAccumulated") + @JsonPropertyDescription("Cumulative count of discarded packets transmitted as read at the end of the measurement interval") + private Double transmittedDiscardedPacketsAccumulated; + /** + * Count of discarded packets transmitted within the measurement interval + * + */ + @JsonProperty("transmittedDiscardedPacketsDelta") + @JsonPropertyDescription("Count of discarded packets transmitted within the measurement interval") + private Double transmittedDiscardedPacketsDelta; + /** + * Cumulative count of error packets transmitted as read at the end of the measurement interval + * + */ + @JsonProperty("transmittedErrorPacketsAccumulated") + @JsonPropertyDescription("Cumulative count of error packets transmitted as read at the end of the measurement interval") + private Double transmittedErrorPacketsAccumulated; + /** + * Count of error packets transmitted within the measurement interval + * + */ + @JsonProperty("transmittedErrorPacketsDelta") + @JsonPropertyDescription("Count of error packets transmitted within the measurement interval") + private Double transmittedErrorPacketsDelta; + /** + * Cumulative count of multicast packets transmitted as read at the end of the measurement interval + * + */ + @JsonProperty("transmittedMulticastPacketsAccumulated") + @JsonPropertyDescription("Cumulative count of multicast packets transmitted as read at the end of the measurement interval") + private Double transmittedMulticastPacketsAccumulated; + /** + * Count of multicast packets transmitted within the measurement interval + * + */ + @JsonProperty("transmittedMulticastPacketsDelta") + @JsonPropertyDescription("Count of multicast packets transmitted within the measurement interval") + private Double transmittedMulticastPacketsDelta; + /** + * Cumulative count of octets transmitted as read at the end of the measurement interval + * + */ + @JsonProperty("transmittedOctetsAccumulated") + @JsonPropertyDescription("Cumulative count of octets transmitted as read at the end of the measurement interval") + private Double transmittedOctetsAccumulated; + /** + * Count of octets transmitted within the measurement interval + * + */ + @JsonProperty("transmittedOctetsDelta") + @JsonPropertyDescription("Count of octets transmitted within the measurement interval") + private Double transmittedOctetsDelta; + /** + * Cumulative count of all packets transmitted as read at the end of the measurement interval + * + */ + @JsonProperty("transmittedTotalPacketsAccumulated") + @JsonPropertyDescription("Cumulative count of all packets transmitted as read at the end of the measurement interval") + private Double transmittedTotalPacketsAccumulated; + /** + * Count of all packets transmitted within the measurement interval + * + */ + @JsonProperty("transmittedTotalPacketsDelta") + @JsonPropertyDescription("Count of all packets transmitted within the measurement interval") + private Double transmittedTotalPacketsDelta; + /** + * Cumulative count of unicast packets transmitted as read at the end of the measurement interval + * + */ + @JsonProperty("transmittedUnicastPacketsAccumulated") + @JsonPropertyDescription("Cumulative count of unicast packets transmitted as read at the end of the measurement interval") + private Double transmittedUnicastPacketsAccumulated; + /** + * Count of unicast packets transmitted within the measurement interval + * + */ + @JsonProperty("transmittedUnicastPacketsDelta") + @JsonPropertyDescription("Count of unicast packets transmitted within the measurement interval") + private Double transmittedUnicastPacketsDelta; + /** + * Percentage of discarded packets transmitted; value = (transmittedDiscardedPacketsDelta / transmittedTotalPacketsDelta) x 100, if denominator is nonzero, or 0, if otherwise + * + */ + @JsonProperty("transmittedPercentDiscard") + @JsonPropertyDescription("Percentage of discarded packets transmitted; value = (transmittedDiscardedPacketsDelta / transmittedTotalPacketsDelta) x 100, if denominator is nonzero, or 0, if otherwise") + private Double transmittedPercentDiscard; + /** + * Percentage of error packets received; value = (transmittedErrorPacketsDelta / transmittedTotalPacketsDelta) x 100, if denominator is nonzero, or 0, if otherwise + * + */ + @JsonProperty("transmittedPercentError") + @JsonPropertyDescription("Percentage of error packets received; value = (transmittedErrorPacketsDelta / transmittedTotalPacketsDelta) x 100, if denominator is nonzero, or 0, if otherwise") + private Double transmittedPercentError; + /** + * Percentage of utilization transmitted; value = (transmittedOctetsDelta / (speed x (lastEpochMicrosec - startEpochMicrosec))) x 100, if denominator is nonzero, or 0, if otherwise. + * + */ + @JsonProperty("transmittedUtilization") + @JsonPropertyDescription("Percentage of utilization transmitted; value = (transmittedOctetsDelta / (speed x (lastEpochMicrosec - startEpochMicrosec))) x 100, if denominator is nonzero, or 0, if otherwise.") + private Double transmittedUtilization; + /** + * Indicates whether vNicPerformance values are likely inaccurate due to counter overflow or other condtions + * (Required) + * + */ + @JsonProperty("valuesAreSuspect") + @JsonPropertyDescription("Indicates whether vNicPerformance values are likely inaccurate due to counter overflow or other condtions") + private NicPerformanceArray.ValuesAreSuspect valuesAreSuspect; + + /** + * administrative state + * + */ + @JsonProperty("administrativeState") + public NicPerformanceArray.AdministrativeState getAdministrativeState() { + return administrativeState; + } + + /** + * administrative state + * + */ + @JsonProperty("administrativeState") + public void setAdministrativeState(NicPerformanceArray.AdministrativeState administrativeState) { + this.administrativeState = administrativeState; + } + + /** + * nic identification + * (Required) + * + */ + @JsonProperty("nicIdentifier") + public String getNicIdentifier() { + return nicIdentifier; + } + + /** + * nic identification + * (Required) + * + */ + @JsonProperty("nicIdentifier") + public void setNicIdentifier(String nicIdentifier) { + this.nicIdentifier = nicIdentifier; + } + + /** + * operational state + * + */ + @JsonProperty("operationalState") + public NicPerformanceArray.OperationalState getOperationalState() { + return operationalState; + } + + /** + * operational state + * + */ + @JsonProperty("operationalState") + public void setOperationalState(NicPerformanceArray.OperationalState operationalState) { + this.operationalState = operationalState; + } + + /** + * Cumulative count of broadcast packets received as read at the end of the measurement interval + * + */ + @JsonProperty("receivedBroadcastPacketsAccumulated") + public Double getReceivedBroadcastPacketsAccumulated() { + return receivedBroadcastPacketsAccumulated; + } + + /** + * Cumulative count of broadcast packets received as read at the end of the measurement interval + * + */ + @JsonProperty("receivedBroadcastPacketsAccumulated") + public void setReceivedBroadcastPacketsAccumulated(Double receivedBroadcastPacketsAccumulated) { + this.receivedBroadcastPacketsAccumulated = receivedBroadcastPacketsAccumulated; + } + + /** + * Count of broadcast packets received within the measurement interval + * + */ + @JsonProperty("receivedBroadcastPacketsDelta") + public Double getReceivedBroadcastPacketsDelta() { + return receivedBroadcastPacketsDelta; + } + + /** + * Count of broadcast packets received within the measurement interval + * + */ + @JsonProperty("receivedBroadcastPacketsDelta") + public void setReceivedBroadcastPacketsDelta(Double receivedBroadcastPacketsDelta) { + this.receivedBroadcastPacketsDelta = receivedBroadcastPacketsDelta; + } + + /** + * Cumulative count of discarded packets received as read at the end of the measurement interval + * + */ + @JsonProperty("receivedDiscardedPacketsAccumulated") + public Double getReceivedDiscardedPacketsAccumulated() { + return receivedDiscardedPacketsAccumulated; + } + + /** + * Cumulative count of discarded packets received as read at the end of the measurement interval + * + */ + @JsonProperty("receivedDiscardedPacketsAccumulated") + public void setReceivedDiscardedPacketsAccumulated(Double receivedDiscardedPacketsAccumulated) { + this.receivedDiscardedPacketsAccumulated = receivedDiscardedPacketsAccumulated; + } + + /** + * Count of discarded packets received within the measurement interval + * + */ + @JsonProperty("receivedDiscardedPacketsDelta") + public Double getReceivedDiscardedPacketsDelta() { + return receivedDiscardedPacketsDelta; + } + + /** + * Count of discarded packets received within the measurement interval + * + */ + @JsonProperty("receivedDiscardedPacketsDelta") + public void setReceivedDiscardedPacketsDelta(Double receivedDiscardedPacketsDelta) { + this.receivedDiscardedPacketsDelta = receivedDiscardedPacketsDelta; + } + + /** + * Cumulative count of error packets received as read at the end of the measurement interval + * + */ + @JsonProperty("receivedErrorPacketsAccumulated") + public Double getReceivedErrorPacketsAccumulated() { + return receivedErrorPacketsAccumulated; + } + + /** + * Cumulative count of error packets received as read at the end of the measurement interval + * + */ + @JsonProperty("receivedErrorPacketsAccumulated") + public void setReceivedErrorPacketsAccumulated(Double receivedErrorPacketsAccumulated) { + this.receivedErrorPacketsAccumulated = receivedErrorPacketsAccumulated; + } + + /** + * Count of error packets received within the measurement interval + * + */ + @JsonProperty("receivedErrorPacketsDelta") + public Double getReceivedErrorPacketsDelta() { + return receivedErrorPacketsDelta; + } + + /** + * Count of error packets received within the measurement interval + * + */ + @JsonProperty("receivedErrorPacketsDelta") + public void setReceivedErrorPacketsDelta(Double receivedErrorPacketsDelta) { + this.receivedErrorPacketsDelta = receivedErrorPacketsDelta; + } + + /** + * Cumulative count of multicast packets received as read at the end of the measurement interval + * + */ + @JsonProperty("receivedMulticastPacketsAccumulated") + public Double getReceivedMulticastPacketsAccumulated() { + return receivedMulticastPacketsAccumulated; + } + + /** + * Cumulative count of multicast packets received as read at the end of the measurement interval + * + */ + @JsonProperty("receivedMulticastPacketsAccumulated") + public void setReceivedMulticastPacketsAccumulated(Double receivedMulticastPacketsAccumulated) { + this.receivedMulticastPacketsAccumulated = receivedMulticastPacketsAccumulated; + } + + /** + * Count of multicast packets received within the measurement interval + * + */ + @JsonProperty("receivedMulticastPacketsDelta") + public Double getReceivedMulticastPacketsDelta() { + return receivedMulticastPacketsDelta; + } + + /** + * Count of multicast packets received within the measurement interval + * + */ + @JsonProperty("receivedMulticastPacketsDelta") + public void setReceivedMulticastPacketsDelta(Double receivedMulticastPacketsDelta) { + this.receivedMulticastPacketsDelta = receivedMulticastPacketsDelta; + } + + /** + * Cumulative count of octets received as read at the end of the measurement interval + * + */ + @JsonProperty("receivedOctetsAccumulated") + public Double getReceivedOctetsAccumulated() { + return receivedOctetsAccumulated; + } + + /** + * Cumulative count of octets received as read at the end of the measurement interval + * + */ + @JsonProperty("receivedOctetsAccumulated") + public void setReceivedOctetsAccumulated(Double receivedOctetsAccumulated) { + this.receivedOctetsAccumulated = receivedOctetsAccumulated; + } + + /** + * Count of octets received within the measurement interval + * + */ + @JsonProperty("receivedOctetsDelta") + public Double getReceivedOctetsDelta() { + return receivedOctetsDelta; + } + + /** + * Count of octets received within the measurement interval + * + */ + @JsonProperty("receivedOctetsDelta") + public void setReceivedOctetsDelta(Double receivedOctetsDelta) { + this.receivedOctetsDelta = receivedOctetsDelta; + } + + /** + * Cumulative count of all packets received as read at the end of the measurement interval + * + */ + @JsonProperty("receivedTotalPacketsAccumulated") + public Double getReceivedTotalPacketsAccumulated() { + return receivedTotalPacketsAccumulated; + } + + /** + * Cumulative count of all packets received as read at the end of the measurement interval + * + */ + @JsonProperty("receivedTotalPacketsAccumulated") + public void setReceivedTotalPacketsAccumulated(Double receivedTotalPacketsAccumulated) { + this.receivedTotalPacketsAccumulated = receivedTotalPacketsAccumulated; + } + + /** + * Percentage of discarded packets received; value = (receivedDiscardedPacketsDelta / receivedTotalPacketsDelta) x 100, if denominator is nonzero, or 0, if otherwise + * + */ + @JsonProperty("receivedPercentDiscard") + public Double getReceivedPercentDiscard() { + return receivedPercentDiscard; + } + + /** + * Percentage of discarded packets received; value = (receivedDiscardedPacketsDelta / receivedTotalPacketsDelta) x 100, if denominator is nonzero, or 0, if otherwise + * + */ + @JsonProperty("receivedPercentDiscard") + public void setReceivedPercentDiscard(Double receivedPercentDiscard) { + this.receivedPercentDiscard = receivedPercentDiscard; + } + + /** + * Percentage of error packets received; value = (receivedErrorPacketsDelta / receivedTotalPacketsDelta) x 100, if denominator is nonzero, or 0, if otherwise. + * + */ + @JsonProperty("receivedPercentError") + public Double getReceivedPercentError() { + return receivedPercentError; + } + + /** + * Percentage of error packets received; value = (receivedErrorPacketsDelta / receivedTotalPacketsDelta) x 100, if denominator is nonzero, or 0, if otherwise. + * + */ + @JsonProperty("receivedPercentError") + public void setReceivedPercentError(Double receivedPercentError) { + this.receivedPercentError = receivedPercentError; + } + + /** + * Count of all packets received within the measurement interval + * + */ + @JsonProperty("receivedTotalPacketsDelta") + public Double getReceivedTotalPacketsDelta() { + return receivedTotalPacketsDelta; + } + + /** + * Count of all packets received within the measurement interval + * + */ + @JsonProperty("receivedTotalPacketsDelta") + public void setReceivedTotalPacketsDelta(Double receivedTotalPacketsDelta) { + this.receivedTotalPacketsDelta = receivedTotalPacketsDelta; + } + + /** + * Cumulative count of unicast packets received as read at the end of the measurement interval + * + */ + @JsonProperty("receivedUnicastPacketsAccumulated") + public Double getReceivedUnicastPacketsAccumulated() { + return receivedUnicastPacketsAccumulated; + } + + /** + * Cumulative count of unicast packets received as read at the end of the measurement interval + * + */ + @JsonProperty("receivedUnicastPacketsAccumulated") + public void setReceivedUnicastPacketsAccumulated(Double receivedUnicastPacketsAccumulated) { + this.receivedUnicastPacketsAccumulated = receivedUnicastPacketsAccumulated; + } + + /** + * Count of unicast packets received within the measurement interval + * + */ + @JsonProperty("receivedUnicastPacketsDelta") + public Double getReceivedUnicastPacketsDelta() { + return receivedUnicastPacketsDelta; + } + + /** + * Count of unicast packets received within the measurement interval + * + */ + @JsonProperty("receivedUnicastPacketsDelta") + public void setReceivedUnicastPacketsDelta(Double receivedUnicastPacketsDelta) { + this.receivedUnicastPacketsDelta = receivedUnicastPacketsDelta; + } + + /** + * Percentage of utilization received; value = (receivedOctetsDelta / (speed x (lastEpochMicrosec - startEpochMicrosec))) x 100, if denominator is nonzero, or 0, if otherwise + * + */ + @JsonProperty("receivedUtilization") + public Double getReceivedUtilization() { + return receivedUtilization; + } + + /** + * Percentage of utilization received; value = (receivedOctetsDelta / (speed x (lastEpochMicrosec - startEpochMicrosec))) x 100, if denominator is nonzero, or 0, if otherwise + * + */ + @JsonProperty("receivedUtilization") + public void setReceivedUtilization(Double receivedUtilization) { + this.receivedUtilization = receivedUtilization; + } + + /** + * Speed configured in mbps + * + */ + @JsonProperty("speed") + public Double getSpeed() { + return speed; + } + + /** + * Speed configured in mbps + * + */ + @JsonProperty("speed") + public void setSpeed(Double speed) { + this.speed = speed; + } + + /** + * Cumulative count of broadcast packets transmitted as read at the end of the measurement interval + * + */ + @JsonProperty("transmittedBroadcastPacketsAccumulated") + public Double getTransmittedBroadcastPacketsAccumulated() { + return transmittedBroadcastPacketsAccumulated; + } + + /** + * Cumulative count of broadcast packets transmitted as read at the end of the measurement interval + * + */ + @JsonProperty("transmittedBroadcastPacketsAccumulated") + public void setTransmittedBroadcastPacketsAccumulated(Double transmittedBroadcastPacketsAccumulated) { + this.transmittedBroadcastPacketsAccumulated = transmittedBroadcastPacketsAccumulated; + } + + /** + * Count of broadcast packets transmitted within the measurement interval + * + */ + @JsonProperty("transmittedBroadcastPacketsDelta") + public Double getTransmittedBroadcastPacketsDelta() { + return transmittedBroadcastPacketsDelta; + } + + /** + * Count of broadcast packets transmitted within the measurement interval + * + */ + @JsonProperty("transmittedBroadcastPacketsDelta") + public void setTransmittedBroadcastPacketsDelta(Double transmittedBroadcastPacketsDelta) { + this.transmittedBroadcastPacketsDelta = transmittedBroadcastPacketsDelta; + } + + /** + * Cumulative count of discarded packets transmitted as read at the end of the measurement interval + * + */ + @JsonProperty("transmittedDiscardedPacketsAccumulated") + public Double getTransmittedDiscardedPacketsAccumulated() { + return transmittedDiscardedPacketsAccumulated; + } + + /** + * Cumulative count of discarded packets transmitted as read at the end of the measurement interval + * + */ + @JsonProperty("transmittedDiscardedPacketsAccumulated") + public void setTransmittedDiscardedPacketsAccumulated(Double transmittedDiscardedPacketsAccumulated) { + this.transmittedDiscardedPacketsAccumulated = transmittedDiscardedPacketsAccumulated; + } + + /** + * Count of discarded packets transmitted within the measurement interval + * + */ + @JsonProperty("transmittedDiscardedPacketsDelta") + public Double getTransmittedDiscardedPacketsDelta() { + return transmittedDiscardedPacketsDelta; + } + + /** + * Count of discarded packets transmitted within the measurement interval + * + */ + @JsonProperty("transmittedDiscardedPacketsDelta") + public void setTransmittedDiscardedPacketsDelta(Double transmittedDiscardedPacketsDelta) { + this.transmittedDiscardedPacketsDelta = transmittedDiscardedPacketsDelta; + } + + /** + * Cumulative count of error packets transmitted as read at the end of the measurement interval + * + */ + @JsonProperty("transmittedErrorPacketsAccumulated") + public Double getTransmittedErrorPacketsAccumulated() { + return transmittedErrorPacketsAccumulated; + } + + /** + * Cumulative count of error packets transmitted as read at the end of the measurement interval + * + */ + @JsonProperty("transmittedErrorPacketsAccumulated") + public void setTransmittedErrorPacketsAccumulated(Double transmittedErrorPacketsAccumulated) { + this.transmittedErrorPacketsAccumulated = transmittedErrorPacketsAccumulated; + } + + /** + * Count of error packets transmitted within the measurement interval + * + */ + @JsonProperty("transmittedErrorPacketsDelta") + public Double getTransmittedErrorPacketsDelta() { + return transmittedErrorPacketsDelta; + } + + /** + * Count of error packets transmitted within the measurement interval + * + */ + @JsonProperty("transmittedErrorPacketsDelta") + public void setTransmittedErrorPacketsDelta(Double transmittedErrorPacketsDelta) { + this.transmittedErrorPacketsDelta = transmittedErrorPacketsDelta; + } + + /** + * Cumulative count of multicast packets transmitted as read at the end of the measurement interval + * + */ + @JsonProperty("transmittedMulticastPacketsAccumulated") + public Double getTransmittedMulticastPacketsAccumulated() { + return transmittedMulticastPacketsAccumulated; + } + + /** + * Cumulative count of multicast packets transmitted as read at the end of the measurement interval + * + */ + @JsonProperty("transmittedMulticastPacketsAccumulated") + public void setTransmittedMulticastPacketsAccumulated(Double transmittedMulticastPacketsAccumulated) { + this.transmittedMulticastPacketsAccumulated = transmittedMulticastPacketsAccumulated; + } + + /** + * Count of multicast packets transmitted within the measurement interval + * + */ + @JsonProperty("transmittedMulticastPacketsDelta") + public Double getTransmittedMulticastPacketsDelta() { + return transmittedMulticastPacketsDelta; + } + + /** + * Count of multicast packets transmitted within the measurement interval + * + */ + @JsonProperty("transmittedMulticastPacketsDelta") + public void setTransmittedMulticastPacketsDelta(Double transmittedMulticastPacketsDelta) { + this.transmittedMulticastPacketsDelta = transmittedMulticastPacketsDelta; + } + + /** + * Cumulative count of octets transmitted as read at the end of the measurement interval + * + */ + @JsonProperty("transmittedOctetsAccumulated") + public Double getTransmittedOctetsAccumulated() { + return transmittedOctetsAccumulated; + } + + /** + * Cumulative count of octets transmitted as read at the end of the measurement interval + * + */ + @JsonProperty("transmittedOctetsAccumulated") + public void setTransmittedOctetsAccumulated(Double transmittedOctetsAccumulated) { + this.transmittedOctetsAccumulated = transmittedOctetsAccumulated; + } + + /** + * Count of octets transmitted within the measurement interval + * + */ + @JsonProperty("transmittedOctetsDelta") + public Double getTransmittedOctetsDelta() { + return transmittedOctetsDelta; + } + + /** + * Count of octets transmitted within the measurement interval + * + */ + @JsonProperty("transmittedOctetsDelta") + public void setTransmittedOctetsDelta(Double transmittedOctetsDelta) { + this.transmittedOctetsDelta = transmittedOctetsDelta; + } + + /** + * Cumulative count of all packets transmitted as read at the end of the measurement interval + * + */ + @JsonProperty("transmittedTotalPacketsAccumulated") + public Double getTransmittedTotalPacketsAccumulated() { + return transmittedTotalPacketsAccumulated; + } + + /** + * Cumulative count of all packets transmitted as read at the end of the measurement interval + * + */ + @JsonProperty("transmittedTotalPacketsAccumulated") + public void setTransmittedTotalPacketsAccumulated(Double transmittedTotalPacketsAccumulated) { + this.transmittedTotalPacketsAccumulated = transmittedTotalPacketsAccumulated; + } + + /** + * Count of all packets transmitted within the measurement interval + * + */ + @JsonProperty("transmittedTotalPacketsDelta") + public Double getTransmittedTotalPacketsDelta() { + return transmittedTotalPacketsDelta; + } + + /** + * Count of all packets transmitted within the measurement interval + * + */ + @JsonProperty("transmittedTotalPacketsDelta") + public void setTransmittedTotalPacketsDelta(Double transmittedTotalPacketsDelta) { + this.transmittedTotalPacketsDelta = transmittedTotalPacketsDelta; + } + + /** + * Cumulative count of unicast packets transmitted as read at the end of the measurement interval + * + */ + @JsonProperty("transmittedUnicastPacketsAccumulated") + public Double getTransmittedUnicastPacketsAccumulated() { + return transmittedUnicastPacketsAccumulated; + } + + /** + * Cumulative count of unicast packets transmitted as read at the end of the measurement interval + * + */ + @JsonProperty("transmittedUnicastPacketsAccumulated") + public void setTransmittedUnicastPacketsAccumulated(Double transmittedUnicastPacketsAccumulated) { + this.transmittedUnicastPacketsAccumulated = transmittedUnicastPacketsAccumulated; + } + + /** + * Count of unicast packets transmitted within the measurement interval + * + */ + @JsonProperty("transmittedUnicastPacketsDelta") + public Double getTransmittedUnicastPacketsDelta() { + return transmittedUnicastPacketsDelta; + } + + /** + * Count of unicast packets transmitted within the measurement interval + * + */ + @JsonProperty("transmittedUnicastPacketsDelta") + public void setTransmittedUnicastPacketsDelta(Double transmittedUnicastPacketsDelta) { + this.transmittedUnicastPacketsDelta = transmittedUnicastPacketsDelta; + } + + /** + * Percentage of discarded packets transmitted; value = (transmittedDiscardedPacketsDelta / transmittedTotalPacketsDelta) x 100, if denominator is nonzero, or 0, if otherwise + * + */ + @JsonProperty("transmittedPercentDiscard") + public Double getTransmittedPercentDiscard() { + return transmittedPercentDiscard; + } + + /** + * Percentage of discarded packets transmitted; value = (transmittedDiscardedPacketsDelta / transmittedTotalPacketsDelta) x 100, if denominator is nonzero, or 0, if otherwise + * + */ + @JsonProperty("transmittedPercentDiscard") + public void setTransmittedPercentDiscard(Double transmittedPercentDiscard) { + this.transmittedPercentDiscard = transmittedPercentDiscard; + } + + /** + * Percentage of error packets received; value = (transmittedErrorPacketsDelta / transmittedTotalPacketsDelta) x 100, if denominator is nonzero, or 0, if otherwise + * + */ + @JsonProperty("transmittedPercentError") + public Double getTransmittedPercentError() { + return transmittedPercentError; + } + + /** + * Percentage of error packets received; value = (transmittedErrorPacketsDelta / transmittedTotalPacketsDelta) x 100, if denominator is nonzero, or 0, if otherwise + * + */ + @JsonProperty("transmittedPercentError") + public void setTransmittedPercentError(Double transmittedPercentError) { + this.transmittedPercentError = transmittedPercentError; + } + + /** + * Percentage of utilization transmitted; value = (transmittedOctetsDelta / (speed x (lastEpochMicrosec - startEpochMicrosec))) x 100, if denominator is nonzero, or 0, if otherwise. + * + */ + @JsonProperty("transmittedUtilization") + public Double getTransmittedUtilization() { + return transmittedUtilization; + } + + /** + * Percentage of utilization transmitted; value = (transmittedOctetsDelta / (speed x (lastEpochMicrosec - startEpochMicrosec))) x 100, if denominator is nonzero, or 0, if otherwise. + * + */ + @JsonProperty("transmittedUtilization") + public void setTransmittedUtilization(Double transmittedUtilization) { + this.transmittedUtilization = transmittedUtilization; + } + + /** + * Indicates whether vNicPerformance values are likely inaccurate due to counter overflow or other condtions + * (Required) + * + */ + @JsonProperty("valuesAreSuspect") + public NicPerformanceArray.ValuesAreSuspect getValuesAreSuspect() { + return valuesAreSuspect; + } + + /** + * Indicates whether vNicPerformance values are likely inaccurate due to counter overflow or other condtions + * (Required) + * + */ + @JsonProperty("valuesAreSuspect") + public void setValuesAreSuspect(NicPerformanceArray.ValuesAreSuspect valuesAreSuspect) { + this.valuesAreSuspect = valuesAreSuspect; + } + + @Override + public String toString() { + return ToStringBuilder.reflectionToString(this); + } + + @Override + public int hashCode() { + return new HashCodeBuilder().append(administrativeState).append(nicIdentifier).append(operationalState).append(receivedBroadcastPacketsAccumulated).append(receivedBroadcastPacketsDelta).append(receivedDiscardedPacketsAccumulated).append(receivedDiscardedPacketsDelta).append(receivedErrorPacketsAccumulated).append(receivedErrorPacketsDelta).append(receivedMulticastPacketsAccumulated).append(receivedMulticastPacketsDelta).append(receivedOctetsAccumulated).append(receivedOctetsDelta).append(receivedTotalPacketsAccumulated).append(receivedPercentDiscard).append(receivedPercentError).append(receivedTotalPacketsDelta).append(receivedUnicastPacketsAccumulated).append(receivedUnicastPacketsDelta).append(receivedUtilization).append(speed).append(transmittedBroadcastPacketsAccumulated).append(transmittedBroadcastPacketsDelta).append(transmittedDiscardedPacketsAccumulated).append(transmittedDiscardedPacketsDelta).append(transmittedErrorPacketsAccumulated).append(transmittedErrorPacketsDelta).append(transmittedMulticastPacketsAccumulated).append(transmittedMulticastPacketsDelta).append(transmittedOctetsAccumulated).append(transmittedOctetsDelta).append(transmittedTotalPacketsAccumulated).append(transmittedTotalPacketsDelta).append(transmittedUnicastPacketsAccumulated).append(transmittedUnicastPacketsDelta).append(transmittedPercentDiscard).append(transmittedPercentError).append(transmittedUtilization).append(valuesAreSuspect).toHashCode(); + } + + @Override + public boolean equals(Object other) { + if (other == this) { + return true; + } + if ((other instanceof NicPerformanceArray) == false) { + return false; + } + NicPerformanceArray rhs = ((NicPerformanceArray) other); + return new EqualsBuilder().append(administrativeState, rhs.administrativeState).append(nicIdentifier, rhs.nicIdentifier).append(operationalState, rhs.operationalState).append(receivedBroadcastPacketsAccumulated, rhs.receivedBroadcastPacketsAccumulated).append(receivedBroadcastPacketsDelta, rhs.receivedBroadcastPacketsDelta).append(receivedDiscardedPacketsAccumulated, rhs.receivedDiscardedPacketsAccumulated).append(receivedDiscardedPacketsDelta, rhs.receivedDiscardedPacketsDelta).append(receivedErrorPacketsAccumulated, rhs.receivedErrorPacketsAccumulated).append(receivedErrorPacketsDelta, rhs.receivedErrorPacketsDelta).append(receivedMulticastPacketsAccumulated, rhs.receivedMulticastPacketsAccumulated).append(receivedMulticastPacketsDelta, rhs.receivedMulticastPacketsDelta).append(receivedOctetsAccumulated, rhs.receivedOctetsAccumulated).append(receivedOctetsDelta, rhs.receivedOctetsDelta).append(receivedTotalPacketsAccumulated, rhs.receivedTotalPacketsAccumulated).append(receivedPercentDiscard, rhs.receivedPercentDiscard).append(receivedPercentError, rhs.receivedPercentError).append(receivedTotalPacketsDelta, rhs.receivedTotalPacketsDelta).append(receivedUnicastPacketsAccumulated, rhs.receivedUnicastPacketsAccumulated).append(receivedUnicastPacketsDelta, rhs.receivedUnicastPacketsDelta).append(receivedUtilization, rhs.receivedUtilization).append(speed, rhs.speed).append(transmittedBroadcastPacketsAccumulated, rhs.transmittedBroadcastPacketsAccumulated).append(transmittedBroadcastPacketsDelta, rhs.transmittedBroadcastPacketsDelta).append(transmittedDiscardedPacketsAccumulated, rhs.transmittedDiscardedPacketsAccumulated).append(transmittedDiscardedPacketsDelta, rhs.transmittedDiscardedPacketsDelta).append(transmittedErrorPacketsAccumulated, rhs.transmittedErrorPacketsAccumulated).append(transmittedErrorPacketsDelta, rhs.transmittedErrorPacketsDelta).append(transmittedMulticastPacketsAccumulated, rhs.transmittedMulticastPacketsAccumulated).append(transmittedMulticastPacketsDelta, rhs.transmittedMulticastPacketsDelta).append(transmittedOctetsAccumulated, rhs.transmittedOctetsAccumulated).append(transmittedOctetsDelta, rhs.transmittedOctetsDelta).append(transmittedTotalPacketsAccumulated, rhs.transmittedTotalPacketsAccumulated).append(transmittedTotalPacketsDelta, rhs.transmittedTotalPacketsDelta).append(transmittedUnicastPacketsAccumulated, rhs.transmittedUnicastPacketsAccumulated).append(transmittedUnicastPacketsDelta, rhs.transmittedUnicastPacketsDelta).append(transmittedPercentDiscard, rhs.transmittedPercentDiscard).append(transmittedPercentError, rhs.transmittedPercentError).append(transmittedUtilization, rhs.transmittedUtilization).append(valuesAreSuspect, rhs.valuesAreSuspect).isEquals(); + } + + public enum AdministrativeState { + + IN_SERVICE("inService"), + OUT_OF_SERVICE("outOfService"); + private final String value; + private final static Map CONSTANTS = new HashMap(); + + static { + for (NicPerformanceArray.AdministrativeState c: values()) { + CONSTANTS.put(c.value, c); + } + } + + private AdministrativeState(String value) { + this.value = value; + } + + @Override + public String toString() { + return this.value; + } + + @JsonValue + public String value() { + return this.value; + } + + @JsonCreator + public static NicPerformanceArray.AdministrativeState fromValue(String value) { + NicPerformanceArray.AdministrativeState constant = CONSTANTS.get(value); + if (constant == null) { + throw new IllegalArgumentException(value); + } else { + return constant; + } + } + + } + + public enum OperationalState { + + IN_SERVICE("inService"), + OUT_OF_SERVICE("outOfService"); + private final String value; + private final static Map CONSTANTS = new HashMap(); + + static { + for (NicPerformanceArray.OperationalState c: values()) { + CONSTANTS.put(c.value, c); + } + } + + private OperationalState(String value) { + this.value = value; + } + + @Override + public String toString() { + return this.value; + } + + @JsonValue + public String value() { + return this.value; + } + + @JsonCreator + public static NicPerformanceArray.OperationalState fromValue(String value) { + NicPerformanceArray.OperationalState constant = CONSTANTS.get(value); + if (constant == null) { + throw new IllegalArgumentException(value); + } else { + return constant; + } + } + + } + + public enum ValuesAreSuspect { + + TRUE("true"), + FALSE("false"); + private final String value; + private final static Map CONSTANTS = new HashMap(); + + static { + for (NicPerformanceArray.ValuesAreSuspect c: values()) { + CONSTANTS.put(c.value, c); + } + } + + private ValuesAreSuspect(String value) { + this.value = value; + } + + @Override + public String toString() { + return this.value; + } + + @JsonValue + public String value() { + return this.value; + } + + @JsonCreator + public static NicPerformanceArray.ValuesAreSuspect fromValue(String value) { + NicPerformanceArray.ValuesAreSuspect constant = CONSTANTS.get(value); + if (constant == null) { + throw new IllegalArgumentException(value); + } else { + return constant; + } + } + + } + +} diff --git a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/NotificationFields.java b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/NotificationFields.java new file mode 100644 index 0000000..59a50a2 --- /dev/null +++ b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/NotificationFields.java @@ -0,0 +1,350 @@ +/* +* ============LICENSE_START======================================================= +* ONAP : DCAE +* ================================================================================ +* Copyright 2019 TechMahindra +*================================================================================= +* 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========================================================= +*/ +package org.onap.dcaegen2.ves.domain.ves70; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyDescription; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; +import org.apache.commons.lang.builder.EqualsBuilder; +import org.apache.commons.lang.builder.HashCodeBuilder; +import org.apache.commons.lang.builder.ToStringBuilder; + + +/** + * notification fields + * + */ +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonPropertyOrder({ + "additionalFields", + "arrayOfNamedHashMap", + "changeContact", + "changeIdentifier", + "changeType", + "newState", + "oldState", + "notificationFieldsVersion", + "stateInterface" +}) +public class NotificationFields { + + /** + * an associative array which is an array of key:value pairs + * + */ + @JsonProperty("additionalFields") + @JsonPropertyDescription("an associative array which is an array of key:value pairs") + private AlarmAdditionalInformation additionalFields; + /** + * array of named hashMaps + * + */ + @JsonProperty("arrayOfNamedHashMap") + @JsonPropertyDescription("array of named hashMaps") + private List arrayOfNamedHashMap = new ArrayList(); + /** + * identifier for a contact related to the change + * + */ + @JsonProperty("changeContact") + @JsonPropertyDescription("identifier for a contact related to the change") + private String changeContact; + /** + * system or session identifier associated with the change + * (Required) + * + */ + @JsonProperty("changeIdentifier") + @JsonPropertyDescription("system or session identifier associated with the change") + private String changeIdentifier; + /** + * describes what has changed for the entity + * (Required) + * + */ + @JsonProperty("changeType") + @JsonPropertyDescription("describes what has changed for the entity") + private String changeType; + /** + * new state of the entity + * + */ + @JsonProperty("newState") + @JsonPropertyDescription("new state of the entity") + private String newState; + /** + * previous state of the entity + * + */ + @JsonProperty("oldState") + @JsonPropertyDescription("previous state of the entity") + private String oldState; + /** + * version of the notificationFields block + * (Required) + * + */ + @JsonProperty("notificationFieldsVersion") + @JsonPropertyDescription("version of the notificationFields block") + private NotificationFields.NotificationFieldsVersion notificationFieldsVersion; + /** + * card or port name of the entity that changed state + * + */ + @JsonProperty("stateInterface") + @JsonPropertyDescription("card or port name of the entity that changed state") + private String stateInterface; + + /** + * an associative array which is an array of key:value pairs + * + */ + @JsonProperty("additionalFields") + public AlarmAdditionalInformation getAdditionalFields() { + return additionalFields; + } + + /** + * an associative array which is an array of key:value pairs + * + */ + @JsonProperty("additionalFields") + public void setAdditionalFields(AlarmAdditionalInformation additionalFields) { + this.additionalFields = additionalFields; + } + + /** + * array of named hashMaps + * + */ + @JsonProperty("arrayOfNamedHashMap") + public List getArrayOfNamedHashMap() { + return arrayOfNamedHashMap; + } + + /** + * array of named hashMaps + * + */ + @JsonProperty("arrayOfNamedHashMap") + public void setArrayOfNamedHashMap(List arrayOfNamedHashMap) { + this.arrayOfNamedHashMap = arrayOfNamedHashMap; + } + + /** + * identifier for a contact related to the change + * + */ + @JsonProperty("changeContact") + public String getChangeContact() { + return changeContact; + } + + /** + * identifier for a contact related to the change + * + */ + @JsonProperty("changeContact") + public void setChangeContact(String changeContact) { + this.changeContact = changeContact; + } + + /** + * system or session identifier associated with the change + * (Required) + * + */ + @JsonProperty("changeIdentifier") + public String getChangeIdentifier() { + return changeIdentifier; + } + + /** + * system or session identifier associated with the change + * (Required) + * + */ + @JsonProperty("changeIdentifier") + public void setChangeIdentifier(String changeIdentifier) { + this.changeIdentifier = changeIdentifier; + } + + /** + * describes what has changed for the entity + * (Required) + * + */ + @JsonProperty("changeType") + public String getChangeType() { + return changeType; + } + + /** + * describes what has changed for the entity + * (Required) + * + */ + @JsonProperty("changeType") + public void setChangeType(String changeType) { + this.changeType = changeType; + } + + /** + * new state of the entity + * + */ + @JsonProperty("newState") + public String getNewState() { + return newState; + } + + /** + * new state of the entity + * + */ + @JsonProperty("newState") + public void setNewState(String newState) { + this.newState = newState; + } + + /** + * previous state of the entity + * + */ + @JsonProperty("oldState") + public String getOldState() { + return oldState; + } + + /** + * previous state of the entity + * + */ + @JsonProperty("oldState") + public void setOldState(String oldState) { + this.oldState = oldState; + } + + /** + * version of the notificationFields block + * (Required) + * + */ + @JsonProperty("notificationFieldsVersion") + public NotificationFields.NotificationFieldsVersion getNotificationFieldsVersion() { + return notificationFieldsVersion; + } + + /** + * version of the notificationFields block + * (Required) + * + */ + @JsonProperty("notificationFieldsVersion") + public void setNotificationFieldsVersion(NotificationFields.NotificationFieldsVersion notificationFieldsVersion) { + this.notificationFieldsVersion = notificationFieldsVersion; + } + + /** + * card or port name of the entity that changed state + * + */ + @JsonProperty("stateInterface") + public String getStateInterface() { + return stateInterface; + } + + /** + * card or port name of the entity that changed state + * + */ + @JsonProperty("stateInterface") + public void setStateInterface(String stateInterface) { + this.stateInterface = stateInterface; + } + + @Override + public String toString() { + return ToStringBuilder.reflectionToString(this); + } + + @Override + public int hashCode() { + return new HashCodeBuilder().append(additionalFields).append(arrayOfNamedHashMap).append(changeContact).append(changeIdentifier).append(changeType).append(newState).append(oldState).append(notificationFieldsVersion).append(stateInterface).toHashCode(); + } + + @Override + public boolean equals(Object other) { + if (other == this) { + return true; + } + if ((other instanceof NotificationFields) == false) { + return false; + } + NotificationFields rhs = ((NotificationFields) other); + return new EqualsBuilder().append(additionalFields, rhs.additionalFields).append(arrayOfNamedHashMap, rhs.arrayOfNamedHashMap).append(changeContact, rhs.changeContact).append(changeIdentifier, rhs.changeIdentifier).append(changeType, rhs.changeType).append(newState, rhs.newState).append(oldState, rhs.oldState).append(notificationFieldsVersion, rhs.notificationFieldsVersion).append(stateInterface, rhs.stateInterface).isEquals(); + } + + public enum NotificationFieldsVersion { + + _2_0("2.0"); + private final String value; + private final static Map CONSTANTS = new HashMap(); + + static { + for (NotificationFields.NotificationFieldsVersion c: values()) { + CONSTANTS.put(c.value, c); + } + } + + private NotificationFieldsVersion(String value) { + this.value = value; + } + + @Override + public String toString() { + return this.value; + } + + @JsonValue + public String value() { + return this.value; + } + + @JsonCreator + public static NotificationFields.NotificationFieldsVersion fromValue(String value) { + NotificationFields.NotificationFieldsVersion constant = CONSTANTS.get(value); + if (constant == null) { + throw new IllegalArgumentException(value); + } else { + return constant; + } + } + + } + +} diff --git a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/ObjectInstance.java b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/ObjectInstance.java new file mode 100644 index 0000000..aab83f0 --- /dev/null +++ b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/ObjectInstance.java @@ -0,0 +1,169 @@ +/* +* ============LICENSE_START======================================================= +* ONAP : DCAE +* ================================================================================ +* Copyright 2019 TechMahindra +*================================================================================= +* 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========================================================= +*/ +package org.onap.dcaegen2.ves.domain.ves70; + +import java.util.ArrayList; +import java.util.List; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyDescription; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import org.apache.commons.lang.builder.EqualsBuilder; +import org.apache.commons.lang.builder.HashCodeBuilder; +import org.apache.commons.lang.builder.ToStringBuilder; + + +/** + * meta-information about an instance of a jsonObject along with the actual object instance + * + */ +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonPropertyOrder({ + "jsonObject", + "objectInstance", + "objectInstanceEpochMicrosec", + "objectKeys" +}) +public class ObjectInstance { + + /** + * json object schema, name and other meta-information along with one or more object instances + * + */ + @JsonProperty("jsonObject") + @JsonPropertyDescription("json object schema, name and other meta-information along with one or more object instances") + private AdditionalObject jsonObject; + /** + * an instance conforming to the jsonObject objectSchema + * + */ + @JsonProperty("objectInstance") + @JsonPropertyDescription("an instance conforming to the jsonObject objectSchema") + private ObjectInstance objectInstance; + /** + * the unix time aka epoch time associated with this objectInstance--as microseconds elapsed since 1 Jan 1970 not including leap seconds + * + */ + @JsonProperty("objectInstanceEpochMicrosec") + @JsonPropertyDescription("the unix time aka epoch time associated with this objectInstance--as microseconds elapsed since 1 Jan 1970 not including leap seconds") + private Double objectInstanceEpochMicrosec; + /** + * an ordered set of keys that identifies this particular instance of jsonObject + * + */ + @JsonProperty("objectKeys") + @JsonPropertyDescription("an ordered set of keys that identifies this particular instance of jsonObject") + private List objectKeys = new ArrayList(); + + /** + * json object schema, name and other meta-information along with one or more object instances + * + */ + @JsonProperty("jsonObject") + public AdditionalObject getJsonObject() { + return jsonObject; + } + + /** + * json object schema, name and other meta-information along with one or more object instances + * + */ + @JsonProperty("jsonObject") + public void setJsonObject(AdditionalObject jsonObject) { + this.jsonObject = jsonObject; + } + + /** + * an instance conforming to the jsonObject objectSchema + * + */ + @JsonProperty("objectInstance") + public ObjectInstance getObjectInstance() { + return objectInstance; + } + + /** + * an instance conforming to the jsonObject objectSchema + * + */ + @JsonProperty("objectInstance") + public void setObjectInstance(ObjectInstance objectInstance) { + this.objectInstance = objectInstance; + } + + /** + * the unix time aka epoch time associated with this objectInstance--as microseconds elapsed since 1 Jan 1970 not including leap seconds + * + */ + @JsonProperty("objectInstanceEpochMicrosec") + public Double getObjectInstanceEpochMicrosec() { + return objectInstanceEpochMicrosec; + } + + /** + * the unix time aka epoch time associated with this objectInstance--as microseconds elapsed since 1 Jan 1970 not including leap seconds + * + */ + @JsonProperty("objectInstanceEpochMicrosec") + public void setObjectInstanceEpochMicrosec(Double objectInstanceEpochMicrosec) { + this.objectInstanceEpochMicrosec = objectInstanceEpochMicrosec; + } + + /** + * an ordered set of keys that identifies this particular instance of jsonObject + * + */ + @JsonProperty("objectKeys") + public List getObjectKeys() { + return objectKeys; + } + + /** + * an ordered set of keys that identifies this particular instance of jsonObject + * + */ + @JsonProperty("objectKeys") + public void setObjectKeys(List objectKeys) { + this.objectKeys = objectKeys; + } + + @Override + public String toString() { + return ToStringBuilder.reflectionToString(this); + } + + @Override + public int hashCode() { + return new HashCodeBuilder().append(jsonObject).append(objectInstance).append(objectInstanceEpochMicrosec).append(objectKeys).toHashCode(); + } + + @Override + public boolean equals(Object other) { + if (other == this) { + return true; + } + if ((other instanceof ObjectInstance) == false) { + return false; + } + ObjectInstance rhs = ((ObjectInstance) other); + return new EqualsBuilder().append(jsonObject, rhs.jsonObject).append(objectInstance, rhs.objectInstance).append(objectInstanceEpochMicrosec, rhs.objectInstanceEpochMicrosec).append(objectKeys, rhs.objectKeys).isEquals(); + } + +} diff --git a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/ObjectKey.java b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/ObjectKey.java new file mode 100644 index 0000000..b75927b --- /dev/null +++ b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/ObjectKey.java @@ -0,0 +1,144 @@ +/* +* ============LICENSE_START======================================================= +* ONAP : DCAE +* ================================================================================ +* Copyright 2019 TechMahindra +*================================================================================= +* 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========================================================= +*/ +package org.onap.dcaegen2.ves.domain.ves70; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyDescription; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import org.apache.commons.lang.builder.EqualsBuilder; +import org.apache.commons.lang.builder.HashCodeBuilder; +import org.apache.commons.lang.builder.ToStringBuilder; + + +/** + * tuple which provides the name of a key along with its value and relative order + * + */ +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonPropertyOrder({ + "keyName", + "keyOrder", + "keyValue" +}) +public class ObjectKey { + + /** + * name of the key + * (Required) + * + */ + @JsonProperty("keyName") + @JsonPropertyDescription("name of the key") + private String keyName; + /** + * relative sequence or order of the key with respect to other keys + * + */ + @JsonProperty("keyOrder") + @JsonPropertyDescription("relative sequence or order of the key with respect to other keys") + private Integer keyOrder; + /** + * value of the key + * + */ + @JsonProperty("keyValue") + @JsonPropertyDescription("value of the key") + private String keyValue; + + /** + * name of the key + * (Required) + * + */ + @JsonProperty("keyName") + public String getKeyName() { + return keyName; + } + + /** + * name of the key + * (Required) + * + */ + @JsonProperty("keyName") + public void setKeyName(String keyName) { + this.keyName = keyName; + } + + /** + * relative sequence or order of the key with respect to other keys + * + */ + @JsonProperty("keyOrder") + public Integer getKeyOrder() { + return keyOrder; + } + + /** + * relative sequence or order of the key with respect to other keys + * + */ + @JsonProperty("keyOrder") + public void setKeyOrder(Integer keyOrder) { + this.keyOrder = keyOrder; + } + + /** + * value of the key + * + */ + @JsonProperty("keyValue") + public String getKeyValue() { + return keyValue; + } + + /** + * value of the key + * + */ + @JsonProperty("keyValue") + public void setKeyValue(String keyValue) { + this.keyValue = keyValue; + } + + @Override + public String toString() { + return ToStringBuilder.reflectionToString(this); + } + + @Override + public int hashCode() { + return new HashCodeBuilder().append(keyName).append(keyOrder).append(keyValue).toHashCode(); + } + + @Override + public boolean equals(Object other) { + if (other == this) { + return true; + } + if ((other instanceof ObjectKey) == false) { + return false; + } + ObjectKey rhs = ((ObjectKey) other); + return new EqualsBuilder().append(keyName, rhs.keyName).append(keyOrder, rhs.keyOrder).append(keyValue, rhs.keyValue).isEquals(); + } + +} diff --git a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/OtherFields.java b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/OtherFields.java new file mode 100644 index 0000000..322c023 --- /dev/null +++ b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/OtherFields.java @@ -0,0 +1,214 @@ +/* +* ============LICENSE_START======================================================= +* ONAP : DCAE +* ================================================================================ +* Copyright 2019 TechMahindra +*================================================================================= +* 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========================================================= +*/ +package org.onap.dcaegen2.ves.domain.ves70; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyDescription; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; +import org.apache.commons.lang.builder.EqualsBuilder; +import org.apache.commons.lang.builder.HashCodeBuilder; +import org.apache.commons.lang.builder.ToStringBuilder; + + +/** + * fields for events belonging to the 'other' domain of the commonEventHeader domain enumeration + * + */ +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonPropertyOrder({ + "arrayOfNamedHashMap", + "hashMap", + "jsonObjects", + "otherFieldsVersion" +}) +public class OtherFields { + + /** + * array of named hashMaps + * + */ + @JsonProperty("arrayOfNamedHashMap") + @JsonPropertyDescription("array of named hashMaps") + private List arrayOfNamedHashMap = new ArrayList(); + /** + * an associative array which is an array of key:value pairs + * + */ + @JsonProperty("hashMap") + @JsonPropertyDescription("an associative array which is an array of key:value pairs") + private AlarmAdditionalInformation hashMap; + /** + * array of json objects described by name, schema and other meta-information + * + */ + @JsonProperty("jsonObjects") + @JsonPropertyDescription("array of json objects described by name, schema and other meta-information") + private List jsonObjects = new ArrayList(); + /** + * version of the otherFields block + * (Required) + * + */ + @JsonProperty("otherFieldsVersion") + @JsonPropertyDescription("version of the otherFields block") + private OtherFields.OtherFieldsVersion otherFieldsVersion; + + /** + * array of named hashMaps + * + */ + @JsonProperty("arrayOfNamedHashMap") + public List getArrayOfNamedHashMap() { + return arrayOfNamedHashMap; + } + + /** + * array of named hashMaps + * + */ + @JsonProperty("arrayOfNamedHashMap") + public void setArrayOfNamedHashMap(List arrayOfNamedHashMap) { + this.arrayOfNamedHashMap = arrayOfNamedHashMap; + } + + /** + * an associative array which is an array of key:value pairs + * + */ + @JsonProperty("hashMap") + public AlarmAdditionalInformation getHashMap() { + return hashMap; + } + + /** + * an associative array which is an array of key:value pairs + * + */ + @JsonProperty("hashMap") + public void setHashMap(AlarmAdditionalInformation hashMap) { + this.hashMap = hashMap; + } + + /** + * array of json objects described by name, schema and other meta-information + * + */ + @JsonProperty("jsonObjects") + public List getJsonObjects() { + return jsonObjects; + } + + /** + * array of json objects described by name, schema and other meta-information + * + */ + @JsonProperty("jsonObjects") + public void setJsonObjects(List jsonObjects) { + this.jsonObjects = jsonObjects; + } + + /** + * version of the otherFields block + * (Required) + * + */ + @JsonProperty("otherFieldsVersion") + public OtherFields.OtherFieldsVersion getOtherFieldsVersion() { + return otherFieldsVersion; + } + + /** + * version of the otherFields block + * (Required) + * + */ + @JsonProperty("otherFieldsVersion") + public void setOtherFieldsVersion(OtherFields.OtherFieldsVersion otherFieldsVersion) { + this.otherFieldsVersion = otherFieldsVersion; + } + + @Override + public String toString() { + return ToStringBuilder.reflectionToString(this); + } + + @Override + public int hashCode() { + return new HashCodeBuilder().append(arrayOfNamedHashMap).append(hashMap).append(jsonObjects).append(otherFieldsVersion).toHashCode(); + } + + @Override + public boolean equals(Object other) { + if (other == this) { + return true; + } + if ((other instanceof OtherFields) == false) { + return false; + } + OtherFields rhs = ((OtherFields) other); + return new EqualsBuilder().append(arrayOfNamedHashMap, rhs.arrayOfNamedHashMap).append(hashMap, rhs.hashMap).append(jsonObjects, rhs.jsonObjects).append(otherFieldsVersion, rhs.otherFieldsVersion).isEquals(); + } + + public enum OtherFieldsVersion { + + _3_0("3.0"); + private final String value; + private final static Map CONSTANTS = new HashMap(); + + static { + for (OtherFields.OtherFieldsVersion c: values()) { + CONSTANTS.put(c.value, c); + } + } + + private OtherFieldsVersion(String value) { + this.value = value; + } + + @Override + public String toString() { + return this.value; + } + + @JsonValue + public String value() { + return this.value; + } + + @JsonCreator + public static OtherFields.OtherFieldsVersion fromValue(String value) { + OtherFields.OtherFieldsVersion constant = CONSTANTS.get(value); + if (constant == null) { + throw new IllegalArgumentException(value); + } else { + return constant; + } + } + + } + +} diff --git a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/PnfRegistrationFields.java b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/PnfRegistrationFields.java new file mode 100644 index 0000000..979a1b9 --- /dev/null +++ b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/PnfRegistrationFields.java @@ -0,0 +1,446 @@ +/* +* ============LICENSE_START======================================================= +* ONAP : DCAE +* ================================================================================ +* Copyright 2019 TechMahindra +*================================================================================= +* 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========================================================= +*/ +package org.onap.dcaegen2.ves.domain.ves70; + +import java.util.HashMap; +import java.util.Map; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyDescription; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; +import org.apache.commons.lang.builder.EqualsBuilder; +import org.apache.commons.lang.builder.HashCodeBuilder; +import org.apache.commons.lang.builder.ToStringBuilder; + + +/** + * hardware device registration fields + * + */ +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonPropertyOrder({ + "additionalFields", + "lastServiceDate", + "macAddress", + "manufactureDate", + "modelNumber", + "oamV4IpAddress", + "oamV6IpAddress", + "pnfRegistrationFieldsVersion", + "serialNumber", + "softwareVersion", + "unitFamily", + "unitType", + "vendorName" +}) +public class PnfRegistrationFields { + + /** + * an associative array which is an array of key:value pairs + * + */ + @JsonProperty("additionalFields") + @JsonPropertyDescription("an associative array which is an array of key:value pairs") + private AlarmAdditionalInformation additionalFields; + /** + * TS 32.692 dateOfLastService = date of last service; e.g. 15022017 + * + */ + @JsonProperty("lastServiceDate") + @JsonPropertyDescription("TS 32.692 dateOfLastService = date of last service; e.g. 15022017") + private String lastServiceDate; + /** + * MAC address of OAM interface of the unit + * + */ + @JsonProperty("macAddress") + @JsonPropertyDescription("MAC address of OAM interface of the unit") + private String macAddress; + /** + * TS 32.692 dateOfManufacture = manufacture date of the unit; 24032016 + * + */ + @JsonProperty("manufactureDate") + @JsonPropertyDescription("TS 32.692 dateOfManufacture = manufacture date of the unit; 24032016") + private String manufactureDate; + /** + * TS 32.692 versionNumber = version of the unit from vendor; e.g. AJ02. Maps to AAI equip-model + * + */ + @JsonProperty("modelNumber") + @JsonPropertyDescription("TS 32.692 versionNumber = version of the unit from vendor; e.g. AJ02. Maps to AAI equip-model") + private String modelNumber; + /** + * IPv4 m-plane IP address to be used by the manager to contact the PNF + * + */ + @JsonProperty("oamV4IpAddress") + @JsonPropertyDescription("IPv4 m-plane IP address to be used by the manager to contact the PNF") + private String oamV4IpAddress; + /** + * IPv6 m-plane IP address to be used by the manager to contact the PNF + * + */ + @JsonProperty("oamV6IpAddress") + @JsonPropertyDescription("IPv6 m-plane IP address to be used by the manager to contact the PNF") + private String oamV6IpAddress; + /** + * version of the pnfRegistrationFields block + * (Required) + * + */ + @JsonProperty("pnfRegistrationFieldsVersion") + @JsonPropertyDescription("version of the pnfRegistrationFields block") + private PnfRegistrationFields.PnfRegistrationFieldsVersion pnfRegistrationFieldsVersion; + /** + * TS 32.692 serialNumber = serial number of the unit; e.g. 6061ZW3 + * + */ + @JsonProperty("serialNumber") + @JsonPropertyDescription("TS 32.692 serialNumber = serial number of the unit; e.g. 6061ZW3") + private String serialNumber; + /** + * TS 32.692 swName = active SW running on the unit; e.g. 5gDUv18.05.201 + * + */ + @JsonProperty("softwareVersion") + @JsonPropertyDescription("TS 32.692 swName = active SW running on the unit; e.g. 5gDUv18.05.201") + private String softwareVersion; + /** + * TS 32.692 vendorUnitFamilyType = general type of HW unit; e.g. BBU + * + */ + @JsonProperty("unitFamily") + @JsonPropertyDescription("TS 32.692 vendorUnitFamilyType = general type of HW unit; e.g. BBU") + private String unitFamily; + /** + * TS 32.692 vendorUnitTypeNumber = vendor name for the unit; e.g. Airscale + * + */ + @JsonProperty("unitType") + @JsonPropertyDescription("TS 32.692 vendorUnitTypeNumber = vendor name for the unit; e.g. Airscale") + private String unitType; + /** + * TS 32.692 vendorName = name of manufacturer; e.g. Nokia. Maps to AAI equip-vendor + * + */ + @JsonProperty("vendorName") + @JsonPropertyDescription("TS 32.692 vendorName = name of manufacturer; e.g. Nokia. Maps to AAI equip-vendor") + private String vendorName; + + /** + * an associative array which is an array of key:value pairs + * + */ + @JsonProperty("additionalFields") + public AlarmAdditionalInformation getAdditionalFields() { + return additionalFields; + } + + /** + * an associative array which is an array of key:value pairs + * + */ + @JsonProperty("additionalFields") + public void setAdditionalFields(AlarmAdditionalInformation additionalFields) { + this.additionalFields = additionalFields; + } + + /** + * TS 32.692 dateOfLastService = date of last service; e.g. 15022017 + * + */ + @JsonProperty("lastServiceDate") + public String getLastServiceDate() { + return lastServiceDate; + } + + /** + * TS 32.692 dateOfLastService = date of last service; e.g. 15022017 + * + */ + @JsonProperty("lastServiceDate") + public void setLastServiceDate(String lastServiceDate) { + this.lastServiceDate = lastServiceDate; + } + + /** + * MAC address of OAM interface of the unit + * + */ + @JsonProperty("macAddress") + public String getMacAddress() { + return macAddress; + } + + /** + * MAC address of OAM interface of the unit + * + */ + @JsonProperty("macAddress") + public void setMacAddress(String macAddress) { + this.macAddress = macAddress; + } + + /** + * TS 32.692 dateOfManufacture = manufacture date of the unit; 24032016 + * + */ + @JsonProperty("manufactureDate") + public String getManufactureDate() { + return manufactureDate; + } + + /** + * TS 32.692 dateOfManufacture = manufacture date of the unit; 24032016 + * + */ + @JsonProperty("manufactureDate") + public void setManufactureDate(String manufactureDate) { + this.manufactureDate = manufactureDate; + } + + /** + * TS 32.692 versionNumber = version of the unit from vendor; e.g. AJ02. Maps to AAI equip-model + * + */ + @JsonProperty("modelNumber") + public String getModelNumber() { + return modelNumber; + } + + /** + * TS 32.692 versionNumber = version of the unit from vendor; e.g. AJ02. Maps to AAI equip-model + * + */ + @JsonProperty("modelNumber") + public void setModelNumber(String modelNumber) { + this.modelNumber = modelNumber; + } + + /** + * IPv4 m-plane IP address to be used by the manager to contact the PNF + * + */ + @JsonProperty("oamV4IpAddress") + public String getOamV4IpAddress() { + return oamV4IpAddress; + } + + /** + * IPv4 m-plane IP address to be used by the manager to contact the PNF + * + */ + @JsonProperty("oamV4IpAddress") + public void setOamV4IpAddress(String oamV4IpAddress) { + this.oamV4IpAddress = oamV4IpAddress; + } + + /** + * IPv6 m-plane IP address to be used by the manager to contact the PNF + * + */ + @JsonProperty("oamV6IpAddress") + public String getOamV6IpAddress() { + return oamV6IpAddress; + } + + /** + * IPv6 m-plane IP address to be used by the manager to contact the PNF + * + */ + @JsonProperty("oamV6IpAddress") + public void setOamV6IpAddress(String oamV6IpAddress) { + this.oamV6IpAddress = oamV6IpAddress; + } + + /** + * version of the pnfRegistrationFields block + * (Required) + * + */ + @JsonProperty("pnfRegistrationFieldsVersion") + public PnfRegistrationFields.PnfRegistrationFieldsVersion getPnfRegistrationFieldsVersion() { + return pnfRegistrationFieldsVersion; + } + + /** + * version of the pnfRegistrationFields block + * (Required) + * + */ + @JsonProperty("pnfRegistrationFieldsVersion") + public void setPnfRegistrationFieldsVersion(PnfRegistrationFields.PnfRegistrationFieldsVersion pnfRegistrationFieldsVersion) { + this.pnfRegistrationFieldsVersion = pnfRegistrationFieldsVersion; + } + + /** + * TS 32.692 serialNumber = serial number of the unit; e.g. 6061ZW3 + * + */ + @JsonProperty("serialNumber") + public String getSerialNumber() { + return serialNumber; + } + + /** + * TS 32.692 serialNumber = serial number of the unit; e.g. 6061ZW3 + * + */ + @JsonProperty("serialNumber") + public void setSerialNumber(String serialNumber) { + this.serialNumber = serialNumber; + } + + /** + * TS 32.692 swName = active SW running on the unit; e.g. 5gDUv18.05.201 + * + */ + @JsonProperty("softwareVersion") + public String getSoftwareVersion() { + return softwareVersion; + } + + /** + * TS 32.692 swName = active SW running on the unit; e.g. 5gDUv18.05.201 + * + */ + @JsonProperty("softwareVersion") + public void setSoftwareVersion(String softwareVersion) { + this.softwareVersion = softwareVersion; + } + + /** + * TS 32.692 vendorUnitFamilyType = general type of HW unit; e.g. BBU + * + */ + @JsonProperty("unitFamily") + public String getUnitFamily() { + return unitFamily; + } + + /** + * TS 32.692 vendorUnitFamilyType = general type of HW unit; e.g. BBU + * + */ + @JsonProperty("unitFamily") + public void setUnitFamily(String unitFamily) { + this.unitFamily = unitFamily; + } + + /** + * TS 32.692 vendorUnitTypeNumber = vendor name for the unit; e.g. Airscale + * + */ + @JsonProperty("unitType") + public String getUnitType() { + return unitType; + } + + /** + * TS 32.692 vendorUnitTypeNumber = vendor name for the unit; e.g. Airscale + * + */ + @JsonProperty("unitType") + public void setUnitType(String unitType) { + this.unitType = unitType; + } + + /** + * TS 32.692 vendorName = name of manufacturer; e.g. Nokia. Maps to AAI equip-vendor + * + */ + @JsonProperty("vendorName") + public String getVendorName() { + return vendorName; + } + + /** + * TS 32.692 vendorName = name of manufacturer; e.g. Nokia. Maps to AAI equip-vendor + * + */ + @JsonProperty("vendorName") + public void setVendorName(String vendorName) { + this.vendorName = vendorName; + } + + @Override + public String toString() { + return ToStringBuilder.reflectionToString(this); + } + + @Override + public int hashCode() { + return new HashCodeBuilder().append(additionalFields).append(lastServiceDate).append(macAddress).append(manufactureDate).append(modelNumber).append(oamV4IpAddress).append(oamV6IpAddress).append(pnfRegistrationFieldsVersion).append(serialNumber).append(softwareVersion).append(unitFamily).append(unitType).append(vendorName).toHashCode(); + } + + @Override + public boolean equals(Object other) { + if (other == this) { + return true; + } + if ((other instanceof PnfRegistrationFields) == false) { + return false; + } + PnfRegistrationFields rhs = ((PnfRegistrationFields) other); + return new EqualsBuilder().append(additionalFields, rhs.additionalFields).append(lastServiceDate, rhs.lastServiceDate).append(macAddress, rhs.macAddress).append(manufactureDate, rhs.manufactureDate).append(modelNumber, rhs.modelNumber).append(oamV4IpAddress, rhs.oamV4IpAddress).append(oamV6IpAddress, rhs.oamV6IpAddress).append(pnfRegistrationFieldsVersion, rhs.pnfRegistrationFieldsVersion).append(serialNumber, rhs.serialNumber).append(softwareVersion, rhs.softwareVersion).append(unitFamily, rhs.unitFamily).append(unitType, rhs.unitType).append(vendorName, rhs.vendorName).isEquals(); + } + + public enum PnfRegistrationFieldsVersion { + + _2_0("2.0"); + private final String value; + private final static Map CONSTANTS = new HashMap(); + + static { + for (PnfRegistrationFields.PnfRegistrationFieldsVersion c: values()) { + CONSTANTS.put(c.value, c); + } + } + + private PnfRegistrationFieldsVersion(String value) { + this.value = value; + } + + @Override + public String toString() { + return this.value; + } + + @JsonValue + public String value() { + return this.value; + } + + @JsonCreator + public static PnfRegistrationFields.PnfRegistrationFieldsVersion fromValue(String value) { + PnfRegistrationFields.PnfRegistrationFieldsVersion constant = CONSTANTS.get(value); + if (constant == null) { + throw new IllegalArgumentException(value); + } else { + return constant; + } + } + + } + +} diff --git a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/ProcessStatsArray.java b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/ProcessStatsArray.java new file mode 100644 index 0000000..3e24c3a --- /dev/null +++ b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/ProcessStatsArray.java @@ -0,0 +1,274 @@ +/* +* ============LICENSE_START======================================================= +* ONAP : DCAE +* ================================================================================ +* Copyright 2019 TechMahindra +*================================================================================= +* 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========================================================= +*/ +package org.onap.dcaegen2.ves.domain.ves70; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyDescription; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import org.apache.commons.lang.builder.EqualsBuilder; +import org.apache.commons.lang.builder.HashCodeBuilder; +import org.apache.commons.lang.builder.ToStringBuilder; + + +/** + * metrics on system processes + * + */ +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonPropertyOrder({ + "forkRate", + "processIdentifier", + "psStateBlocked", + "psStatePaging", + "psStateRunning", + "psStateSleeping", + "psStateStopped", + "psStateZombie" +}) +public class ProcessStatsArray { + + /** + * the number of threads created since the last reboot + * + */ + @JsonProperty("forkRate") + @JsonPropertyDescription("the number of threads created since the last reboot") + private Double forkRate; + /** + * processIdentifier + * (Required) + * + */ + @JsonProperty("processIdentifier") + @JsonPropertyDescription("processIdentifier") + private String processIdentifier; + /** + * the number of processes in a blocked state + * + */ + @JsonProperty("psStateBlocked") + @JsonPropertyDescription("the number of processes in a blocked state") + private Double psStateBlocked; + /** + * the number of processes in a paging state + * + */ + @JsonProperty("psStatePaging") + @JsonPropertyDescription("the number of processes in a paging state") + private Double psStatePaging; + /** + * the number of processes in a running state + * + */ + @JsonProperty("psStateRunning") + @JsonPropertyDescription("the number of processes in a running state") + private Double psStateRunning; + /** + * the number of processes in a sleeping state + * + */ + @JsonProperty("psStateSleeping") + @JsonPropertyDescription("the number of processes in a sleeping state") + private Double psStateSleeping; + /** + * the number of processes in a stopped state + * + */ + @JsonProperty("psStateStopped") + @JsonPropertyDescription("the number of processes in a stopped state") + private Double psStateStopped; + /** + * the number of processes in a zombie state + * + */ + @JsonProperty("psStateZombie") + @JsonPropertyDescription("the number of processes in a zombie state") + private Double psStateZombie; + + /** + * the number of threads created since the last reboot + * + */ + @JsonProperty("forkRate") + public Double getForkRate() { + return forkRate; + } + + /** + * the number of threads created since the last reboot + * + */ + @JsonProperty("forkRate") + public void setForkRate(Double forkRate) { + this.forkRate = forkRate; + } + + /** + * processIdentifier + * (Required) + * + */ + @JsonProperty("processIdentifier") + public String getProcessIdentifier() { + return processIdentifier; + } + + /** + * processIdentifier + * (Required) + * + */ + @JsonProperty("processIdentifier") + public void setProcessIdentifier(String processIdentifier) { + this.processIdentifier = processIdentifier; + } + + /** + * the number of processes in a blocked state + * + */ + @JsonProperty("psStateBlocked") + public Double getPsStateBlocked() { + return psStateBlocked; + } + + /** + * the number of processes in a blocked state + * + */ + @JsonProperty("psStateBlocked") + public void setPsStateBlocked(Double psStateBlocked) { + this.psStateBlocked = psStateBlocked; + } + + /** + * the number of processes in a paging state + * + */ + @JsonProperty("psStatePaging") + public Double getPsStatePaging() { + return psStatePaging; + } + + /** + * the number of processes in a paging state + * + */ + @JsonProperty("psStatePaging") + public void setPsStatePaging(Double psStatePaging) { + this.psStatePaging = psStatePaging; + } + + /** + * the number of processes in a running state + * + */ + @JsonProperty("psStateRunning") + public Double getPsStateRunning() { + return psStateRunning; + } + + /** + * the number of processes in a running state + * + */ + @JsonProperty("psStateRunning") + public void setPsStateRunning(Double psStateRunning) { + this.psStateRunning = psStateRunning; + } + + /** + * the number of processes in a sleeping state + * + */ + @JsonProperty("psStateSleeping") + public Double getPsStateSleeping() { + return psStateSleeping; + } + + /** + * the number of processes in a sleeping state + * + */ + @JsonProperty("psStateSleeping") + public void setPsStateSleeping(Double psStateSleeping) { + this.psStateSleeping = psStateSleeping; + } + + /** + * the number of processes in a stopped state + * + */ + @JsonProperty("psStateStopped") + public Double getPsStateStopped() { + return psStateStopped; + } + + /** + * the number of processes in a stopped state + * + */ + @JsonProperty("psStateStopped") + public void setPsStateStopped(Double psStateStopped) { + this.psStateStopped = psStateStopped; + } + + /** + * the number of processes in a zombie state + * + */ + @JsonProperty("psStateZombie") + public Double getPsStateZombie() { + return psStateZombie; + } + + /** + * the number of processes in a zombie state + * + */ + @JsonProperty("psStateZombie") + public void setPsStateZombie(Double psStateZombie) { + this.psStateZombie = psStateZombie; + } + + @Override + public String toString() { + return ToStringBuilder.reflectionToString(this); + } + + @Override + public int hashCode() { + return new HashCodeBuilder().append(forkRate).append(processIdentifier).append(psStateBlocked).append(psStatePaging).append(psStateRunning).append(psStateSleeping).append(psStateStopped).append(psStateZombie).toHashCode(); + } + + @Override + public boolean equals(Object other) { + if (other == this) { + return true; + } + if ((other instanceof ProcessStatsArray) == false) { + return false; + } + ProcessStatsArray rhs = ((ProcessStatsArray) other); + return new EqualsBuilder().append(forkRate, rhs.forkRate).append(processIdentifier, rhs.processIdentifier).append(psStateBlocked, rhs.psStateBlocked).append(psStatePaging, rhs.psStatePaging).append(psStateRunning, rhs.psStateRunning).append(psStateSleeping, rhs.psStateSleeping).append(psStateStopped, rhs.psStateStopped).append(psStateZombie, rhs.psStateZombie).isEquals(); + } + +} diff --git a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/ProcessorDimmAggregateThermalMarginArray.java b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/ProcessorDimmAggregateThermalMarginArray.java new file mode 100644 index 0000000..e5c5de6 --- /dev/null +++ b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/ProcessorDimmAggregateThermalMarginArray.java @@ -0,0 +1,121 @@ +/* +* ============LICENSE_START======================================================= +* ONAP : DCAE +* ================================================================================ +* Copyright 2019 TechMahindra +*================================================================================= +* 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========================================================= +*/ +package org.onap.dcaegen2.ves.domain.ves70; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyDescription; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import org.apache.commons.lang.builder.EqualsBuilder; +import org.apache.commons.lang.builder.HashCodeBuilder; +import org.apache.commons.lang.builder.ToStringBuilder; + + +/** + * intelligent platform management interface (ipmi) processor dual inline memory module aggregate thermal margin metrics + * + */ +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonPropertyOrder({ + "processorDimmAggregateThermalMarginIdentifier", + "thermalMargin" +}) +public class ProcessorDimmAggregateThermalMarginArray { + + /** + * identifier for the aggregate thermal margin metrics from the processor dual inline memory module + * (Required) + * + */ + @JsonProperty("processorDimmAggregateThermalMarginIdentifier") + @JsonPropertyDescription("identifier for the aggregate thermal margin metrics from the processor dual inline memory module") + private String processorDimmAggregateThermalMarginIdentifier; + /** + * the difference between the DIMM's current temperature, in celsius, and the DIMM's throttling thermal trip point + * (Required) + * + */ + @JsonProperty("thermalMargin") + @JsonPropertyDescription("the difference between the DIMM's current temperature, in celsius, and the DIMM's throttling thermal trip point") + private Double thermalMargin; + + /** + * identifier for the aggregate thermal margin metrics from the processor dual inline memory module + * (Required) + * + */ + @JsonProperty("processorDimmAggregateThermalMarginIdentifier") + public String getProcessorDimmAggregateThermalMarginIdentifier() { + return processorDimmAggregateThermalMarginIdentifier; + } + + /** + * identifier for the aggregate thermal margin metrics from the processor dual inline memory module + * (Required) + * + */ + @JsonProperty("processorDimmAggregateThermalMarginIdentifier") + public void setProcessorDimmAggregateThermalMarginIdentifier(String processorDimmAggregateThermalMarginIdentifier) { + this.processorDimmAggregateThermalMarginIdentifier = processorDimmAggregateThermalMarginIdentifier; + } + + /** + * the difference between the DIMM's current temperature, in celsius, and the DIMM's throttling thermal trip point + * (Required) + * + */ + @JsonProperty("thermalMargin") + public Double getThermalMargin() { + return thermalMargin; + } + + /** + * the difference between the DIMM's current temperature, in celsius, and the DIMM's throttling thermal trip point + * (Required) + * + */ + @JsonProperty("thermalMargin") + public void setThermalMargin(Double thermalMargin) { + this.thermalMargin = thermalMargin; + } + + @Override + public String toString() { + return ToStringBuilder.reflectionToString(this); + } + + @Override + public int hashCode() { + return new HashCodeBuilder().append(processorDimmAggregateThermalMarginIdentifier).append(thermalMargin).toHashCode(); + } + + @Override + public boolean equals(Object other) { + if (other == this) { + return true; + } + if ((other instanceof ProcessorDimmAggregateThermalMarginArray) == false) { + return false; + } + ProcessorDimmAggregateThermalMarginArray rhs = ((ProcessorDimmAggregateThermalMarginArray) other); + return new EqualsBuilder().append(processorDimmAggregateThermalMarginIdentifier, rhs.processorDimmAggregateThermalMarginIdentifier).append(thermalMargin, rhs.thermalMargin).isEquals(); + } + +} diff --git a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/SipSignalingFields.java b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/SipSignalingFields.java new file mode 100644 index 0000000..9f68b08 --- /dev/null +++ b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/SipSignalingFields.java @@ -0,0 +1,386 @@ +/* +* ============LICENSE_START======================================================= +* ONAP : DCAE +* ================================================================================ +* Copyright 2019 TechMahindra +*================================================================================= +* 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========================================================= +*/ +package org.onap.dcaegen2.ves.domain.ves70; + +import java.util.HashMap; +import java.util.Map; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyDescription; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; +import org.apache.commons.lang.builder.EqualsBuilder; +import org.apache.commons.lang.builder.HashCodeBuilder; +import org.apache.commons.lang.builder.ToStringBuilder; + + +/** + * sip signaling fields + * + */ +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonPropertyOrder({ + "additionalInformation", + "compressedSip", + "correlator", + "localIpAddress", + "localPort", + "remoteIpAddress", + "remotePort", + "sipSignalingFieldsVersion", + "summarySip", + "vendorNfNameFields" +}) +public class SipSignalingFields { + + /** + * an associative array which is an array of key:value pairs + * + */ + @JsonProperty("additionalInformation") + @JsonPropertyDescription("an associative array which is an array of key:value pairs") + private AlarmAdditionalInformation additionalInformation; + /** + * the full SIP request/response including headers and bodies + * + */ + @JsonProperty("compressedSip") + @JsonPropertyDescription("the full SIP request/response including headers and bodies") + private String compressedSip; + /** + * this is the same for all events on this call + * (Required) + * + */ + @JsonProperty("correlator") + @JsonPropertyDescription("this is the same for all events on this call") + private String correlator; + /** + * IP address on xNF + * (Required) + * + */ + @JsonProperty("localIpAddress") + @JsonPropertyDescription("IP address on xNF") + private String localIpAddress; + /** + * port on xNF + * (Required) + * + */ + @JsonProperty("localPort") + @JsonPropertyDescription("port on xNF") + private String localPort; + /** + * IP address of peer endpoint + * (Required) + * + */ + @JsonProperty("remoteIpAddress") + @JsonPropertyDescription("IP address of peer endpoint") + private String remoteIpAddress; + /** + * port of peer endpoint + * (Required) + * + */ + @JsonProperty("remotePort") + @JsonPropertyDescription("port of peer endpoint") + private String remotePort; + /** + * version of the sipSignalingFields block + * (Required) + * + */ + @JsonProperty("sipSignalingFieldsVersion") + @JsonPropertyDescription("version of the sipSignalingFields block") + private SipSignalingFields.SipSignalingFieldsVersion sipSignalingFieldsVersion; + /** + * the SIP Method or Response ('INVITE', '200 OK', 'BYE', etc) + * + */ + @JsonProperty("summarySip") + @JsonPropertyDescription("the SIP Method or Response ('INVITE', '200 OK', 'BYE', etc)") + private String summarySip; + /** + * provides vendor, nf and nfModule identifying information + * (Required) + * + */ + @JsonProperty("vendorNfNameFields") + @JsonPropertyDescription("provides vendor, nf and nfModule identifying information") + private VendorNfNameFields vendorNfNameFields; + + /** + * an associative array which is an array of key:value pairs + * + */ + @JsonProperty("additionalInformation") + public AlarmAdditionalInformation getAdditionalInformation() { + return additionalInformation; + } + + /** + * an associative array which is an array of key:value pairs + * + */ + @JsonProperty("additionalInformation") + public void setAdditionalInformation(AlarmAdditionalInformation additionalInformation) { + this.additionalInformation = additionalInformation; + } + + /** + * the full SIP request/response including headers and bodies + * + */ + @JsonProperty("compressedSip") + public String getCompressedSip() { + return compressedSip; + } + + /** + * the full SIP request/response including headers and bodies + * + */ + @JsonProperty("compressedSip") + public void setCompressedSip(String compressedSip) { + this.compressedSip = compressedSip; + } + + /** + * this is the same for all events on this call + * (Required) + * + */ + @JsonProperty("correlator") + public String getCorrelator() { + return correlator; + } + + /** + * this is the same for all events on this call + * (Required) + * + */ + @JsonProperty("correlator") + public void setCorrelator(String correlator) { + this.correlator = correlator; + } + + /** + * IP address on xNF + * (Required) + * + */ + @JsonProperty("localIpAddress") + public String getLocalIpAddress() { + return localIpAddress; + } + + /** + * IP address on xNF + * (Required) + * + */ + @JsonProperty("localIpAddress") + public void setLocalIpAddress(String localIpAddress) { + this.localIpAddress = localIpAddress; + } + + /** + * port on xNF + * (Required) + * + */ + @JsonProperty("localPort") + public String getLocalPort() { + return localPort; + } + + /** + * port on xNF + * (Required) + * + */ + @JsonProperty("localPort") + public void setLocalPort(String localPort) { + this.localPort = localPort; + } + + /** + * IP address of peer endpoint + * (Required) + * + */ + @JsonProperty("remoteIpAddress") + public String getRemoteIpAddress() { + return remoteIpAddress; + } + + /** + * IP address of peer endpoint + * (Required) + * + */ + @JsonProperty("remoteIpAddress") + public void setRemoteIpAddress(String remoteIpAddress) { + this.remoteIpAddress = remoteIpAddress; + } + + /** + * port of peer endpoint + * (Required) + * + */ + @JsonProperty("remotePort") + public String getRemotePort() { + return remotePort; + } + + /** + * port of peer endpoint + * (Required) + * + */ + @JsonProperty("remotePort") + public void setRemotePort(String remotePort) { + this.remotePort = remotePort; + } + + /** + * version of the sipSignalingFields block + * (Required) + * + */ + @JsonProperty("sipSignalingFieldsVersion") + public SipSignalingFields.SipSignalingFieldsVersion getSipSignalingFieldsVersion() { + return sipSignalingFieldsVersion; + } + + /** + * version of the sipSignalingFields block + * (Required) + * + */ + @JsonProperty("sipSignalingFieldsVersion") + public void setSipSignalingFieldsVersion(SipSignalingFields.SipSignalingFieldsVersion sipSignalingFieldsVersion) { + this.sipSignalingFieldsVersion = sipSignalingFieldsVersion; + } + + /** + * the SIP Method or Response ('INVITE', '200 OK', 'BYE', etc) + * + */ + @JsonProperty("summarySip") + public String getSummarySip() { + return summarySip; + } + + /** + * the SIP Method or Response ('INVITE', '200 OK', 'BYE', etc) + * + */ + @JsonProperty("summarySip") + public void setSummarySip(String summarySip) { + this.summarySip = summarySip; + } + + /** + * provides vendor, nf and nfModule identifying information + * (Required) + * + */ + @JsonProperty("vendorNfNameFields") + public VendorNfNameFields getVendorNfNameFields() { + return vendorNfNameFields; + } + + /** + * provides vendor, nf and nfModule identifying information + * (Required) + * + */ + @JsonProperty("vendorNfNameFields") + public void setVendorNfNameFields(VendorNfNameFields vendorNfNameFields) { + this.vendorNfNameFields = vendorNfNameFields; + } + + @Override + public String toString() { + return ToStringBuilder.reflectionToString(this); + } + + @Override + public int hashCode() { + return new HashCodeBuilder().append(additionalInformation).append(compressedSip).append(correlator).append(localIpAddress).append(localPort).append(remoteIpAddress).append(remotePort).append(sipSignalingFieldsVersion).append(summarySip).append(vendorNfNameFields).toHashCode(); + } + + @Override + public boolean equals(Object other) { + if (other == this) { + return true; + } + if ((other instanceof SipSignalingFields) == false) { + return false; + } + SipSignalingFields rhs = ((SipSignalingFields) other); + return new EqualsBuilder().append(additionalInformation, rhs.additionalInformation).append(compressedSip, rhs.compressedSip).append(correlator, rhs.correlator).append(localIpAddress, rhs.localIpAddress).append(localPort, rhs.localPort).append(remoteIpAddress, rhs.remoteIpAddress).append(remotePort, rhs.remotePort).append(sipSignalingFieldsVersion, rhs.sipSignalingFieldsVersion).append(summarySip, rhs.summarySip).append(vendorNfNameFields, rhs.vendorNfNameFields).isEquals(); + } + + public enum SipSignalingFieldsVersion { + + _3_0("3.0"); + private final String value; + private final static Map CONSTANTS = new HashMap(); + + static { + for (SipSignalingFields.SipSignalingFieldsVersion c: values()) { + CONSTANTS.put(c.value, c); + } + } + + private SipSignalingFieldsVersion(String value) { + this.value = value; + } + + @Override + public String toString() { + return this.value; + } + + @JsonValue + public String value() { + return this.value; + } + + @JsonCreator + public static SipSignalingFields.SipSignalingFieldsVersion fromValue(String value) { + SipSignalingFields.SipSignalingFieldsVersion constant = CONSTANTS.get(value); + if (constant == null) { + throw new IllegalArgumentException(value); + } else { + return constant; + } + } + + } + +} diff --git a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/StateChangeFields.java b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/StateChangeFields.java new file mode 100644 index 0000000..5aa0626 --- /dev/null +++ b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/StateChangeFields.java @@ -0,0 +1,327 @@ +/* +* ============LICENSE_START======================================================= +* ONAP : DCAE +* ================================================================================ +* Copyright 2019 TechMahindra +*================================================================================= +* 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========================================================= +*/ +package org.onap.dcaegen2.ves.domain.ves70; + +import java.util.HashMap; +import java.util.Map; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyDescription; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; +import org.apache.commons.lang.builder.EqualsBuilder; +import org.apache.commons.lang.builder.HashCodeBuilder; +import org.apache.commons.lang.builder.ToStringBuilder; + + +/** + * stateChange fields + * + */ +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonPropertyOrder({ + "additionalFields", + "newState", + "oldState", + "stateChangeFieldsVersion", + "stateInterface" +}) +public class StateChangeFields { + + /** + * an associative array which is an array of key:value pairs + * + */ + @JsonProperty("additionalFields") + @JsonPropertyDescription("an associative array which is an array of key:value pairs") + private AlarmAdditionalInformation additionalFields; + /** + * new state of the entity + * (Required) + * + */ + @JsonProperty("newState") + @JsonPropertyDescription("new state of the entity") + private StateChangeFields.NewState newState; + /** + * previous state of the entity + * (Required) + * + */ + @JsonProperty("oldState") + @JsonPropertyDescription("previous state of the entity") + private StateChangeFields.OldState oldState; + /** + * version of the stateChangeFields block + * (Required) + * + */ + @JsonProperty("stateChangeFieldsVersion") + @JsonPropertyDescription("version of the stateChangeFields block") + private StateChangeFields.StateChangeFieldsVersion stateChangeFieldsVersion; + /** + * card or port name of the entity that changed state + * (Required) + * + */ + @JsonProperty("stateInterface") + @JsonPropertyDescription("card or port name of the entity that changed state") + private String stateInterface; + + /** + * an associative array which is an array of key:value pairs + * + */ + @JsonProperty("additionalFields") + public AlarmAdditionalInformation getAdditionalFields() { + return additionalFields; + } + + /** + * an associative array which is an array of key:value pairs + * + */ + @JsonProperty("additionalFields") + public void setAdditionalFields(AlarmAdditionalInformation additionalFields) { + this.additionalFields = additionalFields; + } + + /** + * new state of the entity + * (Required) + * + */ + @JsonProperty("newState") + public StateChangeFields.NewState getNewState() { + return newState; + } + + /** + * new state of the entity + * (Required) + * + */ + @JsonProperty("newState") + public void setNewState(StateChangeFields.NewState newState) { + this.newState = newState; + } + + /** + * previous state of the entity + * (Required) + * + */ + @JsonProperty("oldState") + public StateChangeFields.OldState getOldState() { + return oldState; + } + + /** + * previous state of the entity + * (Required) + * + */ + @JsonProperty("oldState") + public void setOldState(StateChangeFields.OldState oldState) { + this.oldState = oldState; + } + + /** + * version of the stateChangeFields block + * (Required) + * + */ + @JsonProperty("stateChangeFieldsVersion") + public StateChangeFields.StateChangeFieldsVersion getStateChangeFieldsVersion() { + return stateChangeFieldsVersion; + } + + /** + * version of the stateChangeFields block + * (Required) + * + */ + @JsonProperty("stateChangeFieldsVersion") + public void setStateChangeFieldsVersion(StateChangeFields.StateChangeFieldsVersion stateChangeFieldsVersion) { + this.stateChangeFieldsVersion = stateChangeFieldsVersion; + } + + /** + * card or port name of the entity that changed state + * (Required) + * + */ + @JsonProperty("stateInterface") + public String getStateInterface() { + return stateInterface; + } + + /** + * card or port name of the entity that changed state + * (Required) + * + */ + @JsonProperty("stateInterface") + public void setStateInterface(String stateInterface) { + this.stateInterface = stateInterface; + } + + @Override + public String toString() { + return ToStringBuilder.reflectionToString(this); + } + + @Override + public int hashCode() { + return new HashCodeBuilder().append(additionalFields).append(newState).append(oldState).append(stateChangeFieldsVersion).append(stateInterface).toHashCode(); + } + + @Override + public boolean equals(Object other) { + if (other == this) { + return true; + } + if ((other instanceof StateChangeFields) == false) { + return false; + } + StateChangeFields rhs = ((StateChangeFields) other); + return new EqualsBuilder().append(additionalFields, rhs.additionalFields).append(newState, rhs.newState).append(oldState, rhs.oldState).append(stateChangeFieldsVersion, rhs.stateChangeFieldsVersion).append(stateInterface, rhs.stateInterface).isEquals(); + } + + public enum NewState { + + IN_SERVICE("inService"), + MAINTENANCE("maintenance"), + OUT_OF_SERVICE("outOfService"); + private final String value; + private final static Map CONSTANTS = new HashMap(); + + static { + for (StateChangeFields.NewState c: values()) { + CONSTANTS.put(c.value, c); + } + } + + private NewState(String value) { + this.value = value; + } + + @Override + public String toString() { + return this.value; + } + + @JsonValue + public String value() { + return this.value; + } + + @JsonCreator + public static StateChangeFields.NewState fromValue(String value) { + StateChangeFields.NewState constant = CONSTANTS.get(value); + if (constant == null) { + throw new IllegalArgumentException(value); + } else { + return constant; + } + } + + } + + public enum OldState { + + IN_SERVICE("inService"), + MAINTENANCE("maintenance"), + OUT_OF_SERVICE("outOfService"); + private final String value; + private final static Map CONSTANTS = new HashMap(); + + static { + for (StateChangeFields.OldState c: values()) { + CONSTANTS.put(c.value, c); + } + } + + private OldState(String value) { + this.value = value; + } + + @Override + public String toString() { + return this.value; + } + + @JsonValue + public String value() { + return this.value; + } + + @JsonCreator + public static StateChangeFields.OldState fromValue(String value) { + StateChangeFields.OldState constant = CONSTANTS.get(value); + if (constant == null) { + throw new IllegalArgumentException(value); + } else { + return constant; + } + } + + } + + public enum StateChangeFieldsVersion { + + _4_0("4.0"); + private final String value; + private final static Map CONSTANTS = new HashMap(); + + static { + for (StateChangeFields.StateChangeFieldsVersion c: values()) { + CONSTANTS.put(c.value, c); + } + } + + private StateChangeFieldsVersion(String value) { + this.value = value; + } + + @Override + public String toString() { + return this.value; + } + + @JsonValue + public String value() { + return this.value; + } + + @JsonCreator + public static StateChangeFields.StateChangeFieldsVersion fromValue(String value) { + StateChangeFields.StateChangeFieldsVersion constant = CONSTANTS.get(value); + if (constant == null) { + throw new IllegalArgumentException(value); + } else { + return constant; + } + } + + } + +} diff --git a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/SyslogFields.java b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/SyslogFields.java new file mode 100644 index 0000000..ed9f6c9 --- /dev/null +++ b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/SyslogFields.java @@ -0,0 +1,578 @@ +/* +* ============LICENSE_START======================================================= +* ONAP : DCAE +* ================================================================================ +* Copyright 2019 TechMahindra +*================================================================================= +* 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========================================================= +*/ +package org.onap.dcaegen2.ves.domain.ves70; + +import java.util.HashMap; +import java.util.Map; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyDescription; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; +import org.apache.commons.lang.builder.EqualsBuilder; +import org.apache.commons.lang.builder.HashCodeBuilder; +import org.apache.commons.lang.builder.ToStringBuilder; + + +/** + * sysLog fields + * + */ +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonPropertyOrder({ + "additionalFields", + "eventSourceHost", + "eventSourceType", + "syslogFacility", + "syslogFieldsVersion", + "syslogMsg", + "syslogMsgHost", + "syslogPri", + "syslogProc", + "syslogProcId", + "syslogSData", + "syslogSdId", + "syslogSev", + "syslogTag", + "syslogTs", + "syslogVer" +}) +public class SyslogFields { + + /** + * an associative array which is an array of key:value pairs + * + */ + @JsonProperty("additionalFields") + @JsonPropertyDescription("an associative array which is an array of key:value pairs") + private AlarmAdditionalInformation additionalFields; + /** + * hostname of the device + * + */ + @JsonProperty("eventSourceHost") + @JsonPropertyDescription("hostname of the device") + private String eventSourceHost; + /** + * type of event source; examples: other, router, switch, host, card, port, slotThreshold, portThreshold, virtualMachine, virtualNetworkFunction + * (Required) + * + */ + @JsonProperty("eventSourceType") + @JsonPropertyDescription("type of event source; examples: other, router, switch, host, card, port, slotThreshold, portThreshold, virtualMachine, virtualNetworkFunction") + private String eventSourceType; + /** + * numeric code from 0 to 23 for facility--see table in documentation + * + */ + @JsonProperty("syslogFacility") + @JsonPropertyDescription("numeric code from 0 to 23 for facility--see table in documentation") + private Integer syslogFacility; + /** + * version of the syslogFields block + * (Required) + * + */ + @JsonProperty("syslogFieldsVersion") + @JsonPropertyDescription("version of the syslogFields block") + private SyslogFields.SyslogFieldsVersion syslogFieldsVersion; + /** + * syslog message + * (Required) + * + */ + @JsonProperty("syslogMsg") + @JsonPropertyDescription("syslog message") + private String syslogMsg; + /** + * hostname parsed from non-VES syslog message + * + */ + @JsonProperty("syslogMsgHost") + @JsonPropertyDescription("hostname parsed from non-VES syslog message") + private String syslogMsgHost; + /** + * 0-192 combined severity and facility + * + */ + @JsonProperty("syslogPri") + @JsonPropertyDescription("0-192 combined severity and facility") + private Integer syslogPri; + /** + * identifies the application that originated the message + * + */ + @JsonProperty("syslogProc") + @JsonPropertyDescription("identifies the application that originated the message") + private String syslogProc; + /** + * a change in the value of this field indicates a discontinuity in syslog reporting + * + */ + @JsonProperty("syslogProcId") + @JsonPropertyDescription("a change in the value of this field indicates a discontinuity in syslog reporting") + private Double syslogProcId; + /** + * syslog structured data consisting of a structured data Id followed by a set of key value pairs + * + */ + @JsonProperty("syslogSData") + @JsonPropertyDescription("syslog structured data consisting of a structured data Id followed by a set of key value pairs") + private String syslogSData; + /** + * 0-32 char in format name@number for example ourSDID@32473 + * + */ + @JsonProperty("syslogSdId") + @JsonPropertyDescription("0-32 char in format name@number for example ourSDID@32473") + private String syslogSdId; + /** + * numerical Code for severity derived from syslogPri as remaider of syslogPri / 8 + * + */ + @JsonProperty("syslogSev") + @JsonPropertyDescription("numerical Code for severity derived from syslogPri as remaider of syslogPri / 8") + private SyslogFields.SyslogSev syslogSev; + /** + * msgId indicating the type of message such as TCPOUT or TCPIN; NILVALUE should be used when no other value can be provided + * (Required) + * + */ + @JsonProperty("syslogTag") + @JsonPropertyDescription("msgId indicating the type of message such as TCPOUT or TCPIN; NILVALUE should be used when no other value can be provided") + private String syslogTag; + /** + * timestamp parsed from non-VES syslog message + * + */ + @JsonProperty("syslogTs") + @JsonPropertyDescription("timestamp parsed from non-VES syslog message") + private String syslogTs; + /** + * IANA assigned version of the syslog protocol specification - typically 1 + * + */ + @JsonProperty("syslogVer") + @JsonPropertyDescription("IANA assigned version of the syslog protocol specification - typically 1") + private Double syslogVer; + + /** + * an associative array which is an array of key:value pairs + * + */ + @JsonProperty("additionalFields") + public AlarmAdditionalInformation getAdditionalFields() { + return additionalFields; + } + + /** + * an associative array which is an array of key:value pairs + * + */ + @JsonProperty("additionalFields") + public void setAdditionalFields(AlarmAdditionalInformation additionalFields) { + this.additionalFields = additionalFields; + } + + /** + * hostname of the device + * + */ + @JsonProperty("eventSourceHost") + public String getEventSourceHost() { + return eventSourceHost; + } + + /** + * hostname of the device + * + */ + @JsonProperty("eventSourceHost") + public void setEventSourceHost(String eventSourceHost) { + this.eventSourceHost = eventSourceHost; + } + + /** + * type of event source; examples: other, router, switch, host, card, port, slotThreshold, portThreshold, virtualMachine, virtualNetworkFunction + * (Required) + * + */ + @JsonProperty("eventSourceType") + public String getEventSourceType() { + return eventSourceType; + } + + /** + * type of event source; examples: other, router, switch, host, card, port, slotThreshold, portThreshold, virtualMachine, virtualNetworkFunction + * (Required) + * + */ + @JsonProperty("eventSourceType") + public void setEventSourceType(String eventSourceType) { + this.eventSourceType = eventSourceType; + } + + /** + * numeric code from 0 to 23 for facility--see table in documentation + * + */ + @JsonProperty("syslogFacility") + public Integer getSyslogFacility() { + return syslogFacility; + } + + /** + * numeric code from 0 to 23 for facility--see table in documentation + * + */ + @JsonProperty("syslogFacility") + public void setSyslogFacility(Integer syslogFacility) { + this.syslogFacility = syslogFacility; + } + + /** + * version of the syslogFields block + * (Required) + * + */ + @JsonProperty("syslogFieldsVersion") + public SyslogFields.SyslogFieldsVersion getSyslogFieldsVersion() { + return syslogFieldsVersion; + } + + /** + * version of the syslogFields block + * (Required) + * + */ + @JsonProperty("syslogFieldsVersion") + public void setSyslogFieldsVersion(SyslogFields.SyslogFieldsVersion syslogFieldsVersion) { + this.syslogFieldsVersion = syslogFieldsVersion; + } + + /** + * syslog message + * (Required) + * + */ + @JsonProperty("syslogMsg") + public String getSyslogMsg() { + return syslogMsg; + } + + /** + * syslog message + * (Required) + * + */ + @JsonProperty("syslogMsg") + public void setSyslogMsg(String syslogMsg) { + this.syslogMsg = syslogMsg; + } + + /** + * hostname parsed from non-VES syslog message + * + */ + @JsonProperty("syslogMsgHost") + public String getSyslogMsgHost() { + return syslogMsgHost; + } + + /** + * hostname parsed from non-VES syslog message + * + */ + @JsonProperty("syslogMsgHost") + public void setSyslogMsgHost(String syslogMsgHost) { + this.syslogMsgHost = syslogMsgHost; + } + + /** + * 0-192 combined severity and facility + * + */ + @JsonProperty("syslogPri") + public Integer getSyslogPri() { + return syslogPri; + } + + /** + * 0-192 combined severity and facility + * + */ + @JsonProperty("syslogPri") + public void setSyslogPri(Integer syslogPri) { + this.syslogPri = syslogPri; + } + + /** + * identifies the application that originated the message + * + */ + @JsonProperty("syslogProc") + public String getSyslogProc() { + return syslogProc; + } + + /** + * identifies the application that originated the message + * + */ + @JsonProperty("syslogProc") + public void setSyslogProc(String syslogProc) { + this.syslogProc = syslogProc; + } + + /** + * a change in the value of this field indicates a discontinuity in syslog reporting + * + */ + @JsonProperty("syslogProcId") + public Double getSyslogProcId() { + return syslogProcId; + } + + /** + * a change in the value of this field indicates a discontinuity in syslog reporting + * + */ + @JsonProperty("syslogProcId") + public void setSyslogProcId(Double syslogProcId) { + this.syslogProcId = syslogProcId; + } + + /** + * syslog structured data consisting of a structured data Id followed by a set of key value pairs + * + */ + @JsonProperty("syslogSData") + public String getSyslogSData() { + return syslogSData; + } + + /** + * syslog structured data consisting of a structured data Id followed by a set of key value pairs + * + */ + @JsonProperty("syslogSData") + public void setSyslogSData(String syslogSData) { + this.syslogSData = syslogSData; + } + + /** + * 0-32 char in format name@number for example ourSDID@32473 + * + */ + @JsonProperty("syslogSdId") + public String getSyslogSdId() { + return syslogSdId; + } + + /** + * 0-32 char in format name@number for example ourSDID@32473 + * + */ + @JsonProperty("syslogSdId") + public void setSyslogSdId(String syslogSdId) { + this.syslogSdId = syslogSdId; + } + + /** + * numerical Code for severity derived from syslogPri as remaider of syslogPri / 8 + * + */ + @JsonProperty("syslogSev") + public SyslogFields.SyslogSev getSyslogSev() { + return syslogSev; + } + + /** + * numerical Code for severity derived from syslogPri as remaider of syslogPri / 8 + * + */ + @JsonProperty("syslogSev") + public void setSyslogSev(SyslogFields.SyslogSev syslogSev) { + this.syslogSev = syslogSev; + } + + /** + * msgId indicating the type of message such as TCPOUT or TCPIN; NILVALUE should be used when no other value can be provided + * (Required) + * + */ + @JsonProperty("syslogTag") + public String getSyslogTag() { + return syslogTag; + } + + /** + * msgId indicating the type of message such as TCPOUT or TCPIN; NILVALUE should be used when no other value can be provided + * (Required) + * + */ + @JsonProperty("syslogTag") + public void setSyslogTag(String syslogTag) { + this.syslogTag = syslogTag; + } + + /** + * timestamp parsed from non-VES syslog message + * + */ + @JsonProperty("syslogTs") + public String getSyslogTs() { + return syslogTs; + } + + /** + * timestamp parsed from non-VES syslog message + * + */ + @JsonProperty("syslogTs") + public void setSyslogTs(String syslogTs) { + this.syslogTs = syslogTs; + } + + /** + * IANA assigned version of the syslog protocol specification - typically 1 + * + */ + @JsonProperty("syslogVer") + public Double getSyslogVer() { + return syslogVer; + } + + /** + * IANA assigned version of the syslog protocol specification - typically 1 + * + */ + @JsonProperty("syslogVer") + public void setSyslogVer(Double syslogVer) { + this.syslogVer = syslogVer; + } + + @Override + public String toString() { + return ToStringBuilder.reflectionToString(this); + } + + @Override + public int hashCode() { + return new HashCodeBuilder().append(additionalFields).append(eventSourceHost).append(eventSourceType).append(syslogFacility).append(syslogFieldsVersion).append(syslogMsg).append(syslogMsgHost).append(syslogPri).append(syslogProc).append(syslogProcId).append(syslogSData).append(syslogSdId).append(syslogSev).append(syslogTag).append(syslogTs).append(syslogVer).toHashCode(); + } + + @Override + public boolean equals(Object other) { + if (other == this) { + return true; + } + if ((other instanceof SyslogFields) == false) { + return false; + } + SyslogFields rhs = ((SyslogFields) other); + return new EqualsBuilder().append(additionalFields, rhs.additionalFields).append(eventSourceHost, rhs.eventSourceHost).append(eventSourceType, rhs.eventSourceType).append(syslogFacility, rhs.syslogFacility).append(syslogFieldsVersion, rhs.syslogFieldsVersion).append(syslogMsg, rhs.syslogMsg).append(syslogMsgHost, rhs.syslogMsgHost).append(syslogPri, rhs.syslogPri).append(syslogProc, rhs.syslogProc).append(syslogProcId, rhs.syslogProcId).append(syslogSData, rhs.syslogSData).append(syslogSdId, rhs.syslogSdId).append(syslogSev, rhs.syslogSev).append(syslogTag, rhs.syslogTag).append(syslogTs, rhs.syslogTs).append(syslogVer, rhs.syslogVer).isEquals(); + } + + public enum SyslogFieldsVersion { + + _4_0("4.0"); + private final String value; + private final static Map CONSTANTS = new HashMap(); + + static { + for (SyslogFields.SyslogFieldsVersion c: values()) { + CONSTANTS.put(c.value, c); + } + } + + private SyslogFieldsVersion(String value) { + this.value = value; + } + + @Override + public String toString() { + return this.value; + } + + @JsonValue + public String value() { + return this.value; + } + + @JsonCreator + public static SyslogFields.SyslogFieldsVersion fromValue(String value) { + SyslogFields.SyslogFieldsVersion constant = CONSTANTS.get(value); + if (constant == null) { + throw new IllegalArgumentException(value); + } else { + return constant; + } + } + + } + + public enum SyslogSev { + + ALERT("Alert"), + CRITICAL("Critical"), + DEBUG("Debug"), + EMERGENCY("Emergency"), + ERROR("Error"), + INFO("Info"), + NOTICE("Notice"), + WARNING("Warning"); + private final String value; + private final static Map CONSTANTS = new HashMap(); + + static { + for (SyslogFields.SyslogSev c: values()) { + CONSTANTS.put(c.value, c); + } + } + + private SyslogSev(String value) { + this.value = value; + } + + @Override + public String toString() { + return this.value; + } + + @JsonValue + public String value() { + return this.value; + } + + @JsonCreator + public static SyslogFields.SyslogSev fromValue(String value) { + SyslogFields.SyslogSev constant = CONSTANTS.get(value); + if (constant == null) { + throw new IllegalArgumentException(value); + } else { + return constant; + } + } + + } + +} diff --git a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/ThresholdCrossingAlertFields.java b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/ThresholdCrossingAlertFields.java new file mode 100644 index 0000000..ee096e4 --- /dev/null +++ b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/ThresholdCrossingAlertFields.java @@ -0,0 +1,670 @@ +/* +* ============LICENSE_START======================================================= +* ONAP : DCAE +* ================================================================================ +* Copyright 2019 TechMahindra +*================================================================================= +* 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========================================================= +*/ +package org.onap.dcaegen2.ves.domain.ves70; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyDescription; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; +import org.apache.commons.lang.builder.EqualsBuilder; +import org.apache.commons.lang.builder.HashCodeBuilder; +import org.apache.commons.lang.builder.ToStringBuilder; + + +/** + * fields specific to threshold crossing alert events + * + */ +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonPropertyOrder({ + "additionalFields", + "additionalParameters", + "alertAction", + "alertDescription", + "alertType", + "alertValue", + "associatedAlertIdList", + "collectionTimestamp", + "dataCollector", + "elementType", + "eventSeverity", + "eventStartTimestamp", + "interfaceName", + "networkService", + "possibleRootCause", + "thresholdCrossingFieldsVersion" +}) +public class ThresholdCrossingAlertFields { + + /** + * an associative array which is an array of key:value pairs + * + */ + @JsonProperty("additionalFields") + @JsonPropertyDescription("an associative array which is an array of key:value pairs") + private AlarmAdditionalInformation additionalFields; + /** + * performance counters + * (Required) + * + */ + @JsonProperty("additionalParameters") + @JsonPropertyDescription("performance counters") + private List additionalParameters = new ArrayList(); + /** + * Event action + * (Required) + * + */ + @JsonProperty("alertAction") + @JsonPropertyDescription("Event action") + private ThresholdCrossingAlertFields.AlertAction alertAction; + /** + * Unique short alert description such as IF-SHUB-ERRDROP + * (Required) + * + */ + @JsonProperty("alertDescription") + @JsonPropertyDescription("Unique short alert description such as IF-SHUB-ERRDROP") + private String alertDescription; + /** + * Event type + * (Required) + * + */ + @JsonProperty("alertType") + @JsonPropertyDescription("Event type") + private ThresholdCrossingAlertFields.AlertType alertType; + /** + * Calculated API value (if applicable) + * + */ + @JsonProperty("alertValue") + @JsonPropertyDescription("Calculated API value (if applicable)") + private String alertValue; + /** + * List of eventIds associated with the event being reported + * + */ + @JsonProperty("associatedAlertIdList") + @JsonPropertyDescription("List of eventIds associated with the event being reported") + private List associatedAlertIdList = new ArrayList(); + /** + * Time when the performance collector picked up the data; with RFC 2822 compliant format: Sat, 13 Mar 2010 11:29:05 -0800 + * (Required) + * + */ + @JsonProperty("collectionTimestamp") + @JsonPropertyDescription("Time when the performance collector picked up the data; with RFC 2822 compliant format: Sat, 13 Mar 2010 11:29:05 -0800") + private String collectionTimestamp; + /** + * Specific performance collector instance used + * + */ + @JsonProperty("dataCollector") + @JsonPropertyDescription("Specific performance collector instance used") + private String dataCollector; + /** + * type of network element - internal ATT field + * + */ + @JsonProperty("elementType") + @JsonPropertyDescription("type of network element - internal ATT field") + private String elementType; + /** + * event severity or priority + * (Required) + * + */ + @JsonProperty("eventSeverity") + @JsonPropertyDescription("event severity or priority") + private ThresholdCrossingAlertFields.EventSeverity eventSeverity; + /** + * Time closest to when the measurement was made; with RFC 2822 compliant format: Sat, 13 Mar 2010 11:29:05 -0800 + * (Required) + * + */ + @JsonProperty("eventStartTimestamp") + @JsonPropertyDescription("Time closest to when the measurement was made; with RFC 2822 compliant format: Sat, 13 Mar 2010 11:29:05 -0800") + private String eventStartTimestamp; + /** + * Physical or logical port or card (if applicable) + * + */ + @JsonProperty("interfaceName") + @JsonPropertyDescription("Physical or logical port or card (if applicable)") + private String interfaceName; + /** + * network name - internal ATT field + * + */ + @JsonProperty("networkService") + @JsonPropertyDescription("network name - internal ATT field") + private String networkService; + /** + * Reserved for future use + * + */ + @JsonProperty("possibleRootCause") + @JsonPropertyDescription("Reserved for future use") + private String possibleRootCause; + /** + * version of the thresholdCrossingAlertFields block + * (Required) + * + */ + @JsonProperty("thresholdCrossingFieldsVersion") + @JsonPropertyDescription("version of the thresholdCrossingAlertFields block") + private ThresholdCrossingAlertFields.ThresholdCrossingFieldsVersion thresholdCrossingFieldsVersion; + + /** + * an associative array which is an array of key:value pairs + * + */ + @JsonProperty("additionalFields") + public AlarmAdditionalInformation getAdditionalFields() { + return additionalFields; + } + + /** + * an associative array which is an array of key:value pairs + * + */ + @JsonProperty("additionalFields") + public void setAdditionalFields(AlarmAdditionalInformation additionalFields) { + this.additionalFields = additionalFields; + } + + /** + * performance counters + * (Required) + * + */ + @JsonProperty("additionalParameters") + public List getAdditionalParameters() { + return additionalParameters; + } + + /** + * performance counters + * (Required) + * + */ + @JsonProperty("additionalParameters") + public void setAdditionalParameters(List additionalParameters) { + this.additionalParameters = additionalParameters; + } + + /** + * Event action + * (Required) + * + */ + @JsonProperty("alertAction") + public ThresholdCrossingAlertFields.AlertAction getAlertAction() { + return alertAction; + } + + /** + * Event action + * (Required) + * + */ + @JsonProperty("alertAction") + public void setAlertAction(ThresholdCrossingAlertFields.AlertAction alertAction) { + this.alertAction = alertAction; + } + + /** + * Unique short alert description such as IF-SHUB-ERRDROP + * (Required) + * + */ + @JsonProperty("alertDescription") + public String getAlertDescription() { + return alertDescription; + } + + /** + * Unique short alert description such as IF-SHUB-ERRDROP + * (Required) + * + */ + @JsonProperty("alertDescription") + public void setAlertDescription(String alertDescription) { + this.alertDescription = alertDescription; + } + + /** + * Event type + * (Required) + * + */ + @JsonProperty("alertType") + public ThresholdCrossingAlertFields.AlertType getAlertType() { + return alertType; + } + + /** + * Event type + * (Required) + * + */ + @JsonProperty("alertType") + public void setAlertType(ThresholdCrossingAlertFields.AlertType alertType) { + this.alertType = alertType; + } + + /** + * Calculated API value (if applicable) + * + */ + @JsonProperty("alertValue") + public String getAlertValue() { + return alertValue; + } + + /** + * Calculated API value (if applicable) + * + */ + @JsonProperty("alertValue") + public void setAlertValue(String alertValue) { + this.alertValue = alertValue; + } + + /** + * List of eventIds associated with the event being reported + * + */ + @JsonProperty("associatedAlertIdList") + public List getAssociatedAlertIdList() { + return associatedAlertIdList; + } + + /** + * List of eventIds associated with the event being reported + * + */ + @JsonProperty("associatedAlertIdList") + public void setAssociatedAlertIdList(List associatedAlertIdList) { + this.associatedAlertIdList = associatedAlertIdList; + } + + /** + * Time when the performance collector picked up the data; with RFC 2822 compliant format: Sat, 13 Mar 2010 11:29:05 -0800 + * (Required) + * + */ + @JsonProperty("collectionTimestamp") + public String getCollectionTimestamp() { + return collectionTimestamp; + } + + /** + * Time when the performance collector picked up the data; with RFC 2822 compliant format: Sat, 13 Mar 2010 11:29:05 -0800 + * (Required) + * + */ + @JsonProperty("collectionTimestamp") + public void setCollectionTimestamp(String collectionTimestamp) { + this.collectionTimestamp = collectionTimestamp; + } + + /** + * Specific performance collector instance used + * + */ + @JsonProperty("dataCollector") + public String getDataCollector() { + return dataCollector; + } + + /** + * Specific performance collector instance used + * + */ + @JsonProperty("dataCollector") + public void setDataCollector(String dataCollector) { + this.dataCollector = dataCollector; + } + + /** + * type of network element - internal ATT field + * + */ + @JsonProperty("elementType") + public String getElementType() { + return elementType; + } + + /** + * type of network element - internal ATT field + * + */ + @JsonProperty("elementType") + public void setElementType(String elementType) { + this.elementType = elementType; + } + + /** + * event severity or priority + * (Required) + * + */ + @JsonProperty("eventSeverity") + public ThresholdCrossingAlertFields.EventSeverity getEventSeverity() { + return eventSeverity; + } + + /** + * event severity or priority + * (Required) + * + */ + @JsonProperty("eventSeverity") + public void setEventSeverity(ThresholdCrossingAlertFields.EventSeverity eventSeverity) { + this.eventSeverity = eventSeverity; + } + + /** + * Time closest to when the measurement was made; with RFC 2822 compliant format: Sat, 13 Mar 2010 11:29:05 -0800 + * (Required) + * + */ + @JsonProperty("eventStartTimestamp") + public String getEventStartTimestamp() { + return eventStartTimestamp; + } + + /** + * Time closest to when the measurement was made; with RFC 2822 compliant format: Sat, 13 Mar 2010 11:29:05 -0800 + * (Required) + * + */ + @JsonProperty("eventStartTimestamp") + public void setEventStartTimestamp(String eventStartTimestamp) { + this.eventStartTimestamp = eventStartTimestamp; + } + + /** + * Physical or logical port or card (if applicable) + * + */ + @JsonProperty("interfaceName") + public String getInterfaceName() { + return interfaceName; + } + + /** + * Physical or logical port or card (if applicable) + * + */ + @JsonProperty("interfaceName") + public void setInterfaceName(String interfaceName) { + this.interfaceName = interfaceName; + } + + /** + * network name - internal ATT field + * + */ + @JsonProperty("networkService") + public String getNetworkService() { + return networkService; + } + + /** + * network name - internal ATT field + * + */ + @JsonProperty("networkService") + public void setNetworkService(String networkService) { + this.networkService = networkService; + } + + /** + * Reserved for future use + * + */ + @JsonProperty("possibleRootCause") + public String getPossibleRootCause() { + return possibleRootCause; + } + + /** + * Reserved for future use + * + */ + @JsonProperty("possibleRootCause") + public void setPossibleRootCause(String possibleRootCause) { + this.possibleRootCause = possibleRootCause; + } + + /** + * version of the thresholdCrossingAlertFields block + * (Required) + * + */ + @JsonProperty("thresholdCrossingFieldsVersion") + public ThresholdCrossingAlertFields.ThresholdCrossingFieldsVersion getThresholdCrossingFieldsVersion() { + return thresholdCrossingFieldsVersion; + } + + /** + * version of the thresholdCrossingAlertFields block + * (Required) + * + */ + @JsonProperty("thresholdCrossingFieldsVersion") + public void setThresholdCrossingFieldsVersion(ThresholdCrossingAlertFields.ThresholdCrossingFieldsVersion thresholdCrossingFieldsVersion) { + this.thresholdCrossingFieldsVersion = thresholdCrossingFieldsVersion; + } + + @Override + public String toString() { + return ToStringBuilder.reflectionToString(this); + } + + @Override + public int hashCode() { + return new HashCodeBuilder().append(additionalFields).append(additionalParameters).append(alertAction).append(alertDescription).append(alertType).append(alertValue).append(associatedAlertIdList).append(collectionTimestamp).append(dataCollector).append(elementType).append(eventSeverity).append(eventStartTimestamp).append(interfaceName).append(networkService).append(possibleRootCause).append(thresholdCrossingFieldsVersion).toHashCode(); + } + + @Override + public boolean equals(Object other) { + if (other == this) { + return true; + } + if ((other instanceof ThresholdCrossingAlertFields) == false) { + return false; + } + ThresholdCrossingAlertFields rhs = ((ThresholdCrossingAlertFields) other); + return new EqualsBuilder().append(additionalFields, rhs.additionalFields).append(additionalParameters, rhs.additionalParameters).append(alertAction, rhs.alertAction).append(alertDescription, rhs.alertDescription).append(alertType, rhs.alertType).append(alertValue, rhs.alertValue).append(associatedAlertIdList, rhs.associatedAlertIdList).append(collectionTimestamp, rhs.collectionTimestamp).append(dataCollector, rhs.dataCollector).append(elementType, rhs.elementType).append(eventSeverity, rhs.eventSeverity).append(eventStartTimestamp, rhs.eventStartTimestamp).append(interfaceName, rhs.interfaceName).append(networkService, rhs.networkService).append(possibleRootCause, rhs.possibleRootCause).append(thresholdCrossingFieldsVersion, rhs.thresholdCrossingFieldsVersion).isEquals(); + } + + public enum AlertAction { + + CLEAR("CLEAR"), + CONT("CONT"), + SET("SET"); + private final String value; + private final static Map CONSTANTS = new HashMap(); + + static { + for (ThresholdCrossingAlertFields.AlertAction c: values()) { + CONSTANTS.put(c.value, c); + } + } + + private AlertAction(String value) { + this.value = value; + } + + @Override + public String toString() { + return this.value; + } + + @JsonValue + public String value() { + return this.value; + } + + @JsonCreator + public static ThresholdCrossingAlertFields.AlertAction fromValue(String value) { + ThresholdCrossingAlertFields.AlertAction constant = CONSTANTS.get(value); + if (constant == null) { + throw new IllegalArgumentException(value); + } else { + return constant; + } + } + + } + + public enum AlertType { + + CARD_ANOMALY("CARD-ANOMALY"), + ELEMENT_ANOMALY("ELEMENT-ANOMALY"), + INTERFACE_ANOMALY("INTERFACE-ANOMALY"), + SERVICE_ANOMALY("SERVICE-ANOMALY"); + private final String value; + private final static Map CONSTANTS = new HashMap(); + + static { + for (ThresholdCrossingAlertFields.AlertType c: values()) { + CONSTANTS.put(c.value, c); + } + } + + private AlertType(String value) { + this.value = value; + } + + @Override + public String toString() { + return this.value; + } + + @JsonValue + public String value() { + return this.value; + } + + @JsonCreator + public static ThresholdCrossingAlertFields.AlertType fromValue(String value) { + ThresholdCrossingAlertFields.AlertType constant = CONSTANTS.get(value); + if (constant == null) { + throw new IllegalArgumentException(value); + } else { + return constant; + } + } + + } + + public enum EventSeverity { + + CRITICAL("CRITICAL"), + MAJOR("MAJOR"), + MINOR("MINOR"), + WARNING("WARNING"), + NORMAL("NORMAL"); + private final String value; + private final static Map CONSTANTS = new HashMap(); + + static { + for (ThresholdCrossingAlertFields.EventSeverity c: values()) { + CONSTANTS.put(c.value, c); + } + } + + private EventSeverity(String value) { + this.value = value; + } + + @Override + public String toString() { + return this.value; + } + + @JsonValue + public String value() { + return this.value; + } + + @JsonCreator + public static ThresholdCrossingAlertFields.EventSeverity fromValue(String value) { + ThresholdCrossingAlertFields.EventSeverity constant = CONSTANTS.get(value); + if (constant == null) { + throw new IllegalArgumentException(value); + } else { + return constant; + } + } + + } + + public enum ThresholdCrossingFieldsVersion { + + _4_0("4.0"); + private final String value; + private final static Map CONSTANTS = new HashMap(); + + static { + for (ThresholdCrossingAlertFields.ThresholdCrossingFieldsVersion c: values()) { + CONSTANTS.put(c.value, c); + } + } + + private ThresholdCrossingFieldsVersion(String value) { + this.value = value; + } + + @Override + public String toString() { + return this.value; + } + + @JsonValue + public String value() { + return this.value; + } + + @JsonCreator + public static ThresholdCrossingAlertFields.ThresholdCrossingFieldsVersion fromValue(String value) { + ThresholdCrossingAlertFields.ThresholdCrossingFieldsVersion constant = CONSTANTS.get(value); + if (constant == null) { + throw new IllegalArgumentException(value); + } else { + return constant; + } + } + + } + +} diff --git a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/VendorNfNameFields.java b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/VendorNfNameFields.java new file mode 100644 index 0000000..f355cc7 --- /dev/null +++ b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/VendorNfNameFields.java @@ -0,0 +1,144 @@ +/* +* ============LICENSE_START======================================================= +* ONAP : DCAE +* ================================================================================ +* Copyright 2019 TechMahindra +*================================================================================= +* 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========================================================= +*/ +package org.onap.dcaegen2.ves.domain.ves70; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyDescription; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import org.apache.commons.lang.builder.EqualsBuilder; +import org.apache.commons.lang.builder.HashCodeBuilder; +import org.apache.commons.lang.builder.ToStringBuilder; + + +/** + * provides vendor, nf and nfModule identifying information + * + */ +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonPropertyOrder({ + "vendorName", + "nfModuleName", + "nfName" +}) +public class VendorNfNameFields { + + /** + * network function vendor name + * (Required) + * + */ + @JsonProperty("vendorName") + @JsonPropertyDescription("network function vendor name") + private String vendorName; + /** + * name of the nfModule generating the event + * + */ + @JsonProperty("nfModuleName") + @JsonPropertyDescription("name of the nfModule generating the event") + private String nfModuleName; + /** + * name of the network function generating the event + * + */ + @JsonProperty("nfName") + @JsonPropertyDescription("name of the network function generating the event") + private String nfName; + + /** + * network function vendor name + * (Required) + * + */ + @JsonProperty("vendorName") + public String getVendorName() { + return vendorName; + } + + /** + * network function vendor name + * (Required) + * + */ + @JsonProperty("vendorName") + public void setVendorName(String vendorName) { + this.vendorName = vendorName; + } + + /** + * name of the nfModule generating the event + * + */ + @JsonProperty("nfModuleName") + public String getNfModuleName() { + return nfModuleName; + } + + /** + * name of the nfModule generating the event + * + */ + @JsonProperty("nfModuleName") + public void setNfModuleName(String nfModuleName) { + this.nfModuleName = nfModuleName; + } + + /** + * name of the network function generating the event + * + */ + @JsonProperty("nfName") + public String getNfName() { + return nfName; + } + + /** + * name of the network function generating the event + * + */ + @JsonProperty("nfName") + public void setNfName(String nfName) { + this.nfName = nfName; + } + + @Override + public String toString() { + return ToStringBuilder.reflectionToString(this); + } + + @Override + public int hashCode() { + return new HashCodeBuilder().append(vendorName).append(nfModuleName).append(nfName).toHashCode(); + } + + @Override + public boolean equals(Object other) { + if (other == this) { + return true; + } + if ((other instanceof VendorNfNameFields) == false) { + return false; + } + VendorNfNameFields rhs = ((VendorNfNameFields) other); + return new EqualsBuilder().append(vendorName, rhs.vendorName).append(nfModuleName, rhs.nfModuleName).append(nfName, rhs.nfName).isEquals(); + } + +} diff --git a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/VesEvent.java b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/VesEvent.java new file mode 100644 index 0000000..b48d50a --- /dev/null +++ b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/VesEvent.java @@ -0,0 +1,116 @@ +/* +* ============LICENSE_START======================================================= +* ONAP : DCAE +* ================================================================================ +* Copyright 2019 TechMahindra +*================================================================================= +* 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========================================================= +*/ +package org.onap.dcaegen2.ves.domain.ves70; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyDescription; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import org.apache.commons.lang.builder.EqualsBuilder; +import org.apache.commons.lang.builder.HashCodeBuilder; +import org.apache.commons.lang.builder.ToStringBuilder; + + +/** + * VES Event Listener Common Event Format + *

+ * + * + */ +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonPropertyOrder({ + "event" + +}) +public class VesEvent { + + /** + * the root level of the common event format + * + */ + @JsonProperty("event") + @JsonPropertyDescription("the root level of the common event format") + private Event event; + + + @JsonIgnore + private Map additionalProperties = new HashMap(); + + /** + * the root level of the common event format + * + */ + @JsonProperty("event") + public Event getEvent() { + return event; + } + + /** + * the root level of the common event format + * + */ + @JsonProperty("event") + public void setEvent(Event event) { + this.event = event; + } + + + + + @Override + public String toString() { + return ToStringBuilder.reflectionToString(this); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + @JsonAnySetter + public void setAdditionalProperty(String name, Object value) { + this.additionalProperties.put(name, value); + } + + @Override + public int hashCode() { + return new HashCodeBuilder().append(event).append(additionalProperties).toHashCode(); + } + + @Override + public boolean equals(Object other) { + if (other == this) { + return true; + } + if ((other instanceof VesEvent) == false) { + return false; + } + VesEvent rhs = ((VesEvent) other); + return new EqualsBuilder().append(event, rhs.event).append(additionalProperties, rhs.additionalProperties).isEquals(); + } + +} diff --git a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/VoiceQualityFields.java b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/VoiceQualityFields.java new file mode 100644 index 0000000..0304b92 --- /dev/null +++ b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/VoiceQualityFields.java @@ -0,0 +1,357 @@ +/* +* ============LICENSE_START======================================================= +* ONAP : DCAE +* ================================================================================ +* Copyright 2019 TechMahindra +*================================================================================= +* 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========================================================= +*/ +package org.onap.dcaegen2.ves.domain.ves70; + +import java.util.HashMap; +import java.util.Map; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyDescription; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; +import org.apache.commons.lang.builder.EqualsBuilder; +import org.apache.commons.lang.builder.HashCodeBuilder; +import org.apache.commons.lang.builder.ToStringBuilder; + + +/** + * provides statistics related to customer facing voice products + * + */ +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonPropertyOrder({ + "additionalInformation", + "calleeSideCodec", + "callerSideCodec", + "correlator", + "endOfCallVqmSummaries", + "phoneNumber", + "midCallRtcp", + "vendorNfNameFields", + "voiceQualityFieldsVersion" +}) +public class VoiceQualityFields { + + /** + * an associative array which is an array of key:value pairs + * + */ + @JsonProperty("additionalInformation") + @JsonPropertyDescription("an associative array which is an array of key:value pairs") + private AlarmAdditionalInformation additionalInformation; + /** + * callee codec for the call + * (Required) + * + */ + @JsonProperty("calleeSideCodec") + @JsonPropertyDescription("callee codec for the call") + private String calleeSideCodec; + /** + * caller codec for the call + * (Required) + * + */ + @JsonProperty("callerSideCodec") + @JsonPropertyDescription("caller codec for the call") + private String callerSideCodec; + /** + * this is the same for all events on this call + * (Required) + * + */ + @JsonProperty("correlator") + @JsonPropertyDescription("this is the same for all events on this call") + private String correlator; + /** + * provides end of call voice quality metrics + * + */ + @JsonProperty("endOfCallVqmSummaries") + @JsonPropertyDescription("provides end of call voice quality metrics") + private EndOfCallVqmSummaries endOfCallVqmSummaries; + /** + * phone number associated with the correlator + * + */ + @JsonProperty("phoneNumber") + @JsonPropertyDescription("phone number associated with the correlator") + private String phoneNumber; + /** + * Base64 encoding of the binary RTCP data excluding Eth/IP/UDP headers + * (Required) + * + */ + @JsonProperty("midCallRtcp") + @JsonPropertyDescription("Base64 encoding of the binary RTCP data excluding Eth/IP/UDP headers") + private String midCallRtcp; + /** + * provides vendor, nf and nfModule identifying information + * (Required) + * + */ + @JsonProperty("vendorNfNameFields") + @JsonPropertyDescription("provides vendor, nf and nfModule identifying information") + private VendorNfNameFields vendorNfNameFields; + /** + * version of the voiceQualityFields block + * (Required) + * + */ + @JsonProperty("voiceQualityFieldsVersion") + @JsonPropertyDescription("version of the voiceQualityFields block") + private VoiceQualityFields.VoiceQualityFieldsVersion voiceQualityFieldsVersion; + + /** + * an associative array which is an array of key:value pairs + * + */ + @JsonProperty("additionalInformation") + public AlarmAdditionalInformation getAdditionalInformation() { + return additionalInformation; + } + + /** + * an associative array which is an array of key:value pairs + * + */ + @JsonProperty("additionalInformation") + public void setAdditionalInformation(AlarmAdditionalInformation additionalInformation) { + this.additionalInformation = additionalInformation; + } + + /** + * callee codec for the call + * (Required) + * + */ + @JsonProperty("calleeSideCodec") + public String getCalleeSideCodec() { + return calleeSideCodec; + } + + /** + * callee codec for the call + * (Required) + * + */ + @JsonProperty("calleeSideCodec") + public void setCalleeSideCodec(String calleeSideCodec) { + this.calleeSideCodec = calleeSideCodec; + } + + /** + * caller codec for the call + * (Required) + * + */ + @JsonProperty("callerSideCodec") + public String getCallerSideCodec() { + return callerSideCodec; + } + + /** + * caller codec for the call + * (Required) + * + */ + @JsonProperty("callerSideCodec") + public void setCallerSideCodec(String callerSideCodec) { + this.callerSideCodec = callerSideCodec; + } + + /** + * this is the same for all events on this call + * (Required) + * + */ + @JsonProperty("correlator") + public String getCorrelator() { + return correlator; + } + + /** + * this is the same for all events on this call + * (Required) + * + */ + @JsonProperty("correlator") + public void setCorrelator(String correlator) { + this.correlator = correlator; + } + + /** + * provides end of call voice quality metrics + * + */ + @JsonProperty("endOfCallVqmSummaries") + public EndOfCallVqmSummaries getEndOfCallVqmSummaries() { + return endOfCallVqmSummaries; + } + + /** + * provides end of call voice quality metrics + * + */ + @JsonProperty("endOfCallVqmSummaries") + public void setEndOfCallVqmSummaries(EndOfCallVqmSummaries endOfCallVqmSummaries) { + this.endOfCallVqmSummaries = endOfCallVqmSummaries; + } + + /** + * phone number associated with the correlator + * + */ + @JsonProperty("phoneNumber") + public String getPhoneNumber() { + return phoneNumber; + } + + /** + * phone number associated with the correlator + * + */ + @JsonProperty("phoneNumber") + public void setPhoneNumber(String phoneNumber) { + this.phoneNumber = phoneNumber; + } + + /** + * Base64 encoding of the binary RTCP data excluding Eth/IP/UDP headers + * (Required) + * + */ + @JsonProperty("midCallRtcp") + public String getMidCallRtcp() { + return midCallRtcp; + } + + /** + * Base64 encoding of the binary RTCP data excluding Eth/IP/UDP headers + * (Required) + * + */ + @JsonProperty("midCallRtcp") + public void setMidCallRtcp(String midCallRtcp) { + this.midCallRtcp = midCallRtcp; + } + + /** + * provides vendor, nf and nfModule identifying information + * (Required) + * + */ + @JsonProperty("vendorNfNameFields") + public VendorNfNameFields getVendorNfNameFields() { + return vendorNfNameFields; + } + + /** + * provides vendor, nf and nfModule identifying information + * (Required) + * + */ + @JsonProperty("vendorNfNameFields") + public void setVendorNfNameFields(VendorNfNameFields vendorNfNameFields) { + this.vendorNfNameFields = vendorNfNameFields; + } + + /** + * version of the voiceQualityFields block + * (Required) + * + */ + @JsonProperty("voiceQualityFieldsVersion") + public VoiceQualityFields.VoiceQualityFieldsVersion getVoiceQualityFieldsVersion() { + return voiceQualityFieldsVersion; + } + + /** + * version of the voiceQualityFields block + * (Required) + * + */ + @JsonProperty("voiceQualityFieldsVersion") + public void setVoiceQualityFieldsVersion(VoiceQualityFields.VoiceQualityFieldsVersion voiceQualityFieldsVersion) { + this.voiceQualityFieldsVersion = voiceQualityFieldsVersion; + } + + @Override + public String toString() { + return ToStringBuilder.reflectionToString(this); + } + + @Override + public int hashCode() { + return new HashCodeBuilder().append(additionalInformation).append(calleeSideCodec).append(callerSideCodec).append(correlator).append(endOfCallVqmSummaries).append(phoneNumber).append(midCallRtcp).append(vendorNfNameFields).append(voiceQualityFieldsVersion).toHashCode(); + } + + @Override + public boolean equals(Object other) { + if (other == this) { + return true; + } + if ((other instanceof VoiceQualityFields) == false) { + return false; + } + VoiceQualityFields rhs = ((VoiceQualityFields) other); + return new EqualsBuilder().append(additionalInformation, rhs.additionalInformation).append(calleeSideCodec, rhs.calleeSideCodec).append(callerSideCodec, rhs.callerSideCodec).append(correlator, rhs.correlator).append(endOfCallVqmSummaries, rhs.endOfCallVqmSummaries).append(phoneNumber, rhs.phoneNumber).append(midCallRtcp, rhs.midCallRtcp).append(vendorNfNameFields, rhs.vendorNfNameFields).append(voiceQualityFieldsVersion, rhs.voiceQualityFieldsVersion).isEquals(); + } + + public enum VoiceQualityFieldsVersion { + + _4_0("4.0"); + private final String value; + private final static Map CONSTANTS = new HashMap(); + + static { + for (VoiceQualityFields.VoiceQualityFieldsVersion c: values()) { + CONSTANTS.put(c.value, c); + } + } + + private VoiceQualityFieldsVersion(String value) { + this.value = value; + } + + @Override + public String toString() { + return this.value; + } + + @JsonValue + public String value() { + return this.value; + } + + @JsonCreator + public static VoiceQualityFields.VoiceQualityFieldsVersion fromValue(String value) { + VoiceQualityFields.VoiceQualityFieldsVersion constant = CONSTANTS.get(value); + if (constant == null) { + throw new IllegalArgumentException(value); + } else { + return constant; + } + } + + } + +} diff --git a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/AdditionalMeasurement.java b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/AdditionalMeasurement.java deleted file mode 100644 index b7d3dce..0000000 --- a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/AdditionalMeasurement.java +++ /dev/null @@ -1,120 +0,0 @@ -/* -* ============LICENSE_START======================================================= -* ONAP : DCAE -* ================================================================================ -* Copyright 2018 TechMahindra -*================================================================================= -* 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========================================================= -*/ -package org.onap.dcaegen2.ves.domain.ves7_0; - -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyDescription; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import org.apache.commons.lang.builder.EqualsBuilder; -import org.apache.commons.lang.builder.HashCodeBuilder; -import org.apache.commons.lang.builder.ToStringBuilder; - - -/** - * a hashMap which is associated with and described by a name - * - */ -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonPropertyOrder({ - "name", - "hashMap" -}) -public class AdditionalMeasurement { - - /** - * - * (Required) - * - */ - @JsonProperty("name") - private String name; - /** - * an associative array which is an array of key:value pairs - * (Required) - * - */ - @JsonProperty("hashMap") - @JsonPropertyDescription("an associative array which is an array of key:value pairs") - private AlarmAdditionalInformation hashMap; - - /** - * - * (Required) - * - */ - @JsonProperty("name") - public String getName() { - return name; - } - - /** - * - * (Required) - * - */ - @JsonProperty("name") - public void setName(String name) { - this.name = name; - } - - /** - * an associative array which is an array of key:value pairs - * (Required) - * - */ - @JsonProperty("hashMap") - public AlarmAdditionalInformation getHashMap() { - return hashMap; - } - - /** - * an associative array which is an array of key:value pairs - * (Required) - * - */ - @JsonProperty("hashMap") - public void setHashMap(AlarmAdditionalInformation hashMap) { - this.hashMap = hashMap; - } - - @Override - public String toString() { - return ToStringBuilder.reflectionToString(this); - } - - @Override - public int hashCode() { - return new HashCodeBuilder().append(name).append(hashMap).toHashCode(); - } - - @Override - public boolean equals(Object other) { - if (other == this) { - return true; - } - if ((other instanceof AdditionalMeasurement) == false) { - return false; - } - AdditionalMeasurement rhs = ((AdditionalMeasurement) other); - return new EqualsBuilder().append(name, rhs.name).append(hashMap, rhs.hashMap).isEquals(); - } - -} diff --git a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/AdditionalObject.java b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/AdditionalObject.java deleted file mode 100644 index 9b656e2..0000000 --- a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/AdditionalObject.java +++ /dev/null @@ -1,227 +0,0 @@ -/* -* ============LICENSE_START======================================================= -* ONAP : DCAE -* ================================================================================ -* Copyright 2018 TechMahindra -*================================================================================= -* 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========================================================= -*/ -package org.onap.dcaegen2.ves.domain.ves7_0; - -import java.util.ArrayList; -import java.util.List; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyDescription; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import org.apache.commons.lang.builder.EqualsBuilder; -import org.apache.commons.lang.builder.HashCodeBuilder; -import org.apache.commons.lang.builder.ToStringBuilder; - - -/** - * json object schema, name and other meta-information along with one or more object instances - * - */ -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonPropertyOrder({ - "objectInstances", - "objectName", - "objectSchema", - "objectSchemaUrl", - "nfSubscribedObjectName", - "nfSubscriptionId" -}) -public class AdditionalObject { - - /** - * one or more instances of the jsonObject - * (Required) - * - */ - @JsonProperty("objectInstances") - @JsonPropertyDescription("one or more instances of the jsonObject") - private List objectInstances = new ArrayList(); - /** - * name of the JSON Object - * (Required) - * - */ - @JsonProperty("objectName") - @JsonPropertyDescription("name of the JSON Object") - private String objectName; - /** - * json schema for the object - * - */ - @JsonProperty("objectSchema") - @JsonPropertyDescription("json schema for the object") - private String objectSchema; - /** - * Url to the json schema for the object - * - */ - @JsonProperty("objectSchemaUrl") - @JsonPropertyDescription("Url to the json schema for the object") - private String objectSchemaUrl; - /** - * name of the object associated with the nfSubscriptonId - * - */ - @JsonProperty("nfSubscribedObjectName") - @JsonPropertyDescription("name of the object associated with the nfSubscriptonId") - private String nfSubscribedObjectName; - /** - * identifies an openConfig telemetry subscription on a network function, which configures the network function to send complex object data associated with the jsonObject - * - */ - @JsonProperty("nfSubscriptionId") - @JsonPropertyDescription("identifies an openConfig telemetry subscription on a network function, which configures the network function to send complex object data associated with the jsonObject") - private String nfSubscriptionId; - - /** - * one or more instances of the jsonObject - * (Required) - * - */ - @JsonProperty("objectInstances") - public List getObjectInstances() { - return objectInstances; - } - - /** - * one or more instances of the jsonObject - * (Required) - * - */ - @JsonProperty("objectInstances") - public void setObjectInstances(List objectInstances) { - this.objectInstances = objectInstances; - } - - /** - * name of the JSON Object - * (Required) - * - */ - @JsonProperty("objectName") - public String getObjectName() { - return objectName; - } - - /** - * name of the JSON Object - * (Required) - * - */ - @JsonProperty("objectName") - public void setObjectName(String objectName) { - this.objectName = objectName; - } - - /** - * json schema for the object - * - */ - @JsonProperty("objectSchema") - public String getObjectSchema() { - return objectSchema; - } - - /** - * json schema for the object - * - */ - @JsonProperty("objectSchema") - public void setObjectSchema(String objectSchema) { - this.objectSchema = objectSchema; - } - - /** - * Url to the json schema for the object - * - */ - @JsonProperty("objectSchemaUrl") - public String getObjectSchemaUrl() { - return objectSchemaUrl; - } - - /** - * Url to the json schema for the object - * - */ - @JsonProperty("objectSchemaUrl") - public void setObjectSchemaUrl(String objectSchemaUrl) { - this.objectSchemaUrl = objectSchemaUrl; - } - - /** - * name of the object associated with the nfSubscriptonId - * - */ - @JsonProperty("nfSubscribedObjectName") - public String getNfSubscribedObjectName() { - return nfSubscribedObjectName; - } - - /** - * name of the object associated with the nfSubscriptonId - * - */ - @JsonProperty("nfSubscribedObjectName") - public void setNfSubscribedObjectName(String nfSubscribedObjectName) { - this.nfSubscribedObjectName = nfSubscribedObjectName; - } - - /** - * identifies an openConfig telemetry subscription on a network function, which configures the network function to send complex object data associated with the jsonObject - * - */ - @JsonProperty("nfSubscriptionId") - public String getNfSubscriptionId() { - return nfSubscriptionId; - } - - /** - * identifies an openConfig telemetry subscription on a network function, which configures the network function to send complex object data associated with the jsonObject - * - */ - @JsonProperty("nfSubscriptionId") - public void setNfSubscriptionId(String nfSubscriptionId) { - this.nfSubscriptionId = nfSubscriptionId; - } - - @Override - public String toString() { - return ToStringBuilder.reflectionToString(this); - } - - @Override - public int hashCode() { - return new HashCodeBuilder().append(objectInstances).append(objectName).append(objectSchema).append(objectSchemaUrl).append(nfSubscribedObjectName).append(nfSubscriptionId).toHashCode(); - } - - @Override - public boolean equals(Object other) { - if (other == this) { - return true; - } - if ((other instanceof AdditionalObject) == false) { - return false; - } - AdditionalObject rhs = ((AdditionalObject) other); - return new EqualsBuilder().append(objectInstances, rhs.objectInstances).append(objectName, rhs.objectName).append(objectSchema, rhs.objectSchema).append(objectSchemaUrl, rhs.objectSchemaUrl).append(nfSubscribedObjectName, rhs.nfSubscribedObjectName).append(nfSubscriptionId, rhs.nfSubscriptionId).isEquals(); - } - -} diff --git a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/AdditionalParameter.java b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/AdditionalParameter.java deleted file mode 100644 index 0a8b8ab..0000000 --- a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/AdditionalParameter.java +++ /dev/null @@ -1,191 +0,0 @@ -/* -* ============LICENSE_START======================================================= -* ONAP : DCAE -* ================================================================================ -* Copyright 2018 TechMahindra -*================================================================================= -* 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========================================================= -*/ -package org.onap.dcaegen2.ves.domain.ves7_0; - -import java.util.HashMap; -import java.util.Map; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyDescription; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonValue; -import org.apache.commons.lang.builder.EqualsBuilder; -import org.apache.commons.lang.builder.HashCodeBuilder; -import org.apache.commons.lang.builder.ToStringBuilder; - - -/** - * performance counter - * - */ -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonPropertyOrder({ - "criticality", - "hashMap", - "thresholdCrossed" -}) -public class AdditionalParameter { - - /** - * - * (Required) - * - */ - @JsonProperty("criticality") - private AdditionalParameter.Criticality criticality; - /** - * an associative array which is an array of key:value pairs - * (Required) - * - */ - @JsonProperty("hashMap") - @JsonPropertyDescription("an associative array which is an array of key:value pairs") - private AlarmAdditionalInformation hashMap; - /** - * - * (Required) - * - */ - @JsonProperty("thresholdCrossed") - private String thresholdCrossed; - - /** - * - * (Required) - * - */ - @JsonProperty("criticality") - public AdditionalParameter.Criticality getCriticality() { - return criticality; - } - - /** - * - * (Required) - * - */ - @JsonProperty("criticality") - public void setCriticality(AdditionalParameter.Criticality criticality) { - this.criticality = criticality; - } - - /** - * an associative array which is an array of key:value pairs - * (Required) - * - */ - @JsonProperty("hashMap") - public AlarmAdditionalInformation getHashMap() { - return hashMap; - } - - /** - * an associative array which is an array of key:value pairs - * (Required) - * - */ - @JsonProperty("hashMap") - public void setHashMap(AlarmAdditionalInformation hashMap) { - this.hashMap = hashMap; - } - - /** - * - * (Required) - * - */ - @JsonProperty("thresholdCrossed") - public String getThresholdCrossed() { - return thresholdCrossed; - } - - /** - * - * (Required) - * - */ - @JsonProperty("thresholdCrossed") - public void setThresholdCrossed(String thresholdCrossed) { - this.thresholdCrossed = thresholdCrossed; - } - - @Override - public String toString() { - return ToStringBuilder.reflectionToString(this); - } - - @Override - public int hashCode() { - return new HashCodeBuilder().append(criticality).append(hashMap).append(thresholdCrossed).toHashCode(); - } - - @Override - public boolean equals(Object other) { - if (other == this) { - return true; - } - if ((other instanceof AdditionalParameter) == false) { - return false; - } - AdditionalParameter rhs = ((AdditionalParameter) other); - return new EqualsBuilder().append(criticality, rhs.criticality).append(hashMap, rhs.hashMap).append(thresholdCrossed, rhs.thresholdCrossed).isEquals(); - } - - public enum Criticality { - - CRIT("CRIT"), - MAJ("MAJ"); - private final String value; - private final static Map CONSTANTS = new HashMap(); - - static { - for (AdditionalParameter.Criticality c: values()) { - CONSTANTS.put(c.value, c); - } - } - - private Criticality(String value) { - this.value = value; - } - - @Override - public String toString() { - return this.value; - } - - @JsonValue - public String value() { - return this.value; - } - - @JsonCreator - public static AdditionalParameter.Criticality fromValue(String value) { - AdditionalParameter.Criticality constant = CONSTANTS.get(value); - if (constant == null) { - throw new IllegalArgumentException(value); - } else { - return constant; - } - } - - } - -} diff --git a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/AlarmAdditionalInformation.java b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/AlarmAdditionalInformation.java deleted file mode 100644 index caacd12..0000000 --- a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/AlarmAdditionalInformation.java +++ /dev/null @@ -1,79 +0,0 @@ -/* -* ============LICENSE_START======================================================= -* ONAP : DCAE -* ================================================================================ -* Copyright 2018 TechMahindra -*================================================================================= -* 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========================================================= -*/ -package org.onap.dcaegen2.ves.domain.ves7_0; - -import java.util.HashMap; -import java.util.Map; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import org.apache.commons.lang.builder.EqualsBuilder; -import org.apache.commons.lang.builder.HashCodeBuilder; -import org.apache.commons.lang.builder.ToStringBuilder; - - -/** - * an associative array which is an array of key:value pairs - * - */ -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonPropertyOrder({ - -}) -public class AlarmAdditionalInformation { - - @JsonIgnore - private Map additionalProperties = new HashMap(); - - @Override - public String toString() { - return ToStringBuilder.reflectionToString(this); - } - - @JsonAnyGetter - public Map getAdditionalProperties() { - return this.additionalProperties; - } - - @JsonAnySetter - public void setAdditionalProperty(String name, String value) { - this.additionalProperties.put(name, value); - } - - @Override - public int hashCode() { - return new HashCodeBuilder().append(additionalProperties).toHashCode(); - } - - @Override - public boolean equals(Object other) { - if (other == this) { - return true; - } - if ((other instanceof AlarmAdditionalInformation) == false) { - return false; - } - AlarmAdditionalInformation rhs = ((AlarmAdditionalInformation) other); - return new EqualsBuilder().append(additionalProperties, rhs.additionalProperties).isEquals(); - } - -} diff --git a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/CodecUsageArray.java b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/CodecUsageArray.java deleted file mode 100644 index eda48f5..0000000 --- a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/CodecUsageArray.java +++ /dev/null @@ -1,118 +0,0 @@ -/* -* ============LICENSE_START======================================================= -* ONAP : DCAE -* ================================================================================ -* Copyright 2018 TechMahindra -*================================================================================= -* 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========================================================= -*/ -package org.onap.dcaegen2.ves.domain.ves7_0; - -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import org.apache.commons.lang.builder.EqualsBuilder; -import org.apache.commons.lang.builder.HashCodeBuilder; -import org.apache.commons.lang.builder.ToStringBuilder; - - -/** - * number of times an identified codec was used over the measurementInterval - * - */ -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonPropertyOrder({ - "codecIdentifier", - "numberInUse" -}) -public class CodecUsageArray { - - /** - * - * (Required) - * - */ - @JsonProperty("codecIdentifier") - private String codecIdentifier; - /** - * - * (Required) - * - */ - @JsonProperty("numberInUse") - private Integer numberInUse; - - /** - * - * (Required) - * - */ - @JsonProperty("codecIdentifier") - public String getCodecIdentifier() { - return codecIdentifier; - } - - /** - * - * (Required) - * - */ - @JsonProperty("codecIdentifier") - public void setCodecIdentifier(String codecIdentifier) { - this.codecIdentifier = codecIdentifier; - } - - /** - * - * (Required) - * - */ - @JsonProperty("numberInUse") - public Integer getNumberInUse() { - return numberInUse; - } - - /** - * - * (Required) - * - */ - @JsonProperty("numberInUse") - public void setNumberInUse(Integer numberInUse) { - this.numberInUse = numberInUse; - } - - @Override - public String toString() { - return ToStringBuilder.reflectionToString(this); - } - - @Override - public int hashCode() { - return new HashCodeBuilder().append(codecIdentifier).append(numberInUse).toHashCode(); - } - - @Override - public boolean equals(Object other) { - if (other == this) { - return true; - } - if ((other instanceof CodecUsageArray) == false) { - return false; - } - CodecUsageArray rhs = ((CodecUsageArray) other); - return new EqualsBuilder().append(codecIdentifier, rhs.codecIdentifier).append(numberInUse, rhs.numberInUse).isEquals(); - } - -} diff --git a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/CommonEventHeader.java b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/CommonEventHeader.java deleted file mode 100644 index 48e2c32..0000000 --- a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/CommonEventHeader.java +++ /dev/null @@ -1,777 +0,0 @@ -/* -* ============LICENSE_START======================================================= -* ONAP : DCAE -* ================================================================================ -* Copyright 2018 TechMahindra -*================================================================================= -* 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========================================================= -*/ -package org.onap.dcaegen2.ves.domain.ves7_0; - -import java.util.Date; -import java.util.HashMap; -import java.util.Map; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyDescription; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonValue; -import org.apache.commons.lang.builder.EqualsBuilder; -import org.apache.commons.lang.builder.HashCodeBuilder; -import org.apache.commons.lang.builder.ToStringBuilder; - - - -/** - * fields common to all events - * - */ -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonPropertyOrder({ - "domain", - "eventId", - "eventName", - "eventType", - "internalHeaderFields", - "lastEpochMicrosec", - "nfcNamingCode", - "nfNamingCode", - "nfVendorName", - "priority", - "reportingEntityId", - "reportingEntityName", - "sequence", - "sourceId", - "sourceName", - "startEpochMicrosec", - "timeZoneOffset", - "version", - "vesEventListenerVersion" -}) -public class CommonEventHeader { - - - - /** - * the eventing domain associated with the event - * (Required) - * - */ - @JsonProperty("domain") - @JsonPropertyDescription("the eventing domain associated with the event") - private CommonEventHeader.Domain domain; - /** - * event key that is unique to the event source - * (Required) - * - */ - @JsonProperty("eventId") - @JsonPropertyDescription("event key that is unique to the event source") - private String eventId; - /** - * unique event name - * (Required) - * - */ - @JsonProperty("eventName") - @JsonPropertyDescription("unique event name") - private String eventName; - /** - * for example - applicationNf, guestOS, hostOS, platform - * - */ - @JsonProperty("eventType") - @JsonPropertyDescription("for example - applicationNf, guestOS, hostOS, platform") - private String eventType; - /** - * enrichment fields for internal VES Event Listener service use only, not supplied by event sources - * - */ - @JsonProperty("internalHeaderFields") - @JsonPropertyDescription("enrichment fields for internal VES Event Listener service use only, not supplied by event sources") - private InternalHeaderFields internalHeaderFields; - /** - * the latest unix time aka epoch time associated with the event from any component--as microseconds elapsed since 1 Jan 1970 not including leap seconds - * (Required) - * - */ - @JsonProperty("lastEpochMicrosec") - @JsonPropertyDescription("the latest unix time aka epoch time associated with the event from any component--as microseconds elapsed since 1 Jan 1970 not including leap seconds") - private Double lastEpochMicrosec; - /** - * 3 character network function component type, aligned with vfc naming standards - * - */ - @JsonProperty("nfcNamingCode") - @JsonPropertyDescription("3 character network function component type, aligned with vfc naming standards") - private String nfcNamingCode; - /** - * 4 character network function type, aligned with nf naming standards - * - */ - @JsonProperty("nfNamingCode") - @JsonPropertyDescription("4 character network function type, aligned with nf naming standards") - private String nfNamingCode; - /** - * network function vendor name - * - */ - @JsonProperty("nfVendorName") - @JsonPropertyDescription("network function vendor name") - private String nfVendorName; - /** - * processing priority - * (Required) - * - */ - @JsonProperty("priority") - @JsonPropertyDescription("processing priority") - private CommonEventHeader.Priority priority; - /** - * UUID identifying the entity reporting the event, for example an OAM VM; must be populated by the ATT enrichment process - * - */ - @JsonProperty("reportingEntityId") - @JsonPropertyDescription("UUID identifying the entity reporting the event, for example an OAM VM; must be populated by the ATT enrichment process") - private String reportingEntityId; - /** - * name of the entity reporting the event, for example, an EMS name; may be the same as sourceName - * (Required) - * - */ - @JsonProperty("reportingEntityName") - @JsonPropertyDescription("name of the entity reporting the event, for example, an EMS name; may be the same as sourceName") - private String reportingEntityName; - /** - * ordering of events communicated by an event source instance or 0 if not needed - * (Required) - * - */ - @JsonProperty("sequence") - @JsonPropertyDescription("ordering of events communicated by an event source instance or 0 if not needed") - private Integer sequence; - /** - * UUID identifying the entity experiencing the event issue; must be populated by the ATT enrichment process - * - */ - @JsonProperty("sourceId") - @JsonPropertyDescription("UUID identifying the entity experiencing the event issue; must be populated by the ATT enrichment process") - private String sourceId; - /** - * name of the entity experiencing the event issue - * (Required) - * - */ - @JsonProperty("sourceName") - @JsonPropertyDescription("name of the entity experiencing the event issue") - private String sourceName; - /** - * the earliest unix time aka epoch time associated with the event from any component--as microseconds elapsed since 1 Jan 1970 not including leap seconds - * (Required) - * - */ - @JsonProperty("startEpochMicrosec") - @JsonPropertyDescription("the earliest unix time aka epoch time associated with the event from any component--as microseconds elapsed since 1 Jan 1970 not including leap seconds") - private Double startEpochMicrosec; - /** - * UTC offset for the local time zone of the device as UTC+/-hh.mm - * - */ - @JsonProperty("timeZoneOffset") - @JsonPropertyDescription("UTC offset for the local time zone of the device as UTC+/-hh.mm") - private String timeZoneOffset; - /** - * version of the event header - * (Required) - * - */ - @JsonProperty("version") - @JsonPropertyDescription("version of the event header") - private CommonEventHeader.Version version; - /** - * version of the VES Event Listener API - * (Required) - * - */ - @JsonProperty("vesEventListenerVersion") - @JsonPropertyDescription("version of the VES Event Listener API") - private CommonEventHeader.VesEventListenerVersion vesEventListenerVersion; - - @JsonIgnore - private long ts1 = new Date().getTime(); - @JsonIgnore - public long getTs1() { - return ts1; - } - - @JsonIgnore - public void setTs1(long ts1) { - this.ts1 = ts1; - } - - /** - * the eventing domain associated with the event - * (Required) - * - */ - @JsonProperty("domain") - public CommonEventHeader.Domain getDomain() { - return domain; - } - - /** - * the eventing domain associated with the event - * (Required) - * - */ - @JsonProperty("domain") - public void setDomain(CommonEventHeader.Domain domain) { - this.domain = domain; - } - - /** - * event key that is unique to the event source - * (Required) - * - */ - @JsonProperty("eventId") - public String getEventId() { - return eventId; - } - - /** - * event key that is unique to the event source - * (Required) - * - */ - @JsonProperty("eventId") - public void setEventId(String eventId) { - this.eventId = eventId; - } - - /** - * unique event name - * (Required) - * - */ - @JsonProperty("eventName") - public String getEventName() { - return eventName; - } - - /** - * unique event name - * (Required) - * - */ - @JsonProperty("eventName") - public void setEventName(String eventName) { - this.eventName = eventName; - } - - /** - * for example - applicationNf, guestOS, hostOS, platform - * - */ - @JsonProperty("eventType") - public String getEventType() { - return eventType; - } - - /** - * for example - applicationNf, guestOS, hostOS, platform - * - */ - @JsonProperty("eventType") - public void setEventType(String eventType) { - this.eventType = eventType; - } - - /** - * enrichment fields for internal VES Event Listener service use only, not supplied by event sources - * - */ - @JsonProperty("internalHeaderFields") - public InternalHeaderFields getInternalHeaderFields() { - return internalHeaderFields; - } - - /** - * enrichment fields for internal VES Event Listener service use only, not supplied by event sources - * - */ - @JsonProperty("internalHeaderFields") - public void setInternalHeaderFields(InternalHeaderFields internalHeaderFields) { - this.internalHeaderFields = internalHeaderFields; - } - - /** - * the latest unix time aka epoch time associated with the event from any component--as microseconds elapsed since 1 Jan 1970 not including leap seconds - * (Required) - * - */ - @JsonProperty("lastEpochMicrosec") - public Double getLastEpochMicrosec() { - return lastEpochMicrosec; - } - - /** - * the latest unix time aka epoch time associated with the event from any component--as microseconds elapsed since 1 Jan 1970 not including leap seconds - * (Required) - * - */ - @JsonProperty("lastEpochMicrosec") - public void setLastEpochMicrosec(Double lastEpochMicrosec) { - this.lastEpochMicrosec = lastEpochMicrosec; - } - - /** - * 3 character network function component type, aligned with vfc naming standards - * - */ - @JsonProperty("nfcNamingCode") - public String getNfcNamingCode() { - return nfcNamingCode; - } - - /** - * 3 character network function component type, aligned with vfc naming standards - * - */ - @JsonProperty("nfcNamingCode") - public void setNfcNamingCode(String nfcNamingCode) { - this.nfcNamingCode = nfcNamingCode; - } - - /** - * 4 character network function type, aligned with nf naming standards - * - */ - @JsonProperty("nfNamingCode") - public String getNfNamingCode() { - return nfNamingCode; - } - - /** - * 4 character network function type, aligned with nf naming standards - * - */ - @JsonProperty("nfNamingCode") - public void setNfNamingCode(String nfNamingCode) { - this.nfNamingCode = nfNamingCode; - } - - /** - * network function vendor name - * - */ - @JsonProperty("nfVendorName") - public String getNfVendorName() { - return nfVendorName; - } - - /** - * network function vendor name - * - */ - @JsonProperty("nfVendorName") - public void setNfVendorName(String nfVendorName) { - this.nfVendorName = nfVendorName; - } - - /** - * processing priority - * (Required) - * - */ - @JsonProperty("priority") - public CommonEventHeader.Priority getPriority() { - return priority; - } - - /** - * processing priority - * (Required) - * - */ - @JsonProperty("priority") - public void setPriority(CommonEventHeader.Priority priority) { - this.priority = priority; - } - - /** - * UUID identifying the entity reporting the event, for example an OAM VM; must be populated by the ATT enrichment process - * - */ - @JsonProperty("reportingEntityId") - public String getReportingEntityId() { - return reportingEntityId; - } - - /** - * UUID identifying the entity reporting the event, for example an OAM VM; must be populated by the ATT enrichment process - * - */ - @JsonProperty("reportingEntityId") - public void setReportingEntityId(String reportingEntityId) { - this.reportingEntityId = reportingEntityId; - } - - /** - * name of the entity reporting the event, for example, an EMS name; may be the same as sourceName - * (Required) - * - */ - @JsonProperty("reportingEntityName") - public String getReportingEntityName() { - return reportingEntityName; - } - - /** - * name of the entity reporting the event, for example, an EMS name; may be the same as sourceName - * (Required) - * - */ - @JsonProperty("reportingEntityName") - public void setReportingEntityName(String reportingEntityName) { - this.reportingEntityName = reportingEntityName; - } - - /** - * ordering of events communicated by an event source instance or 0 if not needed - * (Required) - * - */ - @JsonProperty("sequence") - public Integer getSequence() { - return sequence; - } - - /** - * ordering of events communicated by an event source instance or 0 if not needed - * (Required) - * - */ - @JsonProperty("sequence") - public void setSequence(Integer sequence) { - this.sequence = sequence; - } - - /** - * UUID identifying the entity experiencing the event issue; must be populated by the ATT enrichment process - * - */ - @JsonProperty("sourceId") - public String getSourceId() { - return sourceId; - } - - /** - * UUID identifying the entity experiencing the event issue; must be populated by the ATT enrichment process - * - */ - @JsonProperty("sourceId") - public void setSourceId(String sourceId) { - this.sourceId = sourceId; - } - - /** - * name of the entity experiencing the event issue - * (Required) - * - */ - @JsonProperty("sourceName") - public String getSourceName() { - return sourceName; - } - - /** - * name of the entity experiencing the event issue - * (Required) - * - */ - @JsonProperty("sourceName") - public void setSourceName(String sourceName) { - this.sourceName = sourceName; - } - - /** - * the earliest unix time aka epoch time associated with the event from any component--as microseconds elapsed since 1 Jan 1970 not including leap seconds - * (Required) - * - */ - @JsonProperty("startEpochMicrosec") - public Double getStartEpochMicrosec() { - return startEpochMicrosec; - } - - /** - * the earliest unix time aka epoch time associated with the event from any component--as microseconds elapsed since 1 Jan 1970 not including leap seconds - * (Required) - * - */ - @JsonProperty("startEpochMicrosec") - public void setStartEpochMicrosec(Double startEpochMicrosec) { - this.startEpochMicrosec = startEpochMicrosec; - } - - /** - * UTC offset for the local time zone of the device as UTC+/-hh.mm - * - */ - @JsonProperty("timeZoneOffset") - public String getTimeZoneOffset() { - return timeZoneOffset; - } - - /** - * UTC offset for the local time zone of the device as UTC+/-hh.mm - * - */ - @JsonProperty("timeZoneOffset") - public void setTimeZoneOffset(String timeZoneOffset) { - this.timeZoneOffset = timeZoneOffset; - } - - /** - * version of the event header - * (Required) - * - */ - @JsonProperty("version") - public CommonEventHeader.Version getVersion() { - return version; - } - - /** - * version of the event header - * (Required) - * - */ - @JsonProperty("version") - public void setVersion(CommonEventHeader.Version version) { - this.version = version; - } - - /** - * version of the VES Event Listener API - * (Required) - * - */ - @JsonProperty("vesEventListenerVersion") - public CommonEventHeader.VesEventListenerVersion getVesEventListenerVersion() { - return vesEventListenerVersion; - } - - /** - * version of the VES Event Listener API - * (Required) - * - */ - @JsonProperty("vesEventListenerVersion") - public void setVesEventListenerVersion(CommonEventHeader.VesEventListenerVersion vesEventListenerVersion) { - this.vesEventListenerVersion = vesEventListenerVersion; - } - - @Override - public String toString() { - return ToStringBuilder.reflectionToString(this); - } - - @Override - public int hashCode() { - return new HashCodeBuilder().append(domain).append(eventId).append(eventName).append(eventType).append(internalHeaderFields).append(lastEpochMicrosec).append(nfcNamingCode).append(nfNamingCode).append(nfVendorName).append(priority).append(reportingEntityId).append(reportingEntityName).append(sequence).append(sourceId).append(sourceName).append(startEpochMicrosec).append(timeZoneOffset).append(version).append(vesEventListenerVersion).toHashCode(); - } - - @Override - public boolean equals(Object other) { - if (other == this) { - return true; - } - if ((other instanceof CommonEventHeader) == false) { - return false; - } - CommonEventHeader rhs = ((CommonEventHeader) other); - return new EqualsBuilder().append(domain, rhs.domain).append(eventId, rhs.eventId).append(eventName, rhs.eventName).append(eventType, rhs.eventType).append(internalHeaderFields, rhs.internalHeaderFields).append(lastEpochMicrosec, rhs.lastEpochMicrosec).append(nfcNamingCode, rhs.nfcNamingCode).append(nfNamingCode, rhs.nfNamingCode).append(nfVendorName, rhs.nfVendorName).append(priority, rhs.priority).append(reportingEntityId, rhs.reportingEntityId).append(reportingEntityName, rhs.reportingEntityName).append(sequence, rhs.sequence).append(sourceId, rhs.sourceId).append(sourceName, rhs.sourceName).append(startEpochMicrosec, rhs.startEpochMicrosec).append(timeZoneOffset, rhs.timeZoneOffset).append(version, rhs.version).append(vesEventListenerVersion, rhs.vesEventListenerVersion).isEquals(); - } - - public enum Domain { - - FAULT("fault"), - HEARTBEAT("heartbeat"), - MEASUREMENT("measurement"), - MOBILE_FLOW("mobileFlow"), - NOTIFICATION("notification"), - OTHER("other"), - PNF_REGISTRATION("pnfRegistration"), - SIP_SIGNALING("sipSignaling"), - STATE_CHANGE("stateChange"), - SYSLOG("syslog"), - THRESHOLD_CROSSING_ALERT("thresholdCrossingAlert"), - VOICE_QUALITY("voiceQuality"); - private final String value; - private final static Map CONSTANTS = new HashMap(); - - static { - for (CommonEventHeader.Domain c: values()) { - CONSTANTS.put(c.value, c); - } - } - - private Domain(String value) { - this.value = value; - } - - @Override - public String toString() { - return this.value; - } - - @JsonValue - public String value() { - return this.value; - } - - @JsonCreator - public static CommonEventHeader.Domain fromValue(String value) { - CommonEventHeader.Domain constant = CONSTANTS.get(value); - if (constant == null) { - throw new IllegalArgumentException(value); - } else { - return constant; - } - } - - } - - public enum Priority { - - HIGH("High"), - MEDIUM("Medium"), - NORMAL("Normal"), - LOW("Low"); - private final String value; - private final static Map CONSTANTS = new HashMap(); - - static { - for (CommonEventHeader.Priority c: values()) { - CONSTANTS.put(c.value, c); - } - } - - private Priority(String value) { - this.value = value; - } - - @Override - public String toString() { - return this.value; - } - - @JsonValue - public String value() { - return this.value; - } - - @JsonCreator - public static CommonEventHeader.Priority fromValue(String value) { - CommonEventHeader.Priority constant = CONSTANTS.get(value); - if (constant == null) { - throw new IllegalArgumentException(value); - } else { - return constant; - } - } - - } - - public enum Version { - - _4_0_1("4.0.1"); - private final String value; - private final static Map CONSTANTS = new HashMap(); - - static { - for (CommonEventHeader.Version c: values()) { - CONSTANTS.put(c.value, c); - } - } - - private Version(String value) { - this.value = value; - } - - @Override - public String toString() { - return this.value; - } - - @JsonValue - public String value() { - return this.value; - } - - @JsonCreator - public static CommonEventHeader.Version fromValue(String value) { - CommonEventHeader.Version constant = CONSTANTS.get(value); - if (constant == null) { - throw new IllegalArgumentException(value); - } else { - return constant; - } - } - - } - - public enum VesEventListenerVersion { - - _7_0_1("7.0.1"); - private final String value; - private final static Map CONSTANTS = new HashMap(); - - static { - for (CommonEventHeader.VesEventListenerVersion c: values()) { - CONSTANTS.put(c.value, c); - } - } - - private VesEventListenerVersion(String value) { - this.value = value; - } - - @Override - public String toString() { - return this.value; - } - - @JsonValue - public String value() { - return this.value; - } - - @JsonCreator - public static CommonEventHeader.VesEventListenerVersion fromValue(String value) { - CommonEventHeader.VesEventListenerVersion constant = CONSTANTS.get(value); - if (constant == null) { - throw new IllegalArgumentException(value); - } else { - return constant; - } - } - - } - -} diff --git a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/CpuUsageArray.java b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/CpuUsageArray.java deleted file mode 100644 index 4d075a6..0000000 --- a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/CpuUsageArray.java +++ /dev/null @@ -1,511 +0,0 @@ -/* -* ============LICENSE_START======================================================= -* ONAP : DCAE -* ================================================================================ -* Copyright 2018 TechMahindra -*================================================================================= -* 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========================================================= -*/ -package org.onap.dcaegen2.ves.domain.ves7_0; - -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyDescription; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import org.apache.commons.lang.builder.EqualsBuilder; -import org.apache.commons.lang.builder.HashCodeBuilder; -import org.apache.commons.lang.builder.ToStringBuilder; - - -/** - * usage of an identified CPU - * - */ -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonPropertyOrder({ - "cpuCapacityContention", - "cpuDemandAvg", - "cpuDemandMhz", - "cpuDemandPct", - "cpuIdentifier", - "cpuIdle", - "cpuLatencyAvg", - "cpuOverheadAvg", - "cpuSwapWaitTime", - "cpuUsageInterrupt", - "cpuUsageNice", - "cpuUsageSoftIrq", - "cpuUsageSteal", - "cpuUsageSystem", - "cpuUsageUser", - "cpuWait", - "percentUsage" -}) -public class CpuUsageArray { - - /** - * the amount of time the CPU cannot run due to contention, in milliseconds over the measurementInterval - * - */ - @JsonProperty("cpuCapacityContention") - @JsonPropertyDescription("the amount of time the CPU cannot run due to contention, in milliseconds over the measurementInterval") - private Double cpuCapacityContention; - /** - * the total CPU time that the NF/NFC/VM could use if there was no contention, in milliseconds over the measurementInterval - * - */ - @JsonProperty("cpuDemandAvg") - @JsonPropertyDescription("the total CPU time that the NF/NFC/VM could use if there was no contention, in milliseconds over the measurementInterval") - private Double cpuDemandAvg; - /** - * CPU demand in megahertz - * - */ - @JsonProperty("cpuDemandMhz") - @JsonPropertyDescription("CPU demand in megahertz") - private Double cpuDemandMhz; - /** - * CPU demand as a percentage of the provisioned capacity - * - */ - @JsonProperty("cpuDemandPct") - @JsonPropertyDescription("CPU demand as a percentage of the provisioned capacity") - private Double cpuDemandPct; - /** - * cpu identifer - * (Required) - * - */ - @JsonProperty("cpuIdentifier") - @JsonPropertyDescription("cpu identifer") - private String cpuIdentifier; - /** - * percentage of CPU time spent in the idle task - * - */ - @JsonProperty("cpuIdle") - @JsonPropertyDescription("percentage of CPU time spent in the idle task") - private Double cpuIdle; - /** - * percentage of time the VM is unable to run because it is contending for access to the physical CPUs - * - */ - @JsonProperty("cpuLatencyAvg") - @JsonPropertyDescription("percentage of time the VM is unable to run because it is contending for access to the physical CPUs") - private Double cpuLatencyAvg; - /** - * the overhead demand above available allocations and reservations, in milliseconds over the measurementInterval - * - */ - @JsonProperty("cpuOverheadAvg") - @JsonPropertyDescription("the overhead demand above available allocations and reservations, in milliseconds over the measurementInterval") - private Double cpuOverheadAvg; - /** - * swap wait time. in milliseconds over the measurementInterval - * - */ - @JsonProperty("cpuSwapWaitTime") - @JsonPropertyDescription("swap wait time. in milliseconds over the measurementInterval") - private Double cpuSwapWaitTime; - /** - * percentage of time spent servicing interrupts - * - */ - @JsonProperty("cpuUsageInterrupt") - @JsonPropertyDescription("percentage of time spent servicing interrupts") - private Double cpuUsageInterrupt; - /** - * percentage of time spent running user space processes that have been niced - * - */ - @JsonProperty("cpuUsageNice") - @JsonPropertyDescription("percentage of time spent running user space processes that have been niced") - private Double cpuUsageNice; - /** - * percentage of time spent handling soft irq interrupts - * - */ - @JsonProperty("cpuUsageSoftIrq") - @JsonPropertyDescription("percentage of time spent handling soft irq interrupts") - private Double cpuUsageSoftIrq; - /** - * percentage of time spent in involuntary wait which is neither user, system or idle time and is effectively time that went missing - * - */ - @JsonProperty("cpuUsageSteal") - @JsonPropertyDescription("percentage of time spent in involuntary wait which is neither user, system or idle time and is effectively time that went missing") - private Double cpuUsageSteal; - /** - * percentage of time spent on system tasks running the kernel - * - */ - @JsonProperty("cpuUsageSystem") - @JsonPropertyDescription("percentage of time spent on system tasks running the kernel") - private Double cpuUsageSystem; - /** - * percentage of time spent running un-niced user space processes - * - */ - @JsonProperty("cpuUsageUser") - @JsonPropertyDescription("percentage of time spent running un-niced user space processes") - private Double cpuUsageUser; - /** - * percentage of CPU time spent waiting for I/O operations to complete - * - */ - @JsonProperty("cpuWait") - @JsonPropertyDescription("percentage of CPU time spent waiting for I/O operations to complete") - private Double cpuWait; - /** - * aggregate cpu usage of the virtual machine on which the xNFC reporting the event is running - * (Required) - * - */ - @JsonProperty("percentUsage") - @JsonPropertyDescription("aggregate cpu usage of the virtual machine on which the xNFC reporting the event is running") - private Double percentUsage; - - /** - * the amount of time the CPU cannot run due to contention, in milliseconds over the measurementInterval - * - */ - @JsonProperty("cpuCapacityContention") - public Double getCpuCapacityContention() { - return cpuCapacityContention; - } - - /** - * the amount of time the CPU cannot run due to contention, in milliseconds over the measurementInterval - * - */ - @JsonProperty("cpuCapacityContention") - public void setCpuCapacityContention(Double cpuCapacityContention) { - this.cpuCapacityContention = cpuCapacityContention; - } - - /** - * the total CPU time that the NF/NFC/VM could use if there was no contention, in milliseconds over the measurementInterval - * - */ - @JsonProperty("cpuDemandAvg") - public Double getCpuDemandAvg() { - return cpuDemandAvg; - } - - /** - * the total CPU time that the NF/NFC/VM could use if there was no contention, in milliseconds over the measurementInterval - * - */ - @JsonProperty("cpuDemandAvg") - public void setCpuDemandAvg(Double cpuDemandAvg) { - this.cpuDemandAvg = cpuDemandAvg; - } - - /** - * CPU demand in megahertz - * - */ - @JsonProperty("cpuDemandMhz") - public Double getCpuDemandMhz() { - return cpuDemandMhz; - } - - /** - * CPU demand in megahertz - * - */ - @JsonProperty("cpuDemandMhz") - public void setCpuDemandMhz(Double cpuDemandMhz) { - this.cpuDemandMhz = cpuDemandMhz; - } - - /** - * CPU demand as a percentage of the provisioned capacity - * - */ - @JsonProperty("cpuDemandPct") - public Double getCpuDemandPct() { - return cpuDemandPct; - } - - /** - * CPU demand as a percentage of the provisioned capacity - * - */ - @JsonProperty("cpuDemandPct") - public void setCpuDemandPct(Double cpuDemandPct) { - this.cpuDemandPct = cpuDemandPct; - } - - /** - * cpu identifer - * (Required) - * - */ - @JsonProperty("cpuIdentifier") - public String getCpuIdentifier() { - return cpuIdentifier; - } - - /** - * cpu identifer - * (Required) - * - */ - @JsonProperty("cpuIdentifier") - public void setCpuIdentifier(String cpuIdentifier) { - this.cpuIdentifier = cpuIdentifier; - } - - /** - * percentage of CPU time spent in the idle task - * - */ - @JsonProperty("cpuIdle") - public Double getCpuIdle() { - return cpuIdle; - } - - /** - * percentage of CPU time spent in the idle task - * - */ - @JsonProperty("cpuIdle") - public void setCpuIdle(Double cpuIdle) { - this.cpuIdle = cpuIdle; - } - - /** - * percentage of time the VM is unable to run because it is contending for access to the physical CPUs - * - */ - @JsonProperty("cpuLatencyAvg") - public Double getCpuLatencyAvg() { - return cpuLatencyAvg; - } - - /** - * percentage of time the VM is unable to run because it is contending for access to the physical CPUs - * - */ - @JsonProperty("cpuLatencyAvg") - public void setCpuLatencyAvg(Double cpuLatencyAvg) { - this.cpuLatencyAvg = cpuLatencyAvg; - } - - /** - * the overhead demand above available allocations and reservations, in milliseconds over the measurementInterval - * - */ - @JsonProperty("cpuOverheadAvg") - public Double getCpuOverheadAvg() { - return cpuOverheadAvg; - } - - /** - * the overhead demand above available allocations and reservations, in milliseconds over the measurementInterval - * - */ - @JsonProperty("cpuOverheadAvg") - public void setCpuOverheadAvg(Double cpuOverheadAvg) { - this.cpuOverheadAvg = cpuOverheadAvg; - } - - /** - * swap wait time. in milliseconds over the measurementInterval - * - */ - @JsonProperty("cpuSwapWaitTime") - public Double getCpuSwapWaitTime() { - return cpuSwapWaitTime; - } - - /** - * swap wait time. in milliseconds over the measurementInterval - * - */ - @JsonProperty("cpuSwapWaitTime") - public void setCpuSwapWaitTime(Double cpuSwapWaitTime) { - this.cpuSwapWaitTime = cpuSwapWaitTime; - } - - /** - * percentage of time spent servicing interrupts - * - */ - @JsonProperty("cpuUsageInterrupt") - public Double getCpuUsageInterrupt() { - return cpuUsageInterrupt; - } - - /** - * percentage of time spent servicing interrupts - * - */ - @JsonProperty("cpuUsageInterrupt") - public void setCpuUsageInterrupt(Double cpuUsageInterrupt) { - this.cpuUsageInterrupt = cpuUsageInterrupt; - } - - /** - * percentage of time spent running user space processes that have been niced - * - */ - @JsonProperty("cpuUsageNice") - public Double getCpuUsageNice() { - return cpuUsageNice; - } - - /** - * percentage of time spent running user space processes that have been niced - * - */ - @JsonProperty("cpuUsageNice") - public void setCpuUsageNice(Double cpuUsageNice) { - this.cpuUsageNice = cpuUsageNice; - } - - /** - * percentage of time spent handling soft irq interrupts - * - */ - @JsonProperty("cpuUsageSoftIrq") - public Double getCpuUsageSoftIrq() { - return cpuUsageSoftIrq; - } - - /** - * percentage of time spent handling soft irq interrupts - * - */ - @JsonProperty("cpuUsageSoftIrq") - public void setCpuUsageSoftIrq(Double cpuUsageSoftIrq) { - this.cpuUsageSoftIrq = cpuUsageSoftIrq; - } - - /** - * percentage of time spent in involuntary wait which is neither user, system or idle time and is effectively time that went missing - * - */ - @JsonProperty("cpuUsageSteal") - public Double getCpuUsageSteal() { - return cpuUsageSteal; - } - - /** - * percentage of time spent in involuntary wait which is neither user, system or idle time and is effectively time that went missing - * - */ - @JsonProperty("cpuUsageSteal") - public void setCpuUsageSteal(Double cpuUsageSteal) { - this.cpuUsageSteal = cpuUsageSteal; - } - - /** - * percentage of time spent on system tasks running the kernel - * - */ - @JsonProperty("cpuUsageSystem") - public Double getCpuUsageSystem() { - return cpuUsageSystem; - } - - /** - * percentage of time spent on system tasks running the kernel - * - */ - @JsonProperty("cpuUsageSystem") - public void setCpuUsageSystem(Double cpuUsageSystem) { - this.cpuUsageSystem = cpuUsageSystem; - } - - /** - * percentage of time spent running un-niced user space processes - * - */ - @JsonProperty("cpuUsageUser") - public Double getCpuUsageUser() { - return cpuUsageUser; - } - - /** - * percentage of time spent running un-niced user space processes - * - */ - @JsonProperty("cpuUsageUser") - public void setCpuUsageUser(Double cpuUsageUser) { - this.cpuUsageUser = cpuUsageUser; - } - - /** - * percentage of CPU time spent waiting for I/O operations to complete - * - */ - @JsonProperty("cpuWait") - public Double getCpuWait() { - return cpuWait; - } - - /** - * percentage of CPU time spent waiting for I/O operations to complete - * - */ - @JsonProperty("cpuWait") - public void setCpuWait(Double cpuWait) { - this.cpuWait = cpuWait; - } - - /** - * aggregate cpu usage of the virtual machine on which the xNFC reporting the event is running - * (Required) - * - */ - @JsonProperty("percentUsage") - public Double getPercentUsage() { - return percentUsage; - } - - /** - * aggregate cpu usage of the virtual machine on which the xNFC reporting the event is running - * (Required) - * - */ - @JsonProperty("percentUsage") - public void setPercentUsage(Double percentUsage) { - this.percentUsage = percentUsage; - } - - @Override - public String toString() { - return ToStringBuilder.reflectionToString(this); - } - - @Override - public int hashCode() { - return new HashCodeBuilder().append(cpuCapacityContention).append(cpuDemandAvg).append(cpuDemandMhz).append(cpuDemandPct).append(cpuIdentifier).append(cpuIdle).append(cpuLatencyAvg).append(cpuOverheadAvg).append(cpuSwapWaitTime).append(cpuUsageInterrupt).append(cpuUsageNice).append(cpuUsageSoftIrq).append(cpuUsageSteal).append(cpuUsageSystem).append(cpuUsageUser).append(cpuWait).append(percentUsage).toHashCode(); - } - - @Override - public boolean equals(Object other) { - if (other == this) { - return true; - } - if ((other instanceof CpuUsageArray) == false) { - return false; - } - CpuUsageArray rhs = ((CpuUsageArray) other); - return new EqualsBuilder().append(cpuCapacityContention, rhs.cpuCapacityContention).append(cpuDemandAvg, rhs.cpuDemandAvg).append(cpuDemandMhz, rhs.cpuDemandMhz).append(cpuDemandPct, rhs.cpuDemandPct).append(cpuIdentifier, rhs.cpuIdentifier).append(cpuIdle, rhs.cpuIdle).append(cpuLatencyAvg, rhs.cpuLatencyAvg).append(cpuOverheadAvg, rhs.cpuOverheadAvg).append(cpuSwapWaitTime, rhs.cpuSwapWaitTime).append(cpuUsageInterrupt, rhs.cpuUsageInterrupt).append(cpuUsageNice, rhs.cpuUsageNice).append(cpuUsageSoftIrq, rhs.cpuUsageSoftIrq).append(cpuUsageSteal, rhs.cpuUsageSteal).append(cpuUsageSystem, rhs.cpuUsageSystem).append(cpuUsageUser, rhs.cpuUsageUser).append(cpuWait, rhs.cpuWait).append(percentUsage, rhs.percentUsage).isEquals(); - } - -} diff --git a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/DiskUsageArray.java b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/DiskUsageArray.java deleted file mode 100644 index e505aa6..0000000 --- a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/DiskUsageArray.java +++ /dev/null @@ -1,1496 +0,0 @@ -/* -* ============LICENSE_START======================================================= -* ONAP : DCAE -* ================================================================================ -* Copyright 2018 TechMahindra -*================================================================================= -* 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========================================================= -*/ -package org.onap.dcaegen2.ves.domain.ves7_0; - -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyDescription; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import org.apache.commons.lang.builder.EqualsBuilder; -import org.apache.commons.lang.builder.HashCodeBuilder; -import org.apache.commons.lang.builder.ToStringBuilder; - - -/** - * usage of an identified disk - * - */ -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonPropertyOrder({ - "diskBusResets", - "diskCommandsAborted", - "diskCommandsAvg", - "diskFlushRequests", - "diskFlushTime", - "diskIdentifier", - "diskIoTimeAvg", - "diskIoTimeLast", - "diskIoTimeMax", - "diskIoTimeMin", - "diskMergedReadAvg", - "diskMergedReadLast", - "diskMergedReadMax", - "diskMergedReadMin", - "diskMergedWriteAvg", - "diskMergedWriteLast", - "diskMergedWriteMax", - "diskMergedWriteMin", - "diskOctetsReadAvg", - "diskOctetsReadLast", - "diskOctetsReadMax", - "diskOctetsReadMin", - "diskOctetsWriteAvg", - "diskOctetsWriteLast", - "diskOctetsWriteMax", - "diskOctetsWriteMin", - "diskOpsReadAvg", - "diskOpsReadLast", - "diskOpsReadMax", - "diskOpsReadMin", - "diskOpsWriteAvg", - "diskOpsWriteLast", - "diskOpsWriteMax", - "diskOpsWriteMin", - "diskPendingOperationsAvg", - "diskPendingOperationsLast", - "diskPendingOperationsMax", - "diskPendingOperationsMin", - "diskReadCommandsAvg", - "diskTime", - "diskTimeReadAvg", - "diskTimeReadLast", - "diskTimeReadMax", - "diskTimeReadMin", - "diskTimeWriteAvg", - "diskTimeWriteLast", - "diskTimeWriteMax", - "diskTimeWriteMin", - "diskTotalReadLatencyAvg", - "diskTotalWriteLatencyAvg", - "diskWeightedIoTimeAvg", - "diskWeightedIoTimeLast", - "diskWeightedIoTimeMax", - "diskWeightedIoTimeMin", - "diskWriteCommandsAvg" -}) -public class DiskUsageArray { - - /** - * number of bus resets over the measurementInterval - * - */ - @JsonProperty("diskBusResets") - @JsonPropertyDescription("number of bus resets over the measurementInterval") - private Double diskBusResets; - /** - * number of disk commands aborted over the measurementInterval - * - */ - @JsonProperty("diskCommandsAborted") - @JsonPropertyDescription("number of disk commands aborted over the measurementInterval") - private Double diskCommandsAborted; - /** - * average number of commands per second over the measurementInterval - * - */ - @JsonProperty("diskCommandsAvg") - @JsonPropertyDescription("average number of commands per second over the measurementInterval") - private Double diskCommandsAvg; - /** - * total flush requests of the disk cache over the measurementInterval - * - */ - @JsonProperty("diskFlushRequests") - @JsonPropertyDescription("total flush requests of the disk cache over the measurementInterval") - private Double diskFlushRequests; - /** - * milliseconds spent on disk cache flushing over the measurementInterval - * - */ - @JsonProperty("diskFlushTime") - @JsonPropertyDescription("milliseconds spent on disk cache flushing over the measurementInterval") - private Double diskFlushTime; - /** - * disk identifier - * (Required) - * - */ - @JsonProperty("diskIdentifier") - @JsonPropertyDescription("disk identifier") - private String diskIdentifier; - /** - * milliseconds spent doing input/output operations over 1 sec; treat this metric as a device load percentage where 1000ms matches 100% load; provide the average over the measurement interval - * - */ - @JsonProperty("diskIoTimeAvg") - @JsonPropertyDescription("milliseconds spent doing input/output operations over 1 sec; treat this metric as a device load percentage where 1000ms matches 100% load; provide the average over the measurement interval") - private Double diskIoTimeAvg; - /** - * milliseconds spent doing input/output operations over 1 sec; treat this metric as a device load percentage where 1000ms matches 100% load; provide the last value measurement within the measurement interval - * - */ - @JsonProperty("diskIoTimeLast") - @JsonPropertyDescription("milliseconds spent doing input/output operations over 1 sec; treat this metric as a device load percentage where 1000ms matches 100% load; provide the last value measurement within the measurement interval") - private Double diskIoTimeLast; - /** - * milliseconds spent doing input/output operations over 1 sec; treat this metric as a device load percentage where 1000ms matches 100% load; provide the maximum value measurement within the measurement interval - * - */ - @JsonProperty("diskIoTimeMax") - @JsonPropertyDescription("milliseconds spent doing input/output operations over 1 sec; treat this metric as a device load percentage where 1000ms matches 100% load; provide the maximum value measurement within the measurement interval") - private Double diskIoTimeMax; - /** - * milliseconds spent doing input/output operations over 1 sec; treat this metric as a device load percentage where 1000ms matches 100% load; provide the minimum value measurement within the measurement interval - * - */ - @JsonProperty("diskIoTimeMin") - @JsonPropertyDescription("milliseconds spent doing input/output operations over 1 sec; treat this metric as a device load percentage where 1000ms matches 100% load; provide the minimum value measurement within the measurement interval") - private Double diskIoTimeMin; - /** - * number of logical read operations that were merged into physical read operations, e.g., two logical reads were served by one physical disk access; provide the average measurement within the measurement interval - * - */ - @JsonProperty("diskMergedReadAvg") - @JsonPropertyDescription("number of logical read operations that were merged into physical read operations, e.g., two logical reads were served by one physical disk access; provide the average measurement within the measurement interval") - private Double diskMergedReadAvg; - /** - * number of logical read operations that were merged into physical read operations, e.g., two logical reads were served by one physical disk access; provide the last value measurement within the measurement interval - * - */ - @JsonProperty("diskMergedReadLast") - @JsonPropertyDescription("number of logical read operations that were merged into physical read operations, e.g., two logical reads were served by one physical disk access; provide the last value measurement within the measurement interval") - private Double diskMergedReadLast; - /** - * number of logical read operations that were merged into physical read operations, e.g., two logical reads were served by one physical disk access; provide the maximum value measurement within the measurement interval - * - */ - @JsonProperty("diskMergedReadMax") - @JsonPropertyDescription("number of logical read operations that were merged into physical read operations, e.g., two logical reads were served by one physical disk access; provide the maximum value measurement within the measurement interval") - private Double diskMergedReadMax; - /** - * number of logical read operations that were merged into physical read operations, e.g., two logical reads were served by one physical disk access; provide the minimum value measurement within the measurement interval - * - */ - @JsonProperty("diskMergedReadMin") - @JsonPropertyDescription("number of logical read operations that were merged into physical read operations, e.g., two logical reads were served by one physical disk access; provide the minimum value measurement within the measurement interval") - private Double diskMergedReadMin; - /** - * number of logical write operations that were merged into physical write operations, e.g., two logical writes were served by one physical disk access; provide the average measurement within the measurement interval - * - */ - @JsonProperty("diskMergedWriteAvg") - @JsonPropertyDescription("number of logical write operations that were merged into physical write operations, e.g., two logical writes were served by one physical disk access; provide the average measurement within the measurement interval") - private Double diskMergedWriteAvg; - /** - * number of logical write operations that were merged into physical write operations, e.g., two logical writes were served by one physical disk access; provide the last value measurement within the measurement interval - * - */ - @JsonProperty("diskMergedWriteLast") - @JsonPropertyDescription("number of logical write operations that were merged into physical write operations, e.g., two logical writes were served by one physical disk access; provide the last value measurement within the measurement interval") - private Double diskMergedWriteLast; - /** - * number of logical write operations that were merged into physical write operations, e.g., two logical writes were served by one physical disk access; provide the maximum value measurement within the measurement interval - * - */ - @JsonProperty("diskMergedWriteMax") - @JsonPropertyDescription("number of logical write operations that were merged into physical write operations, e.g., two logical writes were served by one physical disk access; provide the maximum value measurement within the measurement interval") - private Double diskMergedWriteMax; - /** - * number of logical write operations that were merged into physical write operations, e.g., two logical writes were served by one physical disk access; provide the minimum value measurement within the measurement interval - * - */ - @JsonProperty("diskMergedWriteMin") - @JsonPropertyDescription("number of logical write operations that were merged into physical write operations, e.g., two logical writes were served by one physical disk access; provide the minimum value measurement within the measurement interval") - private Double diskMergedWriteMin; - /** - * number of octets per second read from a disk or partition; provide the average measurement within the measurement interval - * - */ - @JsonProperty("diskOctetsReadAvg") - @JsonPropertyDescription("number of octets per second read from a disk or partition; provide the average measurement within the measurement interval") - private Double diskOctetsReadAvg; - /** - * number of octets per second read from a disk or partition; provide the last measurement within the measurement interval - * - */ - @JsonProperty("diskOctetsReadLast") - @JsonPropertyDescription("number of octets per second read from a disk or partition; provide the last measurement within the measurement interval") - private Double diskOctetsReadLast; - /** - * number of octets per second read from a disk or partition; provide the maximum measurement within the measurement interval - * - */ - @JsonProperty("diskOctetsReadMax") - @JsonPropertyDescription("number of octets per second read from a disk or partition; provide the maximum measurement within the measurement interval") - private Double diskOctetsReadMax; - /** - * number of octets per second read from a disk or partition; provide the minimum measurement within the measurement interval - * - */ - @JsonProperty("diskOctetsReadMin") - @JsonPropertyDescription("number of octets per second read from a disk or partition; provide the minimum measurement within the measurement interval") - private Double diskOctetsReadMin; - /** - * number of octets per second written to a disk or partition; provide the average measurement within the measurement interval - * - */ - @JsonProperty("diskOctetsWriteAvg") - @JsonPropertyDescription("number of octets per second written to a disk or partition; provide the average measurement within the measurement interval") - private Double diskOctetsWriteAvg; - /** - * number of octets per second written to a disk or partition; provide the last measurement within the measurement interval - * - */ - @JsonProperty("diskOctetsWriteLast") - @JsonPropertyDescription("number of octets per second written to a disk or partition; provide the last measurement within the measurement interval") - private Double diskOctetsWriteLast; - /** - * number of octets per second written to a disk or partition; provide the maximum measurement within the measurement interval - * - */ - @JsonProperty("diskOctetsWriteMax") - @JsonPropertyDescription("number of octets per second written to a disk or partition; provide the maximum measurement within the measurement interval") - private Double diskOctetsWriteMax; - /** - * number of octets per second written to a disk or partition; provide the minimum measurement within the measurement interval - * - */ - @JsonProperty("diskOctetsWriteMin") - @JsonPropertyDescription("number of octets per second written to a disk or partition; provide the minimum measurement within the measurement interval") - private Double diskOctetsWriteMin; - /** - * number of read operations per second issued to the disk; provide the average measurement within the measurement interval - * - */ - @JsonProperty("diskOpsReadAvg") - @JsonPropertyDescription("number of read operations per second issued to the disk; provide the average measurement within the measurement interval") - private Double diskOpsReadAvg; - /** - * number of read operations per second issued to the disk; provide the last measurement within the measurement interval - * - */ - @JsonProperty("diskOpsReadLast") - @JsonPropertyDescription("number of read operations per second issued to the disk; provide the last measurement within the measurement interval") - private Double diskOpsReadLast; - /** - * number of read operations per second issued to the disk; provide the maximum measurement within the measurement interval - * - */ - @JsonProperty("diskOpsReadMax") - @JsonPropertyDescription("number of read operations per second issued to the disk; provide the maximum measurement within the measurement interval") - private Double diskOpsReadMax; - /** - * number of read operations per second issued to the disk; provide the minimum measurement within the measurement interval - * - */ - @JsonProperty("diskOpsReadMin") - @JsonPropertyDescription("number of read operations per second issued to the disk; provide the minimum measurement within the measurement interval") - private Double diskOpsReadMin; - /** - * number of write operations per second issued to the disk; provide the average measurement within the measurement interval - * - */ - @JsonProperty("diskOpsWriteAvg") - @JsonPropertyDescription("number of write operations per second issued to the disk; provide the average measurement within the measurement interval") - private Double diskOpsWriteAvg; - /** - * number of write operations per second issued to the disk; provide the last measurement within the measurement interval - * - */ - @JsonProperty("diskOpsWriteLast") - @JsonPropertyDescription("number of write operations per second issued to the disk; provide the last measurement within the measurement interval") - private Double diskOpsWriteLast; - /** - * number of write operations per second issued to the disk; provide the maximum measurement within the measurement interval - * - */ - @JsonProperty("diskOpsWriteMax") - @JsonPropertyDescription("number of write operations per second issued to the disk; provide the maximum measurement within the measurement interval") - private Double diskOpsWriteMax; - /** - * number of write operations per second issued to the disk; provide the minimum measurement within the measurement interval - * - */ - @JsonProperty("diskOpsWriteMin") - @JsonPropertyDescription("number of write operations per second issued to the disk; provide the minimum measurement within the measurement interval") - private Double diskOpsWriteMin; - /** - * queue size of pending I/O operations per second; provide the average measurement within the measurement interval - * - */ - @JsonProperty("diskPendingOperationsAvg") - @JsonPropertyDescription("queue size of pending I/O operations per second; provide the average measurement within the measurement interval") - private Double diskPendingOperationsAvg; - /** - * queue size of pending I/O operations per second; provide the last measurement within the measurement interval - * - */ - @JsonProperty("diskPendingOperationsLast") - @JsonPropertyDescription("queue size of pending I/O operations per second; provide the last measurement within the measurement interval") - private Double diskPendingOperationsLast; - /** - * queue size of pending I/O operations per second; provide the maximum measurement within the measurement interval - * - */ - @JsonProperty("diskPendingOperationsMax") - @JsonPropertyDescription("queue size of pending I/O operations per second; provide the maximum measurement within the measurement interval") - private Double diskPendingOperationsMax; - /** - * queue size of pending I/O operations per second; provide the minimum measurement within the measurement interval - * - */ - @JsonProperty("diskPendingOperationsMin") - @JsonPropertyDescription("queue size of pending I/O operations per second; provide the minimum measurement within the measurement interval") - private Double diskPendingOperationsMin; - /** - * average number of read commands issued per second to the disk over the measurementInterval - * - */ - @JsonProperty("diskReadCommandsAvg") - @JsonPropertyDescription("average number of read commands issued per second to the disk over the measurementInterval") - private Double diskReadCommandsAvg; - /** - * nanoseconds spent on disk cache reads/writes within the measurement interval - * - */ - @JsonProperty("diskTime") - @JsonPropertyDescription("nanoseconds spent on disk cache reads/writes within the measurement interval") - private Double diskTime; - /** - * milliseconds a read operation took to complete; provide the average measurement within the measurement interval - * - */ - @JsonProperty("diskTimeReadAvg") - @JsonPropertyDescription("milliseconds a read operation took to complete; provide the average measurement within the measurement interval") - private Double diskTimeReadAvg; - /** - * milliseconds a read operation took to complete; provide the last measurement within the measurement interval - * - */ - @JsonProperty("diskTimeReadLast") - @JsonPropertyDescription("milliseconds a read operation took to complete; provide the last measurement within the measurement interval") - private Double diskTimeReadLast; - /** - * milliseconds a read operation took to complete; provide the maximum measurement within the measurement interval - * - */ - @JsonProperty("diskTimeReadMax") - @JsonPropertyDescription("milliseconds a read operation took to complete; provide the maximum measurement within the measurement interval") - private Double diskTimeReadMax; - /** - * milliseconds a read operation took to complete; provide the minimum measurement within the measurement interval - * - */ - @JsonProperty("diskTimeReadMin") - @JsonPropertyDescription("milliseconds a read operation took to complete; provide the minimum measurement within the measurement interval") - private Double diskTimeReadMin; - /** - * milliseconds a write operation took to complete; provide the average measurement within the measurement interval - * - */ - @JsonProperty("diskTimeWriteAvg") - @JsonPropertyDescription("milliseconds a write operation took to complete; provide the average measurement within the measurement interval") - private Double diskTimeWriteAvg; - /** - * milliseconds a write operation took to complete; provide the last measurement within the measurement interval - * - */ - @JsonProperty("diskTimeWriteLast") - @JsonPropertyDescription("milliseconds a write operation took to complete; provide the last measurement within the measurement interval") - private Double diskTimeWriteLast; - /** - * milliseconds a write operation took to complete; provide the maximum measurement within the measurement interval - * - */ - @JsonProperty("diskTimeWriteMax") - @JsonPropertyDescription("milliseconds a write operation took to complete; provide the maximum measurement within the measurement interval") - private Double diskTimeWriteMax; - /** - * milliseconds a write operation took to complete; provide the minimum measurement within the measurement interval - * - */ - @JsonProperty("diskTimeWriteMin") - @JsonPropertyDescription("milliseconds a write operation took to complete; provide the minimum measurement within the measurement interval") - private Double diskTimeWriteMin; - /** - * average read time from the perspective of a Guest OS: sum of the Kernel Read Latency and Physical Device Read Latency in milliseconds over the measurement interval - * - */ - @JsonProperty("diskTotalReadLatencyAvg") - @JsonPropertyDescription("average read time from the perspective of a Guest OS: sum of the Kernel Read Latency and Physical Device Read Latency in milliseconds over the measurement interval") - private Double diskTotalReadLatencyAvg; - /** - * average write time from the perspective of a Guest OS: sum of the Kernel Write Latency and Physical Device Write Latency in milliseconds over the measurement interval - * - */ - @JsonProperty("diskTotalWriteLatencyAvg") - @JsonPropertyDescription("average write time from the perspective of a Guest OS: sum of the Kernel Write Latency and Physical Device Write Latency in milliseconds over the measurement interval") - private Double diskTotalWriteLatencyAvg; - /** - * measure in ms over 1 sec of both I/O completion time and the backlog that may be accumulating; value is the average within the collection interval - * - */ - @JsonProperty("diskWeightedIoTimeAvg") - @JsonPropertyDescription("measure in ms over 1 sec of both I/O completion time and the backlog that may be accumulating; value is the average within the collection interval") - private Double diskWeightedIoTimeAvg; - /** - * measure in ms over 1 sec of both I/O completion time and the backlog that may be accumulating; value is the last within the collection interval - * - */ - @JsonProperty("diskWeightedIoTimeLast") - @JsonPropertyDescription("measure in ms over 1 sec of both I/O completion time and the backlog that may be accumulating; value is the last within the collection interval") - private Double diskWeightedIoTimeLast; - /** - * measure in ms over 1 sec of both I/O completion time and the backlog that may be accumulating; value is the maximum within the collection interval - * - */ - @JsonProperty("diskWeightedIoTimeMax") - @JsonPropertyDescription("measure in ms over 1 sec of both I/O completion time and the backlog that may be accumulating; value is the maximum within the collection interval") - private Double diskWeightedIoTimeMax; - /** - * measure in ms over 1 sec of both I/O completion time and the backlog that may be accumulating; value is the minimum within the collection interval - * - */ - @JsonProperty("diskWeightedIoTimeMin") - @JsonPropertyDescription("measure in ms over 1 sec of both I/O completion time and the backlog that may be accumulating; value is the minimum within the collection interval") - private Double diskWeightedIoTimeMin; - /** - * average number of write commands issued per second to the disk over the measurementInterval - * - */ - @JsonProperty("diskWriteCommandsAvg") - @JsonPropertyDescription("average number of write commands issued per second to the disk over the measurementInterval") - private Double diskWriteCommandsAvg; - - /** - * number of bus resets over the measurementInterval - * - */ - @JsonProperty("diskBusResets") - public Double getDiskBusResets() { - return diskBusResets; - } - - /** - * number of bus resets over the measurementInterval - * - */ - @JsonProperty("diskBusResets") - public void setDiskBusResets(Double diskBusResets) { - this.diskBusResets = diskBusResets; - } - - /** - * number of disk commands aborted over the measurementInterval - * - */ - @JsonProperty("diskCommandsAborted") - public Double getDiskCommandsAborted() { - return diskCommandsAborted; - } - - /** - * number of disk commands aborted over the measurementInterval - * - */ - @JsonProperty("diskCommandsAborted") - public void setDiskCommandsAborted(Double diskCommandsAborted) { - this.diskCommandsAborted = diskCommandsAborted; - } - - /** - * average number of commands per second over the measurementInterval - * - */ - @JsonProperty("diskCommandsAvg") - public Double getDiskCommandsAvg() { - return diskCommandsAvg; - } - - /** - * average number of commands per second over the measurementInterval - * - */ - @JsonProperty("diskCommandsAvg") - public void setDiskCommandsAvg(Double diskCommandsAvg) { - this.diskCommandsAvg = diskCommandsAvg; - } - - /** - * total flush requests of the disk cache over the measurementInterval - * - */ - @JsonProperty("diskFlushRequests") - public Double getDiskFlushRequests() { - return diskFlushRequests; - } - - /** - * total flush requests of the disk cache over the measurementInterval - * - */ - @JsonProperty("diskFlushRequests") - public void setDiskFlushRequests(Double diskFlushRequests) { - this.diskFlushRequests = diskFlushRequests; - } - - /** - * milliseconds spent on disk cache flushing over the measurementInterval - * - */ - @JsonProperty("diskFlushTime") - public Double getDiskFlushTime() { - return diskFlushTime; - } - - /** - * milliseconds spent on disk cache flushing over the measurementInterval - * - */ - @JsonProperty("diskFlushTime") - public void setDiskFlushTime(Double diskFlushTime) { - this.diskFlushTime = diskFlushTime; - } - - /** - * disk identifier - * (Required) - * - */ - @JsonProperty("diskIdentifier") - public String getDiskIdentifier() { - return diskIdentifier; - } - - /** - * disk identifier - * (Required) - * - */ - @JsonProperty("diskIdentifier") - public void setDiskIdentifier(String diskIdentifier) { - this.diskIdentifier = diskIdentifier; - } - - /** - * milliseconds spent doing input/output operations over 1 sec; treat this metric as a device load percentage where 1000ms matches 100% load; provide the average over the measurement interval - * - */ - @JsonProperty("diskIoTimeAvg") - public Double getDiskIoTimeAvg() { - return diskIoTimeAvg; - } - - /** - * milliseconds spent doing input/output operations over 1 sec; treat this metric as a device load percentage where 1000ms matches 100% load; provide the average over the measurement interval - * - */ - @JsonProperty("diskIoTimeAvg") - public void setDiskIoTimeAvg(Double diskIoTimeAvg) { - this.diskIoTimeAvg = diskIoTimeAvg; - } - - /** - * milliseconds spent doing input/output operations over 1 sec; treat this metric as a device load percentage where 1000ms matches 100% load; provide the last value measurement within the measurement interval - * - */ - @JsonProperty("diskIoTimeLast") - public Double getDiskIoTimeLast() { - return diskIoTimeLast; - } - - /** - * milliseconds spent doing input/output operations over 1 sec; treat this metric as a device load percentage where 1000ms matches 100% load; provide the last value measurement within the measurement interval - * - */ - @JsonProperty("diskIoTimeLast") - public void setDiskIoTimeLast(Double diskIoTimeLast) { - this.diskIoTimeLast = diskIoTimeLast; - } - - /** - * milliseconds spent doing input/output operations over 1 sec; treat this metric as a device load percentage where 1000ms matches 100% load; provide the maximum value measurement within the measurement interval - * - */ - @JsonProperty("diskIoTimeMax") - public Double getDiskIoTimeMax() { - return diskIoTimeMax; - } - - /** - * milliseconds spent doing input/output operations over 1 sec; treat this metric as a device load percentage where 1000ms matches 100% load; provide the maximum value measurement within the measurement interval - * - */ - @JsonProperty("diskIoTimeMax") - public void setDiskIoTimeMax(Double diskIoTimeMax) { - this.diskIoTimeMax = diskIoTimeMax; - } - - /** - * milliseconds spent doing input/output operations over 1 sec; treat this metric as a device load percentage where 1000ms matches 100% load; provide the minimum value measurement within the measurement interval - * - */ - @JsonProperty("diskIoTimeMin") - public Double getDiskIoTimeMin() { - return diskIoTimeMin; - } - - /** - * milliseconds spent doing input/output operations over 1 sec; treat this metric as a device load percentage where 1000ms matches 100% load; provide the minimum value measurement within the measurement interval - * - */ - @JsonProperty("diskIoTimeMin") - public void setDiskIoTimeMin(Double diskIoTimeMin) { - this.diskIoTimeMin = diskIoTimeMin; - } - - /** - * number of logical read operations that were merged into physical read operations, e.g., two logical reads were served by one physical disk access; provide the average measurement within the measurement interval - * - */ - @JsonProperty("diskMergedReadAvg") - public Double getDiskMergedReadAvg() { - return diskMergedReadAvg; - } - - /** - * number of logical read operations that were merged into physical read operations, e.g., two logical reads were served by one physical disk access; provide the average measurement within the measurement interval - * - */ - @JsonProperty("diskMergedReadAvg") - public void setDiskMergedReadAvg(Double diskMergedReadAvg) { - this.diskMergedReadAvg = diskMergedReadAvg; - } - - /** - * number of logical read operations that were merged into physical read operations, e.g., two logical reads were served by one physical disk access; provide the last value measurement within the measurement interval - * - */ - @JsonProperty("diskMergedReadLast") - public Double getDiskMergedReadLast() { - return diskMergedReadLast; - } - - /** - * number of logical read operations that were merged into physical read operations, e.g., two logical reads were served by one physical disk access; provide the last value measurement within the measurement interval - * - */ - @JsonProperty("diskMergedReadLast") - public void setDiskMergedReadLast(Double diskMergedReadLast) { - this.diskMergedReadLast = diskMergedReadLast; - } - - /** - * number of logical read operations that were merged into physical read operations, e.g., two logical reads were served by one physical disk access; provide the maximum value measurement within the measurement interval - * - */ - @JsonProperty("diskMergedReadMax") - public Double getDiskMergedReadMax() { - return diskMergedReadMax; - } - - /** - * number of logical read operations that were merged into physical read operations, e.g., two logical reads were served by one physical disk access; provide the maximum value measurement within the measurement interval - * - */ - @JsonProperty("diskMergedReadMax") - public void setDiskMergedReadMax(Double diskMergedReadMax) { - this.diskMergedReadMax = diskMergedReadMax; - } - - /** - * number of logical read operations that were merged into physical read operations, e.g., two logical reads were served by one physical disk access; provide the minimum value measurement within the measurement interval - * - */ - @JsonProperty("diskMergedReadMin") - public Double getDiskMergedReadMin() { - return diskMergedReadMin; - } - - /** - * number of logical read operations that were merged into physical read operations, e.g., two logical reads were served by one physical disk access; provide the minimum value measurement within the measurement interval - * - */ - @JsonProperty("diskMergedReadMin") - public void setDiskMergedReadMin(Double diskMergedReadMin) { - this.diskMergedReadMin = diskMergedReadMin; - } - - /** - * number of logical write operations that were merged into physical write operations, e.g., two logical writes were served by one physical disk access; provide the average measurement within the measurement interval - * - */ - @JsonProperty("diskMergedWriteAvg") - public Double getDiskMergedWriteAvg() { - return diskMergedWriteAvg; - } - - /** - * number of logical write operations that were merged into physical write operations, e.g., two logical writes were served by one physical disk access; provide the average measurement within the measurement interval - * - */ - @JsonProperty("diskMergedWriteAvg") - public void setDiskMergedWriteAvg(Double diskMergedWriteAvg) { - this.diskMergedWriteAvg = diskMergedWriteAvg; - } - - /** - * number of logical write operations that were merged into physical write operations, e.g., two logical writes were served by one physical disk access; provide the last value measurement within the measurement interval - * - */ - @JsonProperty("diskMergedWriteLast") - public Double getDiskMergedWriteLast() { - return diskMergedWriteLast; - } - - /** - * number of logical write operations that were merged into physical write operations, e.g., two logical writes were served by one physical disk access; provide the last value measurement within the measurement interval - * - */ - @JsonProperty("diskMergedWriteLast") - public void setDiskMergedWriteLast(Double diskMergedWriteLast) { - this.diskMergedWriteLast = diskMergedWriteLast; - } - - /** - * number of logical write operations that were merged into physical write operations, e.g., two logical writes were served by one physical disk access; provide the maximum value measurement within the measurement interval - * - */ - @JsonProperty("diskMergedWriteMax") - public Double getDiskMergedWriteMax() { - return diskMergedWriteMax; - } - - /** - * number of logical write operations that were merged into physical write operations, e.g., two logical writes were served by one physical disk access; provide the maximum value measurement within the measurement interval - * - */ - @JsonProperty("diskMergedWriteMax") - public void setDiskMergedWriteMax(Double diskMergedWriteMax) { - this.diskMergedWriteMax = diskMergedWriteMax; - } - - /** - * number of logical write operations that were merged into physical write operations, e.g., two logical writes were served by one physical disk access; provide the minimum value measurement within the measurement interval - * - */ - @JsonProperty("diskMergedWriteMin") - public Double getDiskMergedWriteMin() { - return diskMergedWriteMin; - } - - /** - * number of logical write operations that were merged into physical write operations, e.g., two logical writes were served by one physical disk access; provide the minimum value measurement within the measurement interval - * - */ - @JsonProperty("diskMergedWriteMin") - public void setDiskMergedWriteMin(Double diskMergedWriteMin) { - this.diskMergedWriteMin = diskMergedWriteMin; - } - - /** - * number of octets per second read from a disk or partition; provide the average measurement within the measurement interval - * - */ - @JsonProperty("diskOctetsReadAvg") - public Double getDiskOctetsReadAvg() { - return diskOctetsReadAvg; - } - - /** - * number of octets per second read from a disk or partition; provide the average measurement within the measurement interval - * - */ - @JsonProperty("diskOctetsReadAvg") - public void setDiskOctetsReadAvg(Double diskOctetsReadAvg) { - this.diskOctetsReadAvg = diskOctetsReadAvg; - } - - /** - * number of octets per second read from a disk or partition; provide the last measurement within the measurement interval - * - */ - @JsonProperty("diskOctetsReadLast") - public Double getDiskOctetsReadLast() { - return diskOctetsReadLast; - } - - /** - * number of octets per second read from a disk or partition; provide the last measurement within the measurement interval - * - */ - @JsonProperty("diskOctetsReadLast") - public void setDiskOctetsReadLast(Double diskOctetsReadLast) { - this.diskOctetsReadLast = diskOctetsReadLast; - } - - /** - * number of octets per second read from a disk or partition; provide the maximum measurement within the measurement interval - * - */ - @JsonProperty("diskOctetsReadMax") - public Double getDiskOctetsReadMax() { - return diskOctetsReadMax; - } - - /** - * number of octets per second read from a disk or partition; provide the maximum measurement within the measurement interval - * - */ - @JsonProperty("diskOctetsReadMax") - public void setDiskOctetsReadMax(Double diskOctetsReadMax) { - this.diskOctetsReadMax = diskOctetsReadMax; - } - - /** - * number of octets per second read from a disk or partition; provide the minimum measurement within the measurement interval - * - */ - @JsonProperty("diskOctetsReadMin") - public Double getDiskOctetsReadMin() { - return diskOctetsReadMin; - } - - /** - * number of octets per second read from a disk or partition; provide the minimum measurement within the measurement interval - * - */ - @JsonProperty("diskOctetsReadMin") - public void setDiskOctetsReadMin(Double diskOctetsReadMin) { - this.diskOctetsReadMin = diskOctetsReadMin; - } - - /** - * number of octets per second written to a disk or partition; provide the average measurement within the measurement interval - * - */ - @JsonProperty("diskOctetsWriteAvg") - public Double getDiskOctetsWriteAvg() { - return diskOctetsWriteAvg; - } - - /** - * number of octets per second written to a disk or partition; provide the average measurement within the measurement interval - * - */ - @JsonProperty("diskOctetsWriteAvg") - public void setDiskOctetsWriteAvg(Double diskOctetsWriteAvg) { - this.diskOctetsWriteAvg = diskOctetsWriteAvg; - } - - /** - * number of octets per second written to a disk or partition; provide the last measurement within the measurement interval - * - */ - @JsonProperty("diskOctetsWriteLast") - public Double getDiskOctetsWriteLast() { - return diskOctetsWriteLast; - } - - /** - * number of octets per second written to a disk or partition; provide the last measurement within the measurement interval - * - */ - @JsonProperty("diskOctetsWriteLast") - public void setDiskOctetsWriteLast(Double diskOctetsWriteLast) { - this.diskOctetsWriteLast = diskOctetsWriteLast; - } - - /** - * number of octets per second written to a disk or partition; provide the maximum measurement within the measurement interval - * - */ - @JsonProperty("diskOctetsWriteMax") - public Double getDiskOctetsWriteMax() { - return diskOctetsWriteMax; - } - - /** - * number of octets per second written to a disk or partition; provide the maximum measurement within the measurement interval - * - */ - @JsonProperty("diskOctetsWriteMax") - public void setDiskOctetsWriteMax(Double diskOctetsWriteMax) { - this.diskOctetsWriteMax = diskOctetsWriteMax; - } - - /** - * number of octets per second written to a disk or partition; provide the minimum measurement within the measurement interval - * - */ - @JsonProperty("diskOctetsWriteMin") - public Double getDiskOctetsWriteMin() { - return diskOctetsWriteMin; - } - - /** - * number of octets per second written to a disk or partition; provide the minimum measurement within the measurement interval - * - */ - @JsonProperty("diskOctetsWriteMin") - public void setDiskOctetsWriteMin(Double diskOctetsWriteMin) { - this.diskOctetsWriteMin = diskOctetsWriteMin; - } - - /** - * number of read operations per second issued to the disk; provide the average measurement within the measurement interval - * - */ - @JsonProperty("diskOpsReadAvg") - public Double getDiskOpsReadAvg() { - return diskOpsReadAvg; - } - - /** - * number of read operations per second issued to the disk; provide the average measurement within the measurement interval - * - */ - @JsonProperty("diskOpsReadAvg") - public void setDiskOpsReadAvg(Double diskOpsReadAvg) { - this.diskOpsReadAvg = diskOpsReadAvg; - } - - /** - * number of read operations per second issued to the disk; provide the last measurement within the measurement interval - * - */ - @JsonProperty("diskOpsReadLast") - public Double getDiskOpsReadLast() { - return diskOpsReadLast; - } - - /** - * number of read operations per second issued to the disk; provide the last measurement within the measurement interval - * - */ - @JsonProperty("diskOpsReadLast") - public void setDiskOpsReadLast(Double diskOpsReadLast) { - this.diskOpsReadLast = diskOpsReadLast; - } - - /** - * number of read operations per second issued to the disk; provide the maximum measurement within the measurement interval - * - */ - @JsonProperty("diskOpsReadMax") - public Double getDiskOpsReadMax() { - return diskOpsReadMax; - } - - /** - * number of read operations per second issued to the disk; provide the maximum measurement within the measurement interval - * - */ - @JsonProperty("diskOpsReadMax") - public void setDiskOpsReadMax(Double diskOpsReadMax) { - this.diskOpsReadMax = diskOpsReadMax; - } - - /** - * number of read operations per second issued to the disk; provide the minimum measurement within the measurement interval - * - */ - @JsonProperty("diskOpsReadMin") - public Double getDiskOpsReadMin() { - return diskOpsReadMin; - } - - /** - * number of read operations per second issued to the disk; provide the minimum measurement within the measurement interval - * - */ - @JsonProperty("diskOpsReadMin") - public void setDiskOpsReadMin(Double diskOpsReadMin) { - this.diskOpsReadMin = diskOpsReadMin; - } - - /** - * number of write operations per second issued to the disk; provide the average measurement within the measurement interval - * - */ - @JsonProperty("diskOpsWriteAvg") - public Double getDiskOpsWriteAvg() { - return diskOpsWriteAvg; - } - - /** - * number of write operations per second issued to the disk; provide the average measurement within the measurement interval - * - */ - @JsonProperty("diskOpsWriteAvg") - public void setDiskOpsWriteAvg(Double diskOpsWriteAvg) { - this.diskOpsWriteAvg = diskOpsWriteAvg; - } - - /** - * number of write operations per second issued to the disk; provide the last measurement within the measurement interval - * - */ - @JsonProperty("diskOpsWriteLast") - public Double getDiskOpsWriteLast() { - return diskOpsWriteLast; - } - - /** - * number of write operations per second issued to the disk; provide the last measurement within the measurement interval - * - */ - @JsonProperty("diskOpsWriteLast") - public void setDiskOpsWriteLast(Double diskOpsWriteLast) { - this.diskOpsWriteLast = diskOpsWriteLast; - } - - /** - * number of write operations per second issued to the disk; provide the maximum measurement within the measurement interval - * - */ - @JsonProperty("diskOpsWriteMax") - public Double getDiskOpsWriteMax() { - return diskOpsWriteMax; - } - - /** - * number of write operations per second issued to the disk; provide the maximum measurement within the measurement interval - * - */ - @JsonProperty("diskOpsWriteMax") - public void setDiskOpsWriteMax(Double diskOpsWriteMax) { - this.diskOpsWriteMax = diskOpsWriteMax; - } - - /** - * number of write operations per second issued to the disk; provide the minimum measurement within the measurement interval - * - */ - @JsonProperty("diskOpsWriteMin") - public Double getDiskOpsWriteMin() { - return diskOpsWriteMin; - } - - /** - * number of write operations per second issued to the disk; provide the minimum measurement within the measurement interval - * - */ - @JsonProperty("diskOpsWriteMin") - public void setDiskOpsWriteMin(Double diskOpsWriteMin) { - this.diskOpsWriteMin = diskOpsWriteMin; - } - - /** - * queue size of pending I/O operations per second; provide the average measurement within the measurement interval - * - */ - @JsonProperty("diskPendingOperationsAvg") - public Double getDiskPendingOperationsAvg() { - return diskPendingOperationsAvg; - } - - /** - * queue size of pending I/O operations per second; provide the average measurement within the measurement interval - * - */ - @JsonProperty("diskPendingOperationsAvg") - public void setDiskPendingOperationsAvg(Double diskPendingOperationsAvg) { - this.diskPendingOperationsAvg = diskPendingOperationsAvg; - } - - /** - * queue size of pending I/O operations per second; provide the last measurement within the measurement interval - * - */ - @JsonProperty("diskPendingOperationsLast") - public Double getDiskPendingOperationsLast() { - return diskPendingOperationsLast; - } - - /** - * queue size of pending I/O operations per second; provide the last measurement within the measurement interval - * - */ - @JsonProperty("diskPendingOperationsLast") - public void setDiskPendingOperationsLast(Double diskPendingOperationsLast) { - this.diskPendingOperationsLast = diskPendingOperationsLast; - } - - /** - * queue size of pending I/O operations per second; provide the maximum measurement within the measurement interval - * - */ - @JsonProperty("diskPendingOperationsMax") - public Double getDiskPendingOperationsMax() { - return diskPendingOperationsMax; - } - - /** - * queue size of pending I/O operations per second; provide the maximum measurement within the measurement interval - * - */ - @JsonProperty("diskPendingOperationsMax") - public void setDiskPendingOperationsMax(Double diskPendingOperationsMax) { - this.diskPendingOperationsMax = diskPendingOperationsMax; - } - - /** - * queue size of pending I/O operations per second; provide the minimum measurement within the measurement interval - * - */ - @JsonProperty("diskPendingOperationsMin") - public Double getDiskPendingOperationsMin() { - return diskPendingOperationsMin; - } - - /** - * queue size of pending I/O operations per second; provide the minimum measurement within the measurement interval - * - */ - @JsonProperty("diskPendingOperationsMin") - public void setDiskPendingOperationsMin(Double diskPendingOperationsMin) { - this.diskPendingOperationsMin = diskPendingOperationsMin; - } - - /** - * average number of read commands issued per second to the disk over the measurementInterval - * - */ - @JsonProperty("diskReadCommandsAvg") - public Double getDiskReadCommandsAvg() { - return diskReadCommandsAvg; - } - - /** - * average number of read commands issued per second to the disk over the measurementInterval - * - */ - @JsonProperty("diskReadCommandsAvg") - public void setDiskReadCommandsAvg(Double diskReadCommandsAvg) { - this.diskReadCommandsAvg = diskReadCommandsAvg; - } - - /** - * nanoseconds spent on disk cache reads/writes within the measurement interval - * - */ - @JsonProperty("diskTime") - public Double getDiskTime() { - return diskTime; - } - - /** - * nanoseconds spent on disk cache reads/writes within the measurement interval - * - */ - @JsonProperty("diskTime") - public void setDiskTime(Double diskTime) { - this.diskTime = diskTime; - } - - /** - * milliseconds a read operation took to complete; provide the average measurement within the measurement interval - * - */ - @JsonProperty("diskTimeReadAvg") - public Double getDiskTimeReadAvg() { - return diskTimeReadAvg; - } - - /** - * milliseconds a read operation took to complete; provide the average measurement within the measurement interval - * - */ - @JsonProperty("diskTimeReadAvg") - public void setDiskTimeReadAvg(Double diskTimeReadAvg) { - this.diskTimeReadAvg = diskTimeReadAvg; - } - - /** - * milliseconds a read operation took to complete; provide the last measurement within the measurement interval - * - */ - @JsonProperty("diskTimeReadLast") - public Double getDiskTimeReadLast() { - return diskTimeReadLast; - } - - /** - * milliseconds a read operation took to complete; provide the last measurement within the measurement interval - * - */ - @JsonProperty("diskTimeReadLast") - public void setDiskTimeReadLast(Double diskTimeReadLast) { - this.diskTimeReadLast = diskTimeReadLast; - } - - /** - * milliseconds a read operation took to complete; provide the maximum measurement within the measurement interval - * - */ - @JsonProperty("diskTimeReadMax") - public Double getDiskTimeReadMax() { - return diskTimeReadMax; - } - - /** - * milliseconds a read operation took to complete; provide the maximum measurement within the measurement interval - * - */ - @JsonProperty("diskTimeReadMax") - public void setDiskTimeReadMax(Double diskTimeReadMax) { - this.diskTimeReadMax = diskTimeReadMax; - } - - /** - * milliseconds a read operation took to complete; provide the minimum measurement within the measurement interval - * - */ - @JsonProperty("diskTimeReadMin") - public Double getDiskTimeReadMin() { - return diskTimeReadMin; - } - - /** - * milliseconds a read operation took to complete; provide the minimum measurement within the measurement interval - * - */ - @JsonProperty("diskTimeReadMin") - public void setDiskTimeReadMin(Double diskTimeReadMin) { - this.diskTimeReadMin = diskTimeReadMin; - } - - /** - * milliseconds a write operation took to complete; provide the average measurement within the measurement interval - * - */ - @JsonProperty("diskTimeWriteAvg") - public Double getDiskTimeWriteAvg() { - return diskTimeWriteAvg; - } - - /** - * milliseconds a write operation took to complete; provide the average measurement within the measurement interval - * - */ - @JsonProperty("diskTimeWriteAvg") - public void setDiskTimeWriteAvg(Double diskTimeWriteAvg) { - this.diskTimeWriteAvg = diskTimeWriteAvg; - } - - /** - * milliseconds a write operation took to complete; provide the last measurement within the measurement interval - * - */ - @JsonProperty("diskTimeWriteLast") - public Double getDiskTimeWriteLast() { - return diskTimeWriteLast; - } - - /** - * milliseconds a write operation took to complete; provide the last measurement within the measurement interval - * - */ - @JsonProperty("diskTimeWriteLast") - public void setDiskTimeWriteLast(Double diskTimeWriteLast) { - this.diskTimeWriteLast = diskTimeWriteLast; - } - - /** - * milliseconds a write operation took to complete; provide the maximum measurement within the measurement interval - * - */ - @JsonProperty("diskTimeWriteMax") - public Double getDiskTimeWriteMax() { - return diskTimeWriteMax; - } - - /** - * milliseconds a write operation took to complete; provide the maximum measurement within the measurement interval - * - */ - @JsonProperty("diskTimeWriteMax") - public void setDiskTimeWriteMax(Double diskTimeWriteMax) { - this.diskTimeWriteMax = diskTimeWriteMax; - } - - /** - * milliseconds a write operation took to complete; provide the minimum measurement within the measurement interval - * - */ - @JsonProperty("diskTimeWriteMin") - public Double getDiskTimeWriteMin() { - return diskTimeWriteMin; - } - - /** - * milliseconds a write operation took to complete; provide the minimum measurement within the measurement interval - * - */ - @JsonProperty("diskTimeWriteMin") - public void setDiskTimeWriteMin(Double diskTimeWriteMin) { - this.diskTimeWriteMin = diskTimeWriteMin; - } - - /** - * average read time from the perspective of a Guest OS: sum of the Kernel Read Latency and Physical Device Read Latency in milliseconds over the measurement interval - * - */ - @JsonProperty("diskTotalReadLatencyAvg") - public Double getDiskTotalReadLatencyAvg() { - return diskTotalReadLatencyAvg; - } - - /** - * average read time from the perspective of a Guest OS: sum of the Kernel Read Latency and Physical Device Read Latency in milliseconds over the measurement interval - * - */ - @JsonProperty("diskTotalReadLatencyAvg") - public void setDiskTotalReadLatencyAvg(Double diskTotalReadLatencyAvg) { - this.diskTotalReadLatencyAvg = diskTotalReadLatencyAvg; - } - - /** - * average write time from the perspective of a Guest OS: sum of the Kernel Write Latency and Physical Device Write Latency in milliseconds over the measurement interval - * - */ - @JsonProperty("diskTotalWriteLatencyAvg") - public Double getDiskTotalWriteLatencyAvg() { - return diskTotalWriteLatencyAvg; - } - - /** - * average write time from the perspective of a Guest OS: sum of the Kernel Write Latency and Physical Device Write Latency in milliseconds over the measurement interval - * - */ - @JsonProperty("diskTotalWriteLatencyAvg") - public void setDiskTotalWriteLatencyAvg(Double diskTotalWriteLatencyAvg) { - this.diskTotalWriteLatencyAvg = diskTotalWriteLatencyAvg; - } - - /** - * measure in ms over 1 sec of both I/O completion time and the backlog that may be accumulating; value is the average within the collection interval - * - */ - @JsonProperty("diskWeightedIoTimeAvg") - public Double getDiskWeightedIoTimeAvg() { - return diskWeightedIoTimeAvg; - } - - /** - * measure in ms over 1 sec of both I/O completion time and the backlog that may be accumulating; value is the average within the collection interval - * - */ - @JsonProperty("diskWeightedIoTimeAvg") - public void setDiskWeightedIoTimeAvg(Double diskWeightedIoTimeAvg) { - this.diskWeightedIoTimeAvg = diskWeightedIoTimeAvg; - } - - /** - * measure in ms over 1 sec of both I/O completion time and the backlog that may be accumulating; value is the last within the collection interval - * - */ - @JsonProperty("diskWeightedIoTimeLast") - public Double getDiskWeightedIoTimeLast() { - return diskWeightedIoTimeLast; - } - - /** - * measure in ms over 1 sec of both I/O completion time and the backlog that may be accumulating; value is the last within the collection interval - * - */ - @JsonProperty("diskWeightedIoTimeLast") - public void setDiskWeightedIoTimeLast(Double diskWeightedIoTimeLast) { - this.diskWeightedIoTimeLast = diskWeightedIoTimeLast; - } - - /** - * measure in ms over 1 sec of both I/O completion time and the backlog that may be accumulating; value is the maximum within the collection interval - * - */ - @JsonProperty("diskWeightedIoTimeMax") - public Double getDiskWeightedIoTimeMax() { - return diskWeightedIoTimeMax; - } - - /** - * measure in ms over 1 sec of both I/O completion time and the backlog that may be accumulating; value is the maximum within the collection interval - * - */ - @JsonProperty("diskWeightedIoTimeMax") - public void setDiskWeightedIoTimeMax(Double diskWeightedIoTimeMax) { - this.diskWeightedIoTimeMax = diskWeightedIoTimeMax; - } - - /** - * measure in ms over 1 sec of both I/O completion time and the backlog that may be accumulating; value is the minimum within the collection interval - * - */ - @JsonProperty("diskWeightedIoTimeMin") - public Double getDiskWeightedIoTimeMin() { - return diskWeightedIoTimeMin; - } - - /** - * measure in ms over 1 sec of both I/O completion time and the backlog that may be accumulating; value is the minimum within the collection interval - * - */ - @JsonProperty("diskWeightedIoTimeMin") - public void setDiskWeightedIoTimeMin(Double diskWeightedIoTimeMin) { - this.diskWeightedIoTimeMin = diskWeightedIoTimeMin; - } - - /** - * average number of write commands issued per second to the disk over the measurementInterval - * - */ - @JsonProperty("diskWriteCommandsAvg") - public Double getDiskWriteCommandsAvg() { - return diskWriteCommandsAvg; - } - - /** - * average number of write commands issued per second to the disk over the measurementInterval - * - */ - @JsonProperty("diskWriteCommandsAvg") - public void setDiskWriteCommandsAvg(Double diskWriteCommandsAvg) { - this.diskWriteCommandsAvg = diskWriteCommandsAvg; - } - - @Override - public String toString() { - return ToStringBuilder.reflectionToString(this); - } - - @Override - public int hashCode() { - return new HashCodeBuilder().append(diskBusResets).append(diskCommandsAborted).append(diskCommandsAvg).append(diskFlushRequests).append(diskFlushTime).append(diskIdentifier).append(diskIoTimeAvg).append(diskIoTimeLast).append(diskIoTimeMax).append(diskIoTimeMin).append(diskMergedReadAvg).append(diskMergedReadLast).append(diskMergedReadMax).append(diskMergedReadMin).append(diskMergedWriteAvg).append(diskMergedWriteLast).append(diskMergedWriteMax).append(diskMergedWriteMin).append(diskOctetsReadAvg).append(diskOctetsReadLast).append(diskOctetsReadMax).append(diskOctetsReadMin).append(diskOctetsWriteAvg).append(diskOctetsWriteLast).append(diskOctetsWriteMax).append(diskOctetsWriteMin).append(diskOpsReadAvg).append(diskOpsReadLast).append(diskOpsReadMax).append(diskOpsReadMin).append(diskOpsWriteAvg).append(diskOpsWriteLast).append(diskOpsWriteMax).append(diskOpsWriteMin).append(diskPendingOperationsAvg).append(diskPendingOperationsLast).append(diskPendingOperationsMax).append(diskPendingOperationsMin).append(diskReadCommandsAvg).append(diskTime).append(diskTimeReadAvg).append(diskTimeReadLast).append(diskTimeReadMax).append(diskTimeReadMin).append(diskTimeWriteAvg).append(diskTimeWriteLast).append(diskTimeWriteMax).append(diskTimeWriteMin).append(diskTotalReadLatencyAvg).append(diskTotalWriteLatencyAvg).append(diskWeightedIoTimeAvg).append(diskWeightedIoTimeLast).append(diskWeightedIoTimeMax).append(diskWeightedIoTimeMin).append(diskWriteCommandsAvg).toHashCode(); - } - - @Override - public boolean equals(Object other) { - if (other == this) { - return true; - } - if ((other instanceof DiskUsageArray) == false) { - return false; - } - DiskUsageArray rhs = ((DiskUsageArray) other); - return new EqualsBuilder().append(diskBusResets, rhs.diskBusResets).append(diskCommandsAborted, rhs.diskCommandsAborted).append(diskCommandsAvg, rhs.diskCommandsAvg).append(diskFlushRequests, rhs.diskFlushRequests).append(diskFlushTime, rhs.diskFlushTime).append(diskIdentifier, rhs.diskIdentifier).append(diskIoTimeAvg, rhs.diskIoTimeAvg).append(diskIoTimeLast, rhs.diskIoTimeLast).append(diskIoTimeMax, rhs.diskIoTimeMax).append(diskIoTimeMin, rhs.diskIoTimeMin).append(diskMergedReadAvg, rhs.diskMergedReadAvg).append(diskMergedReadLast, rhs.diskMergedReadLast).append(diskMergedReadMax, rhs.diskMergedReadMax).append(diskMergedReadMin, rhs.diskMergedReadMin).append(diskMergedWriteAvg, rhs.diskMergedWriteAvg).append(diskMergedWriteLast, rhs.diskMergedWriteLast).append(diskMergedWriteMax, rhs.diskMergedWriteMax).append(diskMergedWriteMin, rhs.diskMergedWriteMin).append(diskOctetsReadAvg, rhs.diskOctetsReadAvg).append(diskOctetsReadLast, rhs.diskOctetsReadLast).append(diskOctetsReadMax, rhs.diskOctetsReadMax).append(diskOctetsReadMin, rhs.diskOctetsReadMin).append(diskOctetsWriteAvg, rhs.diskOctetsWriteAvg).append(diskOctetsWriteLast, rhs.diskOctetsWriteLast).append(diskOctetsWriteMax, rhs.diskOctetsWriteMax).append(diskOctetsWriteMin, rhs.diskOctetsWriteMin).append(diskOpsReadAvg, rhs.diskOpsReadAvg).append(diskOpsReadLast, rhs.diskOpsReadLast).append(diskOpsReadMax, rhs.diskOpsReadMax).append(diskOpsReadMin, rhs.diskOpsReadMin).append(diskOpsWriteAvg, rhs.diskOpsWriteAvg).append(diskOpsWriteLast, rhs.diskOpsWriteLast).append(diskOpsWriteMax, rhs.diskOpsWriteMax).append(diskOpsWriteMin, rhs.diskOpsWriteMin).append(diskPendingOperationsAvg, rhs.diskPendingOperationsAvg).append(diskPendingOperationsLast, rhs.diskPendingOperationsLast).append(diskPendingOperationsMax, rhs.diskPendingOperationsMax).append(diskPendingOperationsMin, rhs.diskPendingOperationsMin).append(diskReadCommandsAvg, rhs.diskReadCommandsAvg).append(diskTime, rhs.diskTime).append(diskTimeReadAvg, rhs.diskTimeReadAvg).append(diskTimeReadLast, rhs.diskTimeReadLast).append(diskTimeReadMax, rhs.diskTimeReadMax).append(diskTimeReadMin, rhs.diskTimeReadMin).append(diskTimeWriteAvg, rhs.diskTimeWriteAvg).append(diskTimeWriteLast, rhs.diskTimeWriteLast).append(diskTimeWriteMax, rhs.diskTimeWriteMax).append(diskTimeWriteMin, rhs.diskTimeWriteMin).append(diskTotalReadLatencyAvg, rhs.diskTotalReadLatencyAvg).append(diskTotalWriteLatencyAvg, rhs.diskTotalWriteLatencyAvg).append(diskWeightedIoTimeAvg, rhs.diskWeightedIoTimeAvg).append(diskWeightedIoTimeLast, rhs.diskWeightedIoTimeLast).append(diskWeightedIoTimeMax, rhs.diskWeightedIoTimeMax).append(diskWeightedIoTimeMin, rhs.diskWeightedIoTimeMin).append(diskWriteCommandsAvg, rhs.diskWriteCommandsAvg).isEquals(); - } - -} diff --git a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/EndOfCallVqmSummaries.java b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/EndOfCallVqmSummaries.java deleted file mode 100644 index 5ddbe43..0000000 --- a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/EndOfCallVqmSummaries.java +++ /dev/null @@ -1,866 +0,0 @@ -/* -* ============LICENSE_START======================================================= -* ONAP : DCAE -* ================================================================================ -* Copyright 2018 TechMahindra -*================================================================================= -* 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========================================================= -*/ -package org.onap.dcaegen2.ves.domain.ves7_0; - -import java.util.HashMap; -import java.util.Map; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyDescription; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonValue; -import org.apache.commons.lang.builder.EqualsBuilder; -import org.apache.commons.lang.builder.HashCodeBuilder; -import org.apache.commons.lang.builder.ToStringBuilder; - - -/** - * provides end of call voice quality metrics - * - */ -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonPropertyOrder({ - "adjacencyName", - "endpointAverageJitter", - "endpointDescription", - "endpointMaxJitter", - "endpointRtpOctetsDiscarded", - "endpointRtpOctetsLost", - "endpointRtpOctetsReceived", - "endpointRtpOctetsSent", - "endpointRtpPacketsDiscarded", - "endpointRtpPacketsLost", - "endpointRtpPacketsReceived", - "endpointRtpPacketsSent", - "localAverageJitter", - "localAverageJitterBufferDelay", - "localMaxJitter", - "localMaxJitterBufferDelay", - "localRtpOctetsDiscarded", - "localRtpOctetsLost", - "localRtpOctetsReceived", - "localRtpOctetsSent", - "localRtpPacketsDiscarded", - "localRtpPacketsLost", - "localRtpPacketsReceived", - "localRtpPacketsSent", - "mosCqe", - "oneWayDelay", - "packetLossPercent", - "rFactor", - "roundTripDelay" -}) -public class EndOfCallVqmSummaries { - - /** - * adjacency name - * (Required) - * - */ - @JsonProperty("adjacencyName") - @JsonPropertyDescription(" adjacency name") - private String adjacencyName; - /** - * endpoint average jitter - * - */ - @JsonProperty("endpointAverageJitter") - @JsonPropertyDescription("endpoint average jitter") - private Double endpointAverageJitter; - /** - * either Caller or Callee - * (Required) - * - */ - @JsonProperty("endpointDescription") - @JsonPropertyDescription("either Caller or Callee") - private EndOfCallVqmSummaries.EndpointDescription endpointDescription; - /** - * endpoint maximum jitter - * - */ - @JsonProperty("endpointMaxJitter") - @JsonPropertyDescription("endpoint maximum jitter") - private Double endpointMaxJitter; - /** - * - * - */ - @JsonProperty("endpointRtpOctetsDiscarded") - @JsonPropertyDescription("") - private Double endpointRtpOctetsDiscarded; - /** - * endpoint RTP octets lost - * - */ - @JsonProperty("endpointRtpOctetsLost") - @JsonPropertyDescription("endpoint RTP octets lost") - private Double endpointRtpOctetsLost; - /** - * - * - */ - @JsonProperty("endpointRtpOctetsReceived") - @JsonPropertyDescription("") - private Double endpointRtpOctetsReceived; - /** - * - * - */ - @JsonProperty("endpointRtpOctetsSent") - @JsonPropertyDescription("") - private Double endpointRtpOctetsSent; - /** - * - * - */ - @JsonProperty("endpointRtpPacketsDiscarded") - @JsonPropertyDescription("") - private Double endpointRtpPacketsDiscarded; - /** - * endpoint RTP packets lost - * - */ - @JsonProperty("endpointRtpPacketsLost") - @JsonPropertyDescription("endpoint RTP packets lost") - private Double endpointRtpPacketsLost; - /** - * - * - */ - @JsonProperty("endpointRtpPacketsReceived") - @JsonPropertyDescription("") - private Double endpointRtpPacketsReceived; - /** - * - * - */ - @JsonProperty("endpointRtpPacketsSent") - @JsonPropertyDescription("") - private Double endpointRtpPacketsSent; - /** - * Local average jitter - * - */ - @JsonProperty("localAverageJitter") - @JsonPropertyDescription("Local average jitter") - private Double localAverageJitter; - /** - * Local average jitter delay - * - */ - @JsonProperty("localAverageJitterBufferDelay") - @JsonPropertyDescription("Local average jitter delay") - private Double localAverageJitterBufferDelay; - /** - * Local maximum jitter - * - */ - @JsonProperty("localMaxJitter") - @JsonPropertyDescription("Local maximum jitter") - private Double localMaxJitter; - /** - * Local maximum jitter delay - * - */ - @JsonProperty("localMaxJitterBufferDelay") - @JsonPropertyDescription("Local maximum jitter delay") - private Double localMaxJitterBufferDelay; - /** - * - * - */ - @JsonProperty("localRtpOctetsDiscarded") - @JsonPropertyDescription("") - private Double localRtpOctetsDiscarded; - /** - * Local RTP octets lost - * - */ - @JsonProperty("localRtpOctetsLost") - @JsonPropertyDescription("Local RTP octets lost") - private Double localRtpOctetsLost; - /** - * - * - */ - @JsonProperty("localRtpOctetsReceived") - @JsonPropertyDescription("") - private Double localRtpOctetsReceived; - /** - * - * - */ - @JsonProperty("localRtpOctetsSent") - @JsonPropertyDescription("") - private Double localRtpOctetsSent; - /** - * - * - */ - @JsonProperty("localRtpPacketsDiscarded") - @JsonPropertyDescription("") - private Double localRtpPacketsDiscarded; - /** - * Local RTP packets lost - * - */ - @JsonProperty("localRtpPacketsLost") - @JsonPropertyDescription("Local RTP packets lost") - private Double localRtpPacketsLost; - /** - * - * - */ - @JsonProperty("localRtpPacketsReceived") - @JsonPropertyDescription("") - private Double localRtpPacketsReceived; - /** - * - * - */ - @JsonProperty("localRtpPacketsSent") - @JsonPropertyDescription("") - private Double localRtpPacketsSent; - /** - * 1-5 1dp - * - */ - @JsonProperty("mosCqe") - @JsonPropertyDescription("1-5 1dp") - private Double mosCqe; - /** - * one-way path delay in milliseconds - * - */ - @JsonProperty("oneWayDelay") - @JsonPropertyDescription("one-way path delay in milliseconds") - private Double oneWayDelay; - /** - * Calculated percentage packet loss based on Endpoint RTP packets lost (as reported in RTCP) and Local RTP packets sent. Direction is based on Endpoint description (Caller, Callee). Decimal (2 dp) - * - */ - @JsonProperty("packetLossPercent") - @JsonPropertyDescription("Calculated percentage packet loss based on Endpoint RTP packets lost (as reported in RTCP) and Local RTP packets sent. Direction is based on Endpoint description (Caller, Callee). Decimal (2 dp)") - private Double packetLossPercent; - /** - * 0-100 - * - */ - @JsonProperty("rFactor") - @JsonPropertyDescription("0-100") - private Double rFactor; - /** - * millisecs - * - */ - @JsonProperty("roundTripDelay") - @JsonPropertyDescription("millisecs") - private Double roundTripDelay; - - /** - * adjacency name - * (Required) - * - */ - @JsonProperty("adjacencyName") - public String getAdjacencyName() { - return adjacencyName; - } - - /** - * adjacency name - * (Required) - * - */ - @JsonProperty("adjacencyName") - public void setAdjacencyName(String adjacencyName) { - this.adjacencyName = adjacencyName; - } - - /** - * endpoint average jitter - * - */ - @JsonProperty("endpointAverageJitter") - public Double getEndpointAverageJitter() { - return endpointAverageJitter; - } - - /** - * endpoint average jitter - * - */ - @JsonProperty("endpointAverageJitter") - public void setEndpointAverageJitter(Double endpointAverageJitter) { - this.endpointAverageJitter = endpointAverageJitter; - } - - /** - * either Caller or Callee - * (Required) - * - */ - @JsonProperty("endpointDescription") - public EndOfCallVqmSummaries.EndpointDescription getEndpointDescription() { - return endpointDescription; - } - - /** - * either Caller or Callee - * (Required) - * - */ - @JsonProperty("endpointDescription") - public void setEndpointDescription(EndOfCallVqmSummaries.EndpointDescription endpointDescription) { - this.endpointDescription = endpointDescription; - } - - /** - * endpoint maximum jitter - * - */ - @JsonProperty("endpointMaxJitter") - public Double getEndpointMaxJitter() { - return endpointMaxJitter; - } - - /** - * endpoint maximum jitter - * - */ - @JsonProperty("endpointMaxJitter") - public void setEndpointMaxJitter(Double endpointMaxJitter) { - this.endpointMaxJitter = endpointMaxJitter; - } - - /** - * - * - */ - @JsonProperty("endpointRtpOctetsDiscarded") - public Double getEndpointRtpOctetsDiscarded() { - return endpointRtpOctetsDiscarded; - } - - /** - * - * - */ - @JsonProperty("endpointRtpOctetsDiscarded") - public void setEndpointRtpOctetsDiscarded(Double endpointRtpOctetsDiscarded) { - this.endpointRtpOctetsDiscarded = endpointRtpOctetsDiscarded; - } - - /** - * endpoint RTP octets lost - * - */ - @JsonProperty("endpointRtpOctetsLost") - public Double getEndpointRtpOctetsLost() { - return endpointRtpOctetsLost; - } - - /** - * endpoint RTP octets lost - * - */ - @JsonProperty("endpointRtpOctetsLost") - public void setEndpointRtpOctetsLost(Double endpointRtpOctetsLost) { - this.endpointRtpOctetsLost = endpointRtpOctetsLost; - } - - /** - * - * - */ - @JsonProperty("endpointRtpOctetsReceived") - public Double getEndpointRtpOctetsReceived() { - return endpointRtpOctetsReceived; - } - - /** - * - * - */ - @JsonProperty("endpointRtpOctetsReceived") - public void setEndpointRtpOctetsReceived(Double endpointRtpOctetsReceived) { - this.endpointRtpOctetsReceived = endpointRtpOctetsReceived; - } - - /** - * - * - */ - @JsonProperty("endpointRtpOctetsSent") - public Double getEndpointRtpOctetsSent() { - return endpointRtpOctetsSent; - } - - /** - * - * - */ - @JsonProperty("endpointRtpOctetsSent") - public void setEndpointRtpOctetsSent(Double endpointRtpOctetsSent) { - this.endpointRtpOctetsSent = endpointRtpOctetsSent; - } - - /** - * - * - */ - @JsonProperty("endpointRtpPacketsDiscarded") - public Double getEndpointRtpPacketsDiscarded() { - return endpointRtpPacketsDiscarded; - } - - /** - * - * - */ - @JsonProperty("endpointRtpPacketsDiscarded") - public void setEndpointRtpPacketsDiscarded(Double endpointRtpPacketsDiscarded) { - this.endpointRtpPacketsDiscarded = endpointRtpPacketsDiscarded; - } - - /** - * endpoint RTP packets lost - * - */ - @JsonProperty("endpointRtpPacketsLost") - public Double getEndpointRtpPacketsLost() { - return endpointRtpPacketsLost; - } - - /** - * endpoint RTP packets lost - * - */ - @JsonProperty("endpointRtpPacketsLost") - public void setEndpointRtpPacketsLost(Double endpointRtpPacketsLost) { - this.endpointRtpPacketsLost = endpointRtpPacketsLost; - } - - /** - * - * - */ - @JsonProperty("endpointRtpPacketsReceived") - public Double getEndpointRtpPacketsReceived() { - return endpointRtpPacketsReceived; - } - - /** - * - * - */ - @JsonProperty("endpointRtpPacketsReceived") - public void setEndpointRtpPacketsReceived(Double endpointRtpPacketsReceived) { - this.endpointRtpPacketsReceived = endpointRtpPacketsReceived; - } - - /** - * - * - */ - @JsonProperty("endpointRtpPacketsSent") - public Double getEndpointRtpPacketsSent() { - return endpointRtpPacketsSent; - } - - /** - * - * - */ - @JsonProperty("endpointRtpPacketsSent") - public void setEndpointRtpPacketsSent(Double endpointRtpPacketsSent) { - this.endpointRtpPacketsSent = endpointRtpPacketsSent; - } - - /** - * Local average jitter - * - */ - @JsonProperty("localAverageJitter") - public Double getLocalAverageJitter() { - return localAverageJitter; - } - - /** - * Local average jitter - * - */ - @JsonProperty("localAverageJitter") - public void setLocalAverageJitter(Double localAverageJitter) { - this.localAverageJitter = localAverageJitter; - } - - /** - * Local average jitter delay - * - */ - @JsonProperty("localAverageJitterBufferDelay") - public Double getLocalAverageJitterBufferDelay() { - return localAverageJitterBufferDelay; - } - - /** - * Local average jitter delay - * - */ - @JsonProperty("localAverageJitterBufferDelay") - public void setLocalAverageJitterBufferDelay(Double localAverageJitterBufferDelay) { - this.localAverageJitterBufferDelay = localAverageJitterBufferDelay; - } - - /** - * Local maximum jitter - * - */ - @JsonProperty("localMaxJitter") - public Double getLocalMaxJitter() { - return localMaxJitter; - } - - /** - * Local maximum jitter - * - */ - @JsonProperty("localMaxJitter") - public void setLocalMaxJitter(Double localMaxJitter) { - this.localMaxJitter = localMaxJitter; - } - - /** - * Local maximum jitter delay - * - */ - @JsonProperty("localMaxJitterBufferDelay") - public Double getLocalMaxJitterBufferDelay() { - return localMaxJitterBufferDelay; - } - - /** - * Local maximum jitter delay - * - */ - @JsonProperty("localMaxJitterBufferDelay") - public void setLocalMaxJitterBufferDelay(Double localMaxJitterBufferDelay) { - this.localMaxJitterBufferDelay = localMaxJitterBufferDelay; - } - - /** - * - * - */ - @JsonProperty("localRtpOctetsDiscarded") - public Double getLocalRtpOctetsDiscarded() { - return localRtpOctetsDiscarded; - } - - /** - * - * - */ - @JsonProperty("localRtpOctetsDiscarded") - public void setLocalRtpOctetsDiscarded(Double localRtpOctetsDiscarded) { - this.localRtpOctetsDiscarded = localRtpOctetsDiscarded; - } - - /** - * Local RTP octets lost - * - */ - @JsonProperty("localRtpOctetsLost") - public Double getLocalRtpOctetsLost() { - return localRtpOctetsLost; - } - - /** - * Local RTP octets lost - * - */ - @JsonProperty("localRtpOctetsLost") - public void setLocalRtpOctetsLost(Double localRtpOctetsLost) { - this.localRtpOctetsLost = localRtpOctetsLost; - } - - /** - * - * - */ - @JsonProperty("localRtpOctetsReceived") - public Double getLocalRtpOctetsReceived() { - return localRtpOctetsReceived; - } - - /** - * - * - */ - @JsonProperty("localRtpOctetsReceived") - public void setLocalRtpOctetsReceived(Double localRtpOctetsReceived) { - this.localRtpOctetsReceived = localRtpOctetsReceived; - } - - /** - * - * - */ - @JsonProperty("localRtpOctetsSent") - public Double getLocalRtpOctetsSent() { - return localRtpOctetsSent; - } - - /** - * - * - */ - @JsonProperty("localRtpOctetsSent") - public void setLocalRtpOctetsSent(Double localRtpOctetsSent) { - this.localRtpOctetsSent = localRtpOctetsSent; - } - - /** - * - * - */ - @JsonProperty("localRtpPacketsDiscarded") - public Double getLocalRtpPacketsDiscarded() { - return localRtpPacketsDiscarded; - } - - /** - * - * - */ - @JsonProperty("localRtpPacketsDiscarded") - public void setLocalRtpPacketsDiscarded(Double localRtpPacketsDiscarded) { - this.localRtpPacketsDiscarded = localRtpPacketsDiscarded; - } - - /** - * Local RTP packets lost - * - */ - @JsonProperty("localRtpPacketsLost") - public Double getLocalRtpPacketsLost() { - return localRtpPacketsLost; - } - - /** - * Local RTP packets lost - * - */ - @JsonProperty("localRtpPacketsLost") - public void setLocalRtpPacketsLost(Double localRtpPacketsLost) { - this.localRtpPacketsLost = localRtpPacketsLost; - } - - /** - * - * - */ - @JsonProperty("localRtpPacketsReceived") - public Double getLocalRtpPacketsReceived() { - return localRtpPacketsReceived; - } - - /** - * - * - */ - @JsonProperty("localRtpPacketsReceived") - public void setLocalRtpPacketsReceived(Double localRtpPacketsReceived) { - this.localRtpPacketsReceived = localRtpPacketsReceived; - } - - /** - * - * - */ - @JsonProperty("localRtpPacketsSent") - public Double getLocalRtpPacketsSent() { - return localRtpPacketsSent; - } - - /** - * - * - */ - @JsonProperty("localRtpPacketsSent") - public void setLocalRtpPacketsSent(Double localRtpPacketsSent) { - this.localRtpPacketsSent = localRtpPacketsSent; - } - - /** - * 1-5 1dp - * - */ - @JsonProperty("mosCqe") - public Double getMosCqe() { - return mosCqe; - } - - /** - * 1-5 1dp - * - */ - @JsonProperty("mosCqe") - public void setMosCqe(Double mosCqe) { - this.mosCqe = mosCqe; - } - - /** - * one-way path delay in milliseconds - * - */ - @JsonProperty("oneWayDelay") - public Double getOneWayDelay() { - return oneWayDelay; - } - - /** - * one-way path delay in milliseconds - * - */ - @JsonProperty("oneWayDelay") - public void setOneWayDelay(Double oneWayDelay) { - this.oneWayDelay = oneWayDelay; - } - - /** - * Calculated percentage packet loss based on Endpoint RTP packets lost (as reported in RTCP) and Local RTP packets sent. Direction is based on Endpoint description (Caller, Callee). Decimal (2 dp) - * - */ - @JsonProperty("packetLossPercent") - public Double getPacketLossPercent() { - return packetLossPercent; - } - - /** - * Calculated percentage packet loss based on Endpoint RTP packets lost (as reported in RTCP) and Local RTP packets sent. Direction is based on Endpoint description (Caller, Callee). Decimal (2 dp) - * - */ - @JsonProperty("packetLossPercent") - public void setPacketLossPercent(Double packetLossPercent) { - this.packetLossPercent = packetLossPercent; - } - - /** - * 0-100 - * - */ - @JsonProperty("rFactor") - public Double getRFactor() { - return rFactor; - } - - /** - * 0-100 - * - */ - @JsonProperty("rFactor") - public void setRFactor(Double rFactor) { - this.rFactor = rFactor; - } - - /** - * millisecs - * - */ - @JsonProperty("roundTripDelay") - public Double getRoundTripDelay() { - return roundTripDelay; - } - - /** - * millisecs - * - */ - @JsonProperty("roundTripDelay") - public void setRoundTripDelay(Double roundTripDelay) { - this.roundTripDelay = roundTripDelay; - } - - @Override - public String toString() { - return ToStringBuilder.reflectionToString(this); - } - - @Override - public int hashCode() { - return new HashCodeBuilder().append(adjacencyName).append(endpointAverageJitter).append(endpointDescription).append(endpointMaxJitter).append(endpointRtpOctetsDiscarded).append(endpointRtpOctetsLost).append(endpointRtpOctetsReceived).append(endpointRtpOctetsSent).append(endpointRtpPacketsDiscarded).append(endpointRtpPacketsLost).append(endpointRtpPacketsReceived).append(endpointRtpPacketsSent).append(localAverageJitter).append(localAverageJitterBufferDelay).append(localMaxJitter).append(localMaxJitterBufferDelay).append(localRtpOctetsDiscarded).append(localRtpOctetsLost).append(localRtpOctetsReceived).append(localRtpOctetsSent).append(localRtpPacketsDiscarded).append(localRtpPacketsLost).append(localRtpPacketsReceived).append(localRtpPacketsSent).append(mosCqe).append(oneWayDelay).append(packetLossPercent).append(rFactor).append(roundTripDelay).toHashCode(); - } - - @Override - public boolean equals(Object other) { - if (other == this) { - return true; - } - if ((other instanceof EndOfCallVqmSummaries) == false) { - return false; - } - EndOfCallVqmSummaries rhs = ((EndOfCallVqmSummaries) other); - return new EqualsBuilder().append(adjacencyName, rhs.adjacencyName).append(endpointAverageJitter, rhs.endpointAverageJitter).append(endpointDescription, rhs.endpointDescription).append(endpointMaxJitter, rhs.endpointMaxJitter).append(endpointRtpOctetsDiscarded, rhs.endpointRtpOctetsDiscarded).append(endpointRtpOctetsLost, rhs.endpointRtpOctetsLost).append(endpointRtpOctetsReceived, rhs.endpointRtpOctetsReceived).append(endpointRtpOctetsSent, rhs.endpointRtpOctetsSent).append(endpointRtpPacketsDiscarded, rhs.endpointRtpPacketsDiscarded).append(endpointRtpPacketsLost, rhs.endpointRtpPacketsLost).append(endpointRtpPacketsReceived, rhs.endpointRtpPacketsReceived).append(endpointRtpPacketsSent, rhs.endpointRtpPacketsSent).append(localAverageJitter, rhs.localAverageJitter).append(localAverageJitterBufferDelay, rhs.localAverageJitterBufferDelay).append(localMaxJitter, rhs.localMaxJitter).append(localMaxJitterBufferDelay, rhs.localMaxJitterBufferDelay).append(localRtpOctetsDiscarded, rhs.localRtpOctetsDiscarded).append(localRtpOctetsLost, rhs.localRtpOctetsLost).append(localRtpOctetsReceived, rhs.localRtpOctetsReceived).append(localRtpOctetsSent, rhs.localRtpOctetsSent).append(localRtpPacketsDiscarded, rhs.localRtpPacketsDiscarded).append(localRtpPacketsLost, rhs.localRtpPacketsLost).append(localRtpPacketsReceived, rhs.localRtpPacketsReceived).append(localRtpPacketsSent, rhs.localRtpPacketsSent).append(mosCqe, rhs.mosCqe).append(oneWayDelay, rhs.oneWayDelay).append(packetLossPercent, rhs.packetLossPercent).append(rFactor, rhs.rFactor).append(roundTripDelay, rhs.roundTripDelay).isEquals(); - } - - public enum EndpointDescription { - - CALLER("Caller"), - CALLEE("Callee"); - private final String value; - private final static Map CONSTANTS = new HashMap(); - - static { - for (EndOfCallVqmSummaries.EndpointDescription c: values()) { - CONSTANTS.put(c.value, c); - } - } - - private EndpointDescription(String value) { - this.value = value; - } - - @Override - public String toString() { - return this.value; - } - - @JsonValue - public String value() { - return this.value; - } - - @JsonCreator - public static EndOfCallVqmSummaries.EndpointDescription fromValue(String value) { - EndOfCallVqmSummaries.EndpointDescription constant = CONSTANTS.get(value); - if (constant == null) { - throw new IllegalArgumentException(value); - } else { - return constant; - } - } - - } - -} diff --git a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/Event.java b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/Event.java deleted file mode 100644 index e2e6265..0000000 --- a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/Event.java +++ /dev/null @@ -1,404 +0,0 @@ -/* -* ============LICENSE_START======================================================= -* ONAP : DCAE -* ================================================================================ -* Copyright 2018 TechMahindra -*================================================================================= -* 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========================================================= -*/ -package org.onap.dcaegen2.ves.domain.ves7_0; - -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyDescription; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import org.apache.commons.lang.builder.EqualsBuilder; -import org.apache.commons.lang.builder.HashCodeBuilder; -import org.apache.commons.lang.builder.ToStringBuilder; - - -/** - * the root level of the common event format - * - */ -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonPropertyOrder({ - "commonEventHeader", - "faultFields", - "heartbeatFields", - "measurementFields", - "mobileFlowFields", - "notificationFields", - "otherFields", - "pnfRegistrationFields", - "sipSignalingFields", - "stateChangeFields", - "syslogFields", - "thresholdCrossingAlertFields", - "voiceQualityFields" -}) -public class Event { - - /** - * fields common to all events - * (Required) - * - */ - @JsonProperty("commonEventHeader") - @JsonPropertyDescription("fields common to all events") - private CommonEventHeader commonEventHeader; - /** - * fields specific to fault events - * - */ - @JsonProperty("faultFields") - @JsonPropertyDescription("fields specific to fault events") - private FaultFields faultFields; - /** - * optional field block for fields specific to heartbeat events - * - */ - @JsonProperty("heartbeatFields") - @JsonPropertyDescription("optional field block for fields specific to heartbeat events") - private HeartbeatFields heartbeatFields; - /** - * measurement fields - * - */ - @JsonProperty("measurementFields") - @JsonPropertyDescription("measurement fields") - private MeasurementFields measurementFields; - /** - * mobileFlow fields - * - */ - @JsonProperty("mobileFlowFields") - @JsonPropertyDescription("mobileFlow fields") - private MobileFlowFields mobileFlowFields; - /** - * notification fields - * - */ - @JsonProperty("notificationFields") - @JsonPropertyDescription("notification fields") - private NotificationFields notificationFields; - /** - * fields for events belonging to the 'other' domain of the commonEventHeader domain enumeration - * - */ - @JsonProperty("otherFields") - @JsonPropertyDescription("fields for events belonging to the 'other' domain of the commonEventHeader domain enumeration") - private OtherFields otherFields; - /** - * hardware device registration fields - * - */ - @JsonProperty("pnfRegistrationFields") - @JsonPropertyDescription("hardware device registration fields") - private PnfRegistrationFields pnfRegistrationFields; - /** - * sip signaling fields - * - */ - @JsonProperty("sipSignalingFields") - @JsonPropertyDescription("sip signaling fields") - private SipSignalingFields sipSignalingFields; - /** - * stateChange fields - * - */ - @JsonProperty("stateChangeFields") - @JsonPropertyDescription("stateChange fields") - private StateChangeFields stateChangeFields; - /** - * sysLog fields - * - */ - @JsonProperty("syslogFields") - @JsonPropertyDescription("sysLog fields") - private SyslogFields syslogFields; - /** - * fields specific to threshold crossing alert events - * - */ - @JsonProperty("thresholdCrossingAlertFields") - @JsonPropertyDescription("fields specific to threshold crossing alert events") - private ThresholdCrossingAlertFields thresholdCrossingAlertFields; - /** - * provides statistics related to customer facing voice products - * - */ - @JsonProperty("voiceQualityFields") - @JsonPropertyDescription("provides statistics related to customer facing voice products") - private VoiceQualityFields voiceQualityFields; - - /** - * fields common to all events - * (Required) - * - */ - @JsonProperty("commonEventHeader") - public CommonEventHeader getCommonEventHeader() { - return commonEventHeader; - } - - /** - * fields common to all events - * (Required) - * - */ - @JsonProperty("commonEventHeader") - public void setCommonEventHeader(CommonEventHeader commonEventHeader) { - this.commonEventHeader = commonEventHeader; - } - - /** - * fields specific to fault events - * - */ - @JsonProperty("faultFields") - public FaultFields getFaultFields() { - return faultFields; - } - - /** - * fields specific to fault events - * - */ - @JsonProperty("faultFields") - public void setFaultFields(FaultFields faultFields) { - this.faultFields = faultFields; - } - - /** - * optional field block for fields specific to heartbeat events - * - */ - @JsonProperty("heartbeatFields") - public HeartbeatFields getHeartbeatFields() { - return heartbeatFields; - } - - /** - * optional field block for fields specific to heartbeat events - * - */ - @JsonProperty("heartbeatFields") - public void setHeartbeatFields(HeartbeatFields heartbeatFields) { - this.heartbeatFields = heartbeatFields; - } - - /** - * measurement fields - * - */ - @JsonProperty("measurementFields") - public MeasurementFields getMeasurementFields() { - return measurementFields; - } - - /** - * measurement fields - * - */ - @JsonProperty("measurementFields") - public void setMeasurementFields(MeasurementFields measurementFields) { - this.measurementFields = measurementFields; - } - - /** - * mobileFlow fields - * - */ - @JsonProperty("mobileFlowFields") - public MobileFlowFields getMobileFlowFields() { - return mobileFlowFields; - } - - /** - * mobileFlow fields - * - */ - @JsonProperty("mobileFlowFields") - public void setMobileFlowFields(MobileFlowFields mobileFlowFields) { - this.mobileFlowFields = mobileFlowFields; - } - - /** - * notification fields - * - */ - @JsonProperty("notificationFields") - public NotificationFields getNotificationFields() { - return notificationFields; - } - - /** - * notification fields - * - */ - @JsonProperty("notificationFields") - public void setNotificationFields(NotificationFields notificationFields) { - this.notificationFields = notificationFields; - } - - /** - * fields for events belonging to the 'other' domain of the commonEventHeader domain enumeration - * - */ - @JsonProperty("otherFields") - public OtherFields getOtherFields() { - return otherFields; - } - - /** - * fields for events belonging to the 'other' domain of the commonEventHeader domain enumeration - * - */ - @JsonProperty("otherFields") - public void setOtherFields(OtherFields otherFields) { - this.otherFields = otherFields; - } - - /** - * hardware device registration fields - * - */ - @JsonProperty("pnfRegistrationFields") - public PnfRegistrationFields getPnfRegistrationFields() { - return pnfRegistrationFields; - } - - /** - * hardware device registration fields - * - */ - @JsonProperty("pnfRegistrationFields") - public void setPnfRegistrationFields(PnfRegistrationFields pnfRegistrationFields) { - this.pnfRegistrationFields = pnfRegistrationFields; - } - - /** - * sip signaling fields - * - */ - @JsonProperty("sipSignalingFields") - public SipSignalingFields getSipSignalingFields() { - return sipSignalingFields; - } - - /** - * sip signaling fields - * - */ - @JsonProperty("sipSignalingFields") - public void setSipSignalingFields(SipSignalingFields sipSignalingFields) { - this.sipSignalingFields = sipSignalingFields; - } - - /** - * stateChange fields - * - */ - @JsonProperty("stateChangeFields") - public StateChangeFields getStateChangeFields() { - return stateChangeFields; - } - - /** - * stateChange fields - * - */ - @JsonProperty("stateChangeFields") - public void setStateChangeFields(StateChangeFields stateChangeFields) { - this.stateChangeFields = stateChangeFields; - } - - /** - * sysLog fields - * - */ - @JsonProperty("syslogFields") - public SyslogFields getSyslogFields() { - return syslogFields; - } - - /** - * sysLog fields - * - */ - @JsonProperty("syslogFields") - public void setSyslogFields(SyslogFields syslogFields) { - this.syslogFields = syslogFields; - } - - /** - * fields specific to threshold crossing alert events - * - */ - @JsonProperty("thresholdCrossingAlertFields") - public ThresholdCrossingAlertFields getThresholdCrossingAlertFields() { - return thresholdCrossingAlertFields; - } - - /** - * fields specific to threshold crossing alert events - * - */ - @JsonProperty("thresholdCrossingAlertFields") - public void setThresholdCrossingAlertFields(ThresholdCrossingAlertFields thresholdCrossingAlertFields) { - this.thresholdCrossingAlertFields = thresholdCrossingAlertFields; - } - - /** - * provides statistics related to customer facing voice products - * - */ - @JsonProperty("voiceQualityFields") - public VoiceQualityFields getVoiceQualityFields() { - return voiceQualityFields; - } - - /** - * provides statistics related to customer facing voice products - * - */ - @JsonProperty("voiceQualityFields") - public void setVoiceQualityFields(VoiceQualityFields voiceQualityFields) { - this.voiceQualityFields = voiceQualityFields; - } - - @Override - public String toString() { - return ToStringBuilder.reflectionToString(this); - } - - @Override - public int hashCode() { - return new HashCodeBuilder().append(commonEventHeader).append(faultFields).append(heartbeatFields).append(measurementFields).append(mobileFlowFields).append(notificationFields).append(otherFields).append(pnfRegistrationFields).append(sipSignalingFields).append(stateChangeFields).append(syslogFields).append(thresholdCrossingAlertFields).append(voiceQualityFields).toHashCode(); - } - - @Override - public boolean equals(Object other) { - if (other == this) { - return true; - } - if ((other instanceof Event) == false) { - return false; - } - Event rhs = ((Event) other); - return new EqualsBuilder().append(commonEventHeader, rhs.commonEventHeader).append(faultFields, rhs.faultFields).append(heartbeatFields, rhs.heartbeatFields).append(measurementFields, rhs.measurementFields).append(mobileFlowFields, rhs.mobileFlowFields).append(notificationFields, rhs.notificationFields).append(otherFields, rhs.otherFields).append(pnfRegistrationFields, rhs.pnfRegistrationFields).append(sipSignalingFields, rhs.sipSignalingFields).append(stateChangeFields, rhs.stateChangeFields).append(syslogFields, rhs.syslogFields).append(thresholdCrossingAlertFields, rhs.thresholdCrossingAlertFields).append(voiceQualityFields, rhs.voiceQualityFields).isEquals(); - } - -} diff --git a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/FaultFields.java b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/FaultFields.java deleted file mode 100644 index c62bd4c..0000000 --- a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/FaultFields.java +++ /dev/null @@ -1,441 +0,0 @@ -/* -* ============LICENSE_START======================================================= -* ONAP : DCAE -* ================================================================================ -* Copyright 2018 TechMahindra -*================================================================================= -* 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========================================================= -*/ -package org.onap.dcaegen2.ves.domain.ves7_0; - -import java.util.HashMap; -import java.util.Map; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyDescription; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonValue; -import org.apache.commons.lang.builder.EqualsBuilder; -import org.apache.commons.lang.builder.HashCodeBuilder; -import org.apache.commons.lang.builder.ToStringBuilder; - - -/** - * fields specific to fault events - * - */ -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonPropertyOrder({ - "alarmAdditionalInformation", - "alarmCondition", - "alarmInterfaceA", - "eventCategory", - "eventSeverity", - "eventSourceType", - "faultFieldsVersion", - "specificProblem", - "vfStatus" -}) -public class FaultFields { - - /** - * an associative array which is an array of key:value pairs - * - */ - @JsonProperty("alarmAdditionalInformation") - @JsonPropertyDescription("an associative array which is an array of key:value pairs") - private AlarmAdditionalInformation alarmAdditionalInformation; - /** - * alarm condition reported by the device - * (Required) - * - */ - @JsonProperty("alarmCondition") - @JsonPropertyDescription("alarm condition reported by the device") - private String alarmCondition; - /** - * card, port, channel or interface name of the device generating the alarm - * - */ - @JsonProperty("alarmInterfaceA") - @JsonPropertyDescription("card, port, channel or interface name of the device generating the alarm") - private String alarmInterfaceA; - /** - * Event category, for example: license, link, routing, security, signaling - * - */ - @JsonProperty("eventCategory") - @JsonPropertyDescription("Event category, for example: license, link, routing, security, signaling") - private String eventCategory; - /** - * event severity - * (Required) - * - */ - @JsonProperty("eventSeverity") - @JsonPropertyDescription("event severity") - private FaultFields.EventSeverity eventSeverity; - /** - * type of event source; examples: card, host, other, port, portThreshold, router, slotThreshold, switch, virtualMachine, virtualNetworkFunction - * (Required) - * - */ - @JsonProperty("eventSourceType") - @JsonPropertyDescription("type of event source; examples: card, host, other, port, portThreshold, router, slotThreshold, switch, virtualMachine, virtualNetworkFunction") - private String eventSourceType; - /** - * version of the faultFields block - * (Required) - * - */ - @JsonProperty("faultFieldsVersion") - @JsonPropertyDescription("version of the faultFields block") - private FaultFields.FaultFieldsVersion faultFieldsVersion; - /** - * short description of the alarm or problem - * (Required) - * - */ - @JsonProperty("specificProblem") - @JsonPropertyDescription("short description of the alarm or problem") - private String specificProblem; - /** - * virtual function status enumeration - * (Required) - * - */ - @JsonProperty("vfStatus") - @JsonPropertyDescription("virtual function status enumeration") - private FaultFields.VfStatus vfStatus; - - /** - * an associative array which is an array of key:value pairs - * - */ - @JsonProperty("alarmAdditionalInformation") - public AlarmAdditionalInformation getAlarmAdditionalInformation() { - return alarmAdditionalInformation; - } - - /** - * an associative array which is an array of key:value pairs - * - */ - @JsonProperty("alarmAdditionalInformation") - public void setAlarmAdditionalInformation(AlarmAdditionalInformation alarmAdditionalInformation) { - this.alarmAdditionalInformation = alarmAdditionalInformation; - } - - /** - * alarm condition reported by the device - * (Required) - * - */ - @JsonProperty("alarmCondition") - public String getAlarmCondition() { - return alarmCondition; - } - - /** - * alarm condition reported by the device - * (Required) - * - */ - @JsonProperty("alarmCondition") - public void setAlarmCondition(String alarmCondition) { - this.alarmCondition = alarmCondition; - } - - /** - * card, port, channel or interface name of the device generating the alarm - * - */ - @JsonProperty("alarmInterfaceA") - public String getAlarmInterfaceA() { - return alarmInterfaceA; - } - - /** - * card, port, channel or interface name of the device generating the alarm - * - */ - @JsonProperty("alarmInterfaceA") - public void setAlarmInterfaceA(String alarmInterfaceA) { - this.alarmInterfaceA = alarmInterfaceA; - } - - /** - * Event category, for example: license, link, routing, security, signaling - * - */ - @JsonProperty("eventCategory") - public String getEventCategory() { - return eventCategory; - } - - /** - * Event category, for example: license, link, routing, security, signaling - * - */ - @JsonProperty("eventCategory") - public void setEventCategory(String eventCategory) { - this.eventCategory = eventCategory; - } - - /** - * event severity - * (Required) - * - */ - @JsonProperty("eventSeverity") - public FaultFields.EventSeverity getEventSeverity() { - return eventSeverity; - } - - /** - * event severity - * (Required) - * - */ - @JsonProperty("eventSeverity") - public void setEventSeverity(FaultFields.EventSeverity eventSeverity) { - this.eventSeverity = eventSeverity; - } - - /** - * type of event source; examples: card, host, other, port, portThreshold, router, slotThreshold, switch, virtualMachine, virtualNetworkFunction - * (Required) - * - */ - @JsonProperty("eventSourceType") - public String getEventSourceType() { - return eventSourceType; - } - - /** - * type of event source; examples: card, host, other, port, portThreshold, router, slotThreshold, switch, virtualMachine, virtualNetworkFunction - * (Required) - * - */ - @JsonProperty("eventSourceType") - public void setEventSourceType(String eventSourceType) { - this.eventSourceType = eventSourceType; - } - - /** - * version of the faultFields block - * (Required) - * - */ - @JsonProperty("faultFieldsVersion") - public FaultFields.FaultFieldsVersion getFaultFieldsVersion() { - return faultFieldsVersion; - } - - /** - * version of the faultFields block - * (Required) - * - */ - @JsonProperty("faultFieldsVersion") - public void setFaultFieldsVersion(FaultFields.FaultFieldsVersion faultFieldsVersion) { - this.faultFieldsVersion = faultFieldsVersion; - } - - /** - * short description of the alarm or problem - * (Required) - * - */ - @JsonProperty("specificProblem") - public String getSpecificProblem() { - return specificProblem; - } - - /** - * short description of the alarm or problem - * (Required) - * - */ - @JsonProperty("specificProblem") - public void setSpecificProblem(String specificProblem) { - this.specificProblem = specificProblem; - } - - /** - * virtual function status enumeration - * (Required) - * - */ - @JsonProperty("vfStatus") - public FaultFields.VfStatus getVfStatus() { - return vfStatus; - } - - /** - * virtual function status enumeration - * (Required) - * - */ - @JsonProperty("vfStatus") - public void setVfStatus(FaultFields.VfStatus vfStatus) { - this.vfStatus = vfStatus; - } - - @Override - public String toString() { - return ToStringBuilder.reflectionToString(this); - } - - @Override - public int hashCode() { - return new HashCodeBuilder().append(alarmAdditionalInformation).append(alarmCondition).append(alarmInterfaceA).append(eventCategory).append(eventSeverity).append(eventSourceType).append(faultFieldsVersion).append(specificProblem).append(vfStatus).toHashCode(); - } - - @Override - public boolean equals(Object other) { - if (other == this) { - return true; - } - if ((other instanceof FaultFields) == false) { - return false; - } - FaultFields rhs = ((FaultFields) other); - return new EqualsBuilder().append(alarmAdditionalInformation, rhs.alarmAdditionalInformation).append(alarmCondition, rhs.alarmCondition).append(alarmInterfaceA, rhs.alarmInterfaceA).append(eventCategory, rhs.eventCategory).append(eventSeverity, rhs.eventSeverity).append(eventSourceType, rhs.eventSourceType).append(faultFieldsVersion, rhs.faultFieldsVersion).append(specificProblem, rhs.specificProblem).append(vfStatus, rhs.vfStatus).isEquals(); - } - - public enum EventSeverity { - - CRITICAL("CRITICAL"), - MAJOR("MAJOR"), - MINOR("MINOR"), - WARNING("WARNING"), - NORMAL("NORMAL"); - private final String value; - private final static Map CONSTANTS = new HashMap(); - - static { - for (FaultFields.EventSeverity c: values()) { - CONSTANTS.put(c.value, c); - } - } - - private EventSeverity(String value) { - this.value = value; - } - - @Override - public String toString() { - return this.value; - } - - @JsonValue - public String value() { - return this.value; - } - - @JsonCreator - public static FaultFields.EventSeverity fromValue(String value) { - FaultFields.EventSeverity constant = CONSTANTS.get(value); - if (constant == null) { - throw new IllegalArgumentException(value); - } else { - return constant; - } - } - - } - - public enum FaultFieldsVersion { - - _4_0("4.0"); - private final String value; - private final static Map CONSTANTS = new HashMap(); - - static { - for (FaultFields.FaultFieldsVersion c: values()) { - CONSTANTS.put(c.value, c); - } - } - - private FaultFieldsVersion(String value) { - this.value = value; - } - - @Override - public String toString() { - return this.value; - } - - @JsonValue - public String value() { - return this.value; - } - - @JsonCreator - public static FaultFields.FaultFieldsVersion fromValue(String value) { - FaultFields.FaultFieldsVersion constant = CONSTANTS.get(value); - if (constant == null) { - throw new IllegalArgumentException(value); - } else { - return constant; - } - } - - } - - public enum VfStatus { - - ACTIVE("Active"), - IDLE("Idle"), - PREPARING_TO_TERMINATE("Preparing to terminate"), - READY_TO_TERMINATE("Ready to terminate"), - REQUESTING_TERMINATION("Requesting termination"); - private final String value; - private final static Map CONSTANTS = new HashMap(); - - static { - for (FaultFields.VfStatus c: values()) { - CONSTANTS.put(c.value, c); - } - } - - private VfStatus(String value) { - this.value = value; - } - - @Override - public String toString() { - return this.value; - } - - @JsonValue - public String value() { - return this.value; - } - - @JsonCreator - public static FaultFields.VfStatus fromValue(String value) { - FaultFields.VfStatus constant = CONSTANTS.get(value); - if (constant == null) { - throw new IllegalArgumentException(value); - } else { - return constant; - } - } - - } - -} diff --git a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/FilesystemUsageArray.java b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/FilesystemUsageArray.java deleted file mode 100644 index f36ff0f..0000000 --- a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/FilesystemUsageArray.java +++ /dev/null @@ -1,258 +0,0 @@ -/* -* ============LICENSE_START======================================================= -* ONAP : DCAE -* ================================================================================ -* Copyright 2018 TechMahindra -*================================================================================= -* 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========================================================= -*/ -package org.onap.dcaegen2.ves.domain.ves7_0; - -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import org.apache.commons.lang.builder.EqualsBuilder; -import org.apache.commons.lang.builder.HashCodeBuilder; -import org.apache.commons.lang.builder.ToStringBuilder; - - -/** - * disk usage of an identified virtual machine in gigabytes and/or gigabytes per second - * - */ -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonPropertyOrder({ - "blockConfigured", - "blockIops", - "blockUsed", - "ephemeralConfigured", - "ephemeralIops", - "ephemeralUsed", - "filesystemName" -}) -public class FilesystemUsageArray { - - /** - * - * (Required) - * - */ - @JsonProperty("blockConfigured") - private Double blockConfigured; - /** - * - * (Required) - * - */ - @JsonProperty("blockIops") - private Double blockIops; - /** - * - * (Required) - * - */ - @JsonProperty("blockUsed") - private Double blockUsed; - /** - * - * (Required) - * - */ - @JsonProperty("ephemeralConfigured") - private Double ephemeralConfigured; - /** - * - * (Required) - * - */ - @JsonProperty("ephemeralIops") - private Double ephemeralIops; - /** - * - * (Required) - * - */ - @JsonProperty("ephemeralUsed") - private Double ephemeralUsed; - /** - * - * (Required) - * - */ - @JsonProperty("filesystemName") - private String filesystemName; - - /** - * - * (Required) - * - */ - @JsonProperty("blockConfigured") - public Double getBlockConfigured() { - return blockConfigured; - } - - /** - * - * (Required) - * - */ - @JsonProperty("blockConfigured") - public void setBlockConfigured(Double blockConfigured) { - this.blockConfigured = blockConfigured; - } - - /** - * - * (Required) - * - */ - @JsonProperty("blockIops") - public Double getBlockIops() { - return blockIops; - } - - /** - * - * (Required) - * - */ - @JsonProperty("blockIops") - public void setBlockIops(Double blockIops) { - this.blockIops = blockIops; - } - - /** - * - * (Required) - * - */ - @JsonProperty("blockUsed") - public Double getBlockUsed() { - return blockUsed; - } - - /** - * - * (Required) - * - */ - @JsonProperty("blockUsed") - public void setBlockUsed(Double blockUsed) { - this.blockUsed = blockUsed; - } - - /** - * - * (Required) - * - */ - @JsonProperty("ephemeralConfigured") - public Double getEphemeralConfigured() { - return ephemeralConfigured; - } - - /** - * - * (Required) - * - */ - @JsonProperty("ephemeralConfigured") - public void setEphemeralConfigured(Double ephemeralConfigured) { - this.ephemeralConfigured = ephemeralConfigured; - } - - /** - * - * (Required) - * - */ - @JsonProperty("ephemeralIops") - public Double getEphemeralIops() { - return ephemeralIops; - } - - /** - * - * (Required) - * - */ - @JsonProperty("ephemeralIops") - public void setEphemeralIops(Double ephemeralIops) { - this.ephemeralIops = ephemeralIops; - } - - /** - * - * (Required) - * - */ - @JsonProperty("ephemeralUsed") - public Double getEphemeralUsed() { - return ephemeralUsed; - } - - /** - * - * (Required) - * - */ - @JsonProperty("ephemeralUsed") - public void setEphemeralUsed(Double ephemeralUsed) { - this.ephemeralUsed = ephemeralUsed; - } - - /** - * - * (Required) - * - */ - @JsonProperty("filesystemName") - public String getFilesystemName() { - return filesystemName; - } - - /** - * - * (Required) - * - */ - @JsonProperty("filesystemName") - public void setFilesystemName(String filesystemName) { - this.filesystemName = filesystemName; - } - - @Override - public String toString() { - return ToStringBuilder.reflectionToString(this); - } - - @Override - public int hashCode() { - return new HashCodeBuilder().append(blockConfigured).append(blockIops).append(blockUsed).append(ephemeralConfigured).append(ephemeralIops).append(ephemeralUsed).append(filesystemName).toHashCode(); - } - - @Override - public boolean equals(Object other) { - if (other == this) { - return true; - } - if ((other instanceof FilesystemUsageArray) == false) { - return false; - } - FilesystemUsageArray rhs = ((FilesystemUsageArray) other); - return new EqualsBuilder().append(blockConfigured, rhs.blockConfigured).append(blockIops, rhs.blockIops).append(blockUsed, rhs.blockUsed).append(ephemeralConfigured, rhs.ephemeralConfigured).append(ephemeralIops, rhs.ephemeralIops).append(ephemeralUsed, rhs.ephemeralUsed).append(filesystemName, rhs.filesystemName).isEquals(); - } - -} diff --git a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/GtpPerFlowMetrics.java b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/GtpPerFlowMetrics.java deleted file mode 100644 index e915e5c..0000000 --- a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/GtpPerFlowMetrics.java +++ /dev/null @@ -1,1455 +0,0 @@ -/* -* ============LICENSE_START======================================================= -* ONAP : DCAE -* ================================================================================ -* Copyright 2018 TechMahindra -*================================================================================= -* 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========================================================= -*/ -package org.onap.dcaegen2.ves.domain.ves7_0; - -import java.util.ArrayList; -import java.util.List; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyDescription; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import org.apache.commons.lang.builder.EqualsBuilder; -import org.apache.commons.lang.builder.HashCodeBuilder; -import org.apache.commons.lang.builder.ToStringBuilder; - - -/** - * Mobility GTP Protocol per flow metrics - * - */ -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonPropertyOrder({ - "avgBitErrorRate", - "avgPacketDelayVariation", - "avgPacketLatency", - "avgReceiveThroughput", - "avgTransmitThroughput", - "durConnectionFailedStatus", - "durTunnelFailedStatus", - "flowActivatedBy", - "flowActivationEpoch", - "flowActivationMicrosec", - "flowActivationTime", - "flowDeactivatedBy", - "flowDeactivationEpoch", - "flowDeactivationMicrosec", - "flowDeactivationTime", - "flowStatus", - "gtpConnectionStatus", - "gtpTunnelStatus", - "ipTosCountList", - "ipTosList", - "largePacketRtt", - "largePacketThreshold", - "maxPacketDelayVariation", - "maxReceiveBitRate", - "maxTransmitBitRate", - "mobileQciCosCountList", - "mobileQciCosList", - "numActivationFailures", - "numBitErrors", - "numBytesReceived", - "numBytesTransmitted", - "numDroppedPackets", - "numGtpEchoFailures", - "numGtpTunnelErrors", - "numHttpErrors", - "numL7BytesReceived", - "numL7BytesTransmitted", - "numLostPackets", - "numOutOfOrderPackets", - "numPacketErrors", - "numPacketsReceivedExclRetrans", - "numPacketsReceivedInclRetrans", - "numPacketsTransmittedInclRetrans", - "numRetries", - "numTimeouts", - "numTunneledL7BytesReceived", - "roundTripTime", - "tcpFlagCountList", - "tcpFlagList", - "timeToFirstByte" -}) -public class GtpPerFlowMetrics { - - /** - * average bit error rate - * (Required) - * - */ - @JsonProperty("avgBitErrorRate") - @JsonPropertyDescription("average bit error rate") - private Double avgBitErrorRate; - /** - * Average packet delay variation or jitter in milliseconds for received packets: Average difference between the packet timestamp and time received for all pairs of consecutive packets - * (Required) - * - */ - @JsonProperty("avgPacketDelayVariation") - @JsonPropertyDescription("Average packet delay variation or jitter in milliseconds for received packets: Average difference between the packet timestamp and time received for all pairs of consecutive packets") - private Double avgPacketDelayVariation; - /** - * average delivery latency - * (Required) - * - */ - @JsonProperty("avgPacketLatency") - @JsonPropertyDescription("average delivery latency") - private Double avgPacketLatency; - /** - * average receive throughput - * (Required) - * - */ - @JsonProperty("avgReceiveThroughput") - @JsonPropertyDescription("average receive throughput") - private Double avgReceiveThroughput; - /** - * average transmit throughput - * (Required) - * - */ - @JsonProperty("avgTransmitThroughput") - @JsonPropertyDescription("average transmit throughput") - private Double avgTransmitThroughput; - /** - * duration of failed state in milliseconds, computed as the cumulative time between a failed echo request and the next following successful error request, over this reporting interval - * - */ - @JsonProperty("durConnectionFailedStatus") - @JsonPropertyDescription("duration of failed state in milliseconds, computed as the cumulative time between a failed echo request and the next following successful error request, over this reporting interval") - private Double durConnectionFailedStatus; - /** - * Duration of errored state, computed as the cumulative time between a tunnel error indicator and the next following non-errored indicator, over this reporting interval - * - */ - @JsonProperty("durTunnelFailedStatus") - @JsonPropertyDescription("Duration of errored state, computed as the cumulative time between a tunnel error indicator and the next following non-errored indicator, over this reporting interval") - private Double durTunnelFailedStatus; - /** - * Endpoint activating the flow - * - */ - @JsonProperty("flowActivatedBy") - @JsonPropertyDescription("Endpoint activating the flow") - private String flowActivatedBy; - /** - * Time the connection is activated in the flow (connection) being reported on, or transmission time of the first packet if activation time is not available - * (Required) - * - */ - @JsonProperty("flowActivationEpoch") - @JsonPropertyDescription("Time the connection is activated in the flow (connection) being reported on, or transmission time of the first packet if activation time is not available") - private Double flowActivationEpoch; - /** - * Integer microseconds for the start of the flow connection - * (Required) - * - */ - @JsonProperty("flowActivationMicrosec") - @JsonPropertyDescription("Integer microseconds for the start of the flow connection") - private Double flowActivationMicrosec; - /** - * time the connection is activated in the flow being reported on, or transmission time of the first packet if activation time is not available; with RFC 2822 compliant format: Sat, 13 Mar 2010 11:29:05 -0800 - * - */ - @JsonProperty("flowActivationTime") - @JsonPropertyDescription("time the connection is activated in the flow being reported on, or transmission time of the first packet if activation time is not available; with RFC 2822 compliant format: Sat, 13 Mar 2010 11:29:05 -0800") - private String flowActivationTime; - /** - * Endpoint deactivating the flow - * - */ - @JsonProperty("flowDeactivatedBy") - @JsonPropertyDescription("Endpoint deactivating the flow") - private String flowDeactivatedBy; - /** - * Time for the start of the flow connection, in integer UTC epoch time aka UNIX time - * (Required) - * - */ - @JsonProperty("flowDeactivationEpoch") - @JsonPropertyDescription("Time for the start of the flow connection, in integer UTC epoch time aka UNIX time") - private Double flowDeactivationEpoch; - /** - * Integer microseconds for the start of the flow connection - * (Required) - * - */ - @JsonProperty("flowDeactivationMicrosec") - @JsonPropertyDescription("Integer microseconds for the start of the flow connection") - private Double flowDeactivationMicrosec; - /** - * Transmission time of the first packet in the flow connection being reported on; with RFC 2822 compliant format: Sat, 13 Mar 2010 11:29:05 -0800 - * (Required) - * - */ - @JsonProperty("flowDeactivationTime") - @JsonPropertyDescription("Transmission time of the first packet in the flow connection being reported on; with RFC 2822 compliant format: Sat, 13 Mar 2010 11:29:05 -0800") - private String flowDeactivationTime; - /** - * connection status at reporting time as a working / inactive / failed indicator value - * (Required) - * - */ - @JsonProperty("flowStatus") - @JsonPropertyDescription("connection status at reporting time as a working / inactive / failed indicator value") - private String flowStatus; - /** - * Current connection state at reporting time - * - */ - @JsonProperty("gtpConnectionStatus") - @JsonPropertyDescription("Current connection state at reporting time") - private String gtpConnectionStatus; - /** - * Current tunnel state at reporting time - * - */ - @JsonProperty("gtpTunnelStatus") - @JsonPropertyDescription("Current tunnel state at reporting time") - private String gtpTunnelStatus; - /** - * an associative array which is an array of key:value pairs - * - */ - @JsonProperty("ipTosCountList") - @JsonPropertyDescription("an associative array which is an array of key:value pairs") - private AlarmAdditionalInformation ipTosCountList; - /** - * Array of unique IP Type-of-Service values observed in the flow where values range from '0' to '255' - * - */ - @JsonProperty("ipTosList") - @JsonPropertyDescription("Array of unique IP Type-of-Service values observed in the flow where values range from '0' to '255'") - private List ipTosList = new ArrayList(); - /** - * large packet round trip time - * - */ - @JsonProperty("largePacketRtt") - @JsonPropertyDescription("large packet round trip time") - private Double largePacketRtt; - /** - * large packet threshold being applied - * - */ - @JsonProperty("largePacketThreshold") - @JsonPropertyDescription("large packet threshold being applied") - private Double largePacketThreshold; - /** - * Maximum packet delay variation or jitter in milliseconds for received packets: Maximum of the difference between the packet timestamp and time received for all pairs of consecutive packets - * (Required) - * - */ - @JsonProperty("maxPacketDelayVariation") - @JsonPropertyDescription("Maximum packet delay variation or jitter in milliseconds for received packets: Maximum of the difference between the packet timestamp and time received for all pairs of consecutive packets") - private Double maxPacketDelayVariation; - /** - * maximum receive bit rate - * - */ - @JsonProperty("maxReceiveBitRate") - @JsonPropertyDescription("maximum receive bit rate") - private Double maxReceiveBitRate; - /** - * maximum transmit bit rate - * - */ - @JsonProperty("maxTransmitBitRate") - @JsonPropertyDescription("maximum transmit bit rate") - private Double maxTransmitBitRate; - /** - * an associative array which is an array of key:value pairs - * - */ - @JsonProperty("mobileQciCosCountList") - @JsonPropertyDescription("an associative array which is an array of key:value pairs") - private AlarmAdditionalInformation mobileQciCosCountList; - /** - * Array of unique LTE QCI or UMTS class-of-service values observed in the flow - * - */ - @JsonProperty("mobileQciCosList") - @JsonPropertyDescription("Array of unique LTE QCI or UMTS class-of-service values observed in the flow") - private List mobileQciCosList = new ArrayList(); - /** - * Number of failed activation requests, as observed by the reporting node - * (Required) - * - */ - @JsonProperty("numActivationFailures") - @JsonPropertyDescription("Number of failed activation requests, as observed by the reporting node") - private Double numActivationFailures; - /** - * number of errored bits - * (Required) - * - */ - @JsonProperty("numBitErrors") - @JsonPropertyDescription("number of errored bits") - private Double numBitErrors; - /** - * number of bytes received, including retransmissions - * (Required) - * - */ - @JsonProperty("numBytesReceived") - @JsonPropertyDescription("number of bytes received, including retransmissions") - private Double numBytesReceived; - /** - * number of bytes transmitted, including retransmissions - * (Required) - * - */ - @JsonProperty("numBytesTransmitted") - @JsonPropertyDescription("number of bytes transmitted, including retransmissions") - private Double numBytesTransmitted; - /** - * number of received packets dropped due to errors per virtual interface - * (Required) - * - */ - @JsonProperty("numDroppedPackets") - @JsonPropertyDescription("number of received packets dropped due to errors per virtual interface") - private Double numDroppedPackets; - /** - * Number of Echo request path failures where failed paths are defined in 3GPP TS 29.281 sec 7.2.1 and 3GPP TS 29.060 sec. 11.2 - * - */ - @JsonProperty("numGtpEchoFailures") - @JsonPropertyDescription("Number of Echo request path failures where failed paths are defined in 3GPP TS 29.281 sec 7.2.1 and 3GPP TS 29.060 sec. 11.2") - private Double numGtpEchoFailures; - /** - * Number of tunnel error indications where errors are defined in 3GPP TS 29.281 sec 7.3.1 and 3GPP TS 29.060 sec. 11.1 - * - */ - @JsonProperty("numGtpTunnelErrors") - @JsonPropertyDescription("Number of tunnel error indications where errors are defined in 3GPP TS 29.281 sec 7.3.1 and 3GPP TS 29.060 sec. 11.1") - private Double numGtpTunnelErrors; - /** - * Http error count - * - */ - @JsonProperty("numHttpErrors") - @JsonPropertyDescription("Http error count") - private Double numHttpErrors; - /** - * number of tunneled layer 7 bytes received, including retransmissions - * (Required) - * - */ - @JsonProperty("numL7BytesReceived") - @JsonPropertyDescription("number of tunneled layer 7 bytes received, including retransmissions") - private Double numL7BytesReceived; - /** - * number of tunneled layer 7 bytes transmitted, excluding retransmissions - * (Required) - * - */ - @JsonProperty("numL7BytesTransmitted") - @JsonPropertyDescription("number of tunneled layer 7 bytes transmitted, excluding retransmissions") - private Double numL7BytesTransmitted; - /** - * number of lost packets - * (Required) - * - */ - @JsonProperty("numLostPackets") - @JsonPropertyDescription("number of lost packets") - private Double numLostPackets; - /** - * number of out-of-order packets - * (Required) - * - */ - @JsonProperty("numOutOfOrderPackets") - @JsonPropertyDescription("number of out-of-order packets") - private Double numOutOfOrderPackets; - /** - * number of errored packets - * (Required) - * - */ - @JsonProperty("numPacketErrors") - @JsonPropertyDescription("number of errored packets") - private Double numPacketErrors; - /** - * number of packets received, excluding retransmission - * (Required) - * - */ - @JsonProperty("numPacketsReceivedExclRetrans") - @JsonPropertyDescription("number of packets received, excluding retransmission") - private Double numPacketsReceivedExclRetrans; - /** - * number of packets received, including retransmission - * (Required) - * - */ - @JsonProperty("numPacketsReceivedInclRetrans") - @JsonPropertyDescription("number of packets received, including retransmission") - private Double numPacketsReceivedInclRetrans; - /** - * number of packets transmitted, including retransmissions - * (Required) - * - */ - @JsonProperty("numPacketsTransmittedInclRetrans") - @JsonPropertyDescription("number of packets transmitted, including retransmissions") - private Double numPacketsTransmittedInclRetrans; - /** - * number of packet retries - * (Required) - * - */ - @JsonProperty("numRetries") - @JsonPropertyDescription("number of packet retries") - private Double numRetries; - /** - * number of packet timeouts - * (Required) - * - */ - @JsonProperty("numTimeouts") - @JsonPropertyDescription("number of packet timeouts") - private Double numTimeouts; - /** - * number of tunneled layer 7 bytes received, excluding retransmissions - * (Required) - * - */ - @JsonProperty("numTunneledL7BytesReceived") - @JsonPropertyDescription("number of tunneled layer 7 bytes received, excluding retransmissions") - private Double numTunneledL7BytesReceived; - /** - * round trip time - * (Required) - * - */ - @JsonProperty("roundTripTime") - @JsonPropertyDescription("round trip time") - private Double roundTripTime; - /** - * an associative array which is an array of key:value pairs - * - */ - @JsonProperty("tcpFlagCountList") - @JsonPropertyDescription("an associative array which is an array of key:value pairs") - private AlarmAdditionalInformation tcpFlagCountList; - /** - * Array of unique TCP Flags observed in the flow - * - */ - @JsonProperty("tcpFlagList") - @JsonPropertyDescription("Array of unique TCP Flags observed in the flow") - private List tcpFlagList = new ArrayList(); - /** - * Time in milliseconds between the connection activation and first byte received - * (Required) - * - */ - @JsonProperty("timeToFirstByte") - @JsonPropertyDescription("Time in milliseconds between the connection activation and first byte received") - private Double timeToFirstByte; - - /** - * average bit error rate - * (Required) - * - */ - @JsonProperty("avgBitErrorRate") - public Double getAvgBitErrorRate() { - return avgBitErrorRate; - } - - /** - * average bit error rate - * (Required) - * - */ - @JsonProperty("avgBitErrorRate") - public void setAvgBitErrorRate(Double avgBitErrorRate) { - this.avgBitErrorRate = avgBitErrorRate; - } - - /** - * Average packet delay variation or jitter in milliseconds for received packets: Average difference between the packet timestamp and time received for all pairs of consecutive packets - * (Required) - * - */ - @JsonProperty("avgPacketDelayVariation") - public Double getAvgPacketDelayVariation() { - return avgPacketDelayVariation; - } - - /** - * Average packet delay variation or jitter in milliseconds for received packets: Average difference between the packet timestamp and time received for all pairs of consecutive packets - * (Required) - * - */ - @JsonProperty("avgPacketDelayVariation") - public void setAvgPacketDelayVariation(Double avgPacketDelayVariation) { - this.avgPacketDelayVariation = avgPacketDelayVariation; - } - - /** - * average delivery latency - * (Required) - * - */ - @JsonProperty("avgPacketLatency") - public Double getAvgPacketLatency() { - return avgPacketLatency; - } - - /** - * average delivery latency - * (Required) - * - */ - @JsonProperty("avgPacketLatency") - public void setAvgPacketLatency(Double avgPacketLatency) { - this.avgPacketLatency = avgPacketLatency; - } - - /** - * average receive throughput - * (Required) - * - */ - @JsonProperty("avgReceiveThroughput") - public Double getAvgReceiveThroughput() { - return avgReceiveThroughput; - } - - /** - * average receive throughput - * (Required) - * - */ - @JsonProperty("avgReceiveThroughput") - public void setAvgReceiveThroughput(Double avgReceiveThroughput) { - this.avgReceiveThroughput = avgReceiveThroughput; - } - - /** - * average transmit throughput - * (Required) - * - */ - @JsonProperty("avgTransmitThroughput") - public Double getAvgTransmitThroughput() { - return avgTransmitThroughput; - } - - /** - * average transmit throughput - * (Required) - * - */ - @JsonProperty("avgTransmitThroughput") - public void setAvgTransmitThroughput(Double avgTransmitThroughput) { - this.avgTransmitThroughput = avgTransmitThroughput; - } - - /** - * duration of failed state in milliseconds, computed as the cumulative time between a failed echo request and the next following successful error request, over this reporting interval - * - */ - @JsonProperty("durConnectionFailedStatus") - public Double getDurConnectionFailedStatus() { - return durConnectionFailedStatus; - } - - /** - * duration of failed state in milliseconds, computed as the cumulative time between a failed echo request and the next following successful error request, over this reporting interval - * - */ - @JsonProperty("durConnectionFailedStatus") - public void setDurConnectionFailedStatus(Double durConnectionFailedStatus) { - this.durConnectionFailedStatus = durConnectionFailedStatus; - } - - /** - * Duration of errored state, computed as the cumulative time between a tunnel error indicator and the next following non-errored indicator, over this reporting interval - * - */ - @JsonProperty("durTunnelFailedStatus") - public Double getDurTunnelFailedStatus() { - return durTunnelFailedStatus; - } - - /** - * Duration of errored state, computed as the cumulative time between a tunnel error indicator and the next following non-errored indicator, over this reporting interval - * - */ - @JsonProperty("durTunnelFailedStatus") - public void setDurTunnelFailedStatus(Double durTunnelFailedStatus) { - this.durTunnelFailedStatus = durTunnelFailedStatus; - } - - /** - * Endpoint activating the flow - * - */ - @JsonProperty("flowActivatedBy") - public String getFlowActivatedBy() { - return flowActivatedBy; - } - - /** - * Endpoint activating the flow - * - */ - @JsonProperty("flowActivatedBy") - public void setFlowActivatedBy(String flowActivatedBy) { - this.flowActivatedBy = flowActivatedBy; - } - - /** - * Time the connection is activated in the flow (connection) being reported on, or transmission time of the first packet if activation time is not available - * (Required) - * - */ - @JsonProperty("flowActivationEpoch") - public Double getFlowActivationEpoch() { - return flowActivationEpoch; - } - - /** - * Time the connection is activated in the flow (connection) being reported on, or transmission time of the first packet if activation time is not available - * (Required) - * - */ - @JsonProperty("flowActivationEpoch") - public void setFlowActivationEpoch(Double flowActivationEpoch) { - this.flowActivationEpoch = flowActivationEpoch; - } - - /** - * Integer microseconds for the start of the flow connection - * (Required) - * - */ - @JsonProperty("flowActivationMicrosec") - public Double getFlowActivationMicrosec() { - return flowActivationMicrosec; - } - - /** - * Integer microseconds for the start of the flow connection - * (Required) - * - */ - @JsonProperty("flowActivationMicrosec") - public void setFlowActivationMicrosec(Double flowActivationMicrosec) { - this.flowActivationMicrosec = flowActivationMicrosec; - } - - /** - * time the connection is activated in the flow being reported on, or transmission time of the first packet if activation time is not available; with RFC 2822 compliant format: Sat, 13 Mar 2010 11:29:05 -0800 - * - */ - @JsonProperty("flowActivationTime") - public String getFlowActivationTime() { - return flowActivationTime; - } - - /** - * time the connection is activated in the flow being reported on, or transmission time of the first packet if activation time is not available; with RFC 2822 compliant format: Sat, 13 Mar 2010 11:29:05 -0800 - * - */ - @JsonProperty("flowActivationTime") - public void setFlowActivationTime(String flowActivationTime) { - this.flowActivationTime = flowActivationTime; - } - - /** - * Endpoint deactivating the flow - * - */ - @JsonProperty("flowDeactivatedBy") - public String getFlowDeactivatedBy() { - return flowDeactivatedBy; - } - - /** - * Endpoint deactivating the flow - * - */ - @JsonProperty("flowDeactivatedBy") - public void setFlowDeactivatedBy(String flowDeactivatedBy) { - this.flowDeactivatedBy = flowDeactivatedBy; - } - - /** - * Time for the start of the flow connection, in integer UTC epoch time aka UNIX time - * (Required) - * - */ - @JsonProperty("flowDeactivationEpoch") - public Double getFlowDeactivationEpoch() { - return flowDeactivationEpoch; - } - - /** - * Time for the start of the flow connection, in integer UTC epoch time aka UNIX time - * (Required) - * - */ - @JsonProperty("flowDeactivationEpoch") - public void setFlowDeactivationEpoch(Double flowDeactivationEpoch) { - this.flowDeactivationEpoch = flowDeactivationEpoch; - } - - /** - * Integer microseconds for the start of the flow connection - * (Required) - * - */ - @JsonProperty("flowDeactivationMicrosec") - public Double getFlowDeactivationMicrosec() { - return flowDeactivationMicrosec; - } - - /** - * Integer microseconds for the start of the flow connection - * (Required) - * - */ - @JsonProperty("flowDeactivationMicrosec") - public void setFlowDeactivationMicrosec(Double flowDeactivationMicrosec) { - this.flowDeactivationMicrosec = flowDeactivationMicrosec; - } - - /** - * Transmission time of the first packet in the flow connection being reported on; with RFC 2822 compliant format: Sat, 13 Mar 2010 11:29:05 -0800 - * (Required) - * - */ - @JsonProperty("flowDeactivationTime") - public String getFlowDeactivationTime() { - return flowDeactivationTime; - } - - /** - * Transmission time of the first packet in the flow connection being reported on; with RFC 2822 compliant format: Sat, 13 Mar 2010 11:29:05 -0800 - * (Required) - * - */ - @JsonProperty("flowDeactivationTime") - public void setFlowDeactivationTime(String flowDeactivationTime) { - this.flowDeactivationTime = flowDeactivationTime; - } - - /** - * connection status at reporting time as a working / inactive / failed indicator value - * (Required) - * - */ - @JsonProperty("flowStatus") - public String getFlowStatus() { - return flowStatus; - } - - /** - * connection status at reporting time as a working / inactive / failed indicator value - * (Required) - * - */ - @JsonProperty("flowStatus") - public void setFlowStatus(String flowStatus) { - this.flowStatus = flowStatus; - } - - /** - * Current connection state at reporting time - * - */ - @JsonProperty("gtpConnectionStatus") - public String getGtpConnectionStatus() { - return gtpConnectionStatus; - } - - /** - * Current connection state at reporting time - * - */ - @JsonProperty("gtpConnectionStatus") - public void setGtpConnectionStatus(String gtpConnectionStatus) { - this.gtpConnectionStatus = gtpConnectionStatus; - } - - /** - * Current tunnel state at reporting time - * - */ - @JsonProperty("gtpTunnelStatus") - public String getGtpTunnelStatus() { - return gtpTunnelStatus; - } - - /** - * Current tunnel state at reporting time - * - */ - @JsonProperty("gtpTunnelStatus") - public void setGtpTunnelStatus(String gtpTunnelStatus) { - this.gtpTunnelStatus = gtpTunnelStatus; - } - - /** - * an associative array which is an array of key:value pairs - * - */ - @JsonProperty("ipTosCountList") - public AlarmAdditionalInformation getIpTosCountList() { - return ipTosCountList; - } - - /** - * an associative array which is an array of key:value pairs - * - */ - @JsonProperty("ipTosCountList") - public void setIpTosCountList(AlarmAdditionalInformation ipTosCountList) { - this.ipTosCountList = ipTosCountList; - } - - /** - * Array of unique IP Type-of-Service values observed in the flow where values range from '0' to '255' - * - */ - @JsonProperty("ipTosList") - public List getIpTosList() { - return ipTosList; - } - - /** - * Array of unique IP Type-of-Service values observed in the flow where values range from '0' to '255' - * - */ - @JsonProperty("ipTosList") - public void setIpTosList(List ipTosList) { - this.ipTosList = ipTosList; - } - - /** - * large packet round trip time - * - */ - @JsonProperty("largePacketRtt") - public Double getLargePacketRtt() { - return largePacketRtt; - } - - /** - * large packet round trip time - * - */ - @JsonProperty("largePacketRtt") - public void setLargePacketRtt(Double largePacketRtt) { - this.largePacketRtt = largePacketRtt; - } - - /** - * large packet threshold being applied - * - */ - @JsonProperty("largePacketThreshold") - public Double getLargePacketThreshold() { - return largePacketThreshold; - } - - /** - * large packet threshold being applied - * - */ - @JsonProperty("largePacketThreshold") - public void setLargePacketThreshold(Double largePacketThreshold) { - this.largePacketThreshold = largePacketThreshold; - } - - /** - * Maximum packet delay variation or jitter in milliseconds for received packets: Maximum of the difference between the packet timestamp and time received for all pairs of consecutive packets - * (Required) - * - */ - @JsonProperty("maxPacketDelayVariation") - public Double getMaxPacketDelayVariation() { - return maxPacketDelayVariation; - } - - /** - * Maximum packet delay variation or jitter in milliseconds for received packets: Maximum of the difference between the packet timestamp and time received for all pairs of consecutive packets - * (Required) - * - */ - @JsonProperty("maxPacketDelayVariation") - public void setMaxPacketDelayVariation(Double maxPacketDelayVariation) { - this.maxPacketDelayVariation = maxPacketDelayVariation; - } - - /** - * maximum receive bit rate - * - */ - @JsonProperty("maxReceiveBitRate") - public Double getMaxReceiveBitRate() { - return maxReceiveBitRate; - } - - /** - * maximum receive bit rate - * - */ - @JsonProperty("maxReceiveBitRate") - public void setMaxReceiveBitRate(Double maxReceiveBitRate) { - this.maxReceiveBitRate = maxReceiveBitRate; - } - - /** - * maximum transmit bit rate - * - */ - @JsonProperty("maxTransmitBitRate") - public Double getMaxTransmitBitRate() { - return maxTransmitBitRate; - } - - /** - * maximum transmit bit rate - * - */ - @JsonProperty("maxTransmitBitRate") - public void setMaxTransmitBitRate(Double maxTransmitBitRate) { - this.maxTransmitBitRate = maxTransmitBitRate; - } - - /** - * an associative array which is an array of key:value pairs - * - */ - @JsonProperty("mobileQciCosCountList") - public AlarmAdditionalInformation getMobileQciCosCountList() { - return mobileQciCosCountList; - } - - /** - * an associative array which is an array of key:value pairs - * - */ - @JsonProperty("mobileQciCosCountList") - public void setMobileQciCosCountList(AlarmAdditionalInformation mobileQciCosCountList) { - this.mobileQciCosCountList = mobileQciCosCountList; - } - - /** - * Array of unique LTE QCI or UMTS class-of-service values observed in the flow - * - */ - @JsonProperty("mobileQciCosList") - public List getMobileQciCosList() { - return mobileQciCosList; - } - - /** - * Array of unique LTE QCI or UMTS class-of-service values observed in the flow - * - */ - @JsonProperty("mobileQciCosList") - public void setMobileQciCosList(List mobileQciCosList) { - this.mobileQciCosList = mobileQciCosList; - } - - /** - * Number of failed activation requests, as observed by the reporting node - * (Required) - * - */ - @JsonProperty("numActivationFailures") - public Double getNumActivationFailures() { - return numActivationFailures; - } - - /** - * Number of failed activation requests, as observed by the reporting node - * (Required) - * - */ - @JsonProperty("numActivationFailures") - public void setNumActivationFailures(Double numActivationFailures) { - this.numActivationFailures = numActivationFailures; - } - - /** - * number of errored bits - * (Required) - * - */ - @JsonProperty("numBitErrors") - public Double getNumBitErrors() { - return numBitErrors; - } - - /** - * number of errored bits - * (Required) - * - */ - @JsonProperty("numBitErrors") - public void setNumBitErrors(Double numBitErrors) { - this.numBitErrors = numBitErrors; - } - - /** - * number of bytes received, including retransmissions - * (Required) - * - */ - @JsonProperty("numBytesReceived") - public Double getNumBytesReceived() { - return numBytesReceived; - } - - /** - * number of bytes received, including retransmissions - * (Required) - * - */ - @JsonProperty("numBytesReceived") - public void setNumBytesReceived(Double numBytesReceived) { - this.numBytesReceived = numBytesReceived; - } - - /** - * number of bytes transmitted, including retransmissions - * (Required) - * - */ - @JsonProperty("numBytesTransmitted") - public Double getNumBytesTransmitted() { - return numBytesTransmitted; - } - - /** - * number of bytes transmitted, including retransmissions - * (Required) - * - */ - @JsonProperty("numBytesTransmitted") - public void setNumBytesTransmitted(Double numBytesTransmitted) { - this.numBytesTransmitted = numBytesTransmitted; - } - - /** - * number of received packets dropped due to errors per virtual interface - * (Required) - * - */ - @JsonProperty("numDroppedPackets") - public Double getNumDroppedPackets() { - return numDroppedPackets; - } - - /** - * number of received packets dropped due to errors per virtual interface - * (Required) - * - */ - @JsonProperty("numDroppedPackets") - public void setNumDroppedPackets(Double numDroppedPackets) { - this.numDroppedPackets = numDroppedPackets; - } - - /** - * Number of Echo request path failures where failed paths are defined in 3GPP TS 29.281 sec 7.2.1 and 3GPP TS 29.060 sec. 11.2 - * - */ - @JsonProperty("numGtpEchoFailures") - public Double getNumGtpEchoFailures() { - return numGtpEchoFailures; - } - - /** - * Number of Echo request path failures where failed paths are defined in 3GPP TS 29.281 sec 7.2.1 and 3GPP TS 29.060 sec. 11.2 - * - */ - @JsonProperty("numGtpEchoFailures") - public void setNumGtpEchoFailures(Double numGtpEchoFailures) { - this.numGtpEchoFailures = numGtpEchoFailures; - } - - /** - * Number of tunnel error indications where errors are defined in 3GPP TS 29.281 sec 7.3.1 and 3GPP TS 29.060 sec. 11.1 - * - */ - @JsonProperty("numGtpTunnelErrors") - public Double getNumGtpTunnelErrors() { - return numGtpTunnelErrors; - } - - /** - * Number of tunnel error indications where errors are defined in 3GPP TS 29.281 sec 7.3.1 and 3GPP TS 29.060 sec. 11.1 - * - */ - @JsonProperty("numGtpTunnelErrors") - public void setNumGtpTunnelErrors(Double numGtpTunnelErrors) { - this.numGtpTunnelErrors = numGtpTunnelErrors; - } - - /** - * Http error count - * - */ - @JsonProperty("numHttpErrors") - public Double getNumHttpErrors() { - return numHttpErrors; - } - - /** - * Http error count - * - */ - @JsonProperty("numHttpErrors") - public void setNumHttpErrors(Double numHttpErrors) { - this.numHttpErrors = numHttpErrors; - } - - /** - * number of tunneled layer 7 bytes received, including retransmissions - * (Required) - * - */ - @JsonProperty("numL7BytesReceived") - public Double getNumL7BytesReceived() { - return numL7BytesReceived; - } - - /** - * number of tunneled layer 7 bytes received, including retransmissions - * (Required) - * - */ - @JsonProperty("numL7BytesReceived") - public void setNumL7BytesReceived(Double numL7BytesReceived) { - this.numL7BytesReceived = numL7BytesReceived; - } - - /** - * number of tunneled layer 7 bytes transmitted, excluding retransmissions - * (Required) - * - */ - @JsonProperty("numL7BytesTransmitted") - public Double getNumL7BytesTransmitted() { - return numL7BytesTransmitted; - } - - /** - * number of tunneled layer 7 bytes transmitted, excluding retransmissions - * (Required) - * - */ - @JsonProperty("numL7BytesTransmitted") - public void setNumL7BytesTransmitted(Double numL7BytesTransmitted) { - this.numL7BytesTransmitted = numL7BytesTransmitted; - } - - /** - * number of lost packets - * (Required) - * - */ - @JsonProperty("numLostPackets") - public Double getNumLostPackets() { - return numLostPackets; - } - - /** - * number of lost packets - * (Required) - * - */ - @JsonProperty("numLostPackets") - public void setNumLostPackets(Double numLostPackets) { - this.numLostPackets = numLostPackets; - } - - /** - * number of out-of-order packets - * (Required) - * - */ - @JsonProperty("numOutOfOrderPackets") - public Double getNumOutOfOrderPackets() { - return numOutOfOrderPackets; - } - - /** - * number of out-of-order packets - * (Required) - * - */ - @JsonProperty("numOutOfOrderPackets") - public void setNumOutOfOrderPackets(Double numOutOfOrderPackets) { - this.numOutOfOrderPackets = numOutOfOrderPackets; - } - - /** - * number of errored packets - * (Required) - * - */ - @JsonProperty("numPacketErrors") - public Double getNumPacketErrors() { - return numPacketErrors; - } - - /** - * number of errored packets - * (Required) - * - */ - @JsonProperty("numPacketErrors") - public void setNumPacketErrors(Double numPacketErrors) { - this.numPacketErrors = numPacketErrors; - } - - /** - * number of packets received, excluding retransmission - * (Required) - * - */ - @JsonProperty("numPacketsReceivedExclRetrans") - public Double getNumPacketsReceivedExclRetrans() { - return numPacketsReceivedExclRetrans; - } - - /** - * number of packets received, excluding retransmission - * (Required) - * - */ - @JsonProperty("numPacketsReceivedExclRetrans") - public void setNumPacketsReceivedExclRetrans(Double numPacketsReceivedExclRetrans) { - this.numPacketsReceivedExclRetrans = numPacketsReceivedExclRetrans; - } - - /** - * number of packets received, including retransmission - * (Required) - * - */ - @JsonProperty("numPacketsReceivedInclRetrans") - public Double getNumPacketsReceivedInclRetrans() { - return numPacketsReceivedInclRetrans; - } - - /** - * number of packets received, including retransmission - * (Required) - * - */ - @JsonProperty("numPacketsReceivedInclRetrans") - public void setNumPacketsReceivedInclRetrans(Double numPacketsReceivedInclRetrans) { - this.numPacketsReceivedInclRetrans = numPacketsReceivedInclRetrans; - } - - /** - * number of packets transmitted, including retransmissions - * (Required) - * - */ - @JsonProperty("numPacketsTransmittedInclRetrans") - public Double getNumPacketsTransmittedInclRetrans() { - return numPacketsTransmittedInclRetrans; - } - - /** - * number of packets transmitted, including retransmissions - * (Required) - * - */ - @JsonProperty("numPacketsTransmittedInclRetrans") - public void setNumPacketsTransmittedInclRetrans(Double numPacketsTransmittedInclRetrans) { - this.numPacketsTransmittedInclRetrans = numPacketsTransmittedInclRetrans; - } - - /** - * number of packet retries - * (Required) - * - */ - @JsonProperty("numRetries") - public Double getNumRetries() { - return numRetries; - } - - /** - * number of packet retries - * (Required) - * - */ - @JsonProperty("numRetries") - public void setNumRetries(Double numRetries) { - this.numRetries = numRetries; - } - - /** - * number of packet timeouts - * (Required) - * - */ - @JsonProperty("numTimeouts") - public Double getNumTimeouts() { - return numTimeouts; - } - - /** - * number of packet timeouts - * (Required) - * - */ - @JsonProperty("numTimeouts") - public void setNumTimeouts(Double numTimeouts) { - this.numTimeouts = numTimeouts; - } - - /** - * number of tunneled layer 7 bytes received, excluding retransmissions - * (Required) - * - */ - @JsonProperty("numTunneledL7BytesReceived") - public Double getNumTunneledL7BytesReceived() { - return numTunneledL7BytesReceived; - } - - /** - * number of tunneled layer 7 bytes received, excluding retransmissions - * (Required) - * - */ - @JsonProperty("numTunneledL7BytesReceived") - public void setNumTunneledL7BytesReceived(Double numTunneledL7BytesReceived) { - this.numTunneledL7BytesReceived = numTunneledL7BytesReceived; - } - - /** - * round trip time - * (Required) - * - */ - @JsonProperty("roundTripTime") - public Double getRoundTripTime() { - return roundTripTime; - } - - /** - * round trip time - * (Required) - * - */ - @JsonProperty("roundTripTime") - public void setRoundTripTime(Double roundTripTime) { - this.roundTripTime = roundTripTime; - } - - /** - * an associative array which is an array of key:value pairs - * - */ - @JsonProperty("tcpFlagCountList") - public AlarmAdditionalInformation getTcpFlagCountList() { - return tcpFlagCountList; - } - - /** - * an associative array which is an array of key:value pairs - * - */ - @JsonProperty("tcpFlagCountList") - public void setTcpFlagCountList(AlarmAdditionalInformation tcpFlagCountList) { - this.tcpFlagCountList = tcpFlagCountList; - } - - /** - * Array of unique TCP Flags observed in the flow - * - */ - @JsonProperty("tcpFlagList") - public List getTcpFlagList() { - return tcpFlagList; - } - - /** - * Array of unique TCP Flags observed in the flow - * - */ - @JsonProperty("tcpFlagList") - public void setTcpFlagList(List tcpFlagList) { - this.tcpFlagList = tcpFlagList; - } - - /** - * Time in milliseconds between the connection activation and first byte received - * (Required) - * - */ - @JsonProperty("timeToFirstByte") - public Double getTimeToFirstByte() { - return timeToFirstByte; - } - - /** - * Time in milliseconds between the connection activation and first byte received - * (Required) - * - */ - @JsonProperty("timeToFirstByte") - public void setTimeToFirstByte(Double timeToFirstByte) { - this.timeToFirstByte = timeToFirstByte; - } - - @Override - public String toString() { - return ToStringBuilder.reflectionToString(this); - } - - @Override - public int hashCode() { - return new HashCodeBuilder().append(avgBitErrorRate).append(avgPacketDelayVariation).append(avgPacketLatency).append(avgReceiveThroughput).append(avgTransmitThroughput).append(durConnectionFailedStatus).append(durTunnelFailedStatus).append(flowActivatedBy).append(flowActivationEpoch).append(flowActivationMicrosec).append(flowActivationTime).append(flowDeactivatedBy).append(flowDeactivationEpoch).append(flowDeactivationMicrosec).append(flowDeactivationTime).append(flowStatus).append(gtpConnectionStatus).append(gtpTunnelStatus).append(ipTosCountList).append(ipTosList).append(largePacketRtt).append(largePacketThreshold).append(maxPacketDelayVariation).append(maxReceiveBitRate).append(maxTransmitBitRate).append(mobileQciCosCountList).append(mobileQciCosList).append(numActivationFailures).append(numBitErrors).append(numBytesReceived).append(numBytesTransmitted).append(numDroppedPackets).append(numGtpEchoFailures).append(numGtpTunnelErrors).append(numHttpErrors).append(numL7BytesReceived).append(numL7BytesTransmitted).append(numLostPackets).append(numOutOfOrderPackets).append(numPacketErrors).append(numPacketsReceivedExclRetrans).append(numPacketsReceivedInclRetrans).append(numPacketsTransmittedInclRetrans).append(numRetries).append(numTimeouts).append(numTunneledL7BytesReceived).append(roundTripTime).append(tcpFlagCountList).append(tcpFlagList).append(timeToFirstByte).toHashCode(); - } - - @Override - public boolean equals(Object other) { - if (other == this) { - return true; - } - if ((other instanceof GtpPerFlowMetrics) == false) { - return false; - } - GtpPerFlowMetrics rhs = ((GtpPerFlowMetrics) other); - return new EqualsBuilder().append(avgBitErrorRate, rhs.avgBitErrorRate).append(avgPacketDelayVariation, rhs.avgPacketDelayVariation).append(avgPacketLatency, rhs.avgPacketLatency).append(avgReceiveThroughput, rhs.avgReceiveThroughput).append(avgTransmitThroughput, rhs.avgTransmitThroughput).append(durConnectionFailedStatus, rhs.durConnectionFailedStatus).append(durTunnelFailedStatus, rhs.durTunnelFailedStatus).append(flowActivatedBy, rhs.flowActivatedBy).append(flowActivationEpoch, rhs.flowActivationEpoch).append(flowActivationMicrosec, rhs.flowActivationMicrosec).append(flowActivationTime, rhs.flowActivationTime).append(flowDeactivatedBy, rhs.flowDeactivatedBy).append(flowDeactivationEpoch, rhs.flowDeactivationEpoch).append(flowDeactivationMicrosec, rhs.flowDeactivationMicrosec).append(flowDeactivationTime, rhs.flowDeactivationTime).append(flowStatus, rhs.flowStatus).append(gtpConnectionStatus, rhs.gtpConnectionStatus).append(gtpTunnelStatus, rhs.gtpTunnelStatus).append(ipTosCountList, rhs.ipTosCountList).append(ipTosList, rhs.ipTosList).append(largePacketRtt, rhs.largePacketRtt).append(largePacketThreshold, rhs.largePacketThreshold).append(maxPacketDelayVariation, rhs.maxPacketDelayVariation).append(maxReceiveBitRate, rhs.maxReceiveBitRate).append(maxTransmitBitRate, rhs.maxTransmitBitRate).append(mobileQciCosCountList, rhs.mobileQciCosCountList).append(mobileQciCosList, rhs.mobileQciCosList).append(numActivationFailures, rhs.numActivationFailures).append(numBitErrors, rhs.numBitErrors).append(numBytesReceived, rhs.numBytesReceived).append(numBytesTransmitted, rhs.numBytesTransmitted).append(numDroppedPackets, rhs.numDroppedPackets).append(numGtpEchoFailures, rhs.numGtpEchoFailures).append(numGtpTunnelErrors, rhs.numGtpTunnelErrors).append(numHttpErrors, rhs.numHttpErrors).append(numL7BytesReceived, rhs.numL7BytesReceived).append(numL7BytesTransmitted, rhs.numL7BytesTransmitted).append(numLostPackets, rhs.numLostPackets).append(numOutOfOrderPackets, rhs.numOutOfOrderPackets).append(numPacketErrors, rhs.numPacketErrors).append(numPacketsReceivedExclRetrans, rhs.numPacketsReceivedExclRetrans).append(numPacketsReceivedInclRetrans, rhs.numPacketsReceivedInclRetrans).append(numPacketsTransmittedInclRetrans, rhs.numPacketsTransmittedInclRetrans).append(numRetries, rhs.numRetries).append(numTimeouts, rhs.numTimeouts).append(numTunneledL7BytesReceived, rhs.numTunneledL7BytesReceived).append(roundTripTime, rhs.roundTripTime).append(tcpFlagCountList, rhs.tcpFlagCountList).append(tcpFlagList, rhs.tcpFlagList).append(timeToFirstByte, rhs.timeToFirstByte).isEquals(); - } - -} diff --git a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/HeartbeatFields.java b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/HeartbeatFields.java deleted file mode 100644 index b650fca..0000000 --- a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/HeartbeatFields.java +++ /dev/null @@ -1,189 +0,0 @@ -/* -* ============LICENSE_START======================================================= -* ONAP : DCAE -* ================================================================================ -* Copyright 2018 TechMahindra -*================================================================================= -* 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========================================================= -*/ -package org.onap.dcaegen2.ves.domain.ves7_0; - -import java.util.HashMap; -import java.util.Map; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyDescription; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonValue; -import org.apache.commons.lang.builder.EqualsBuilder; -import org.apache.commons.lang.builder.HashCodeBuilder; -import org.apache.commons.lang.builder.ToStringBuilder; - - -/** - * optional field block for fields specific to heartbeat events - * - */ -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonPropertyOrder({ - "additionalFields", - "heartbeatFieldsVersion", - "heartbeatInterval" -}) -public class HeartbeatFields { - - /** - * an associative array which is an array of key:value pairs - * - */ - @JsonProperty("additionalFields") - @JsonPropertyDescription("an associative array which is an array of key:value pairs") - private AlarmAdditionalInformation additionalFields; - /** - * version of the heartbeatFields block - * (Required) - * - */ - @JsonProperty("heartbeatFieldsVersion") - @JsonPropertyDescription("version of the heartbeatFields block") - private HeartbeatFields.HeartbeatFieldsVersion heartbeatFieldsVersion; - /** - * current heartbeat interval in seconds - * (Required) - * - */ - @JsonProperty("heartbeatInterval") - @JsonPropertyDescription("current heartbeat interval in seconds") - private Integer heartbeatInterval; - - /** - * an associative array which is an array of key:value pairs - * - */ - @JsonProperty("additionalFields") - public AlarmAdditionalInformation getAdditionalFields() { - return additionalFields; - } - - /** - * an associative array which is an array of key:value pairs - * - */ - @JsonProperty("additionalFields") - public void setAdditionalFields(AlarmAdditionalInformation additionalFields) { - this.additionalFields = additionalFields; - } - - /** - * version of the heartbeatFields block - * (Required) - * - */ - @JsonProperty("heartbeatFieldsVersion") - public HeartbeatFields.HeartbeatFieldsVersion getHeartbeatFieldsVersion() { - return heartbeatFieldsVersion; - } - - /** - * version of the heartbeatFields block - * (Required) - * - */ - @JsonProperty("heartbeatFieldsVersion") - public void setHeartbeatFieldsVersion(HeartbeatFields.HeartbeatFieldsVersion heartbeatFieldsVersion) { - this.heartbeatFieldsVersion = heartbeatFieldsVersion; - } - - /** - * current heartbeat interval in seconds - * (Required) - * - */ - @JsonProperty("heartbeatInterval") - public Integer getHeartbeatInterval() { - return heartbeatInterval; - } - - /** - * current heartbeat interval in seconds - * (Required) - * - */ - @JsonProperty("heartbeatInterval") - public void setHeartbeatInterval(Integer heartbeatInterval) { - this.heartbeatInterval = heartbeatInterval; - } - - @Override - public String toString() { - return ToStringBuilder.reflectionToString(this); - } - - @Override - public int hashCode() { - return new HashCodeBuilder().append(additionalFields).append(heartbeatFieldsVersion).append(heartbeatInterval).toHashCode(); - } - - @Override - public boolean equals(Object other) { - if (other == this) { - return true; - } - if ((other instanceof HeartbeatFields) == false) { - return false; - } - HeartbeatFields rhs = ((HeartbeatFields) other); - return new EqualsBuilder().append(additionalFields, rhs.additionalFields).append(heartbeatFieldsVersion, rhs.heartbeatFieldsVersion).append(heartbeatInterval, rhs.heartbeatInterval).isEquals(); - } - - public enum HeartbeatFieldsVersion { - - _3_0("3.0"); - private final String value; - private final static Map CONSTANTS = new HashMap(); - - static { - for (HeartbeatFields.HeartbeatFieldsVersion c: values()) { - CONSTANTS.put(c.value, c); - } - } - - private HeartbeatFieldsVersion(String value) { - this.value = value; - } - - @Override - public String toString() { - return this.value; - } - - @JsonValue - public String value() { - return this.value; - } - - @JsonCreator - public static HeartbeatFields.HeartbeatFieldsVersion fromValue(String value) { - HeartbeatFields.HeartbeatFieldsVersion constant = CONSTANTS.get(value); - if (constant == null) { - throw new IllegalArgumentException(value); - } else { - return constant; - } - } - - } - -} diff --git a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/HugePagesArray.java b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/HugePagesArray.java deleted file mode 100644 index 5ffe324..0000000 --- a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/HugePagesArray.java +++ /dev/null @@ -1,248 +0,0 @@ -/* -* ============LICENSE_START======================================================= -* ONAP : DCAE -* ================================================================================ -* Copyright 2018 TechMahindra -*================================================================================= -* 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========================================================= -*/ -package org.onap.dcaegen2.ves.domain.ves7_0; - -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyDescription; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import org.apache.commons.lang.builder.EqualsBuilder; -import org.apache.commons.lang.builder.HashCodeBuilder; -import org.apache.commons.lang.builder.ToStringBuilder; - - -/** - * metrics on system hugepages - * - */ -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonPropertyOrder({ - "bytesFree", - "bytesUsed", - "hugePagesIdentifier", - "percentFree", - "percentUsed", - "vmPageNumberFree", - "vmPageNumberUsed" -}) -public class HugePagesArray { - - /** - * number of free hugepages in bytes - * - */ - @JsonProperty("bytesFree") - @JsonPropertyDescription("number of free hugepages in bytes") - private Double bytesFree; - /** - * number of used hugepages in bytes - * - */ - @JsonProperty("bytesUsed") - @JsonPropertyDescription("number of used hugepages in bytes") - private Double bytesUsed; - /** - * hugePages identifier - * (Required) - * - */ - @JsonProperty("hugePagesIdentifier") - @JsonPropertyDescription("hugePages identifier") - private Double hugePagesIdentifier; - /** - * number of free hugepages in percent - * - */ - @JsonProperty("percentFree") - @JsonPropertyDescription("number of free hugepages in percent") - private Double percentFree; - /** - * number of free hugepages in percent - * - */ - @JsonProperty("percentUsed") - @JsonPropertyDescription("number of free hugepages in percent") - private Double percentUsed; - /** - * number of free vmPages in numbers - * - */ - @JsonProperty("vmPageNumberFree") - @JsonPropertyDescription("number of free vmPages in numbers") - private Double vmPageNumberFree; - /** - * number of used vmPages in numbers - * - */ - @JsonProperty("vmPageNumberUsed") - @JsonPropertyDescription("number of used vmPages in numbers") - private Double vmPageNumberUsed; - - /** - * number of free hugepages in bytes - * - */ - @JsonProperty("bytesFree") - public Double getBytesFree() { - return bytesFree; - } - - /** - * number of free hugepages in bytes - * - */ - @JsonProperty("bytesFree") - public void setBytesFree(Double bytesFree) { - this.bytesFree = bytesFree; - } - - /** - * number of used hugepages in bytes - * - */ - @JsonProperty("bytesUsed") - public Double getBytesUsed() { - return bytesUsed; - } - - /** - * number of used hugepages in bytes - * - */ - @JsonProperty("bytesUsed") - public void setBytesUsed(Double bytesUsed) { - this.bytesUsed = bytesUsed; - } - - /** - * hugePages identifier - * (Required) - * - */ - @JsonProperty("hugePagesIdentifier") - public Double getHugePagesIdentifier() { - return hugePagesIdentifier; - } - - /** - * hugePages identifier - * (Required) - * - */ - @JsonProperty("hugePagesIdentifier") - public void setHugePagesIdentifier(Double hugePagesIdentifier) { - this.hugePagesIdentifier = hugePagesIdentifier; - } - - /** - * number of free hugepages in percent - * - */ - @JsonProperty("percentFree") - public Double getPercentFree() { - return percentFree; - } - - /** - * number of free hugepages in percent - * - */ - @JsonProperty("percentFree") - public void setPercentFree(Double percentFree) { - this.percentFree = percentFree; - } - - /** - * number of free hugepages in percent - * - */ - @JsonProperty("percentUsed") - public Double getPercentUsed() { - return percentUsed; - } - - /** - * number of free hugepages in percent - * - */ - @JsonProperty("percentUsed") - public void setPercentUsed(Double percentUsed) { - this.percentUsed = percentUsed; - } - - /** - * number of free vmPages in numbers - * - */ - @JsonProperty("vmPageNumberFree") - public Double getVmPageNumberFree() { - return vmPageNumberFree; - } - - /** - * number of free vmPages in numbers - * - */ - @JsonProperty("vmPageNumberFree") - public void setVmPageNumberFree(Double vmPageNumberFree) { - this.vmPageNumberFree = vmPageNumberFree; - } - - /** - * number of used vmPages in numbers - * - */ - @JsonProperty("vmPageNumberUsed") - public Double getVmPageNumberUsed() { - return vmPageNumberUsed; - } - - /** - * number of used vmPages in numbers - * - */ - @JsonProperty("vmPageNumberUsed") - public void setVmPageNumberUsed(Double vmPageNumberUsed) { - this.vmPageNumberUsed = vmPageNumberUsed; - } - - @Override - public String toString() { - return ToStringBuilder.reflectionToString(this); - } - - @Override - public int hashCode() { - return new HashCodeBuilder().append(bytesFree).append(bytesUsed).append(hugePagesIdentifier).append(percentFree).append(percentUsed).append(vmPageNumberFree).append(vmPageNumberUsed).toHashCode(); - } - - @Override - public boolean equals(Object other) { - if (other == this) { - return true; - } - if ((other instanceof HugePagesArray) == false) { - return false; - } - HugePagesArray rhs = ((HugePagesArray) other); - return new EqualsBuilder().append(bytesFree, rhs.bytesFree).append(bytesUsed, rhs.bytesUsed).append(hugePagesIdentifier, rhs.hugePagesIdentifier).append(percentFree, rhs.percentFree).append(percentUsed, rhs.percentUsed).append(vmPageNumberFree, rhs.vmPageNumberFree).append(vmPageNumberUsed, rhs.vmPageNumberUsed).isEquals(); - } - -} diff --git a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/InternalHeaderFields.java b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/InternalHeaderFields.java deleted file mode 100644 index 4b34a24..0000000 --- a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/InternalHeaderFields.java +++ /dev/null @@ -1,79 +0,0 @@ -/* -* ============LICENSE_START======================================================= -* ONAP : DCAE -* ================================================================================ -* Copyright 2018 TechMahindra -*================================================================================= -* 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========================================================= -*/ -package org.onap.dcaegen2.ves.domain.ves7_0; - -import java.util.HashMap; -import java.util.Map; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import org.apache.commons.lang.builder.EqualsBuilder; -import org.apache.commons.lang.builder.HashCodeBuilder; -import org.apache.commons.lang.builder.ToStringBuilder; - - -/** - * enrichment fields for internal VES Event Listener service use only, not supplied by event sources - * - */ -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonPropertyOrder({ - -}) -public class InternalHeaderFields { - - @JsonIgnore - private Map additionalProperties = new HashMap(); - - @Override - public String toString() { - return ToStringBuilder.reflectionToString(this); - } - - @JsonAnyGetter - public Map getAdditionalProperties() { - return this.additionalProperties; - } - - @JsonAnySetter - public void setAdditionalProperty(String name, Object value) { - this.additionalProperties.put(name, value); - } - - @Override - public int hashCode() { - return new HashCodeBuilder().append(additionalProperties).toHashCode(); - } - - @Override - public boolean equals(Object other) { - if (other == this) { - return true; - } - if ((other instanceof InternalHeaderFields) == false) { - return false; - } - InternalHeaderFields rhs = ((InternalHeaderFields) other); - return new EqualsBuilder().append(additionalProperties, rhs.additionalProperties).isEquals(); - } - -} diff --git a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/Ipmi.java b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/Ipmi.java deleted file mode 100644 index be17bff..0000000 --- a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/Ipmi.java +++ /dev/null @@ -1,403 +0,0 @@ -/* -* ============LICENSE_START======================================================= -* ONAP : DCAE -* ================================================================================ -* Copyright 2018 TechMahindra -*================================================================================= -* 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========================================================= -*/ -package org.onap.dcaegen2.ves.domain.ves7_0; - -import java.util.ArrayList; -import java.util.List; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyDescription; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import org.apache.commons.lang.builder.EqualsBuilder; -import org.apache.commons.lang.builder.HashCodeBuilder; -import org.apache.commons.lang.builder.ToStringBuilder; - - -/** - * intelligent platform management interface metrics - * - */ -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonPropertyOrder({ - "exitAirTemperature", - "frontPanelTemperature", - "ioModuleTemperature", - "ipmiBaseboardTemperatureArray", - "ipmiBaseboardVoltageRegulatorArray", - "ipmiBatteryArray", - "ipmiFanArray", - "ipmiHsbpArray", - "ipmiGlobalAggregateTemperatureMarginArray", - "ipmiNicArray", - "ipmiPowerSupplyArray", - "ipmiProcessorArray", - "systemAirflow" -}) -public class Ipmi { - - /** - * system fan exit air flow temperature in celsius - * - */ - @JsonProperty("exitAirTemperature") - @JsonPropertyDescription("system fan exit air flow temperature in celsius") - private Double exitAirTemperature; - /** - * front panel temperature in celsius - * - */ - @JsonProperty("frontPanelTemperature") - @JsonPropertyDescription("front panel temperature in celsius") - private Double frontPanelTemperature; - /** - * io module temperature in celsius - * - */ - @JsonProperty("ioModuleTemperature") - @JsonPropertyDescription("io module temperature in celsius") - private Double ioModuleTemperature; - /** - * array of ipmiBaseboardTemperature objects - * - */ - @JsonProperty("ipmiBaseboardTemperatureArray") - @JsonPropertyDescription("array of ipmiBaseboardTemperature objects") - private List ipmiBaseboardTemperatureArray = new ArrayList(); - /** - * array of ipmiBaseboardVoltageRegulator objects - * - */ - @JsonProperty("ipmiBaseboardVoltageRegulatorArray") - @JsonPropertyDescription("array of ipmiBaseboardVoltageRegulator objects") - private List ipmiBaseboardVoltageRegulatorArray = new ArrayList(); - /** - * array of ipmiBattery objects - * - */ - @JsonProperty("ipmiBatteryArray") - @JsonPropertyDescription("array of ipmiBattery objects") - private List ipmiBatteryArray = new ArrayList(); - /** - * array of ipmiFan objects - * - */ - @JsonProperty("ipmiFanArray") - @JsonPropertyDescription("array of ipmiFan objects") - private List ipmiFanArray = new ArrayList(); - /** - * array of ipmiHsbp objects - * - */ - @JsonProperty("ipmiHsbpArray") - @JsonPropertyDescription("array of ipmiHsbp objects") - private List ipmiHsbpArray = new ArrayList(); - /** - * array of ipmiGlobalAggregateTemperatureMargin objects - * - */ - @JsonProperty("ipmiGlobalAggregateTemperatureMarginArray") - @JsonPropertyDescription("array of ipmiGlobalAggregateTemperatureMargin objects") - private List ipmiGlobalAggregateTemperatureMarginArray = new ArrayList(); - /** - * array of ipmiNic objects - * - */ - @JsonProperty("ipmiNicArray") - @JsonPropertyDescription("array of ipmiNic objects") - private List ipmiNicArray = new ArrayList(); - /** - * array of ipmiPowerSupply objects - * - */ - @JsonProperty("ipmiPowerSupplyArray") - @JsonPropertyDescription("array of ipmiPowerSupply objects") - private List ipmiPowerSupplyArray = new ArrayList(); - /** - * array of ipmiProcessor objects - * - */ - @JsonProperty("ipmiProcessorArray") - @JsonPropertyDescription("array of ipmiProcessor objects") - private List ipmiProcessorArray = new ArrayList(); - /** - * airfflow in cubic feet per minute (cfm) - * - */ - @JsonProperty("systemAirflow") - @JsonPropertyDescription("airfflow in cubic feet per minute (cfm)") - private Double systemAirflow; - - /** - * system fan exit air flow temperature in celsius - * - */ - @JsonProperty("exitAirTemperature") - public Double getExitAirTemperature() { - return exitAirTemperature; - } - - /** - * system fan exit air flow temperature in celsius - * - */ - @JsonProperty("exitAirTemperature") - public void setExitAirTemperature(Double exitAirTemperature) { - this.exitAirTemperature = exitAirTemperature; - } - - /** - * front panel temperature in celsius - * - */ - @JsonProperty("frontPanelTemperature") - public Double getFrontPanelTemperature() { - return frontPanelTemperature; - } - - /** - * front panel temperature in celsius - * - */ - @JsonProperty("frontPanelTemperature") - public void setFrontPanelTemperature(Double frontPanelTemperature) { - this.frontPanelTemperature = frontPanelTemperature; - } - - /** - * io module temperature in celsius - * - */ - @JsonProperty("ioModuleTemperature") - public Double getIoModuleTemperature() { - return ioModuleTemperature; - } - - /** - * io module temperature in celsius - * - */ - @JsonProperty("ioModuleTemperature") - public void setIoModuleTemperature(Double ioModuleTemperature) { - this.ioModuleTemperature = ioModuleTemperature; - } - - /** - * array of ipmiBaseboardTemperature objects - * - */ - @JsonProperty("ipmiBaseboardTemperatureArray") - public List getIpmiBaseboardTemperatureArray() { - return ipmiBaseboardTemperatureArray; - } - - /** - * array of ipmiBaseboardTemperature objects - * - */ - @JsonProperty("ipmiBaseboardTemperatureArray") - public void setIpmiBaseboardTemperatureArray(List ipmiBaseboardTemperatureArray) { - this.ipmiBaseboardTemperatureArray = ipmiBaseboardTemperatureArray; - } - - /** - * array of ipmiBaseboardVoltageRegulator objects - * - */ - @JsonProperty("ipmiBaseboardVoltageRegulatorArray") - public List getIpmiBaseboardVoltageRegulatorArray() { - return ipmiBaseboardVoltageRegulatorArray; - } - - /** - * array of ipmiBaseboardVoltageRegulator objects - * - */ - @JsonProperty("ipmiBaseboardVoltageRegulatorArray") - public void setIpmiBaseboardVoltageRegulatorArray(List ipmiBaseboardVoltageRegulatorArray) { - this.ipmiBaseboardVoltageRegulatorArray = ipmiBaseboardVoltageRegulatorArray; - } - - /** - * array of ipmiBattery objects - * - */ - @JsonProperty("ipmiBatteryArray") - public List getIpmiBatteryArray() { - return ipmiBatteryArray; - } - - /** - * array of ipmiBattery objects - * - */ - @JsonProperty("ipmiBatteryArray") - public void setIpmiBatteryArray(List ipmiBatteryArray) { - this.ipmiBatteryArray = ipmiBatteryArray; - } - - /** - * array of ipmiFan objects - * - */ - @JsonProperty("ipmiFanArray") - public List getIpmiFanArray() { - return ipmiFanArray; - } - - /** - * array of ipmiFan objects - * - */ - @JsonProperty("ipmiFanArray") - public void setIpmiFanArray(List ipmiFanArray) { - this.ipmiFanArray = ipmiFanArray; - } - - /** - * array of ipmiHsbp objects - * - */ - @JsonProperty("ipmiHsbpArray") - public List getIpmiHsbpArray() { - return ipmiHsbpArray; - } - - /** - * array of ipmiHsbp objects - * - */ - @JsonProperty("ipmiHsbpArray") - public void setIpmiHsbpArray(List ipmiHsbpArray) { - this.ipmiHsbpArray = ipmiHsbpArray; - } - - /** - * array of ipmiGlobalAggregateTemperatureMargin objects - * - */ - @JsonProperty("ipmiGlobalAggregateTemperatureMarginArray") - public List getIpmiGlobalAggregateTemperatureMarginArray() { - return ipmiGlobalAggregateTemperatureMarginArray; - } - - /** - * array of ipmiGlobalAggregateTemperatureMargin objects - * - */ - @JsonProperty("ipmiGlobalAggregateTemperatureMarginArray") - public void setIpmiGlobalAggregateTemperatureMarginArray(List ipmiGlobalAggregateTemperatureMarginArray) { - this.ipmiGlobalAggregateTemperatureMarginArray = ipmiGlobalAggregateTemperatureMarginArray; - } - - /** - * array of ipmiNic objects - * - */ - @JsonProperty("ipmiNicArray") - public List getIpmiNicArray() { - return ipmiNicArray; - } - - /** - * array of ipmiNic objects - * - */ - @JsonProperty("ipmiNicArray") - public void setIpmiNicArray(List ipmiNicArray) { - this.ipmiNicArray = ipmiNicArray; - } - - /** - * array of ipmiPowerSupply objects - * - */ - @JsonProperty("ipmiPowerSupplyArray") - public List getIpmiPowerSupplyArray() { - return ipmiPowerSupplyArray; - } - - /** - * array of ipmiPowerSupply objects - * - */ - @JsonProperty("ipmiPowerSupplyArray") - public void setIpmiPowerSupplyArray(List ipmiPowerSupplyArray) { - this.ipmiPowerSupplyArray = ipmiPowerSupplyArray; - } - - /** - * array of ipmiProcessor objects - * - */ - @JsonProperty("ipmiProcessorArray") - public List getIpmiProcessorArray() { - return ipmiProcessorArray; - } - - /** - * array of ipmiProcessor objects - * - */ - @JsonProperty("ipmiProcessorArray") - public void setIpmiProcessorArray(List ipmiProcessorArray) { - this.ipmiProcessorArray = ipmiProcessorArray; - } - - /** - * airfflow in cubic feet per minute (cfm) - * - */ - @JsonProperty("systemAirflow") - public Double getSystemAirflow() { - return systemAirflow; - } - - /** - * airfflow in cubic feet per minute (cfm) - * - */ - @JsonProperty("systemAirflow") - public void setSystemAirflow(Double systemAirflow) { - this.systemAirflow = systemAirflow; - } - - @Override - public String toString() { - return ToStringBuilder.reflectionToString(this); - } - - @Override - public int hashCode() { - return new HashCodeBuilder().append(exitAirTemperature).append(frontPanelTemperature).append(ioModuleTemperature).append(ipmiBaseboardTemperatureArray).append(ipmiBaseboardVoltageRegulatorArray).append(ipmiBatteryArray).append(ipmiFanArray).append(ipmiHsbpArray).append(ipmiGlobalAggregateTemperatureMarginArray).append(ipmiNicArray).append(ipmiPowerSupplyArray).append(ipmiProcessorArray).append(systemAirflow).toHashCode(); - } - - @Override - public boolean equals(Object other) { - if (other == this) { - return true; - } - if ((other instanceof Ipmi) == false) { - return false; - } - Ipmi rhs = ((Ipmi) other); - return new EqualsBuilder().append(exitAirTemperature, rhs.exitAirTemperature).append(frontPanelTemperature, rhs.frontPanelTemperature).append(ioModuleTemperature, rhs.ioModuleTemperature).append(ipmiBaseboardTemperatureArray, rhs.ipmiBaseboardTemperatureArray).append(ipmiBaseboardVoltageRegulatorArray, rhs.ipmiBaseboardVoltageRegulatorArray).append(ipmiBatteryArray, rhs.ipmiBatteryArray).append(ipmiFanArray, rhs.ipmiFanArray).append(ipmiHsbpArray, rhs.ipmiHsbpArray).append(ipmiGlobalAggregateTemperatureMarginArray, rhs.ipmiGlobalAggregateTemperatureMarginArray).append(ipmiNicArray, rhs.ipmiNicArray).append(ipmiPowerSupplyArray, rhs.ipmiPowerSupplyArray).append(ipmiProcessorArray, rhs.ipmiProcessorArray).append(systemAirflow, rhs.systemAirflow).isEquals(); - } - -} diff --git a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/IpmiBaseboardTemperatureArray.java b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/IpmiBaseboardTemperatureArray.java deleted file mode 100644 index 1f492a8..0000000 --- a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/IpmiBaseboardTemperatureArray.java +++ /dev/null @@ -1,118 +0,0 @@ -/* -* ============LICENSE_START======================================================= -* ONAP : DCAE -* ================================================================================ -* Copyright 2018 TechMahindra -*================================================================================= -* 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========================================================= -*/ -package org.onap.dcaegen2.ves.domain.ves7_0; - -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyDescription; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import org.apache.commons.lang.builder.EqualsBuilder; -import org.apache.commons.lang.builder.HashCodeBuilder; -import org.apache.commons.lang.builder.ToStringBuilder; - - -/** - * intelligent platform management interface (ipmi) baseboard temperature metrics - * - */ -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonPropertyOrder({ - "baseboardTemperatureIdentifier", - "baseboardTemperature" -}) -public class IpmiBaseboardTemperatureArray { - - /** - * identifier for the location where the temperature is taken - * (Required) - * - */ - @JsonProperty("baseboardTemperatureIdentifier") - @JsonPropertyDescription("identifier for the location where the temperature is taken") - private String baseboardTemperatureIdentifier; - /** - * baseboard temperature in celsius - * - */ - @JsonProperty("baseboardTemperature") - @JsonPropertyDescription("baseboard temperature in celsius") - private Double baseboardTemperature; - - /** - * identifier for the location where the temperature is taken - * (Required) - * - */ - @JsonProperty("baseboardTemperatureIdentifier") - public String getBaseboardTemperatureIdentifier() { - return baseboardTemperatureIdentifier; - } - - /** - * identifier for the location where the temperature is taken - * (Required) - * - */ - @JsonProperty("baseboardTemperatureIdentifier") - public void setBaseboardTemperatureIdentifier(String baseboardTemperatureIdentifier) { - this.baseboardTemperatureIdentifier = baseboardTemperatureIdentifier; - } - - /** - * baseboard temperature in celsius - * - */ - @JsonProperty("baseboardTemperature") - public Double getBaseboardTemperature() { - return baseboardTemperature; - } - - /** - * baseboard temperature in celsius - * - */ - @JsonProperty("baseboardTemperature") - public void setBaseboardTemperature(Double baseboardTemperature) { - this.baseboardTemperature = baseboardTemperature; - } - - @Override - public String toString() { - return ToStringBuilder.reflectionToString(this); - } - - @Override - public int hashCode() { - return new HashCodeBuilder().append(baseboardTemperatureIdentifier).append(baseboardTemperature).toHashCode(); - } - - @Override - public boolean equals(Object other) { - if (other == this) { - return true; - } - if ((other instanceof IpmiBaseboardTemperatureArray) == false) { - return false; - } - IpmiBaseboardTemperatureArray rhs = ((IpmiBaseboardTemperatureArray) other); - return new EqualsBuilder().append(baseboardTemperatureIdentifier, rhs.baseboardTemperatureIdentifier).append(baseboardTemperature, rhs.baseboardTemperature).isEquals(); - } - -} diff --git a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/IpmiBaseboardVoltageRegulatorArray.java b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/IpmiBaseboardVoltageRegulatorArray.java deleted file mode 100644 index 0fce2d9..0000000 --- a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/IpmiBaseboardVoltageRegulatorArray.java +++ /dev/null @@ -1,118 +0,0 @@ -/* -* ============LICENSE_START======================================================= -* ONAP : DCAE -* ================================================================================ -* Copyright 2018 TechMahindra -*================================================================================= -* 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========================================================= -*/ -package org.onap.dcaegen2.ves.domain.ves7_0; - -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyDescription; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import org.apache.commons.lang.builder.EqualsBuilder; -import org.apache.commons.lang.builder.HashCodeBuilder; -import org.apache.commons.lang.builder.ToStringBuilder; - - -/** - * intelligent platform management interface (ipmi) baseboard voltage regulator metrics - * - */ -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonPropertyOrder({ - "baseboardVoltageRegulatorIdentifier", - "voltageRegulatorTemperature" -}) -public class IpmiBaseboardVoltageRegulatorArray { - - /** - * identifier for the baseboard voltage regulator - * (Required) - * - */ - @JsonProperty("baseboardVoltageRegulatorIdentifier") - @JsonPropertyDescription("identifier for the baseboard voltage regulator") - private String baseboardVoltageRegulatorIdentifier; - /** - * voltage regulator temperature in celsius - * - */ - @JsonProperty("voltageRegulatorTemperature") - @JsonPropertyDescription("voltage regulator temperature in celsius") - private Double voltageRegulatorTemperature; - - /** - * identifier for the baseboard voltage regulator - * (Required) - * - */ - @JsonProperty("baseboardVoltageRegulatorIdentifier") - public String getBaseboardVoltageRegulatorIdentifier() { - return baseboardVoltageRegulatorIdentifier; - } - - /** - * identifier for the baseboard voltage regulator - * (Required) - * - */ - @JsonProperty("baseboardVoltageRegulatorIdentifier") - public void setBaseboardVoltageRegulatorIdentifier(String baseboardVoltageRegulatorIdentifier) { - this.baseboardVoltageRegulatorIdentifier = baseboardVoltageRegulatorIdentifier; - } - - /** - * voltage regulator temperature in celsius - * - */ - @JsonProperty("voltageRegulatorTemperature") - public Double getVoltageRegulatorTemperature() { - return voltageRegulatorTemperature; - } - - /** - * voltage regulator temperature in celsius - * - */ - @JsonProperty("voltageRegulatorTemperature") - public void setVoltageRegulatorTemperature(Double voltageRegulatorTemperature) { - this.voltageRegulatorTemperature = voltageRegulatorTemperature; - } - - @Override - public String toString() { - return ToStringBuilder.reflectionToString(this); - } - - @Override - public int hashCode() { - return new HashCodeBuilder().append(baseboardVoltageRegulatorIdentifier).append(voltageRegulatorTemperature).toHashCode(); - } - - @Override - public boolean equals(Object other) { - if (other == this) { - return true; - } - if ((other instanceof IpmiBaseboardVoltageRegulatorArray) == false) { - return false; - } - IpmiBaseboardVoltageRegulatorArray rhs = ((IpmiBaseboardVoltageRegulatorArray) other); - return new EqualsBuilder().append(baseboardVoltageRegulatorIdentifier, rhs.baseboardVoltageRegulatorIdentifier).append(voltageRegulatorTemperature, rhs.voltageRegulatorTemperature).isEquals(); - } - -} diff --git a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/IpmiBatteryArray.java b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/IpmiBatteryArray.java deleted file mode 100644 index 6c9ab9a..0000000 --- a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/IpmiBatteryArray.java +++ /dev/null @@ -1,144 +0,0 @@ -/* -* ============LICENSE_START======================================================= -* ONAP : DCAE -* ================================================================================ -* Copyright 2018 TechMahindra -*================================================================================= -* 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========================================================= -*/ -package org.onap.dcaegen2.ves.domain.ves7_0; - -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyDescription; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import org.apache.commons.lang.builder.EqualsBuilder; -import org.apache.commons.lang.builder.HashCodeBuilder; -import org.apache.commons.lang.builder.ToStringBuilder; - - -/** - * intelligent platform management interface (ipmi) battery metrics - * - */ -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonPropertyOrder({ - "batteryIdentifier", - "batteryType", - "batteryVoltageLevel" -}) -public class IpmiBatteryArray { - - /** - * identifier for the battery - * (Required) - * - */ - @JsonProperty("batteryIdentifier") - @JsonPropertyDescription("identifier for the battery") - private String batteryIdentifier; - /** - * type of battery - * - */ - @JsonProperty("batteryType") - @JsonPropertyDescription("type of battery") - private String batteryType; - /** - * battery voltage level - * - */ - @JsonProperty("batteryVoltageLevel") - @JsonPropertyDescription("battery voltage level") - private Double batteryVoltageLevel; - - /** - * identifier for the battery - * (Required) - * - */ - @JsonProperty("batteryIdentifier") - public String getBatteryIdentifier() { - return batteryIdentifier; - } - - /** - * identifier for the battery - * (Required) - * - */ - @JsonProperty("batteryIdentifier") - public void setBatteryIdentifier(String batteryIdentifier) { - this.batteryIdentifier = batteryIdentifier; - } - - /** - * type of battery - * - */ - @JsonProperty("batteryType") - public String getBatteryType() { - return batteryType; - } - - /** - * type of battery - * - */ - @JsonProperty("batteryType") - public void setBatteryType(String batteryType) { - this.batteryType = batteryType; - } - - /** - * battery voltage level - * - */ - @JsonProperty("batteryVoltageLevel") - public Double getBatteryVoltageLevel() { - return batteryVoltageLevel; - } - - /** - * battery voltage level - * - */ - @JsonProperty("batteryVoltageLevel") - public void setBatteryVoltageLevel(Double batteryVoltageLevel) { - this.batteryVoltageLevel = batteryVoltageLevel; - } - - @Override - public String toString() { - return ToStringBuilder.reflectionToString(this); - } - - @Override - public int hashCode() { - return new HashCodeBuilder().append(batteryIdentifier).append(batteryType).append(batteryVoltageLevel).toHashCode(); - } - - @Override - public boolean equals(Object other) { - if (other == this) { - return true; - } - if ((other instanceof IpmiBatteryArray) == false) { - return false; - } - IpmiBatteryArray rhs = ((IpmiBatteryArray) other); - return new EqualsBuilder().append(batteryIdentifier, rhs.batteryIdentifier).append(batteryType, rhs.batteryType).append(batteryVoltageLevel, rhs.batteryVoltageLevel).isEquals(); - } - -} diff --git a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/IpmiFanArray.java b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/IpmiFanArray.java deleted file mode 100644 index c3af417..0000000 --- a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/IpmiFanArray.java +++ /dev/null @@ -1,118 +0,0 @@ -/* -* ============LICENSE_START======================================================= -* ONAP : DCAE -* ================================================================================ -* Copyright 2018 TechMahindra -*================================================================================= -* 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========================================================= -*/ -package org.onap.dcaegen2.ves.domain.ves7_0; - -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyDescription; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import org.apache.commons.lang.builder.EqualsBuilder; -import org.apache.commons.lang.builder.HashCodeBuilder; -import org.apache.commons.lang.builder.ToStringBuilder; - - -/** - * intelligent platform management interface (ipmi) fan metrics - * - */ -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonPropertyOrder({ - "fanIdentifier", - "fanSpeed" -}) -public class IpmiFanArray { - - /** - * identifier for the fan - * (Required) - * - */ - @JsonProperty("fanIdentifier") - @JsonPropertyDescription("identifier for the fan") - private String fanIdentifier; - /** - * fan speed in revolutions per minute (rpm) - * - */ - @JsonProperty("fanSpeed") - @JsonPropertyDescription("fan speed in revolutions per minute (rpm)") - private Double fanSpeed; - - /** - * identifier for the fan - * (Required) - * - */ - @JsonProperty("fanIdentifier") - public String getFanIdentifier() { - return fanIdentifier; - } - - /** - * identifier for the fan - * (Required) - * - */ - @JsonProperty("fanIdentifier") - public void setFanIdentifier(String fanIdentifier) { - this.fanIdentifier = fanIdentifier; - } - - /** - * fan speed in revolutions per minute (rpm) - * - */ - @JsonProperty("fanSpeed") - public Double getFanSpeed() { - return fanSpeed; - } - - /** - * fan speed in revolutions per minute (rpm) - * - */ - @JsonProperty("fanSpeed") - public void setFanSpeed(Double fanSpeed) { - this.fanSpeed = fanSpeed; - } - - @Override - public String toString() { - return ToStringBuilder.reflectionToString(this); - } - - @Override - public int hashCode() { - return new HashCodeBuilder().append(fanIdentifier).append(fanSpeed).toHashCode(); - } - - @Override - public boolean equals(Object other) { - if (other == this) { - return true; - } - if ((other instanceof IpmiFanArray) == false) { - return false; - } - IpmiFanArray rhs = ((IpmiFanArray) other); - return new EqualsBuilder().append(fanIdentifier, rhs.fanIdentifier).append(fanSpeed, rhs.fanSpeed).isEquals(); - } - -} diff --git a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/IpmiGlobalAggregateTemperatureMarginArray.java b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/IpmiGlobalAggregateTemperatureMarginArray.java deleted file mode 100644 index 8c80e35..0000000 --- a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/IpmiGlobalAggregateTemperatureMarginArray.java +++ /dev/null @@ -1,121 +0,0 @@ -/* -* ============LICENSE_START======================================================= -* ONAP : DCAE -* ================================================================================ -* Copyright 2018 TechMahindra -*================================================================================= -* 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========================================================= -*/ -package org.onap.dcaegen2.ves.domain.ves7_0; - -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyDescription; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import org.apache.commons.lang.builder.EqualsBuilder; -import org.apache.commons.lang.builder.HashCodeBuilder; -import org.apache.commons.lang.builder.ToStringBuilder; - - -/** - * intelligent platform management interface (ipmi) global aggregate temperature margin - * - */ -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonPropertyOrder({ - "ipmiGlobalAggregateTemperatureMarginIdentifier", - "globalAggregateTemperatureMargin" -}) -public class IpmiGlobalAggregateTemperatureMarginArray { - - /** - * identifier for the ipmi global aggregate temperature margin metrics - * (Required) - * - */ - @JsonProperty("ipmiGlobalAggregateTemperatureMarginIdentifier") - @JsonPropertyDescription("identifier for the ipmi global aggregate temperature margin metrics") - private String ipmiGlobalAggregateTemperatureMarginIdentifier; - /** - * the difference between the current global aggregate temperature, in celsius, and the global aggregate throttling thermal trip point - * (Required) - * - */ - @JsonProperty("globalAggregateTemperatureMargin") - @JsonPropertyDescription("the difference between the current global aggregate temperature, in celsius, and the global aggregate throttling thermal trip point") - private Double globalAggregateTemperatureMargin; - - /** - * identifier for the ipmi global aggregate temperature margin metrics - * (Required) - * - */ - @JsonProperty("ipmiGlobalAggregateTemperatureMarginIdentifier") - public String getIpmiGlobalAggregateTemperatureMarginIdentifier() { - return ipmiGlobalAggregateTemperatureMarginIdentifier; - } - - /** - * identifier for the ipmi global aggregate temperature margin metrics - * (Required) - * - */ - @JsonProperty("ipmiGlobalAggregateTemperatureMarginIdentifier") - public void setIpmiGlobalAggregateTemperatureMarginIdentifier(String ipmiGlobalAggregateTemperatureMarginIdentifier) { - this.ipmiGlobalAggregateTemperatureMarginIdentifier = ipmiGlobalAggregateTemperatureMarginIdentifier; - } - - /** - * the difference between the current global aggregate temperature, in celsius, and the global aggregate throttling thermal trip point - * (Required) - * - */ - @JsonProperty("globalAggregateTemperatureMargin") - public Double getGlobalAggregateTemperatureMargin() { - return globalAggregateTemperatureMargin; - } - - /** - * the difference between the current global aggregate temperature, in celsius, and the global aggregate throttling thermal trip point - * (Required) - * - */ - @JsonProperty("globalAggregateTemperatureMargin") - public void setGlobalAggregateTemperatureMargin(Double globalAggregateTemperatureMargin) { - this.globalAggregateTemperatureMargin = globalAggregateTemperatureMargin; - } - - @Override - public String toString() { - return ToStringBuilder.reflectionToString(this); - } - - @Override - public int hashCode() { - return new HashCodeBuilder().append(ipmiGlobalAggregateTemperatureMarginIdentifier).append(globalAggregateTemperatureMargin).toHashCode(); - } - - @Override - public boolean equals(Object other) { - if (other == this) { - return true; - } - if ((other instanceof IpmiGlobalAggregateTemperatureMarginArray) == false) { - return false; - } - IpmiGlobalAggregateTemperatureMarginArray rhs = ((IpmiGlobalAggregateTemperatureMarginArray) other); - return new EqualsBuilder().append(ipmiGlobalAggregateTemperatureMarginIdentifier, rhs.ipmiGlobalAggregateTemperatureMarginIdentifier).append(globalAggregateTemperatureMargin, rhs.globalAggregateTemperatureMargin).isEquals(); - } - -} diff --git a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/IpmiHsbpArray.java b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/IpmiHsbpArray.java deleted file mode 100644 index 751d486..0000000 --- a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/IpmiHsbpArray.java +++ /dev/null @@ -1,118 +0,0 @@ -/* -* ============LICENSE_START======================================================= -* ONAP : DCAE -* ================================================================================ -* Copyright 2018 TechMahindra -*================================================================================= -* 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========================================================= -*/ -package org.onap.dcaegen2.ves.domain.ves7_0; - -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyDescription; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import org.apache.commons.lang.builder.EqualsBuilder; -import org.apache.commons.lang.builder.HashCodeBuilder; -import org.apache.commons.lang.builder.ToStringBuilder; - - -/** - * intelligent platform management interface (ipmi) hot swap backplane power metrics - * - */ -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonPropertyOrder({ - "hsbpIdentifier", - "hsbpTemperature" -}) -public class IpmiHsbpArray { - - /** - * identifier for the hot swap backplane power unit - * (Required) - * - */ - @JsonProperty("hsbpIdentifier") - @JsonPropertyDescription("identifier for the hot swap backplane power unit") - private String hsbpIdentifier; - /** - * hot swap backplane power temperature in celsius - * - */ - @JsonProperty("hsbpTemperature") - @JsonPropertyDescription("hot swap backplane power temperature in celsius") - private Double hsbpTemperature; - - /** - * identifier for the hot swap backplane power unit - * (Required) - * - */ - @JsonProperty("hsbpIdentifier") - public String getHsbpIdentifier() { - return hsbpIdentifier; - } - - /** - * identifier for the hot swap backplane power unit - * (Required) - * - */ - @JsonProperty("hsbpIdentifier") - public void setHsbpIdentifier(String hsbpIdentifier) { - this.hsbpIdentifier = hsbpIdentifier; - } - - /** - * hot swap backplane power temperature in celsius - * - */ - @JsonProperty("hsbpTemperature") - public Double getHsbpTemperature() { - return hsbpTemperature; - } - - /** - * hot swap backplane power temperature in celsius - * - */ - @JsonProperty("hsbpTemperature") - public void setHsbpTemperature(Double hsbpTemperature) { - this.hsbpTemperature = hsbpTemperature; - } - - @Override - public String toString() { - return ToStringBuilder.reflectionToString(this); - } - - @Override - public int hashCode() { - return new HashCodeBuilder().append(hsbpIdentifier).append(hsbpTemperature).toHashCode(); - } - - @Override - public boolean equals(Object other) { - if (other == this) { - return true; - } - if ((other instanceof IpmiHsbpArray) == false) { - return false; - } - IpmiHsbpArray rhs = ((IpmiHsbpArray) other); - return new EqualsBuilder().append(hsbpIdentifier, rhs.hsbpIdentifier).append(hsbpTemperature, rhs.hsbpTemperature).isEquals(); - } - -} diff --git a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/IpmiNicArray.java b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/IpmiNicArray.java deleted file mode 100644 index ec84e99..0000000 --- a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/IpmiNicArray.java +++ /dev/null @@ -1,118 +0,0 @@ -/* -* ============LICENSE_START======================================================= -* ONAP : DCAE -* ================================================================================ -* Copyright 2018 TechMahindra -*================================================================================= -* 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========================================================= -*/ -package org.onap.dcaegen2.ves.domain.ves7_0; - -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyDescription; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import org.apache.commons.lang.builder.EqualsBuilder; -import org.apache.commons.lang.builder.HashCodeBuilder; -import org.apache.commons.lang.builder.ToStringBuilder; - - -/** - * intelligent platform management interface (ipmi) network interface control card (nic) metrics - * - */ -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonPropertyOrder({ - "nicIdentifier", - "nicTemperature" -}) -public class IpmiNicArray { - - /** - * identifier for the network interface control card - * (Required) - * - */ - @JsonProperty("nicIdentifier") - @JsonPropertyDescription("identifier for the network interface control card") - private String nicIdentifier; - /** - * nic temperature in celsius - * - */ - @JsonProperty("nicTemperature") - @JsonPropertyDescription("nic temperature in celsius") - private Double nicTemperature; - - /** - * identifier for the network interface control card - * (Required) - * - */ - @JsonProperty("nicIdentifier") - public String getNicIdentifier() { - return nicIdentifier; - } - - /** - * identifier for the network interface control card - * (Required) - * - */ - @JsonProperty("nicIdentifier") - public void setNicIdentifier(String nicIdentifier) { - this.nicIdentifier = nicIdentifier; - } - - /** - * nic temperature in celsius - * - */ - @JsonProperty("nicTemperature") - public Double getNicTemperature() { - return nicTemperature; - } - - /** - * nic temperature in celsius - * - */ - @JsonProperty("nicTemperature") - public void setNicTemperature(Double nicTemperature) { - this.nicTemperature = nicTemperature; - } - - @Override - public String toString() { - return ToStringBuilder.reflectionToString(this); - } - - @Override - public int hashCode() { - return new HashCodeBuilder().append(nicIdentifier).append(nicTemperature).toHashCode(); - } - - @Override - public boolean equals(Object other) { - if (other == this) { - return true; - } - if ((other instanceof IpmiNicArray) == false) { - return false; - } - IpmiNicArray rhs = ((IpmiNicArray) other); - return new EqualsBuilder().append(nicIdentifier, rhs.nicIdentifier).append(nicTemperature, rhs.nicTemperature).isEquals(); - } - -} diff --git a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/IpmiPowerSupplyArray.java b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/IpmiPowerSupplyArray.java deleted file mode 100644 index a78ba4a..0000000 --- a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/IpmiPowerSupplyArray.java +++ /dev/null @@ -1,170 +0,0 @@ -/* -* ============LICENSE_START======================================================= -* ONAP : DCAE -* ================================================================================ -* Copyright 2018 TechMahindra -*================================================================================= -* 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========================================================= -*/ -package org.onap.dcaegen2.ves.domain.ves7_0; - -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyDescription; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import org.apache.commons.lang.builder.EqualsBuilder; -import org.apache.commons.lang.builder.HashCodeBuilder; -import org.apache.commons.lang.builder.ToStringBuilder; - - -/** - * intelligent platform management interface (ipmi) power supply metrics - * - */ -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonPropertyOrder({ - "powerSupplyIdentifier", - "powerSupplyInputPower", - "powerSupplyCurrentOutputPercent", - "powerSupplyTemperature" -}) -public class IpmiPowerSupplyArray { - - /** - * identifier for the power supply - * (Required) - * - */ - @JsonProperty("powerSupplyIdentifier") - @JsonPropertyDescription("identifier for the power supply") - private String powerSupplyIdentifier; - /** - * input power in watts - * - */ - @JsonProperty("powerSupplyInputPower") - @JsonPropertyDescription("input power in watts") - private Double powerSupplyInputPower; - /** - * current output voltage as a percentage of the design specified level - * - */ - @JsonProperty("powerSupplyCurrentOutputPercent") - @JsonPropertyDescription("current output voltage as a percentage of the design specified level") - private Double powerSupplyCurrentOutputPercent; - /** - * power supply temperature in celsius - * - */ - @JsonProperty("powerSupplyTemperature") - @JsonPropertyDescription("power supply temperature in celsius") - private Double powerSupplyTemperature; - - /** - * identifier for the power supply - * (Required) - * - */ - @JsonProperty("powerSupplyIdentifier") - public String getPowerSupplyIdentifier() { - return powerSupplyIdentifier; - } - - /** - * identifier for the power supply - * (Required) - * - */ - @JsonProperty("powerSupplyIdentifier") - public void setPowerSupplyIdentifier(String powerSupplyIdentifier) { - this.powerSupplyIdentifier = powerSupplyIdentifier; - } - - /** - * input power in watts - * - */ - @JsonProperty("powerSupplyInputPower") - public Double getPowerSupplyInputPower() { - return powerSupplyInputPower; - } - - /** - * input power in watts - * - */ - @JsonProperty("powerSupplyInputPower") - public void setPowerSupplyInputPower(Double powerSupplyInputPower) { - this.powerSupplyInputPower = powerSupplyInputPower; - } - - /** - * current output voltage as a percentage of the design specified level - * - */ - @JsonProperty("powerSupplyCurrentOutputPercent") - public Double getPowerSupplyCurrentOutputPercent() { - return powerSupplyCurrentOutputPercent; - } - - /** - * current output voltage as a percentage of the design specified level - * - */ - @JsonProperty("powerSupplyCurrentOutputPercent") - public void setPowerSupplyCurrentOutputPercent(Double powerSupplyCurrentOutputPercent) { - this.powerSupplyCurrentOutputPercent = powerSupplyCurrentOutputPercent; - } - - /** - * power supply temperature in celsius - * - */ - @JsonProperty("powerSupplyTemperature") - public Double getPowerSupplyTemperature() { - return powerSupplyTemperature; - } - - /** - * power supply temperature in celsius - * - */ - @JsonProperty("powerSupplyTemperature") - public void setPowerSupplyTemperature(Double powerSupplyTemperature) { - this.powerSupplyTemperature = powerSupplyTemperature; - } - - @Override - public String toString() { - return ToStringBuilder.reflectionToString(this); - } - - @Override - public int hashCode() { - return new HashCodeBuilder().append(powerSupplyIdentifier).append(powerSupplyInputPower).append(powerSupplyCurrentOutputPercent).append(powerSupplyTemperature).toHashCode(); - } - - @Override - public boolean equals(Object other) { - if (other == this) { - return true; - } - if ((other instanceof IpmiPowerSupplyArray) == false) { - return false; - } - IpmiPowerSupplyArray rhs = ((IpmiPowerSupplyArray) other); - return new EqualsBuilder().append(powerSupplyIdentifier, rhs.powerSupplyIdentifier).append(powerSupplyInputPower, rhs.powerSupplyInputPower).append(powerSupplyCurrentOutputPercent, rhs.powerSupplyCurrentOutputPercent).append(powerSupplyTemperature, rhs.powerSupplyTemperature).isEquals(); - } - -} diff --git a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/IpmiProcessorArray.java b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/IpmiProcessorArray.java deleted file mode 100644 index e8733fe..0000000 --- a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/IpmiProcessorArray.java +++ /dev/null @@ -1,172 +0,0 @@ -/* -* ============LICENSE_START======================================================= -* ONAP : DCAE -* ================================================================================ -* Copyright 2018 TechMahindra -*================================================================================= -* 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========================================================= -*/ -package org.onap.dcaegen2.ves.domain.ves7_0; - -import java.util.ArrayList; -import java.util.List; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyDescription; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import org.apache.commons.lang.builder.EqualsBuilder; -import org.apache.commons.lang.builder.HashCodeBuilder; -import org.apache.commons.lang.builder.ToStringBuilder; - - -/** - * intelligent platform management interface processor metrics - * - */ -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonPropertyOrder({ - "processorIdentifier", - "processorThermalControlPercent", - "processorDtsThermalMargin", - "processorDimmAggregateThermalMarginArray" -}) -public class IpmiProcessorArray { - - /** - * identifier for an ipmi processor - * (Required) - * - */ - @JsonProperty("processorIdentifier") - @JsonPropertyDescription("identifier for an ipmi processor") - private String processorIdentifier; - /** - * io module temperature in celsius - * - */ - @JsonProperty("processorThermalControlPercent") - @JsonPropertyDescription("io module temperature in celsius") - private Double processorThermalControlPercent; - /** - * front panel temperature in celsius - * - */ - @JsonProperty("processorDtsThermalMargin") - @JsonPropertyDescription("front panel temperature in celsius") - private Double processorDtsThermalMargin; - /** - * array of processorDimmAggregateThermalMargin objects - * - */ - @JsonProperty("processorDimmAggregateThermalMarginArray") - @JsonPropertyDescription("array of processorDimmAggregateThermalMargin objects") - private List processorDimmAggregateThermalMarginArray = new ArrayList(); - - /** - * identifier for an ipmi processor - * (Required) - * - */ - @JsonProperty("processorIdentifier") - public String getProcessorIdentifier() { - return processorIdentifier; - } - - /** - * identifier for an ipmi processor - * (Required) - * - */ - @JsonProperty("processorIdentifier") - public void setProcessorIdentifier(String processorIdentifier) { - this.processorIdentifier = processorIdentifier; - } - - /** - * io module temperature in celsius - * - */ - @JsonProperty("processorThermalControlPercent") - public Double getProcessorThermalControlPercent() { - return processorThermalControlPercent; - } - - /** - * io module temperature in celsius - * - */ - @JsonProperty("processorThermalControlPercent") - public void setProcessorThermalControlPercent(Double processorThermalControlPercent) { - this.processorThermalControlPercent = processorThermalControlPercent; - } - - /** - * front panel temperature in celsius - * - */ - @JsonProperty("processorDtsThermalMargin") - public Double getProcessorDtsThermalMargin() { - return processorDtsThermalMargin; - } - - /** - * front panel temperature in celsius - * - */ - @JsonProperty("processorDtsThermalMargin") - public void setProcessorDtsThermalMargin(Double processorDtsThermalMargin) { - this.processorDtsThermalMargin = processorDtsThermalMargin; - } - - /** - * array of processorDimmAggregateThermalMargin objects - * - */ - @JsonProperty("processorDimmAggregateThermalMarginArray") - public List getProcessorDimmAggregateThermalMarginArray() { - return processorDimmAggregateThermalMarginArray; - } - - /** - * array of processorDimmAggregateThermalMargin objects - * - */ - @JsonProperty("processorDimmAggregateThermalMarginArray") - public void setProcessorDimmAggregateThermalMarginArray(List processorDimmAggregateThermalMarginArray) { - this.processorDimmAggregateThermalMarginArray = processorDimmAggregateThermalMarginArray; - } - - @Override - public String toString() { - return ToStringBuilder.reflectionToString(this); - } - - @Override - public int hashCode() { - return new HashCodeBuilder().append(processorIdentifier).append(processorThermalControlPercent).append(processorDtsThermalMargin).append(processorDimmAggregateThermalMarginArray).toHashCode(); - } - - @Override - public boolean equals(Object other) { - if (other == this) { - return true; - } - if ((other instanceof IpmiProcessorArray) == false) { - return false; - } - IpmiProcessorArray rhs = ((IpmiProcessorArray) other); - return new EqualsBuilder().append(processorIdentifier, rhs.processorIdentifier).append(processorThermalControlPercent, rhs.processorThermalControlPercent).append(processorDtsThermalMargin, rhs.processorDtsThermalMargin).append(processorDimmAggregateThermalMarginArray, rhs.processorDimmAggregateThermalMarginArray).isEquals(); - } - -} diff --git a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/LatencyDistribution.java b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/LatencyDistribution.java deleted file mode 100644 index 0ca44cd..0000000 --- a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/LatencyDistribution.java +++ /dev/null @@ -1,116 +0,0 @@ -/* -* ============LICENSE_START======================================================= -* ONAP : DCAE -* ================================================================================ -* Copyright 2018 TechMahindra -*================================================================================= -* 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========================================================= -*/ -package org.onap.dcaegen2.ves.domain.ves7_0; - -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import org.apache.commons.lang.builder.EqualsBuilder; -import org.apache.commons.lang.builder.HashCodeBuilder; -import org.apache.commons.lang.builder.ToStringBuilder; - - -/** - * number of counts falling within a defined latency bucket - * - */ -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonPropertyOrder({ - "countsInTheBucket", - "highEndOfLatencyBucket", - "lowEndOfLatencyBucket" -}) -public class LatencyDistribution { - - /** - * - * (Required) - * - */ - @JsonProperty("countsInTheBucket") - private Double countsInTheBucket; - @JsonProperty("highEndOfLatencyBucket") - private Double highEndOfLatencyBucket; - @JsonProperty("lowEndOfLatencyBucket") - private Double lowEndOfLatencyBucket; - - /** - * - * (Required) - * - */ - @JsonProperty("countsInTheBucket") - public Double getCountsInTheBucket() { - return countsInTheBucket; - } - - /** - * - * (Required) - * - */ - @JsonProperty("countsInTheBucket") - public void setCountsInTheBucket(Double countsInTheBucket) { - this.countsInTheBucket = countsInTheBucket; - } - - @JsonProperty("highEndOfLatencyBucket") - public Double getHighEndOfLatencyBucket() { - return highEndOfLatencyBucket; - } - - @JsonProperty("highEndOfLatencyBucket") - public void setHighEndOfLatencyBucket(Double highEndOfLatencyBucket) { - this.highEndOfLatencyBucket = highEndOfLatencyBucket; - } - - @JsonProperty("lowEndOfLatencyBucket") - public Double getLowEndOfLatencyBucket() { - return lowEndOfLatencyBucket; - } - - @JsonProperty("lowEndOfLatencyBucket") - public void setLowEndOfLatencyBucket(Double lowEndOfLatencyBucket) { - this.lowEndOfLatencyBucket = lowEndOfLatencyBucket; - } - - @Override - public String toString() { - return ToStringBuilder.reflectionToString(this); - } - - @Override - public int hashCode() { - return new HashCodeBuilder().append(countsInTheBucket).append(highEndOfLatencyBucket).append(lowEndOfLatencyBucket).toHashCode(); - } - - @Override - public boolean equals(Object other) { - if (other == this) { - return true; - } - if ((other instanceof LatencyDistribution) == false) { - return false; - } - LatencyDistribution rhs = ((LatencyDistribution) other); - return new EqualsBuilder().append(countsInTheBucket, rhs.countsInTheBucket).append(highEndOfLatencyBucket, rhs.highEndOfLatencyBucket).append(lowEndOfLatencyBucket, rhs.lowEndOfLatencyBucket).isEquals(); - } - -} diff --git a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/LoadArray.java b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/LoadArray.java deleted file mode 100644 index 00f5394..0000000 --- a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/LoadArray.java +++ /dev/null @@ -1,141 +0,0 @@ -/* -* ============LICENSE_START======================================================= -* ONAP : DCAE -* ================================================================================ -* Copyright 2018 TechMahindra -*================================================================================= -* 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========================================================= -*/ -package org.onap.dcaegen2.ves.domain.ves7_0; - -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyDescription; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import org.apache.commons.lang.builder.EqualsBuilder; -import org.apache.commons.lang.builder.HashCodeBuilder; -import org.apache.commons.lang.builder.ToStringBuilder; - - -/** - * /proc/loadavg cpu utilization and io utilization metrics - * - */ -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonPropertyOrder({ - "longTerm", - "midTerm", - "shortTerm" -}) -public class LoadArray { - - /** - * number of jobs in the run queue (state R, cpu utilization) or waiting for disk I/O (state D, io utilization) averaged over 15 minutes using /proc/loadavg - * - */ - @JsonProperty("longTerm") - @JsonPropertyDescription("number of jobs in the run queue (state R, cpu utilization) or waiting for disk I/O (state D, io utilization) averaged over 15 minutes using /proc/loadavg") - private Double longTerm; - /** - * number of jobs in the run queue (state R, cpu utilization) or waiting for disk I/O (state D, io utilization) averaged over 5 minutes using /proc/loadavg - * - */ - @JsonProperty("midTerm") - @JsonPropertyDescription("number of jobs in the run queue (state R, cpu utilization) or waiting for disk I/O (state D, io utilization) averaged over 5 minutes using /proc/loadavg") - private Double midTerm; - /** - * number of jobs in the run queue (state R, cpu utilization) or waiting for disk I/O (state D, io utilization) averaged over 1 minute using /proc/loadavg - * - */ - @JsonProperty("shortTerm") - @JsonPropertyDescription("number of jobs in the run queue (state R, cpu utilization) or waiting for disk I/O (state D, io utilization) averaged over 1 minute using /proc/loadavg") - private Double shortTerm; - - /** - * number of jobs in the run queue (state R, cpu utilization) or waiting for disk I/O (state D, io utilization) averaged over 15 minutes using /proc/loadavg - * - */ - @JsonProperty("longTerm") - public Double getLongTerm() { - return longTerm; - } - - /** - * number of jobs in the run queue (state R, cpu utilization) or waiting for disk I/O (state D, io utilization) averaged over 15 minutes using /proc/loadavg - * - */ - @JsonProperty("longTerm") - public void setLongTerm(Double longTerm) { - this.longTerm = longTerm; - } - - /** - * number of jobs in the run queue (state R, cpu utilization) or waiting for disk I/O (state D, io utilization) averaged over 5 minutes using /proc/loadavg - * - */ - @JsonProperty("midTerm") - public Double getMidTerm() { - return midTerm; - } - - /** - * number of jobs in the run queue (state R, cpu utilization) or waiting for disk I/O (state D, io utilization) averaged over 5 minutes using /proc/loadavg - * - */ - @JsonProperty("midTerm") - public void setMidTerm(Double midTerm) { - this.midTerm = midTerm; - } - - /** - * number of jobs in the run queue (state R, cpu utilization) or waiting for disk I/O (state D, io utilization) averaged over 1 minute using /proc/loadavg - * - */ - @JsonProperty("shortTerm") - public Double getShortTerm() { - return shortTerm; - } - - /** - * number of jobs in the run queue (state R, cpu utilization) or waiting for disk I/O (state D, io utilization) averaged over 1 minute using /proc/loadavg - * - */ - @JsonProperty("shortTerm") - public void setShortTerm(Double shortTerm) { - this.shortTerm = shortTerm; - } - - @Override - public String toString() { - return ToStringBuilder.reflectionToString(this); - } - - @Override - public int hashCode() { - return new HashCodeBuilder().append(longTerm).append(midTerm).append(shortTerm).toHashCode(); - } - - @Override - public boolean equals(Object other) { - if (other == this) { - return true; - } - if ((other instanceof LoadArray) == false) { - return false; - } - LoadArray rhs = ((LoadArray) other); - return new EqualsBuilder().append(longTerm, rhs.longTerm).append(midTerm, rhs.midTerm).append(shortTerm, rhs.shortTerm).isEquals(); - } - -} diff --git a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/MachineCheckExceptionArray.java b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/MachineCheckExceptionArray.java deleted file mode 100644 index fb8c075..0000000 --- a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/MachineCheckExceptionArray.java +++ /dev/null @@ -1,196 +0,0 @@ -/* -* ============LICENSE_START======================================================= -* ONAP : DCAE -* ================================================================================ -* Copyright 2018 TechMahindra -*================================================================================= -* 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========================================================= -*/ -package org.onap.dcaegen2.ves.domain.ves7_0; - -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyDescription; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import org.apache.commons.lang.builder.EqualsBuilder; -import org.apache.commons.lang.builder.HashCodeBuilder; -import org.apache.commons.lang.builder.ToStringBuilder; - - -/** - * metrics on vm machine check exceptions - * - */ -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonPropertyOrder({ - "correctedMemoryErrors", - "correctedMemoryErrorsIn1Hr", - "uncorrectedMemoryErrors", - "uncorrectedMemoryErrorsIn1Hr", - "vmIdentifier" -}) -public class MachineCheckExceptionArray { - - /** - * total hardware errors that were corrected by the hardware (e.g. data corruption corrected via ECC) over the measurementInterval - * - */ - @JsonProperty("correctedMemoryErrors") - @JsonPropertyDescription("total hardware errors that were corrected by the hardware (e.g. data corruption corrected via ECC) over the measurementInterval") - private Double correctedMemoryErrors; - /** - * total hardware errors that were corrected by the hardware over the last one hour - * - */ - @JsonProperty("correctedMemoryErrorsIn1Hr") - @JsonPropertyDescription("total hardware errors that were corrected by the hardware over the last one hour") - private Double correctedMemoryErrorsIn1Hr; - /** - * total uncorrected hardware errors that were detected by the hardware (e.g., causing data corruption) over the measurementInterval - * - */ - @JsonProperty("uncorrectedMemoryErrors") - @JsonPropertyDescription("total uncorrected hardware errors that were detected by the hardware (e.g., causing data corruption) over the measurementInterval") - private Double uncorrectedMemoryErrors; - /** - * total uncorrected hardware errors that were detected by the hardware over the last one hour - * - */ - @JsonProperty("uncorrectedMemoryErrorsIn1Hr") - @JsonPropertyDescription("total uncorrected hardware errors that were detected by the hardware over the last one hour") - private Double uncorrectedMemoryErrorsIn1Hr; - /** - * virtual machine identifier associated with the machine check exception - * (Required) - * - */ - @JsonProperty("vmIdentifier") - @JsonPropertyDescription("virtual machine identifier associated with the machine check exception") - private String vmIdentifier; - - /** - * total hardware errors that were corrected by the hardware (e.g. data corruption corrected via ECC) over the measurementInterval - * - */ - @JsonProperty("correctedMemoryErrors") - public Double getCorrectedMemoryErrors() { - return correctedMemoryErrors; - } - - /** - * total hardware errors that were corrected by the hardware (e.g. data corruption corrected via ECC) over the measurementInterval - * - */ - @JsonProperty("correctedMemoryErrors") - public void setCorrectedMemoryErrors(Double correctedMemoryErrors) { - this.correctedMemoryErrors = correctedMemoryErrors; - } - - /** - * total hardware errors that were corrected by the hardware over the last one hour - * - */ - @JsonProperty("correctedMemoryErrorsIn1Hr") - public Double getCorrectedMemoryErrorsIn1Hr() { - return correctedMemoryErrorsIn1Hr; - } - - /** - * total hardware errors that were corrected by the hardware over the last one hour - * - */ - @JsonProperty("correctedMemoryErrorsIn1Hr") - public void setCorrectedMemoryErrorsIn1Hr(Double correctedMemoryErrorsIn1Hr) { - this.correctedMemoryErrorsIn1Hr = correctedMemoryErrorsIn1Hr; - } - - /** - * total uncorrected hardware errors that were detected by the hardware (e.g., causing data corruption) over the measurementInterval - * - */ - @JsonProperty("uncorrectedMemoryErrors") - public Double getUncorrectedMemoryErrors() { - return uncorrectedMemoryErrors; - } - - /** - * total uncorrected hardware errors that were detected by the hardware (e.g., causing data corruption) over the measurementInterval - * - */ - @JsonProperty("uncorrectedMemoryErrors") - public void setUncorrectedMemoryErrors(Double uncorrectedMemoryErrors) { - this.uncorrectedMemoryErrors = uncorrectedMemoryErrors; - } - - /** - * total uncorrected hardware errors that were detected by the hardware over the last one hour - * - */ - @JsonProperty("uncorrectedMemoryErrorsIn1Hr") - public Double getUncorrectedMemoryErrorsIn1Hr() { - return uncorrectedMemoryErrorsIn1Hr; - } - - /** - * total uncorrected hardware errors that were detected by the hardware over the last one hour - * - */ - @JsonProperty("uncorrectedMemoryErrorsIn1Hr") - public void setUncorrectedMemoryErrorsIn1Hr(Double uncorrectedMemoryErrorsIn1Hr) { - this.uncorrectedMemoryErrorsIn1Hr = uncorrectedMemoryErrorsIn1Hr; - } - - /** - * virtual machine identifier associated with the machine check exception - * (Required) - * - */ - @JsonProperty("vmIdentifier") - public String getVmIdentifier() { - return vmIdentifier; - } - - /** - * virtual machine identifier associated with the machine check exception - * (Required) - * - */ - @JsonProperty("vmIdentifier") - public void setVmIdentifier(String vmIdentifier) { - this.vmIdentifier = vmIdentifier; - } - - @Override - public String toString() { - return ToStringBuilder.reflectionToString(this); - } - - @Override - public int hashCode() { - return new HashCodeBuilder().append(correctedMemoryErrors).append(correctedMemoryErrorsIn1Hr).append(uncorrectedMemoryErrors).append(uncorrectedMemoryErrorsIn1Hr).append(vmIdentifier).toHashCode(); - } - - @Override - public boolean equals(Object other) { - if (other == this) { - return true; - } - if ((other instanceof MachineCheckExceptionArray) == false) { - return false; - } - MachineCheckExceptionArray rhs = ((MachineCheckExceptionArray) other); - return new EqualsBuilder().append(correctedMemoryErrors, rhs.correctedMemoryErrors).append(correctedMemoryErrorsIn1Hr, rhs.correctedMemoryErrorsIn1Hr).append(uncorrectedMemoryErrors, rhs.uncorrectedMemoryErrors).append(uncorrectedMemoryErrorsIn1Hr, rhs.uncorrectedMemoryErrorsIn1Hr).append(vmIdentifier, rhs.vmIdentifier).isEquals(); - } - -} diff --git a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/MeasurementFields.java b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/MeasurementFields.java deleted file mode 100644 index 2c82fed..0000000 --- a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/MeasurementFields.java +++ /dev/null @@ -1,737 +0,0 @@ -/* -* ============LICENSE_START======================================================= -* ONAP : DCAE -* ================================================================================ -* Copyright 2018 TechMahindra -*================================================================================= -* 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========================================================= -*/ -package org.onap.dcaegen2.ves.domain.ves7_0; - -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyDescription; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonValue; -import org.apache.commons.lang.builder.EqualsBuilder; -import org.apache.commons.lang.builder.HashCodeBuilder; -import org.apache.commons.lang.builder.ToStringBuilder; - - -/** - * measurement fields - * - */ -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonPropertyOrder({ - "additionalFields", - "additionalMeasurements", - "additionalObjects", - "codecUsageArray", - "concurrentSessions", - "configuredEntities", - "cpuUsageArray", - "diskUsageArray", - "featureUsageArray", - "filesystemUsageArray", - "hugePagesArray", - "ipmi", - "latencyDistribution", - "loadArray", - "machineCheckExceptionArray", - "meanRequestLatency", - "measurementInterval", - "measurementFieldsVersion", - "memoryUsageArray", - "numberOfMediaPortsInUse", - "requestRate", - "nfcScalingMetric", - "nicPerformanceArray", - "processStatsArray" -}) -public class MeasurementFields { - - /** - * an associative array which is an array of key:value pairs - * - */ - @JsonProperty("additionalFields") - @JsonPropertyDescription("an associative array which is an array of key:value pairs") - private AlarmAdditionalInformation additionalFields; - /** - * array of named hashMaps - * - */ - @JsonProperty("additionalMeasurements") - @JsonPropertyDescription("array of named hashMaps") - private List additionalMeasurements = new ArrayList(); - /** - * array of json objects described by name, schema and other meta-information - * - */ - @JsonProperty("additionalObjects") - @JsonPropertyDescription("array of json objects described by name, schema and other meta-information") - private List additionalObjects = new ArrayList(); - /** - * array of codecs in use - * - */ - @JsonProperty("codecUsageArray") - @JsonPropertyDescription("array of codecs in use") - private List codecUsageArray = new ArrayList(); - /** - * peak concurrent sessions for the VM or xNF over the measurementInterval - * - */ - @JsonProperty("concurrentSessions") - @JsonPropertyDescription("peak concurrent sessions for the VM or xNF over the measurementInterval") - private Integer concurrentSessions; - /** - * over the measurementInterval, peak total number of: users, subscribers, devices, adjacencies, etc., for the VM, or subscribers, devices, etc., for the xNF - * - */ - @JsonProperty("configuredEntities") - @JsonPropertyDescription("over the measurementInterval, peak total number of: users, subscribers, devices, adjacencies, etc., for the VM, or subscribers, devices, etc., for the xNF") - private Integer configuredEntities; - /** - * usage of an array of CPUs - * - */ - @JsonProperty("cpuUsageArray") - @JsonPropertyDescription("usage of an array of CPUs") - private List cpuUsageArray = new ArrayList(); - /** - * usage of an array of disks - * - */ - @JsonProperty("diskUsageArray") - @JsonPropertyDescription("usage of an array of disks") - private List diskUsageArray = new ArrayList(); - /** - * an associative array which is an array of key:value pairs - * - */ - @JsonProperty("featureUsageArray") - @JsonPropertyDescription("an associative array which is an array of key:value pairs") - private AlarmAdditionalInformation featureUsageArray; - /** - * filesystem usage of the VM on which the xNFC reporting the event is running - * - */ - @JsonProperty("filesystemUsageArray") - @JsonPropertyDescription("filesystem usage of the VM on which the xNFC reporting the event is running") - private List filesystemUsageArray = new ArrayList(); - /** - * array of metrics on hugepPages - * - */ - @JsonProperty("hugePagesArray") - @JsonPropertyDescription("array of metrics on hugepPages") - private List hugePagesArray = new ArrayList(); - /** - * intelligent platform management interface metrics - * - */ - @JsonProperty("ipmi") - @JsonPropertyDescription("intelligent platform management interface metrics") - private Ipmi ipmi; - /** - * array of integers representing counts of requests whose latency in milliseconds falls within per-xNF configured ranges - * - */ - @JsonProperty("latencyDistribution") - @JsonPropertyDescription("array of integers representing counts of requests whose latency in milliseconds falls within per-xNF configured ranges") - private List latencyDistribution = new ArrayList(); - /** - * array of system load metrics - * - */ - @JsonProperty("loadArray") - @JsonPropertyDescription("array of system load metrics") - private List loadArray = new ArrayList(); - /** - * array of machine check exceptions - * - */ - @JsonProperty("machineCheckExceptionArray") - @JsonPropertyDescription("array of machine check exceptions") - private List machineCheckExceptionArray = new ArrayList(); - /** - * mean seconds required to respond to each request for the VM on which the xNFC reporting the event is running - * - */ - @JsonProperty("meanRequestLatency") - @JsonPropertyDescription("mean seconds required to respond to each request for the VM on which the xNFC reporting the event is running") - private Double meanRequestLatency; - /** - * interval over which measurements are being reported in seconds - * (Required) - * - */ - @JsonProperty("measurementInterval") - @JsonPropertyDescription("interval over which measurements are being reported in seconds") - private Double measurementInterval; - /** - * version of the measurementFields block - * (Required) - * - */ - @JsonProperty("measurementFieldsVersion") - @JsonPropertyDescription("version of the measurementFields block") - private MeasurementFields.MeasurementFieldsVersion measurementFieldsVersion; - /** - * memory usage of an array of VMs - * - */ - @JsonProperty("memoryUsageArray") - @JsonPropertyDescription("memory usage of an array of VMs") - private List memoryUsageArray = new ArrayList(); - /** - * number of media ports in use - * - */ - @JsonProperty("numberOfMediaPortsInUse") - @JsonPropertyDescription("number of media ports in use") - private Integer numberOfMediaPortsInUse; - /** - * peak rate of service requests per second to the xNF over the measurementInterval - * - */ - @JsonProperty("requestRate") - @JsonPropertyDescription("peak rate of service requests per second to the xNF over the measurementInterval") - private Double requestRate; - /** - * represents busy-ness of the network function from 0 to 100 as reported by the xNFC - * - */ - @JsonProperty("nfcScalingMetric") - @JsonPropertyDescription("represents busy-ness of the network function from 0 to 100 as reported by the xNFC") - private Integer nfcScalingMetric; - /** - * usage of an array of network interface cards - * - */ - @JsonProperty("nicPerformanceArray") - @JsonPropertyDescription("usage of an array of network interface cards") - private List nicPerformanceArray = new ArrayList(); - /** - * array of metrics on system processes - * - */ - @JsonProperty("processStatsArray") - @JsonPropertyDescription("array of metrics on system processes") - private List processStatsArray = new ArrayList(); - - /** - * an associative array which is an array of key:value pairs - * - */ - @JsonProperty("additionalFields") - public AlarmAdditionalInformation getAdditionalFields() { - return additionalFields; - } - - /** - * an associative array which is an array of key:value pairs - * - */ - @JsonProperty("additionalFields") - public void setAdditionalFields(AlarmAdditionalInformation additionalFields) { - this.additionalFields = additionalFields; - } - - /** - * array of named hashMaps - * - */ - @JsonProperty("additionalMeasurements") - public List getAdditionalMeasurements() { - return additionalMeasurements; - } - - /** - * array of named hashMaps - * - */ - @JsonProperty("additionalMeasurements") - public void setAdditionalMeasurements(List additionalMeasurements) { - this.additionalMeasurements = additionalMeasurements; - } - - /** - * array of json objects described by name, schema and other meta-information - * - */ - @JsonProperty("additionalObjects") - public List getAdditionalObjects() { - return additionalObjects; - } - - /** - * array of json objects described by name, schema and other meta-information - * - */ - @JsonProperty("additionalObjects") - public void setAdditionalObjects(List additionalObjects) { - this.additionalObjects = additionalObjects; - } - - /** - * array of codecs in use - * - */ - @JsonProperty("codecUsageArray") - public List getCodecUsageArray() { - return codecUsageArray; - } - - /** - * array of codecs in use - * - */ - @JsonProperty("codecUsageArray") - public void setCodecUsageArray(List codecUsageArray) { - this.codecUsageArray = codecUsageArray; - } - - /** - * peak concurrent sessions for the VM or xNF over the measurementInterval - * - */ - @JsonProperty("concurrentSessions") - public Integer getConcurrentSessions() { - return concurrentSessions; - } - - /** - * peak concurrent sessions for the VM or xNF over the measurementInterval - * - */ - @JsonProperty("concurrentSessions") - public void setConcurrentSessions(Integer concurrentSessions) { - this.concurrentSessions = concurrentSessions; - } - - /** - * over the measurementInterval, peak total number of: users, subscribers, devices, adjacencies, etc., for the VM, or subscribers, devices, etc., for the xNF - * - */ - @JsonProperty("configuredEntities") - public Integer getConfiguredEntities() { - return configuredEntities; - } - - /** - * over the measurementInterval, peak total number of: users, subscribers, devices, adjacencies, etc., for the VM, or subscribers, devices, etc., for the xNF - * - */ - @JsonProperty("configuredEntities") - public void setConfiguredEntities(Integer configuredEntities) { - this.configuredEntities = configuredEntities; - } - - /** - * usage of an array of CPUs - * - */ - @JsonProperty("cpuUsageArray") - public List getCpuUsageArray() { - return cpuUsageArray; - } - - /** - * usage of an array of CPUs - * - */ - @JsonProperty("cpuUsageArray") - public void setCpuUsageArray(List cpuUsageArray) { - this.cpuUsageArray = cpuUsageArray; - } - - /** - * usage of an array of disks - * - */ - @JsonProperty("diskUsageArray") - public List getDiskUsageArray() { - return diskUsageArray; - } - - /** - * usage of an array of disks - * - */ - @JsonProperty("diskUsageArray") - public void setDiskUsageArray(List diskUsageArray) { - this.diskUsageArray = diskUsageArray; - } - - /** - * an associative array which is an array of key:value pairs - * - */ - @JsonProperty("featureUsageArray") - public AlarmAdditionalInformation getFeatureUsageArray() { - return featureUsageArray; - } - - /** - * an associative array which is an array of key:value pairs - * - */ - @JsonProperty("featureUsageArray") - public void setFeatureUsageArray(AlarmAdditionalInformation featureUsageArray) { - this.featureUsageArray = featureUsageArray; - } - - /** - * filesystem usage of the VM on which the xNFC reporting the event is running - * - */ - @JsonProperty("filesystemUsageArray") - public List getFilesystemUsageArray() { - return filesystemUsageArray; - } - - /** - * filesystem usage of the VM on which the xNFC reporting the event is running - * - */ - @JsonProperty("filesystemUsageArray") - public void setFilesystemUsageArray(List filesystemUsageArray) { - this.filesystemUsageArray = filesystemUsageArray; - } - - /** - * array of metrics on hugepPages - * - */ - @JsonProperty("hugePagesArray") - public List getHugePagesArray() { - return hugePagesArray; - } - - /** - * array of metrics on hugepPages - * - */ - @JsonProperty("hugePagesArray") - public void setHugePagesArray(List hugePagesArray) { - this.hugePagesArray = hugePagesArray; - } - - /** - * intelligent platform management interface metrics - * - */ - @JsonProperty("ipmi") - public Ipmi getIpmi() { - return ipmi; - } - - /** - * intelligent platform management interface metrics - * - */ - @JsonProperty("ipmi") - public void setIpmi(Ipmi ipmi) { - this.ipmi = ipmi; - } - - /** - * array of integers representing counts of requests whose latency in milliseconds falls within per-xNF configured ranges - * - */ - @JsonProperty("latencyDistribution") - public List getLatencyDistribution() { - return latencyDistribution; - } - - /** - * array of integers representing counts of requests whose latency in milliseconds falls within per-xNF configured ranges - * - */ - @JsonProperty("latencyDistribution") - public void setLatencyDistribution(List latencyDistribution) { - this.latencyDistribution = latencyDistribution; - } - - /** - * array of system load metrics - * - */ - @JsonProperty("loadArray") - public List getLoadArray() { - return loadArray; - } - - /** - * array of system load metrics - * - */ - @JsonProperty("loadArray") - public void setLoadArray(List loadArray) { - this.loadArray = loadArray; - } - - /** - * array of machine check exceptions - * - */ - @JsonProperty("machineCheckExceptionArray") - public List getMachineCheckExceptionArray() { - return machineCheckExceptionArray; - } - - /** - * array of machine check exceptions - * - */ - @JsonProperty("machineCheckExceptionArray") - public void setMachineCheckExceptionArray(List machineCheckExceptionArray) { - this.machineCheckExceptionArray = machineCheckExceptionArray; - } - - /** - * mean seconds required to respond to each request for the VM on which the xNFC reporting the event is running - * - */ - @JsonProperty("meanRequestLatency") - public Double getMeanRequestLatency() { - return meanRequestLatency; - } - - /** - * mean seconds required to respond to each request for the VM on which the xNFC reporting the event is running - * - */ - @JsonProperty("meanRequestLatency") - public void setMeanRequestLatency(Double meanRequestLatency) { - this.meanRequestLatency = meanRequestLatency; - } - - /** - * interval over which measurements are being reported in seconds - * (Required) - * - */ - @JsonProperty("measurementInterval") - public Double getMeasurementInterval() { - return measurementInterval; - } - - /** - * interval over which measurements are being reported in seconds - * (Required) - * - */ - @JsonProperty("measurementInterval") - public void setMeasurementInterval(Double measurementInterval) { - this.measurementInterval = measurementInterval; - } - - /** - * version of the measurementFields block - * (Required) - * - */ - @JsonProperty("measurementFieldsVersion") - public MeasurementFields.MeasurementFieldsVersion getMeasurementFieldsVersion() { - return measurementFieldsVersion; - } - - /** - * version of the measurementFields block - * (Required) - * - */ - @JsonProperty("measurementFieldsVersion") - public void setMeasurementFieldsVersion(MeasurementFields.MeasurementFieldsVersion measurementFieldsVersion) { - this.measurementFieldsVersion = measurementFieldsVersion; - } - - /** - * memory usage of an array of VMs - * - */ - @JsonProperty("memoryUsageArray") - public List getMemoryUsageArray() { - return memoryUsageArray; - } - - /** - * memory usage of an array of VMs - * - */ - @JsonProperty("memoryUsageArray") - public void setMemoryUsageArray(List memoryUsageArray) { - this.memoryUsageArray = memoryUsageArray; - } - - /** - * number of media ports in use - * - */ - @JsonProperty("numberOfMediaPortsInUse") - public Integer getNumberOfMediaPortsInUse() { - return numberOfMediaPortsInUse; - } - - /** - * number of media ports in use - * - */ - @JsonProperty("numberOfMediaPortsInUse") - public void setNumberOfMediaPortsInUse(Integer numberOfMediaPortsInUse) { - this.numberOfMediaPortsInUse = numberOfMediaPortsInUse; - } - - /** - * peak rate of service requests per second to the xNF over the measurementInterval - * - */ - @JsonProperty("requestRate") - public Double getRequestRate() { - return requestRate; - } - - /** - * peak rate of service requests per second to the xNF over the measurementInterval - * - */ - @JsonProperty("requestRate") - public void setRequestRate(Double requestRate) { - this.requestRate = requestRate; - } - - /** - * represents busy-ness of the network function from 0 to 100 as reported by the xNFC - * - */ - @JsonProperty("nfcScalingMetric") - public Integer getNfcScalingMetric() { - return nfcScalingMetric; - } - - /** - * represents busy-ness of the network function from 0 to 100 as reported by the xNFC - * - */ - @JsonProperty("nfcScalingMetric") - public void setNfcScalingMetric(Integer nfcScalingMetric) { - this.nfcScalingMetric = nfcScalingMetric; - } - - /** - * usage of an array of network interface cards - * - */ - @JsonProperty("nicPerformanceArray") - public List getNicPerformanceArray() { - return nicPerformanceArray; - } - - /** - * usage of an array of network interface cards - * - */ - @JsonProperty("nicPerformanceArray") - public void setNicPerformanceArray(List nicPerformanceArray) { - this.nicPerformanceArray = nicPerformanceArray; - } - - /** - * array of metrics on system processes - * - */ - @JsonProperty("processStatsArray") - public List getProcessStatsArray() { - return processStatsArray; - } - - /** - * array of metrics on system processes - * - */ - @JsonProperty("processStatsArray") - public void setProcessStatsArray(List processStatsArray) { - this.processStatsArray = processStatsArray; - } - - @Override - public String toString() { - return ToStringBuilder.reflectionToString(this); - } - - @Override - public int hashCode() { - return new HashCodeBuilder().append(additionalFields).append(additionalMeasurements).append(additionalObjects).append(codecUsageArray).append(concurrentSessions).append(configuredEntities).append(cpuUsageArray).append(diskUsageArray).append(featureUsageArray).append(filesystemUsageArray).append(hugePagesArray).append(ipmi).append(latencyDistribution).append(loadArray).append(machineCheckExceptionArray).append(meanRequestLatency).append(measurementInterval).append(measurementFieldsVersion).append(memoryUsageArray).append(numberOfMediaPortsInUse).append(requestRate).append(nfcScalingMetric).append(nicPerformanceArray).append(processStatsArray).toHashCode(); - } - - @Override - public boolean equals(Object other) { - if (other == this) { - return true; - } - if ((other instanceof MeasurementFields) == false) { - return false; - } - MeasurementFields rhs = ((MeasurementFields) other); - return new EqualsBuilder().append(additionalFields, rhs.additionalFields).append(additionalMeasurements, rhs.additionalMeasurements).append(additionalObjects, rhs.additionalObjects).append(codecUsageArray, rhs.codecUsageArray).append(concurrentSessions, rhs.concurrentSessions).append(configuredEntities, rhs.configuredEntities).append(cpuUsageArray, rhs.cpuUsageArray).append(diskUsageArray, rhs.diskUsageArray).append(featureUsageArray, rhs.featureUsageArray).append(filesystemUsageArray, rhs.filesystemUsageArray).append(hugePagesArray, rhs.hugePagesArray).append(ipmi, rhs.ipmi).append(latencyDistribution, rhs.latencyDistribution).append(loadArray, rhs.loadArray).append(machineCheckExceptionArray, rhs.machineCheckExceptionArray).append(meanRequestLatency, rhs.meanRequestLatency).append(measurementInterval, rhs.measurementInterval).append(measurementFieldsVersion, rhs.measurementFieldsVersion).append(memoryUsageArray, rhs.memoryUsageArray).append(numberOfMediaPortsInUse, rhs.numberOfMediaPortsInUse).append(requestRate, rhs.requestRate).append(nfcScalingMetric, rhs.nfcScalingMetric).append(nicPerformanceArray, rhs.nicPerformanceArray).append(processStatsArray, rhs.processStatsArray).isEquals(); - } - - public enum MeasurementFieldsVersion { - - _4_0("4.0"); - private final String value; - private final static Map CONSTANTS = new HashMap(); - - static { - for (MeasurementFields.MeasurementFieldsVersion c: values()) { - CONSTANTS.put(c.value, c); - } - } - - private MeasurementFieldsVersion(String value) { - this.value = value; - } - - @Override - public String toString() { - return this.value; - } - - @JsonValue - public String value() { - return this.value; - } - - @JsonCreator - public static MeasurementFields.MeasurementFieldsVersion fromValue(String value) { - MeasurementFields.MeasurementFieldsVersion constant = CONSTANTS.get(value); - if (constant == null) { - throw new IllegalArgumentException(value); - } else { - return constant; - } - } - - } - -} diff --git a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/MemoryUsageArray.java b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/MemoryUsageArray.java deleted file mode 100644 index 39f9ea9..0000000 --- a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/MemoryUsageArray.java +++ /dev/null @@ -1,514 +0,0 @@ -/* -* ============LICENSE_START======================================================= -* ONAP : DCAE -* ================================================================================ -* Copyright 2018 TechMahindra -*================================================================================= -* 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========================================================= -*/ -package org.onap.dcaegen2.ves.domain.ves7_0; - -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyDescription; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import org.apache.commons.lang.builder.EqualsBuilder; -import org.apache.commons.lang.builder.HashCodeBuilder; -import org.apache.commons.lang.builder.ToStringBuilder; - - -/** - * memory usage of an identified virtual machine - * - */ -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonPropertyOrder({ - "memoryBuffered", - "memoryCached", - "memoryConfigured", - "memoryDemand", - "memoryFree", - "memoryLatencyAvg", - "memorySharedAvg", - "memorySlabRecl", - "memorySlabUnrecl", - "memorySwapInAvg", - "memorySwapInRateAvg", - "memorySwapOutAvg", - "memorySwapOutRateAvg", - "memorySwapUsedAvg", - "memoryUsed", - "percentMemoryUsage", - "vmIdentifier" -}) -public class MemoryUsageArray { - - /** - * kibibytes of temporary storage for raw disk blocks - * - */ - @JsonProperty("memoryBuffered") - @JsonPropertyDescription("kibibytes of temporary storage for raw disk blocks") - private Double memoryBuffered; - /** - * kibibytes of memory used for cache - * - */ - @JsonProperty("memoryCached") - @JsonPropertyDescription("kibibytes of memory used for cache") - private Double memoryCached; - /** - * kibibytes of memory configured in the virtual machine on which the xNFC reporting the event is running - * - */ - @JsonProperty("memoryConfigured") - @JsonPropertyDescription("kibibytes of memory configured in the virtual machine on which the xNFC reporting the event is running") - private Double memoryConfigured; - /** - * host demand in kibibytes - * - */ - @JsonProperty("memoryDemand") - @JsonPropertyDescription("host demand in kibibytes") - private Double memoryDemand; - /** - * kibibytes of physical RAM left unused by the system - * (Required) - * - */ - @JsonProperty("memoryFree") - @JsonPropertyDescription("kibibytes of physical RAM left unused by the system") - private Double memoryFree; - /** - * Percentage of time the VM is waiting to access swapped or compressed memory - * - */ - @JsonProperty("memoryLatencyAvg") - @JsonPropertyDescription("Percentage of time the VM is waiting to access swapped or compressed memory") - private Double memoryLatencyAvg; - /** - * shared memory in kilobytes - * - */ - @JsonProperty("memorySharedAvg") - @JsonPropertyDescription("shared memory in kilobytes") - private Double memorySharedAvg; - /** - * the part of the slab that can be reclaimed such as caches measured in kibibytes - * - */ - @JsonProperty("memorySlabRecl") - @JsonPropertyDescription("the part of the slab that can be reclaimed such as caches measured in kibibytes") - private Double memorySlabRecl; - /** - * the part of the slab that cannot be reclaimed even when lacking memory measured in kibibytes - * - */ - @JsonProperty("memorySlabUnrecl") - @JsonPropertyDescription("the part of the slab that cannot be reclaimed even when lacking memory measured in kibibytes") - private Double memorySlabUnrecl; - /** - * Amount of memory swapped-in from host cache in kibibytes - * - */ - @JsonProperty("memorySwapInAvg") - @JsonPropertyDescription("Amount of memory swapped-in from host cache in kibibytes") - private Double memorySwapInAvg; - /** - * rate at which memory is swapped from disk into active memory during the interval in kilobytes per second - * - */ - @JsonProperty("memorySwapInRateAvg") - @JsonPropertyDescription("rate at which memory is swapped from disk into active memory during the interval in kilobytes per second") - private Double memorySwapInRateAvg; - /** - * Amount of memory swapped-out to host cache in kibibytes - * - */ - @JsonProperty("memorySwapOutAvg") - @JsonPropertyDescription("Amount of memory swapped-out to host cache in kibibytes") - private Double memorySwapOutAvg; - /** - * rate at which memory is being swapped from active memory to disk during the current interval in kilobytes per second - * - */ - @JsonProperty("memorySwapOutRateAvg") - @JsonPropertyDescription("rate at which memory is being swapped from active memory to disk during the current interval in kilobytes per second") - private Double memorySwapOutRateAvg; - /** - * space used for caching swapped pages in the host cache in kibibytes - * - */ - @JsonProperty("memorySwapUsedAvg") - @JsonPropertyDescription("space used for caching swapped pages in the host cache in kibibytes") - private Double memorySwapUsedAvg; - /** - * total memory minus the sum of free, buffered, cached and slab memory measured in kibibytes - * (Required) - * - */ - @JsonProperty("memoryUsed") - @JsonPropertyDescription("total memory minus the sum of free, buffered, cached and slab memory measured in kibibytes") - private Double memoryUsed; - /** - * Percentage of memory usage; value = (memoryUsed / (memoryUsed + memoryFree) x 100 if denomintor is nonzero, or 0, if otherwise - * - */ - @JsonProperty("percentMemoryUsage") - @JsonPropertyDescription("Percentage of memory usage; value = (memoryUsed / (memoryUsed + memoryFree) x 100 if denomintor is nonzero, or 0, if otherwise") - private Double percentMemoryUsage; - /** - * virtual machine identifier associated with the memory metrics - * (Required) - * - */ - @JsonProperty("vmIdentifier") - @JsonPropertyDescription("virtual machine identifier associated with the memory metrics") - private String vmIdentifier; - - /** - * kibibytes of temporary storage for raw disk blocks - * - */ - @JsonProperty("memoryBuffered") - public Double getMemoryBuffered() { - return memoryBuffered; - } - - /** - * kibibytes of temporary storage for raw disk blocks - * - */ - @JsonProperty("memoryBuffered") - public void setMemoryBuffered(Double memoryBuffered) { - this.memoryBuffered = memoryBuffered; - } - - /** - * kibibytes of memory used for cache - * - */ - @JsonProperty("memoryCached") - public Double getMemoryCached() { - return memoryCached; - } - - /** - * kibibytes of memory used for cache - * - */ - @JsonProperty("memoryCached") - public void setMemoryCached(Double memoryCached) { - this.memoryCached = memoryCached; - } - - /** - * kibibytes of memory configured in the virtual machine on which the xNFC reporting the event is running - * - */ - @JsonProperty("memoryConfigured") - public Double getMemoryConfigured() { - return memoryConfigured; - } - - /** - * kibibytes of memory configured in the virtual machine on which the xNFC reporting the event is running - * - */ - @JsonProperty("memoryConfigured") - public void setMemoryConfigured(Double memoryConfigured) { - this.memoryConfigured = memoryConfigured; - } - - /** - * host demand in kibibytes - * - */ - @JsonProperty("memoryDemand") - public Double getMemoryDemand() { - return memoryDemand; - } - - /** - * host demand in kibibytes - * - */ - @JsonProperty("memoryDemand") - public void setMemoryDemand(Double memoryDemand) { - this.memoryDemand = memoryDemand; - } - - /** - * kibibytes of physical RAM left unused by the system - * (Required) - * - */ - @JsonProperty("memoryFree") - public Double getMemoryFree() { - return memoryFree; - } - - /** - * kibibytes of physical RAM left unused by the system - * (Required) - * - */ - @JsonProperty("memoryFree") - public void setMemoryFree(Double memoryFree) { - this.memoryFree = memoryFree; - } - - /** - * Percentage of time the VM is waiting to access swapped or compressed memory - * - */ - @JsonProperty("memoryLatencyAvg") - public Double getMemoryLatencyAvg() { - return memoryLatencyAvg; - } - - /** - * Percentage of time the VM is waiting to access swapped or compressed memory - * - */ - @JsonProperty("memoryLatencyAvg") - public void setMemoryLatencyAvg(Double memoryLatencyAvg) { - this.memoryLatencyAvg = memoryLatencyAvg; - } - - /** - * shared memory in kilobytes - * - */ - @JsonProperty("memorySharedAvg") - public Double getMemorySharedAvg() { - return memorySharedAvg; - } - - /** - * shared memory in kilobytes - * - */ - @JsonProperty("memorySharedAvg") - public void setMemorySharedAvg(Double memorySharedAvg) { - this.memorySharedAvg = memorySharedAvg; - } - - /** - * the part of the slab that can be reclaimed such as caches measured in kibibytes - * - */ - @JsonProperty("memorySlabRecl") - public Double getMemorySlabRecl() { - return memorySlabRecl; - } - - /** - * the part of the slab that can be reclaimed such as caches measured in kibibytes - * - */ - @JsonProperty("memorySlabRecl") - public void setMemorySlabRecl(Double memorySlabRecl) { - this.memorySlabRecl = memorySlabRecl; - } - - /** - * the part of the slab that cannot be reclaimed even when lacking memory measured in kibibytes - * - */ - @JsonProperty("memorySlabUnrecl") - public Double getMemorySlabUnrecl() { - return memorySlabUnrecl; - } - - /** - * the part of the slab that cannot be reclaimed even when lacking memory measured in kibibytes - * - */ - @JsonProperty("memorySlabUnrecl") - public void setMemorySlabUnrecl(Double memorySlabUnrecl) { - this.memorySlabUnrecl = memorySlabUnrecl; - } - - /** - * Amount of memory swapped-in from host cache in kibibytes - * - */ - @JsonProperty("memorySwapInAvg") - public Double getMemorySwapInAvg() { - return memorySwapInAvg; - } - - /** - * Amount of memory swapped-in from host cache in kibibytes - * - */ - @JsonProperty("memorySwapInAvg") - public void setMemorySwapInAvg(Double memorySwapInAvg) { - this.memorySwapInAvg = memorySwapInAvg; - } - - /** - * rate at which memory is swapped from disk into active memory during the interval in kilobytes per second - * - */ - @JsonProperty("memorySwapInRateAvg") - public Double getMemorySwapInRateAvg() { - return memorySwapInRateAvg; - } - - /** - * rate at which memory is swapped from disk into active memory during the interval in kilobytes per second - * - */ - @JsonProperty("memorySwapInRateAvg") - public void setMemorySwapInRateAvg(Double memorySwapInRateAvg) { - this.memorySwapInRateAvg = memorySwapInRateAvg; - } - - /** - * Amount of memory swapped-out to host cache in kibibytes - * - */ - @JsonProperty("memorySwapOutAvg") - public Double getMemorySwapOutAvg() { - return memorySwapOutAvg; - } - - /** - * Amount of memory swapped-out to host cache in kibibytes - * - */ - @JsonProperty("memorySwapOutAvg") - public void setMemorySwapOutAvg(Double memorySwapOutAvg) { - this.memorySwapOutAvg = memorySwapOutAvg; - } - - /** - * rate at which memory is being swapped from active memory to disk during the current interval in kilobytes per second - * - */ - @JsonProperty("memorySwapOutRateAvg") - public Double getMemorySwapOutRateAvg() { - return memorySwapOutRateAvg; - } - - /** - * rate at which memory is being swapped from active memory to disk during the current interval in kilobytes per second - * - */ - @JsonProperty("memorySwapOutRateAvg") - public void setMemorySwapOutRateAvg(Double memorySwapOutRateAvg) { - this.memorySwapOutRateAvg = memorySwapOutRateAvg; - } - - /** - * space used for caching swapped pages in the host cache in kibibytes - * - */ - @JsonProperty("memorySwapUsedAvg") - public Double getMemorySwapUsedAvg() { - return memorySwapUsedAvg; - } - - /** - * space used for caching swapped pages in the host cache in kibibytes - * - */ - @JsonProperty("memorySwapUsedAvg") - public void setMemorySwapUsedAvg(Double memorySwapUsedAvg) { - this.memorySwapUsedAvg = memorySwapUsedAvg; - } - - /** - * total memory minus the sum of free, buffered, cached and slab memory measured in kibibytes - * (Required) - * - */ - @JsonProperty("memoryUsed") - public Double getMemoryUsed() { - return memoryUsed; - } - - /** - * total memory minus the sum of free, buffered, cached and slab memory measured in kibibytes - * (Required) - * - */ - @JsonProperty("memoryUsed") - public void setMemoryUsed(Double memoryUsed) { - this.memoryUsed = memoryUsed; - } - - /** - * Percentage of memory usage; value = (memoryUsed / (memoryUsed + memoryFree) x 100 if denomintor is nonzero, or 0, if otherwise - * - */ - @JsonProperty("percentMemoryUsage") - public Double getPercentMemoryUsage() { - return percentMemoryUsage; - } - - /** - * Percentage of memory usage; value = (memoryUsed / (memoryUsed + memoryFree) x 100 if denomintor is nonzero, or 0, if otherwise - * - */ - @JsonProperty("percentMemoryUsage") - public void setPercentMemoryUsage(Double percentMemoryUsage) { - this.percentMemoryUsage = percentMemoryUsage; - } - - /** - * virtual machine identifier associated with the memory metrics - * (Required) - * - */ - @JsonProperty("vmIdentifier") - public String getVmIdentifier() { - return vmIdentifier; - } - - /** - * virtual machine identifier associated with the memory metrics - * (Required) - * - */ - @JsonProperty("vmIdentifier") - public void setVmIdentifier(String vmIdentifier) { - this.vmIdentifier = vmIdentifier; - } - - @Override - public String toString() { - return ToStringBuilder.reflectionToString(this); - } - - @Override - public int hashCode() { - return new HashCodeBuilder().append(memoryBuffered).append(memoryCached).append(memoryConfigured).append(memoryDemand).append(memoryFree).append(memoryLatencyAvg).append(memorySharedAvg).append(memorySlabRecl).append(memorySlabUnrecl).append(memorySwapInAvg).append(memorySwapInRateAvg).append(memorySwapOutAvg).append(memorySwapOutRateAvg).append(memorySwapUsedAvg).append(memoryUsed).append(percentMemoryUsage).append(vmIdentifier).toHashCode(); - } - - @Override - public boolean equals(Object other) { - if (other == this) { - return true; - } - if ((other instanceof MemoryUsageArray) == false) { - return false; - } - MemoryUsageArray rhs = ((MemoryUsageArray) other); - return new EqualsBuilder().append(memoryBuffered, rhs.memoryBuffered).append(memoryCached, rhs.memoryCached).append(memoryConfigured, rhs.memoryConfigured).append(memoryDemand, rhs.memoryDemand).append(memoryFree, rhs.memoryFree).append(memoryLatencyAvg, rhs.memoryLatencyAvg).append(memorySharedAvg, rhs.memorySharedAvg).append(memorySlabRecl, rhs.memorySlabRecl).append(memorySlabUnrecl, rhs.memorySlabUnrecl).append(memorySwapInAvg, rhs.memorySwapInAvg).append(memorySwapInRateAvg, rhs.memorySwapInRateAvg).append(memorySwapOutAvg, rhs.memorySwapOutAvg).append(memorySwapOutRateAvg, rhs.memorySwapOutRateAvg).append(memorySwapUsedAvg, rhs.memorySwapUsedAvg).append(memoryUsed, rhs.memoryUsed).append(percentMemoryUsage, rhs.percentMemoryUsage).append(vmIdentifier, rhs.vmIdentifier).isEquals(); - } - -} diff --git a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/MobileFlowFields.java b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/MobileFlowFields.java deleted file mode 100644 index a29b092..0000000 --- a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/MobileFlowFields.java +++ /dev/null @@ -1,990 +0,0 @@ -/* -* ============LICENSE_START======================================================= -* ONAP : DCAE -* ================================================================================ -* Copyright 2018 TechMahindra -*================================================================================= -* 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========================================================= -*/ -package org.onap.dcaegen2.ves.domain.ves7_0; - -import java.util.HashMap; -import java.util.Map; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyDescription; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonValue; -import org.apache.commons.lang.builder.EqualsBuilder; -import org.apache.commons.lang.builder.HashCodeBuilder; -import org.apache.commons.lang.builder.ToStringBuilder; - - -/** - * mobileFlow fields - * - */ -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonPropertyOrder({ - "additionalFields", - "applicationType", - "appProtocolType", - "appProtocolVersion", - "cid", - "connectionType", - "ecgi", - "flowDirection", - "gtpPerFlowMetrics", - "gtpProtocolType", - "gtpVersion", - "httpHeader", - "imei", - "imsi", - "ipProtocolType", - "ipVersion", - "lac", - "mcc", - "mnc", - "mobileFlowFieldsVersion", - "msisdn", - "otherEndpointIpAddress", - "otherEndpointPort", - "otherFunctionalRole", - "rac", - "radioAccessTechnology", - "reportingEndpointIpAddr", - "reportingEndpointPort", - "sac", - "samplingAlgorithm", - "tac", - "tunnelId", - "vlanId" -}) -public class MobileFlowFields { - - /** - * an associative array which is an array of key:value pairs - * - */ - @JsonProperty("additionalFields") - @JsonPropertyDescription("an associative array which is an array of key:value pairs") - private AlarmAdditionalInformation additionalFields; - /** - * Application type inferred - * - */ - @JsonProperty("applicationType") - @JsonPropertyDescription("Application type inferred") - private String applicationType; - /** - * application protocol - * - */ - @JsonProperty("appProtocolType") - @JsonPropertyDescription("application protocol") - private String appProtocolType; - /** - * application protocol version - * - */ - @JsonProperty("appProtocolVersion") - @JsonPropertyDescription("application protocol version") - private String appProtocolVersion; - /** - * cell id - * - */ - @JsonProperty("cid") - @JsonPropertyDescription("cell id") - private String cid; - /** - * Abbreviation referencing a 3GPP reference point e.g., S1-U, S11, etc - * - */ - @JsonProperty("connectionType") - @JsonPropertyDescription("Abbreviation referencing a 3GPP reference point e.g., S1-U, S11, etc") - private String connectionType; - /** - * Evolved Cell Global Id - * - */ - @JsonProperty("ecgi") - @JsonPropertyDescription("Evolved Cell Global Id") - private String ecgi; - /** - * Flow direction, indicating if the reporting node is the source of the flow or destination for the flow - * (Required) - * - */ - @JsonProperty("flowDirection") - @JsonPropertyDescription("Flow direction, indicating if the reporting node is the source of the flow or destination for the flow") - private String flowDirection; - /** - * Mobility GTP Protocol per flow metrics - * (Required) - * - */ - @JsonProperty("gtpPerFlowMetrics") - @JsonPropertyDescription("Mobility GTP Protocol per flow metrics") - private GtpPerFlowMetrics gtpPerFlowMetrics; - /** - * GTP protocol - * - */ - @JsonProperty("gtpProtocolType") - @JsonPropertyDescription("GTP protocol") - private String gtpProtocolType; - /** - * GTP protocol version - * - */ - @JsonProperty("gtpVersion") - @JsonPropertyDescription("GTP protocol version") - private String gtpVersion; - /** - * HTTP request header, if the flow connects to a node referenced by HTTP - * - */ - @JsonProperty("httpHeader") - @JsonPropertyDescription("HTTP request header, if the flow connects to a node referenced by HTTP") - private String httpHeader; - /** - * IMEI for the subscriber UE used in this flow, if the flow connects to a mobile device - * - */ - @JsonProperty("imei") - @JsonPropertyDescription("IMEI for the subscriber UE used in this flow, if the flow connects to a mobile device") - private String imei; - /** - * IMSI for the subscriber UE used in this flow, if the flow connects to a mobile device - * - */ - @JsonProperty("imsi") - @JsonPropertyDescription("IMSI for the subscriber UE used in this flow, if the flow connects to a mobile device") - private String imsi; - /** - * IP protocol type e.g., TCP, UDP, RTP... - * (Required) - * - */ - @JsonProperty("ipProtocolType") - @JsonPropertyDescription("IP protocol type e.g., TCP, UDP, RTP...") - private String ipProtocolType; - /** - * IP protocol version e.g., IPv4, IPv6 - * (Required) - * - */ - @JsonProperty("ipVersion") - @JsonPropertyDescription("IP protocol version e.g., IPv4, IPv6") - private String ipVersion; - /** - * location area code - * - */ - @JsonProperty("lac") - @JsonPropertyDescription("location area code") - private String lac; - /** - * mobile country code - * - */ - @JsonProperty("mcc") - @JsonPropertyDescription("mobile country code") - private String mcc; - /** - * mobile network code - * - */ - @JsonProperty("mnc") - @JsonPropertyDescription("mobile network code") - private String mnc; - /** - * version of the mobileFlowFields block - * (Required) - * - */ - @JsonProperty("mobileFlowFieldsVersion") - @JsonPropertyDescription("version of the mobileFlowFields block") - private MobileFlowFields.MobileFlowFieldsVersion mobileFlowFieldsVersion; - /** - * MSISDN for the subscriber UE used in this flow, as an integer, if the flow connects to a mobile device - * - */ - @JsonProperty("msisdn") - @JsonPropertyDescription("MSISDN for the subscriber UE used in this flow, as an integer, if the flow connects to a mobile device") - private String msisdn; - /** - * IP address for the other endpoint, as used for the flow being reported on - * (Required) - * - */ - @JsonProperty("otherEndpointIpAddress") - @JsonPropertyDescription("IP address for the other endpoint, as used for the flow being reported on") - private String otherEndpointIpAddress; - /** - * IP Port for the reporting entity, as used for the flow being reported on - * (Required) - * - */ - @JsonProperty("otherEndpointPort") - @JsonPropertyDescription("IP Port for the reporting entity, as used for the flow being reported on") - private Integer otherEndpointPort; - /** - * Functional role of the other endpoint for the flow being reported on e.g., MME, S-GW, P-GW, PCRF... - * - */ - @JsonProperty("otherFunctionalRole") - @JsonPropertyDescription("Functional role of the other endpoint for the flow being reported on e.g., MME, S-GW, P-GW, PCRF...") - private String otherFunctionalRole; - /** - * routing area code - * - */ - @JsonProperty("rac") - @JsonPropertyDescription("routing area code") - private String rac; - /** - * Radio Access Technology e.g., 2G, 3G, LTE - * - */ - @JsonProperty("radioAccessTechnology") - @JsonPropertyDescription("Radio Access Technology e.g., 2G, 3G, LTE") - private String radioAccessTechnology; - /** - * IP address for the reporting entity, as used for the flow being reported on - * (Required) - * - */ - @JsonProperty("reportingEndpointIpAddr") - @JsonPropertyDescription("IP address for the reporting entity, as used for the flow being reported on") - private String reportingEndpointIpAddr; - /** - * IP port for the reporting entity, as used for the flow being reported on - * (Required) - * - */ - @JsonProperty("reportingEndpointPort") - @JsonPropertyDescription("IP port for the reporting entity, as used for the flow being reported on") - private Integer reportingEndpointPort; - /** - * service area code - * - */ - @JsonProperty("sac") - @JsonPropertyDescription("service area code") - private String sac; - /** - * Integer identifier for the sampling algorithm or rule being applied in calculating the flow metrics if metrics are calculated based on a sample of packets, or 0 if no sampling is applied - * - */ - @JsonProperty("samplingAlgorithm") - @JsonPropertyDescription("Integer identifier for the sampling algorithm or rule being applied in calculating the flow metrics if metrics are calculated based on a sample of packets, or 0 if no sampling is applied") - private Integer samplingAlgorithm; - /** - * transport area code - * - */ - @JsonProperty("tac") - @JsonPropertyDescription("transport area code") - private String tac; - /** - * tunnel identifier - * - */ - @JsonProperty("tunnelId") - @JsonPropertyDescription("tunnel identifier") - private String tunnelId; - /** - * VLAN identifier used by this flow - * - */ - @JsonProperty("vlanId") - @JsonPropertyDescription("VLAN identifier used by this flow") - private String vlanId; - - /** - * an associative array which is an array of key:value pairs - * - */ - @JsonProperty("additionalFields") - public AlarmAdditionalInformation getAdditionalFields() { - return additionalFields; - } - - /** - * an associative array which is an array of key:value pairs - * - */ - @JsonProperty("additionalFields") - public void setAdditionalFields(AlarmAdditionalInformation additionalFields) { - this.additionalFields = additionalFields; - } - - /** - * Application type inferred - * - */ - @JsonProperty("applicationType") - public String getApplicationType() { - return applicationType; - } - - /** - * Application type inferred - * - */ - @JsonProperty("applicationType") - public void setApplicationType(String applicationType) { - this.applicationType = applicationType; - } - - /** - * application protocol - * - */ - @JsonProperty("appProtocolType") - public String getAppProtocolType() { - return appProtocolType; - } - - /** - * application protocol - * - */ - @JsonProperty("appProtocolType") - public void setAppProtocolType(String appProtocolType) { - this.appProtocolType = appProtocolType; - } - - /** - * application protocol version - * - */ - @JsonProperty("appProtocolVersion") - public String getAppProtocolVersion() { - return appProtocolVersion; - } - - /** - * application protocol version - * - */ - @JsonProperty("appProtocolVersion") - public void setAppProtocolVersion(String appProtocolVersion) { - this.appProtocolVersion = appProtocolVersion; - } - - /** - * cell id - * - */ - @JsonProperty("cid") - public String getCid() { - return cid; - } - - /** - * cell id - * - */ - @JsonProperty("cid") - public void setCid(String cid) { - this.cid = cid; - } - - /** - * Abbreviation referencing a 3GPP reference point e.g., S1-U, S11, etc - * - */ - @JsonProperty("connectionType") - public String getConnectionType() { - return connectionType; - } - - /** - * Abbreviation referencing a 3GPP reference point e.g., S1-U, S11, etc - * - */ - @JsonProperty("connectionType") - public void setConnectionType(String connectionType) { - this.connectionType = connectionType; - } - - /** - * Evolved Cell Global Id - * - */ - @JsonProperty("ecgi") - public String getEcgi() { - return ecgi; - } - - /** - * Evolved Cell Global Id - * - */ - @JsonProperty("ecgi") - public void setEcgi(String ecgi) { - this.ecgi = ecgi; - } - - /** - * Flow direction, indicating if the reporting node is the source of the flow or destination for the flow - * (Required) - * - */ - @JsonProperty("flowDirection") - public String getFlowDirection() { - return flowDirection; - } - - /** - * Flow direction, indicating if the reporting node is the source of the flow or destination for the flow - * (Required) - * - */ - @JsonProperty("flowDirection") - public void setFlowDirection(String flowDirection) { - this.flowDirection = flowDirection; - } - - /** - * Mobility GTP Protocol per flow metrics - * (Required) - * - */ - @JsonProperty("gtpPerFlowMetrics") - public GtpPerFlowMetrics getGtpPerFlowMetrics() { - return gtpPerFlowMetrics; - } - - /** - * Mobility GTP Protocol per flow metrics - * (Required) - * - */ - @JsonProperty("gtpPerFlowMetrics") - public void setGtpPerFlowMetrics(GtpPerFlowMetrics gtpPerFlowMetrics) { - this.gtpPerFlowMetrics = gtpPerFlowMetrics; - } - - /** - * GTP protocol - * - */ - @JsonProperty("gtpProtocolType") - public String getGtpProtocolType() { - return gtpProtocolType; - } - - /** - * GTP protocol - * - */ - @JsonProperty("gtpProtocolType") - public void setGtpProtocolType(String gtpProtocolType) { - this.gtpProtocolType = gtpProtocolType; - } - - /** - * GTP protocol version - * - */ - @JsonProperty("gtpVersion") - public String getGtpVersion() { - return gtpVersion; - } - - /** - * GTP protocol version - * - */ - @JsonProperty("gtpVersion") - public void setGtpVersion(String gtpVersion) { - this.gtpVersion = gtpVersion; - } - - /** - * HTTP request header, if the flow connects to a node referenced by HTTP - * - */ - @JsonProperty("httpHeader") - public String getHttpHeader() { - return httpHeader; - } - - /** - * HTTP request header, if the flow connects to a node referenced by HTTP - * - */ - @JsonProperty("httpHeader") - public void setHttpHeader(String httpHeader) { - this.httpHeader = httpHeader; - } - - /** - * IMEI for the subscriber UE used in this flow, if the flow connects to a mobile device - * - */ - @JsonProperty("imei") - public String getImei() { - return imei; - } - - /** - * IMEI for the subscriber UE used in this flow, if the flow connects to a mobile device - * - */ - @JsonProperty("imei") - public void setImei(String imei) { - this.imei = imei; - } - - /** - * IMSI for the subscriber UE used in this flow, if the flow connects to a mobile device - * - */ - @JsonProperty("imsi") - public String getImsi() { - return imsi; - } - - /** - * IMSI for the subscriber UE used in this flow, if the flow connects to a mobile device - * - */ - @JsonProperty("imsi") - public void setImsi(String imsi) { - this.imsi = imsi; - } - - /** - * IP protocol type e.g., TCP, UDP, RTP... - * (Required) - * - */ - @JsonProperty("ipProtocolType") - public String getIpProtocolType() { - return ipProtocolType; - } - - /** - * IP protocol type e.g., TCP, UDP, RTP... - * (Required) - * - */ - @JsonProperty("ipProtocolType") - public void setIpProtocolType(String ipProtocolType) { - this.ipProtocolType = ipProtocolType; - } - - /** - * IP protocol version e.g., IPv4, IPv6 - * (Required) - * - */ - @JsonProperty("ipVersion") - public String getIpVersion() { - return ipVersion; - } - - /** - * IP protocol version e.g., IPv4, IPv6 - * (Required) - * - */ - @JsonProperty("ipVersion") - public void setIpVersion(String ipVersion) { - this.ipVersion = ipVersion; - } - - /** - * location area code - * - */ - @JsonProperty("lac") - public String getLac() { - return lac; - } - - /** - * location area code - * - */ - @JsonProperty("lac") - public void setLac(String lac) { - this.lac = lac; - } - - /** - * mobile country code - * - */ - @JsonProperty("mcc") - public String getMcc() { - return mcc; - } - - /** - * mobile country code - * - */ - @JsonProperty("mcc") - public void setMcc(String mcc) { - this.mcc = mcc; - } - - /** - * mobile network code - * - */ - @JsonProperty("mnc") - public String getMnc() { - return mnc; - } - - /** - * mobile network code - * - */ - @JsonProperty("mnc") - public void setMnc(String mnc) { - this.mnc = mnc; - } - - /** - * version of the mobileFlowFields block - * (Required) - * - */ - @JsonProperty("mobileFlowFieldsVersion") - public MobileFlowFields.MobileFlowFieldsVersion getMobileFlowFieldsVersion() { - return mobileFlowFieldsVersion; - } - - /** - * version of the mobileFlowFields block - * (Required) - * - */ - @JsonProperty("mobileFlowFieldsVersion") - public void setMobileFlowFieldsVersion(MobileFlowFields.MobileFlowFieldsVersion mobileFlowFieldsVersion) { - this.mobileFlowFieldsVersion = mobileFlowFieldsVersion; - } - - /** - * MSISDN for the subscriber UE used in this flow, as an integer, if the flow connects to a mobile device - * - */ - @JsonProperty("msisdn") - public String getMsisdn() { - return msisdn; - } - - /** - * MSISDN for the subscriber UE used in this flow, as an integer, if the flow connects to a mobile device - * - */ - @JsonProperty("msisdn") - public void setMsisdn(String msisdn) { - this.msisdn = msisdn; - } - - /** - * IP address for the other endpoint, as used for the flow being reported on - * (Required) - * - */ - @JsonProperty("otherEndpointIpAddress") - public String getOtherEndpointIpAddress() { - return otherEndpointIpAddress; - } - - /** - * IP address for the other endpoint, as used for the flow being reported on - * (Required) - * - */ - @JsonProperty("otherEndpointIpAddress") - public void setOtherEndpointIpAddress(String otherEndpointIpAddress) { - this.otherEndpointIpAddress = otherEndpointIpAddress; - } - - /** - * IP Port for the reporting entity, as used for the flow being reported on - * (Required) - * - */ - @JsonProperty("otherEndpointPort") - public Integer getOtherEndpointPort() { - return otherEndpointPort; - } - - /** - * IP Port for the reporting entity, as used for the flow being reported on - * (Required) - * - */ - @JsonProperty("otherEndpointPort") - public void setOtherEndpointPort(Integer otherEndpointPort) { - this.otherEndpointPort = otherEndpointPort; - } - - /** - * Functional role of the other endpoint for the flow being reported on e.g., MME, S-GW, P-GW, PCRF... - * - */ - @JsonProperty("otherFunctionalRole") - public String getOtherFunctionalRole() { - return otherFunctionalRole; - } - - /** - * Functional role of the other endpoint for the flow being reported on e.g., MME, S-GW, P-GW, PCRF... - * - */ - @JsonProperty("otherFunctionalRole") - public void setOtherFunctionalRole(String otherFunctionalRole) { - this.otherFunctionalRole = otherFunctionalRole; - } - - /** - * routing area code - * - */ - @JsonProperty("rac") - public String getRac() { - return rac; - } - - /** - * routing area code - * - */ - @JsonProperty("rac") - public void setRac(String rac) { - this.rac = rac; - } - - /** - * Radio Access Technology e.g., 2G, 3G, LTE - * - */ - @JsonProperty("radioAccessTechnology") - public String getRadioAccessTechnology() { - return radioAccessTechnology; - } - - /** - * Radio Access Technology e.g., 2G, 3G, LTE - * - */ - @JsonProperty("radioAccessTechnology") - public void setRadioAccessTechnology(String radioAccessTechnology) { - this.radioAccessTechnology = radioAccessTechnology; - } - - /** - * IP address for the reporting entity, as used for the flow being reported on - * (Required) - * - */ - @JsonProperty("reportingEndpointIpAddr") - public String getReportingEndpointIpAddr() { - return reportingEndpointIpAddr; - } - - /** - * IP address for the reporting entity, as used for the flow being reported on - * (Required) - * - */ - @JsonProperty("reportingEndpointIpAddr") - public void setReportingEndpointIpAddr(String reportingEndpointIpAddr) { - this.reportingEndpointIpAddr = reportingEndpointIpAddr; - } - - /** - * IP port for the reporting entity, as used for the flow being reported on - * (Required) - * - */ - @JsonProperty("reportingEndpointPort") - public Integer getReportingEndpointPort() { - return reportingEndpointPort; - } - - /** - * IP port for the reporting entity, as used for the flow being reported on - * (Required) - * - */ - @JsonProperty("reportingEndpointPort") - public void setReportingEndpointPort(Integer reportingEndpointPort) { - this.reportingEndpointPort = reportingEndpointPort; - } - - /** - * service area code - * - */ - @JsonProperty("sac") - public String getSac() { - return sac; - } - - /** - * service area code - * - */ - @JsonProperty("sac") - public void setSac(String sac) { - this.sac = sac; - } - - /** - * Integer identifier for the sampling algorithm or rule being applied in calculating the flow metrics if metrics are calculated based on a sample of packets, or 0 if no sampling is applied - * - */ - @JsonProperty("samplingAlgorithm") - public Integer getSamplingAlgorithm() { - return samplingAlgorithm; - } - - /** - * Integer identifier for the sampling algorithm or rule being applied in calculating the flow metrics if metrics are calculated based on a sample of packets, or 0 if no sampling is applied - * - */ - @JsonProperty("samplingAlgorithm") - public void setSamplingAlgorithm(Integer samplingAlgorithm) { - this.samplingAlgorithm = samplingAlgorithm; - } - - /** - * transport area code - * - */ - @JsonProperty("tac") - public String getTac() { - return tac; - } - - /** - * transport area code - * - */ - @JsonProperty("tac") - public void setTac(String tac) { - this.tac = tac; - } - - /** - * tunnel identifier - * - */ - @JsonProperty("tunnelId") - public String getTunnelId() { - return tunnelId; - } - - /** - * tunnel identifier - * - */ - @JsonProperty("tunnelId") - public void setTunnelId(String tunnelId) { - this.tunnelId = tunnelId; - } - - /** - * VLAN identifier used by this flow - * - */ - @JsonProperty("vlanId") - public String getVlanId() { - return vlanId; - } - - /** - * VLAN identifier used by this flow - * - */ - @JsonProperty("vlanId") - public void setVlanId(String vlanId) { - this.vlanId = vlanId; - } - - @Override - public String toString() { - return ToStringBuilder.reflectionToString(this); - } - - @Override - public int hashCode() { - return new HashCodeBuilder().append(additionalFields).append(applicationType).append(appProtocolType).append(appProtocolVersion).append(cid).append(connectionType).append(ecgi).append(flowDirection).append(gtpPerFlowMetrics).append(gtpProtocolType).append(gtpVersion).append(httpHeader).append(imei).append(imsi).append(ipProtocolType).append(ipVersion).append(lac).append(mcc).append(mnc).append(mobileFlowFieldsVersion).append(msisdn).append(otherEndpointIpAddress).append(otherEndpointPort).append(otherFunctionalRole).append(rac).append(radioAccessTechnology).append(reportingEndpointIpAddr).append(reportingEndpointPort).append(sac).append(samplingAlgorithm).append(tac).append(tunnelId).append(vlanId).toHashCode(); - } - - @Override - public boolean equals(Object other) { - if (other == this) { - return true; - } - if ((other instanceof MobileFlowFields) == false) { - return false; - } - MobileFlowFields rhs = ((MobileFlowFields) other); - return new EqualsBuilder().append(additionalFields, rhs.additionalFields).append(applicationType, rhs.applicationType).append(appProtocolType, rhs.appProtocolType).append(appProtocolVersion, rhs.appProtocolVersion).append(cid, rhs.cid).append(connectionType, rhs.connectionType).append(ecgi, rhs.ecgi).append(flowDirection, rhs.flowDirection).append(gtpPerFlowMetrics, rhs.gtpPerFlowMetrics).append(gtpProtocolType, rhs.gtpProtocolType).append(gtpVersion, rhs.gtpVersion).append(httpHeader, rhs.httpHeader).append(imei, rhs.imei).append(imsi, rhs.imsi).append(ipProtocolType, rhs.ipProtocolType).append(ipVersion, rhs.ipVersion).append(lac, rhs.lac).append(mcc, rhs.mcc).append(mnc, rhs.mnc).append(mobileFlowFieldsVersion, rhs.mobileFlowFieldsVersion).append(msisdn, rhs.msisdn).append(otherEndpointIpAddress, rhs.otherEndpointIpAddress).append(otherEndpointPort, rhs.otherEndpointPort).append(otherFunctionalRole, rhs.otherFunctionalRole).append(rac, rhs.rac).append(radioAccessTechnology, rhs.radioAccessTechnology).append(reportingEndpointIpAddr, rhs.reportingEndpointIpAddr).append(reportingEndpointPort, rhs.reportingEndpointPort).append(sac, rhs.sac).append(samplingAlgorithm, rhs.samplingAlgorithm).append(tac, rhs.tac).append(tunnelId, rhs.tunnelId).append(vlanId, rhs.vlanId).isEquals(); - } - - public enum MobileFlowFieldsVersion { - - _4_0("4.0"); - private final String value; - private final static Map CONSTANTS = new HashMap(); - - static { - for (MobileFlowFields.MobileFlowFieldsVersion c: values()) { - CONSTANTS.put(c.value, c); - } - } - - private MobileFlowFieldsVersion(String value) { - this.value = value; - } - - @Override - public String toString() { - return this.value; - } - - @JsonValue - public String value() { - return this.value; - } - - @JsonCreator - public static MobileFlowFields.MobileFlowFieldsVersion fromValue(String value) { - MobileFlowFields.MobileFlowFieldsVersion constant = CONSTANTS.get(value); - if (constant == null) { - throw new IllegalArgumentException(value); - } else { - return constant; - } - } - - } - -} diff --git a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/NicPerformanceArray.java b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/NicPerformanceArray.java deleted file mode 100644 index bf5dac6..0000000 --- a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/NicPerformanceArray.java +++ /dev/null @@ -1,1204 +0,0 @@ -/* -* ============LICENSE_START======================================================= -* ONAP : DCAE -* ================================================================================ -* Copyright 2018 TechMahindra -*================================================================================= -* 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========================================================= -*/ -package org.onap.dcaegen2.ves.domain.ves7_0; - -import java.util.HashMap; -import java.util.Map; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyDescription; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonValue; -import org.apache.commons.lang.builder.EqualsBuilder; -import org.apache.commons.lang.builder.HashCodeBuilder; -import org.apache.commons.lang.builder.ToStringBuilder; - - -/** - * describes the performance and errors of an identified network interface card - * - */ -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonPropertyOrder({ - "administrativeState", - "nicIdentifier", - "operationalState", - "receivedBroadcastPacketsAccumulated", - "receivedBroadcastPacketsDelta", - "receivedDiscardedPacketsAccumulated", - "receivedDiscardedPacketsDelta", - "receivedErrorPacketsAccumulated", - "receivedErrorPacketsDelta", - "receivedMulticastPacketsAccumulated", - "receivedMulticastPacketsDelta", - "receivedOctetsAccumulated", - "receivedOctetsDelta", - "receivedTotalPacketsAccumulated", - "receivedPercentDiscard", - "receivedPercentError", - "receivedTotalPacketsDelta", - "receivedUnicastPacketsAccumulated", - "receivedUnicastPacketsDelta", - "receivedUtilization", - "speed", - "transmittedBroadcastPacketsAccumulated", - "transmittedBroadcastPacketsDelta", - "transmittedDiscardedPacketsAccumulated", - "transmittedDiscardedPacketsDelta", - "transmittedErrorPacketsAccumulated", - "transmittedErrorPacketsDelta", - "transmittedMulticastPacketsAccumulated", - "transmittedMulticastPacketsDelta", - "transmittedOctetsAccumulated", - "transmittedOctetsDelta", - "transmittedTotalPacketsAccumulated", - "transmittedTotalPacketsDelta", - "transmittedUnicastPacketsAccumulated", - "transmittedUnicastPacketsDelta", - "transmittedPercentDiscard", - "transmittedPercentError", - "transmittedUtilization", - "valuesAreSuspect" -}) -public class NicPerformanceArray { - - /** - * administrative state - * - */ - @JsonProperty("administrativeState") - @JsonPropertyDescription("administrative state") - private NicPerformanceArray.AdministrativeState administrativeState; - /** - * nic identification - * (Required) - * - */ - @JsonProperty("nicIdentifier") - @JsonPropertyDescription("nic identification") - private String nicIdentifier; - /** - * operational state - * - */ - @JsonProperty("operationalState") - @JsonPropertyDescription("operational state") - private NicPerformanceArray.OperationalState operationalState; - /** - * Cumulative count of broadcast packets received as read at the end of the measurement interval - * - */ - @JsonProperty("receivedBroadcastPacketsAccumulated") - @JsonPropertyDescription("Cumulative count of broadcast packets received as read at the end of the measurement interval") - private Double receivedBroadcastPacketsAccumulated; - /** - * Count of broadcast packets received within the measurement interval - * - */ - @JsonProperty("receivedBroadcastPacketsDelta") - @JsonPropertyDescription("Count of broadcast packets received within the measurement interval") - private Double receivedBroadcastPacketsDelta; - /** - * Cumulative count of discarded packets received as read at the end of the measurement interval - * - */ - @JsonProperty("receivedDiscardedPacketsAccumulated") - @JsonPropertyDescription("Cumulative count of discarded packets received as read at the end of the measurement interval") - private Double receivedDiscardedPacketsAccumulated; - /** - * Count of discarded packets received within the measurement interval - * - */ - @JsonProperty("receivedDiscardedPacketsDelta") - @JsonPropertyDescription("Count of discarded packets received within the measurement interval") - private Double receivedDiscardedPacketsDelta; - /** - * Cumulative count of error packets received as read at the end of the measurement interval - * - */ - @JsonProperty("receivedErrorPacketsAccumulated") - @JsonPropertyDescription("Cumulative count of error packets received as read at the end of the measurement interval") - private Double receivedErrorPacketsAccumulated; - /** - * Count of error packets received within the measurement interval - * - */ - @JsonProperty("receivedErrorPacketsDelta") - @JsonPropertyDescription("Count of error packets received within the measurement interval") - private Double receivedErrorPacketsDelta; - /** - * Cumulative count of multicast packets received as read at the end of the measurement interval - * - */ - @JsonProperty("receivedMulticastPacketsAccumulated") - @JsonPropertyDescription("Cumulative count of multicast packets received as read at the end of the measurement interval") - private Double receivedMulticastPacketsAccumulated; - /** - * Count of multicast packets received within the measurement interval - * - */ - @JsonProperty("receivedMulticastPacketsDelta") - @JsonPropertyDescription("Count of multicast packets received within the measurement interval") - private Double receivedMulticastPacketsDelta; - /** - * Cumulative count of octets received as read at the end of the measurement interval - * - */ - @JsonProperty("receivedOctetsAccumulated") - @JsonPropertyDescription("Cumulative count of octets received as read at the end of the measurement interval") - private Double receivedOctetsAccumulated; - /** - * Count of octets received within the measurement interval - * - */ - @JsonProperty("receivedOctetsDelta") - @JsonPropertyDescription("Count of octets received within the measurement interval") - private Double receivedOctetsDelta; - /** - * Cumulative count of all packets received as read at the end of the measurement interval - * - */ - @JsonProperty("receivedTotalPacketsAccumulated") - @JsonPropertyDescription("Cumulative count of all packets received as read at the end of the measurement interval") - private Double receivedTotalPacketsAccumulated; - /** - * Percentage of discarded packets received; value = (receivedDiscardedPacketsDelta / receivedTotalPacketsDelta) x 100, if denominator is nonzero, or 0, if otherwise - * - */ - @JsonProperty("receivedPercentDiscard") - @JsonPropertyDescription("Percentage of discarded packets received; value = (receivedDiscardedPacketsDelta / receivedTotalPacketsDelta) x 100, if denominator is nonzero, or 0, if otherwise") - private Double receivedPercentDiscard; - /** - * Percentage of error packets received; value = (receivedErrorPacketsDelta / receivedTotalPacketsDelta) x 100, if denominator is nonzero, or 0, if otherwise. - * - */ - @JsonProperty("receivedPercentError") - @JsonPropertyDescription("Percentage of error packets received; value = (receivedErrorPacketsDelta / receivedTotalPacketsDelta) x 100, if denominator is nonzero, or 0, if otherwise.") - private Double receivedPercentError; - /** - * Count of all packets received within the measurement interval - * - */ - @JsonProperty("receivedTotalPacketsDelta") - @JsonPropertyDescription("Count of all packets received within the measurement interval") - private Double receivedTotalPacketsDelta; - /** - * Cumulative count of unicast packets received as read at the end of the measurement interval - * - */ - @JsonProperty("receivedUnicastPacketsAccumulated") - @JsonPropertyDescription("Cumulative count of unicast packets received as read at the end of the measurement interval") - private Double receivedUnicastPacketsAccumulated; - /** - * Count of unicast packets received within the measurement interval - * - */ - @JsonProperty("receivedUnicastPacketsDelta") - @JsonPropertyDescription("Count of unicast packets received within the measurement interval") - private Double receivedUnicastPacketsDelta; - /** - * Percentage of utilization received; value = (receivedOctetsDelta / (speed x (lastEpochMicrosec - startEpochMicrosec))) x 100, if denominator is nonzero, or 0, if otherwise - * - */ - @JsonProperty("receivedUtilization") - @JsonPropertyDescription("Percentage of utilization received; value = (receivedOctetsDelta / (speed x (lastEpochMicrosec - startEpochMicrosec))) x 100, if denominator is nonzero, or 0, if otherwise") - private Double receivedUtilization; - /** - * Speed configured in mbps - * - */ - @JsonProperty("speed") - @JsonPropertyDescription("Speed configured in mbps") - private Double speed; - /** - * Cumulative count of broadcast packets transmitted as read at the end of the measurement interval - * - */ - @JsonProperty("transmittedBroadcastPacketsAccumulated") - @JsonPropertyDescription("Cumulative count of broadcast packets transmitted as read at the end of the measurement interval") - private Double transmittedBroadcastPacketsAccumulated; - /** - * Count of broadcast packets transmitted within the measurement interval - * - */ - @JsonProperty("transmittedBroadcastPacketsDelta") - @JsonPropertyDescription("Count of broadcast packets transmitted within the measurement interval") - private Double transmittedBroadcastPacketsDelta; - /** - * Cumulative count of discarded packets transmitted as read at the end of the measurement interval - * - */ - @JsonProperty("transmittedDiscardedPacketsAccumulated") - @JsonPropertyDescription("Cumulative count of discarded packets transmitted as read at the end of the measurement interval") - private Double transmittedDiscardedPacketsAccumulated; - /** - * Count of discarded packets transmitted within the measurement interval - * - */ - @JsonProperty("transmittedDiscardedPacketsDelta") - @JsonPropertyDescription("Count of discarded packets transmitted within the measurement interval") - private Double transmittedDiscardedPacketsDelta; - /** - * Cumulative count of error packets transmitted as read at the end of the measurement interval - * - */ - @JsonProperty("transmittedErrorPacketsAccumulated") - @JsonPropertyDescription("Cumulative count of error packets transmitted as read at the end of the measurement interval") - private Double transmittedErrorPacketsAccumulated; - /** - * Count of error packets transmitted within the measurement interval - * - */ - @JsonProperty("transmittedErrorPacketsDelta") - @JsonPropertyDescription("Count of error packets transmitted within the measurement interval") - private Double transmittedErrorPacketsDelta; - /** - * Cumulative count of multicast packets transmitted as read at the end of the measurement interval - * - */ - @JsonProperty("transmittedMulticastPacketsAccumulated") - @JsonPropertyDescription("Cumulative count of multicast packets transmitted as read at the end of the measurement interval") - private Double transmittedMulticastPacketsAccumulated; - /** - * Count of multicast packets transmitted within the measurement interval - * - */ - @JsonProperty("transmittedMulticastPacketsDelta") - @JsonPropertyDescription("Count of multicast packets transmitted within the measurement interval") - private Double transmittedMulticastPacketsDelta; - /** - * Cumulative count of octets transmitted as read at the end of the measurement interval - * - */ - @JsonProperty("transmittedOctetsAccumulated") - @JsonPropertyDescription("Cumulative count of octets transmitted as read at the end of the measurement interval") - private Double transmittedOctetsAccumulated; - /** - * Count of octets transmitted within the measurement interval - * - */ - @JsonProperty("transmittedOctetsDelta") - @JsonPropertyDescription("Count of octets transmitted within the measurement interval") - private Double transmittedOctetsDelta; - /** - * Cumulative count of all packets transmitted as read at the end of the measurement interval - * - */ - @JsonProperty("transmittedTotalPacketsAccumulated") - @JsonPropertyDescription("Cumulative count of all packets transmitted as read at the end of the measurement interval") - private Double transmittedTotalPacketsAccumulated; - /** - * Count of all packets transmitted within the measurement interval - * - */ - @JsonProperty("transmittedTotalPacketsDelta") - @JsonPropertyDescription("Count of all packets transmitted within the measurement interval") - private Double transmittedTotalPacketsDelta; - /** - * Cumulative count of unicast packets transmitted as read at the end of the measurement interval - * - */ - @JsonProperty("transmittedUnicastPacketsAccumulated") - @JsonPropertyDescription("Cumulative count of unicast packets transmitted as read at the end of the measurement interval") - private Double transmittedUnicastPacketsAccumulated; - /** - * Count of unicast packets transmitted within the measurement interval - * - */ - @JsonProperty("transmittedUnicastPacketsDelta") - @JsonPropertyDescription("Count of unicast packets transmitted within the measurement interval") - private Double transmittedUnicastPacketsDelta; - /** - * Percentage of discarded packets transmitted; value = (transmittedDiscardedPacketsDelta / transmittedTotalPacketsDelta) x 100, if denominator is nonzero, or 0, if otherwise - * - */ - @JsonProperty("transmittedPercentDiscard") - @JsonPropertyDescription("Percentage of discarded packets transmitted; value = (transmittedDiscardedPacketsDelta / transmittedTotalPacketsDelta) x 100, if denominator is nonzero, or 0, if otherwise") - private Double transmittedPercentDiscard; - /** - * Percentage of error packets received; value = (transmittedErrorPacketsDelta / transmittedTotalPacketsDelta) x 100, if denominator is nonzero, or 0, if otherwise - * - */ - @JsonProperty("transmittedPercentError") - @JsonPropertyDescription("Percentage of error packets received; value = (transmittedErrorPacketsDelta / transmittedTotalPacketsDelta) x 100, if denominator is nonzero, or 0, if otherwise") - private Double transmittedPercentError; - /** - * Percentage of utilization transmitted; value = (transmittedOctetsDelta / (speed x (lastEpochMicrosec - startEpochMicrosec))) x 100, if denominator is nonzero, or 0, if otherwise. - * - */ - @JsonProperty("transmittedUtilization") - @JsonPropertyDescription("Percentage of utilization transmitted; value = (transmittedOctetsDelta / (speed x (lastEpochMicrosec - startEpochMicrosec))) x 100, if denominator is nonzero, or 0, if otherwise.") - private Double transmittedUtilization; - /** - * Indicates whether vNicPerformance values are likely inaccurate due to counter overflow or other condtions - * (Required) - * - */ - @JsonProperty("valuesAreSuspect") - @JsonPropertyDescription("Indicates whether vNicPerformance values are likely inaccurate due to counter overflow or other condtions") - private NicPerformanceArray.ValuesAreSuspect valuesAreSuspect; - - /** - * administrative state - * - */ - @JsonProperty("administrativeState") - public NicPerformanceArray.AdministrativeState getAdministrativeState() { - return administrativeState; - } - - /** - * administrative state - * - */ - @JsonProperty("administrativeState") - public void setAdministrativeState(NicPerformanceArray.AdministrativeState administrativeState) { - this.administrativeState = administrativeState; - } - - /** - * nic identification - * (Required) - * - */ - @JsonProperty("nicIdentifier") - public String getNicIdentifier() { - return nicIdentifier; - } - - /** - * nic identification - * (Required) - * - */ - @JsonProperty("nicIdentifier") - public void setNicIdentifier(String nicIdentifier) { - this.nicIdentifier = nicIdentifier; - } - - /** - * operational state - * - */ - @JsonProperty("operationalState") - public NicPerformanceArray.OperationalState getOperationalState() { - return operationalState; - } - - /** - * operational state - * - */ - @JsonProperty("operationalState") - public void setOperationalState(NicPerformanceArray.OperationalState operationalState) { - this.operationalState = operationalState; - } - - /** - * Cumulative count of broadcast packets received as read at the end of the measurement interval - * - */ - @JsonProperty("receivedBroadcastPacketsAccumulated") - public Double getReceivedBroadcastPacketsAccumulated() { - return receivedBroadcastPacketsAccumulated; - } - - /** - * Cumulative count of broadcast packets received as read at the end of the measurement interval - * - */ - @JsonProperty("receivedBroadcastPacketsAccumulated") - public void setReceivedBroadcastPacketsAccumulated(Double receivedBroadcastPacketsAccumulated) { - this.receivedBroadcastPacketsAccumulated = receivedBroadcastPacketsAccumulated; - } - - /** - * Count of broadcast packets received within the measurement interval - * - */ - @JsonProperty("receivedBroadcastPacketsDelta") - public Double getReceivedBroadcastPacketsDelta() { - return receivedBroadcastPacketsDelta; - } - - /** - * Count of broadcast packets received within the measurement interval - * - */ - @JsonProperty("receivedBroadcastPacketsDelta") - public void setReceivedBroadcastPacketsDelta(Double receivedBroadcastPacketsDelta) { - this.receivedBroadcastPacketsDelta = receivedBroadcastPacketsDelta; - } - - /** - * Cumulative count of discarded packets received as read at the end of the measurement interval - * - */ - @JsonProperty("receivedDiscardedPacketsAccumulated") - public Double getReceivedDiscardedPacketsAccumulated() { - return receivedDiscardedPacketsAccumulated; - } - - /** - * Cumulative count of discarded packets received as read at the end of the measurement interval - * - */ - @JsonProperty("receivedDiscardedPacketsAccumulated") - public void setReceivedDiscardedPacketsAccumulated(Double receivedDiscardedPacketsAccumulated) { - this.receivedDiscardedPacketsAccumulated = receivedDiscardedPacketsAccumulated; - } - - /** - * Count of discarded packets received within the measurement interval - * - */ - @JsonProperty("receivedDiscardedPacketsDelta") - public Double getReceivedDiscardedPacketsDelta() { - return receivedDiscardedPacketsDelta; - } - - /** - * Count of discarded packets received within the measurement interval - * - */ - @JsonProperty("receivedDiscardedPacketsDelta") - public void setReceivedDiscardedPacketsDelta(Double receivedDiscardedPacketsDelta) { - this.receivedDiscardedPacketsDelta = receivedDiscardedPacketsDelta; - } - - /** - * Cumulative count of error packets received as read at the end of the measurement interval - * - */ - @JsonProperty("receivedErrorPacketsAccumulated") - public Double getReceivedErrorPacketsAccumulated() { - return receivedErrorPacketsAccumulated; - } - - /** - * Cumulative count of error packets received as read at the end of the measurement interval - * - */ - @JsonProperty("receivedErrorPacketsAccumulated") - public void setReceivedErrorPacketsAccumulated(Double receivedErrorPacketsAccumulated) { - this.receivedErrorPacketsAccumulated = receivedErrorPacketsAccumulated; - } - - /** - * Count of error packets received within the measurement interval - * - */ - @JsonProperty("receivedErrorPacketsDelta") - public Double getReceivedErrorPacketsDelta() { - return receivedErrorPacketsDelta; - } - - /** - * Count of error packets received within the measurement interval - * - */ - @JsonProperty("receivedErrorPacketsDelta") - public void setReceivedErrorPacketsDelta(Double receivedErrorPacketsDelta) { - this.receivedErrorPacketsDelta = receivedErrorPacketsDelta; - } - - /** - * Cumulative count of multicast packets received as read at the end of the measurement interval - * - */ - @JsonProperty("receivedMulticastPacketsAccumulated") - public Double getReceivedMulticastPacketsAccumulated() { - return receivedMulticastPacketsAccumulated; - } - - /** - * Cumulative count of multicast packets received as read at the end of the measurement interval - * - */ - @JsonProperty("receivedMulticastPacketsAccumulated") - public void setReceivedMulticastPacketsAccumulated(Double receivedMulticastPacketsAccumulated) { - this.receivedMulticastPacketsAccumulated = receivedMulticastPacketsAccumulated; - } - - /** - * Count of multicast packets received within the measurement interval - * - */ - @JsonProperty("receivedMulticastPacketsDelta") - public Double getReceivedMulticastPacketsDelta() { - return receivedMulticastPacketsDelta; - } - - /** - * Count of multicast packets received within the measurement interval - * - */ - @JsonProperty("receivedMulticastPacketsDelta") - public void setReceivedMulticastPacketsDelta(Double receivedMulticastPacketsDelta) { - this.receivedMulticastPacketsDelta = receivedMulticastPacketsDelta; - } - - /** - * Cumulative count of octets received as read at the end of the measurement interval - * - */ - @JsonProperty("receivedOctetsAccumulated") - public Double getReceivedOctetsAccumulated() { - return receivedOctetsAccumulated; - } - - /** - * Cumulative count of octets received as read at the end of the measurement interval - * - */ - @JsonProperty("receivedOctetsAccumulated") - public void setReceivedOctetsAccumulated(Double receivedOctetsAccumulated) { - this.receivedOctetsAccumulated = receivedOctetsAccumulated; - } - - /** - * Count of octets received within the measurement interval - * - */ - @JsonProperty("receivedOctetsDelta") - public Double getReceivedOctetsDelta() { - return receivedOctetsDelta; - } - - /** - * Count of octets received within the measurement interval - * - */ - @JsonProperty("receivedOctetsDelta") - public void setReceivedOctetsDelta(Double receivedOctetsDelta) { - this.receivedOctetsDelta = receivedOctetsDelta; - } - - /** - * Cumulative count of all packets received as read at the end of the measurement interval - * - */ - @JsonProperty("receivedTotalPacketsAccumulated") - public Double getReceivedTotalPacketsAccumulated() { - return receivedTotalPacketsAccumulated; - } - - /** - * Cumulative count of all packets received as read at the end of the measurement interval - * - */ - @JsonProperty("receivedTotalPacketsAccumulated") - public void setReceivedTotalPacketsAccumulated(Double receivedTotalPacketsAccumulated) { - this.receivedTotalPacketsAccumulated = receivedTotalPacketsAccumulated; - } - - /** - * Percentage of discarded packets received; value = (receivedDiscardedPacketsDelta / receivedTotalPacketsDelta) x 100, if denominator is nonzero, or 0, if otherwise - * - */ - @JsonProperty("receivedPercentDiscard") - public Double getReceivedPercentDiscard() { - return receivedPercentDiscard; - } - - /** - * Percentage of discarded packets received; value = (receivedDiscardedPacketsDelta / receivedTotalPacketsDelta) x 100, if denominator is nonzero, or 0, if otherwise - * - */ - @JsonProperty("receivedPercentDiscard") - public void setReceivedPercentDiscard(Double receivedPercentDiscard) { - this.receivedPercentDiscard = receivedPercentDiscard; - } - - /** - * Percentage of error packets received; value = (receivedErrorPacketsDelta / receivedTotalPacketsDelta) x 100, if denominator is nonzero, or 0, if otherwise. - * - */ - @JsonProperty("receivedPercentError") - public Double getReceivedPercentError() { - return receivedPercentError; - } - - /** - * Percentage of error packets received; value = (receivedErrorPacketsDelta / receivedTotalPacketsDelta) x 100, if denominator is nonzero, or 0, if otherwise. - * - */ - @JsonProperty("receivedPercentError") - public void setReceivedPercentError(Double receivedPercentError) { - this.receivedPercentError = receivedPercentError; - } - - /** - * Count of all packets received within the measurement interval - * - */ - @JsonProperty("receivedTotalPacketsDelta") - public Double getReceivedTotalPacketsDelta() { - return receivedTotalPacketsDelta; - } - - /** - * Count of all packets received within the measurement interval - * - */ - @JsonProperty("receivedTotalPacketsDelta") - public void setReceivedTotalPacketsDelta(Double receivedTotalPacketsDelta) { - this.receivedTotalPacketsDelta = receivedTotalPacketsDelta; - } - - /** - * Cumulative count of unicast packets received as read at the end of the measurement interval - * - */ - @JsonProperty("receivedUnicastPacketsAccumulated") - public Double getReceivedUnicastPacketsAccumulated() { - return receivedUnicastPacketsAccumulated; - } - - /** - * Cumulative count of unicast packets received as read at the end of the measurement interval - * - */ - @JsonProperty("receivedUnicastPacketsAccumulated") - public void setReceivedUnicastPacketsAccumulated(Double receivedUnicastPacketsAccumulated) { - this.receivedUnicastPacketsAccumulated = receivedUnicastPacketsAccumulated; - } - - /** - * Count of unicast packets received within the measurement interval - * - */ - @JsonProperty("receivedUnicastPacketsDelta") - public Double getReceivedUnicastPacketsDelta() { - return receivedUnicastPacketsDelta; - } - - /** - * Count of unicast packets received within the measurement interval - * - */ - @JsonProperty("receivedUnicastPacketsDelta") - public void setReceivedUnicastPacketsDelta(Double receivedUnicastPacketsDelta) { - this.receivedUnicastPacketsDelta = receivedUnicastPacketsDelta; - } - - /** - * Percentage of utilization received; value = (receivedOctetsDelta / (speed x (lastEpochMicrosec - startEpochMicrosec))) x 100, if denominator is nonzero, or 0, if otherwise - * - */ - @JsonProperty("receivedUtilization") - public Double getReceivedUtilization() { - return receivedUtilization; - } - - /** - * Percentage of utilization received; value = (receivedOctetsDelta / (speed x (lastEpochMicrosec - startEpochMicrosec))) x 100, if denominator is nonzero, or 0, if otherwise - * - */ - @JsonProperty("receivedUtilization") - public void setReceivedUtilization(Double receivedUtilization) { - this.receivedUtilization = receivedUtilization; - } - - /** - * Speed configured in mbps - * - */ - @JsonProperty("speed") - public Double getSpeed() { - return speed; - } - - /** - * Speed configured in mbps - * - */ - @JsonProperty("speed") - public void setSpeed(Double speed) { - this.speed = speed; - } - - /** - * Cumulative count of broadcast packets transmitted as read at the end of the measurement interval - * - */ - @JsonProperty("transmittedBroadcastPacketsAccumulated") - public Double getTransmittedBroadcastPacketsAccumulated() { - return transmittedBroadcastPacketsAccumulated; - } - - /** - * Cumulative count of broadcast packets transmitted as read at the end of the measurement interval - * - */ - @JsonProperty("transmittedBroadcastPacketsAccumulated") - public void setTransmittedBroadcastPacketsAccumulated(Double transmittedBroadcastPacketsAccumulated) { - this.transmittedBroadcastPacketsAccumulated = transmittedBroadcastPacketsAccumulated; - } - - /** - * Count of broadcast packets transmitted within the measurement interval - * - */ - @JsonProperty("transmittedBroadcastPacketsDelta") - public Double getTransmittedBroadcastPacketsDelta() { - return transmittedBroadcastPacketsDelta; - } - - /** - * Count of broadcast packets transmitted within the measurement interval - * - */ - @JsonProperty("transmittedBroadcastPacketsDelta") - public void setTransmittedBroadcastPacketsDelta(Double transmittedBroadcastPacketsDelta) { - this.transmittedBroadcastPacketsDelta = transmittedBroadcastPacketsDelta; - } - - /** - * Cumulative count of discarded packets transmitted as read at the end of the measurement interval - * - */ - @JsonProperty("transmittedDiscardedPacketsAccumulated") - public Double getTransmittedDiscardedPacketsAccumulated() { - return transmittedDiscardedPacketsAccumulated; - } - - /** - * Cumulative count of discarded packets transmitted as read at the end of the measurement interval - * - */ - @JsonProperty("transmittedDiscardedPacketsAccumulated") - public void setTransmittedDiscardedPacketsAccumulated(Double transmittedDiscardedPacketsAccumulated) { - this.transmittedDiscardedPacketsAccumulated = transmittedDiscardedPacketsAccumulated; - } - - /** - * Count of discarded packets transmitted within the measurement interval - * - */ - @JsonProperty("transmittedDiscardedPacketsDelta") - public Double getTransmittedDiscardedPacketsDelta() { - return transmittedDiscardedPacketsDelta; - } - - /** - * Count of discarded packets transmitted within the measurement interval - * - */ - @JsonProperty("transmittedDiscardedPacketsDelta") - public void setTransmittedDiscardedPacketsDelta(Double transmittedDiscardedPacketsDelta) { - this.transmittedDiscardedPacketsDelta = transmittedDiscardedPacketsDelta; - } - - /** - * Cumulative count of error packets transmitted as read at the end of the measurement interval - * - */ - @JsonProperty("transmittedErrorPacketsAccumulated") - public Double getTransmittedErrorPacketsAccumulated() { - return transmittedErrorPacketsAccumulated; - } - - /** - * Cumulative count of error packets transmitted as read at the end of the measurement interval - * - */ - @JsonProperty("transmittedErrorPacketsAccumulated") - public void setTransmittedErrorPacketsAccumulated(Double transmittedErrorPacketsAccumulated) { - this.transmittedErrorPacketsAccumulated = transmittedErrorPacketsAccumulated; - } - - /** - * Count of error packets transmitted within the measurement interval - * - */ - @JsonProperty("transmittedErrorPacketsDelta") - public Double getTransmittedErrorPacketsDelta() { - return transmittedErrorPacketsDelta; - } - - /** - * Count of error packets transmitted within the measurement interval - * - */ - @JsonProperty("transmittedErrorPacketsDelta") - public void setTransmittedErrorPacketsDelta(Double transmittedErrorPacketsDelta) { - this.transmittedErrorPacketsDelta = transmittedErrorPacketsDelta; - } - - /** - * Cumulative count of multicast packets transmitted as read at the end of the measurement interval - * - */ - @JsonProperty("transmittedMulticastPacketsAccumulated") - public Double getTransmittedMulticastPacketsAccumulated() { - return transmittedMulticastPacketsAccumulated; - } - - /** - * Cumulative count of multicast packets transmitted as read at the end of the measurement interval - * - */ - @JsonProperty("transmittedMulticastPacketsAccumulated") - public void setTransmittedMulticastPacketsAccumulated(Double transmittedMulticastPacketsAccumulated) { - this.transmittedMulticastPacketsAccumulated = transmittedMulticastPacketsAccumulated; - } - - /** - * Count of multicast packets transmitted within the measurement interval - * - */ - @JsonProperty("transmittedMulticastPacketsDelta") - public Double getTransmittedMulticastPacketsDelta() { - return transmittedMulticastPacketsDelta; - } - - /** - * Count of multicast packets transmitted within the measurement interval - * - */ - @JsonProperty("transmittedMulticastPacketsDelta") - public void setTransmittedMulticastPacketsDelta(Double transmittedMulticastPacketsDelta) { - this.transmittedMulticastPacketsDelta = transmittedMulticastPacketsDelta; - } - - /** - * Cumulative count of octets transmitted as read at the end of the measurement interval - * - */ - @JsonProperty("transmittedOctetsAccumulated") - public Double getTransmittedOctetsAccumulated() { - return transmittedOctetsAccumulated; - } - - /** - * Cumulative count of octets transmitted as read at the end of the measurement interval - * - */ - @JsonProperty("transmittedOctetsAccumulated") - public void setTransmittedOctetsAccumulated(Double transmittedOctetsAccumulated) { - this.transmittedOctetsAccumulated = transmittedOctetsAccumulated; - } - - /** - * Count of octets transmitted within the measurement interval - * - */ - @JsonProperty("transmittedOctetsDelta") - public Double getTransmittedOctetsDelta() { - return transmittedOctetsDelta; - } - - /** - * Count of octets transmitted within the measurement interval - * - */ - @JsonProperty("transmittedOctetsDelta") - public void setTransmittedOctetsDelta(Double transmittedOctetsDelta) { - this.transmittedOctetsDelta = transmittedOctetsDelta; - } - - /** - * Cumulative count of all packets transmitted as read at the end of the measurement interval - * - */ - @JsonProperty("transmittedTotalPacketsAccumulated") - public Double getTransmittedTotalPacketsAccumulated() { - return transmittedTotalPacketsAccumulated; - } - - /** - * Cumulative count of all packets transmitted as read at the end of the measurement interval - * - */ - @JsonProperty("transmittedTotalPacketsAccumulated") - public void setTransmittedTotalPacketsAccumulated(Double transmittedTotalPacketsAccumulated) { - this.transmittedTotalPacketsAccumulated = transmittedTotalPacketsAccumulated; - } - - /** - * Count of all packets transmitted within the measurement interval - * - */ - @JsonProperty("transmittedTotalPacketsDelta") - public Double getTransmittedTotalPacketsDelta() { - return transmittedTotalPacketsDelta; - } - - /** - * Count of all packets transmitted within the measurement interval - * - */ - @JsonProperty("transmittedTotalPacketsDelta") - public void setTransmittedTotalPacketsDelta(Double transmittedTotalPacketsDelta) { - this.transmittedTotalPacketsDelta = transmittedTotalPacketsDelta; - } - - /** - * Cumulative count of unicast packets transmitted as read at the end of the measurement interval - * - */ - @JsonProperty("transmittedUnicastPacketsAccumulated") - public Double getTransmittedUnicastPacketsAccumulated() { - return transmittedUnicastPacketsAccumulated; - } - - /** - * Cumulative count of unicast packets transmitted as read at the end of the measurement interval - * - */ - @JsonProperty("transmittedUnicastPacketsAccumulated") - public void setTransmittedUnicastPacketsAccumulated(Double transmittedUnicastPacketsAccumulated) { - this.transmittedUnicastPacketsAccumulated = transmittedUnicastPacketsAccumulated; - } - - /** - * Count of unicast packets transmitted within the measurement interval - * - */ - @JsonProperty("transmittedUnicastPacketsDelta") - public Double getTransmittedUnicastPacketsDelta() { - return transmittedUnicastPacketsDelta; - } - - /** - * Count of unicast packets transmitted within the measurement interval - * - */ - @JsonProperty("transmittedUnicastPacketsDelta") - public void setTransmittedUnicastPacketsDelta(Double transmittedUnicastPacketsDelta) { - this.transmittedUnicastPacketsDelta = transmittedUnicastPacketsDelta; - } - - /** - * Percentage of discarded packets transmitted; value = (transmittedDiscardedPacketsDelta / transmittedTotalPacketsDelta) x 100, if denominator is nonzero, or 0, if otherwise - * - */ - @JsonProperty("transmittedPercentDiscard") - public Double getTransmittedPercentDiscard() { - return transmittedPercentDiscard; - } - - /** - * Percentage of discarded packets transmitted; value = (transmittedDiscardedPacketsDelta / transmittedTotalPacketsDelta) x 100, if denominator is nonzero, or 0, if otherwise - * - */ - @JsonProperty("transmittedPercentDiscard") - public void setTransmittedPercentDiscard(Double transmittedPercentDiscard) { - this.transmittedPercentDiscard = transmittedPercentDiscard; - } - - /** - * Percentage of error packets received; value = (transmittedErrorPacketsDelta / transmittedTotalPacketsDelta) x 100, if denominator is nonzero, or 0, if otherwise - * - */ - @JsonProperty("transmittedPercentError") - public Double getTransmittedPercentError() { - return transmittedPercentError; - } - - /** - * Percentage of error packets received; value = (transmittedErrorPacketsDelta / transmittedTotalPacketsDelta) x 100, if denominator is nonzero, or 0, if otherwise - * - */ - @JsonProperty("transmittedPercentError") - public void setTransmittedPercentError(Double transmittedPercentError) { - this.transmittedPercentError = transmittedPercentError; - } - - /** - * Percentage of utilization transmitted; value = (transmittedOctetsDelta / (speed x (lastEpochMicrosec - startEpochMicrosec))) x 100, if denominator is nonzero, or 0, if otherwise. - * - */ - @JsonProperty("transmittedUtilization") - public Double getTransmittedUtilization() { - return transmittedUtilization; - } - - /** - * Percentage of utilization transmitted; value = (transmittedOctetsDelta / (speed x (lastEpochMicrosec - startEpochMicrosec))) x 100, if denominator is nonzero, or 0, if otherwise. - * - */ - @JsonProperty("transmittedUtilization") - public void setTransmittedUtilization(Double transmittedUtilization) { - this.transmittedUtilization = transmittedUtilization; - } - - /** - * Indicates whether vNicPerformance values are likely inaccurate due to counter overflow or other condtions - * (Required) - * - */ - @JsonProperty("valuesAreSuspect") - public NicPerformanceArray.ValuesAreSuspect getValuesAreSuspect() { - return valuesAreSuspect; - } - - /** - * Indicates whether vNicPerformance values are likely inaccurate due to counter overflow or other condtions - * (Required) - * - */ - @JsonProperty("valuesAreSuspect") - public void setValuesAreSuspect(NicPerformanceArray.ValuesAreSuspect valuesAreSuspect) { - this.valuesAreSuspect = valuesAreSuspect; - } - - @Override - public String toString() { - return ToStringBuilder.reflectionToString(this); - } - - @Override - public int hashCode() { - return new HashCodeBuilder().append(administrativeState).append(nicIdentifier).append(operationalState).append(receivedBroadcastPacketsAccumulated).append(receivedBroadcastPacketsDelta).append(receivedDiscardedPacketsAccumulated).append(receivedDiscardedPacketsDelta).append(receivedErrorPacketsAccumulated).append(receivedErrorPacketsDelta).append(receivedMulticastPacketsAccumulated).append(receivedMulticastPacketsDelta).append(receivedOctetsAccumulated).append(receivedOctetsDelta).append(receivedTotalPacketsAccumulated).append(receivedPercentDiscard).append(receivedPercentError).append(receivedTotalPacketsDelta).append(receivedUnicastPacketsAccumulated).append(receivedUnicastPacketsDelta).append(receivedUtilization).append(speed).append(transmittedBroadcastPacketsAccumulated).append(transmittedBroadcastPacketsDelta).append(transmittedDiscardedPacketsAccumulated).append(transmittedDiscardedPacketsDelta).append(transmittedErrorPacketsAccumulated).append(transmittedErrorPacketsDelta).append(transmittedMulticastPacketsAccumulated).append(transmittedMulticastPacketsDelta).append(transmittedOctetsAccumulated).append(transmittedOctetsDelta).append(transmittedTotalPacketsAccumulated).append(transmittedTotalPacketsDelta).append(transmittedUnicastPacketsAccumulated).append(transmittedUnicastPacketsDelta).append(transmittedPercentDiscard).append(transmittedPercentError).append(transmittedUtilization).append(valuesAreSuspect).toHashCode(); - } - - @Override - public boolean equals(Object other) { - if (other == this) { - return true; - } - if ((other instanceof NicPerformanceArray) == false) { - return false; - } - NicPerformanceArray rhs = ((NicPerformanceArray) other); - return new EqualsBuilder().append(administrativeState, rhs.administrativeState).append(nicIdentifier, rhs.nicIdentifier).append(operationalState, rhs.operationalState).append(receivedBroadcastPacketsAccumulated, rhs.receivedBroadcastPacketsAccumulated).append(receivedBroadcastPacketsDelta, rhs.receivedBroadcastPacketsDelta).append(receivedDiscardedPacketsAccumulated, rhs.receivedDiscardedPacketsAccumulated).append(receivedDiscardedPacketsDelta, rhs.receivedDiscardedPacketsDelta).append(receivedErrorPacketsAccumulated, rhs.receivedErrorPacketsAccumulated).append(receivedErrorPacketsDelta, rhs.receivedErrorPacketsDelta).append(receivedMulticastPacketsAccumulated, rhs.receivedMulticastPacketsAccumulated).append(receivedMulticastPacketsDelta, rhs.receivedMulticastPacketsDelta).append(receivedOctetsAccumulated, rhs.receivedOctetsAccumulated).append(receivedOctetsDelta, rhs.receivedOctetsDelta).append(receivedTotalPacketsAccumulated, rhs.receivedTotalPacketsAccumulated).append(receivedPercentDiscard, rhs.receivedPercentDiscard).append(receivedPercentError, rhs.receivedPercentError).append(receivedTotalPacketsDelta, rhs.receivedTotalPacketsDelta).append(receivedUnicastPacketsAccumulated, rhs.receivedUnicastPacketsAccumulated).append(receivedUnicastPacketsDelta, rhs.receivedUnicastPacketsDelta).append(receivedUtilization, rhs.receivedUtilization).append(speed, rhs.speed).append(transmittedBroadcastPacketsAccumulated, rhs.transmittedBroadcastPacketsAccumulated).append(transmittedBroadcastPacketsDelta, rhs.transmittedBroadcastPacketsDelta).append(transmittedDiscardedPacketsAccumulated, rhs.transmittedDiscardedPacketsAccumulated).append(transmittedDiscardedPacketsDelta, rhs.transmittedDiscardedPacketsDelta).append(transmittedErrorPacketsAccumulated, rhs.transmittedErrorPacketsAccumulated).append(transmittedErrorPacketsDelta, rhs.transmittedErrorPacketsDelta).append(transmittedMulticastPacketsAccumulated, rhs.transmittedMulticastPacketsAccumulated).append(transmittedMulticastPacketsDelta, rhs.transmittedMulticastPacketsDelta).append(transmittedOctetsAccumulated, rhs.transmittedOctetsAccumulated).append(transmittedOctetsDelta, rhs.transmittedOctetsDelta).append(transmittedTotalPacketsAccumulated, rhs.transmittedTotalPacketsAccumulated).append(transmittedTotalPacketsDelta, rhs.transmittedTotalPacketsDelta).append(transmittedUnicastPacketsAccumulated, rhs.transmittedUnicastPacketsAccumulated).append(transmittedUnicastPacketsDelta, rhs.transmittedUnicastPacketsDelta).append(transmittedPercentDiscard, rhs.transmittedPercentDiscard).append(transmittedPercentError, rhs.transmittedPercentError).append(transmittedUtilization, rhs.transmittedUtilization).append(valuesAreSuspect, rhs.valuesAreSuspect).isEquals(); - } - - public enum AdministrativeState { - - IN_SERVICE("inService"), - OUT_OF_SERVICE("outOfService"); - private final String value; - private final static Map CONSTANTS = new HashMap(); - - static { - for (NicPerformanceArray.AdministrativeState c: values()) { - CONSTANTS.put(c.value, c); - } - } - - private AdministrativeState(String value) { - this.value = value; - } - - @Override - public String toString() { - return this.value; - } - - @JsonValue - public String value() { - return this.value; - } - - @JsonCreator - public static NicPerformanceArray.AdministrativeState fromValue(String value) { - NicPerformanceArray.AdministrativeState constant = CONSTANTS.get(value); - if (constant == null) { - throw new IllegalArgumentException(value); - } else { - return constant; - } - } - - } - - public enum OperationalState { - - IN_SERVICE("inService"), - OUT_OF_SERVICE("outOfService"); - private final String value; - private final static Map CONSTANTS = new HashMap(); - - static { - for (NicPerformanceArray.OperationalState c: values()) { - CONSTANTS.put(c.value, c); - } - } - - private OperationalState(String value) { - this.value = value; - } - - @Override - public String toString() { - return this.value; - } - - @JsonValue - public String value() { - return this.value; - } - - @JsonCreator - public static NicPerformanceArray.OperationalState fromValue(String value) { - NicPerformanceArray.OperationalState constant = CONSTANTS.get(value); - if (constant == null) { - throw new IllegalArgumentException(value); - } else { - return constant; - } - } - - } - - public enum ValuesAreSuspect { - - TRUE("true"), - FALSE("false"); - private final String value; - private final static Map CONSTANTS = new HashMap(); - - static { - for (NicPerformanceArray.ValuesAreSuspect c: values()) { - CONSTANTS.put(c.value, c); - } - } - - private ValuesAreSuspect(String value) { - this.value = value; - } - - @Override - public String toString() { - return this.value; - } - - @JsonValue - public String value() { - return this.value; - } - - @JsonCreator - public static NicPerformanceArray.ValuesAreSuspect fromValue(String value) { - NicPerformanceArray.ValuesAreSuspect constant = CONSTANTS.get(value); - if (constant == null) { - throw new IllegalArgumentException(value); - } else { - return constant; - } - } - - } - -} diff --git a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/NotificationFields.java b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/NotificationFields.java deleted file mode 100644 index 973606c..0000000 --- a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/NotificationFields.java +++ /dev/null @@ -1,350 +0,0 @@ -/* -* ============LICENSE_START======================================================= -* ONAP : DCAE -* ================================================================================ -* Copyright 2018 TechMahindra -*================================================================================= -* 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========================================================= -*/ -package org.onap.dcaegen2.ves.domain.ves7_0; - -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyDescription; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonValue; -import org.apache.commons.lang.builder.EqualsBuilder; -import org.apache.commons.lang.builder.HashCodeBuilder; -import org.apache.commons.lang.builder.ToStringBuilder; - - -/** - * notification fields - * - */ -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonPropertyOrder({ - "additionalFields", - "arrayOfNamedHashMap", - "changeContact", - "changeIdentifier", - "changeType", - "newState", - "oldState", - "notificationFieldsVersion", - "stateInterface" -}) -public class NotificationFields { - - /** - * an associative array which is an array of key:value pairs - * - */ - @JsonProperty("additionalFields") - @JsonPropertyDescription("an associative array which is an array of key:value pairs") - private AlarmAdditionalInformation additionalFields; - /** - * array of named hashMaps - * - */ - @JsonProperty("arrayOfNamedHashMap") - @JsonPropertyDescription("array of named hashMaps") - private List arrayOfNamedHashMap = new ArrayList(); - /** - * identifier for a contact related to the change - * - */ - @JsonProperty("changeContact") - @JsonPropertyDescription("identifier for a contact related to the change") - private String changeContact; - /** - * system or session identifier associated with the change - * (Required) - * - */ - @JsonProperty("changeIdentifier") - @JsonPropertyDescription("system or session identifier associated with the change") - private String changeIdentifier; - /** - * describes what has changed for the entity - * (Required) - * - */ - @JsonProperty("changeType") - @JsonPropertyDescription("describes what has changed for the entity") - private String changeType; - /** - * new state of the entity - * - */ - @JsonProperty("newState") - @JsonPropertyDescription("new state of the entity") - private String newState; - /** - * previous state of the entity - * - */ - @JsonProperty("oldState") - @JsonPropertyDescription("previous state of the entity") - private String oldState; - /** - * version of the notificationFields block - * (Required) - * - */ - @JsonProperty("notificationFieldsVersion") - @JsonPropertyDescription("version of the notificationFields block") - private NotificationFields.NotificationFieldsVersion notificationFieldsVersion; - /** - * card or port name of the entity that changed state - * - */ - @JsonProperty("stateInterface") - @JsonPropertyDescription("card or port name of the entity that changed state") - private String stateInterface; - - /** - * an associative array which is an array of key:value pairs - * - */ - @JsonProperty("additionalFields") - public AlarmAdditionalInformation getAdditionalFields() { - return additionalFields; - } - - /** - * an associative array which is an array of key:value pairs - * - */ - @JsonProperty("additionalFields") - public void setAdditionalFields(AlarmAdditionalInformation additionalFields) { - this.additionalFields = additionalFields; - } - - /** - * array of named hashMaps - * - */ - @JsonProperty("arrayOfNamedHashMap") - public List getArrayOfNamedHashMap() { - return arrayOfNamedHashMap; - } - - /** - * array of named hashMaps - * - */ - @JsonProperty("arrayOfNamedHashMap") - public void setArrayOfNamedHashMap(List arrayOfNamedHashMap) { - this.arrayOfNamedHashMap = arrayOfNamedHashMap; - } - - /** - * identifier for a contact related to the change - * - */ - @JsonProperty("changeContact") - public String getChangeContact() { - return changeContact; - } - - /** - * identifier for a contact related to the change - * - */ - @JsonProperty("changeContact") - public void setChangeContact(String changeContact) { - this.changeContact = changeContact; - } - - /** - * system or session identifier associated with the change - * (Required) - * - */ - @JsonProperty("changeIdentifier") - public String getChangeIdentifier() { - return changeIdentifier; - } - - /** - * system or session identifier associated with the change - * (Required) - * - */ - @JsonProperty("changeIdentifier") - public void setChangeIdentifier(String changeIdentifier) { - this.changeIdentifier = changeIdentifier; - } - - /** - * describes what has changed for the entity - * (Required) - * - */ - @JsonProperty("changeType") - public String getChangeType() { - return changeType; - } - - /** - * describes what has changed for the entity - * (Required) - * - */ - @JsonProperty("changeType") - public void setChangeType(String changeType) { - this.changeType = changeType; - } - - /** - * new state of the entity - * - */ - @JsonProperty("newState") - public String getNewState() { - return newState; - } - - /** - * new state of the entity - * - */ - @JsonProperty("newState") - public void setNewState(String newState) { - this.newState = newState; - } - - /** - * previous state of the entity - * - */ - @JsonProperty("oldState") - public String getOldState() { - return oldState; - } - - /** - * previous state of the entity - * - */ - @JsonProperty("oldState") - public void setOldState(String oldState) { - this.oldState = oldState; - } - - /** - * version of the notificationFields block - * (Required) - * - */ - @JsonProperty("notificationFieldsVersion") - public NotificationFields.NotificationFieldsVersion getNotificationFieldsVersion() { - return notificationFieldsVersion; - } - - /** - * version of the notificationFields block - * (Required) - * - */ - @JsonProperty("notificationFieldsVersion") - public void setNotificationFieldsVersion(NotificationFields.NotificationFieldsVersion notificationFieldsVersion) { - this.notificationFieldsVersion = notificationFieldsVersion; - } - - /** - * card or port name of the entity that changed state - * - */ - @JsonProperty("stateInterface") - public String getStateInterface() { - return stateInterface; - } - - /** - * card or port name of the entity that changed state - * - */ - @JsonProperty("stateInterface") - public void setStateInterface(String stateInterface) { - this.stateInterface = stateInterface; - } - - @Override - public String toString() { - return ToStringBuilder.reflectionToString(this); - } - - @Override - public int hashCode() { - return new HashCodeBuilder().append(additionalFields).append(arrayOfNamedHashMap).append(changeContact).append(changeIdentifier).append(changeType).append(newState).append(oldState).append(notificationFieldsVersion).append(stateInterface).toHashCode(); - } - - @Override - public boolean equals(Object other) { - if (other == this) { - return true; - } - if ((other instanceof NotificationFields) == false) { - return false; - } - NotificationFields rhs = ((NotificationFields) other); - return new EqualsBuilder().append(additionalFields, rhs.additionalFields).append(arrayOfNamedHashMap, rhs.arrayOfNamedHashMap).append(changeContact, rhs.changeContact).append(changeIdentifier, rhs.changeIdentifier).append(changeType, rhs.changeType).append(newState, rhs.newState).append(oldState, rhs.oldState).append(notificationFieldsVersion, rhs.notificationFieldsVersion).append(stateInterface, rhs.stateInterface).isEquals(); - } - - public enum NotificationFieldsVersion { - - _2_0("2.0"); - private final String value; - private final static Map CONSTANTS = new HashMap(); - - static { - for (NotificationFields.NotificationFieldsVersion c: values()) { - CONSTANTS.put(c.value, c); - } - } - - private NotificationFieldsVersion(String value) { - this.value = value; - } - - @Override - public String toString() { - return this.value; - } - - @JsonValue - public String value() { - return this.value; - } - - @JsonCreator - public static NotificationFields.NotificationFieldsVersion fromValue(String value) { - NotificationFields.NotificationFieldsVersion constant = CONSTANTS.get(value); - if (constant == null) { - throw new IllegalArgumentException(value); - } else { - return constant; - } - } - - } - -} diff --git a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/ObjectInstance.java b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/ObjectInstance.java deleted file mode 100644 index 6999537..0000000 --- a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/ObjectInstance.java +++ /dev/null @@ -1,169 +0,0 @@ -/* -* ============LICENSE_START======================================================= -* ONAP : DCAE -* ================================================================================ -* Copyright 2018 TechMahindra -*================================================================================= -* 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========================================================= -*/ -package org.onap.dcaegen2.ves.domain.ves7_0; - -import java.util.ArrayList; -import java.util.List; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyDescription; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import org.apache.commons.lang.builder.EqualsBuilder; -import org.apache.commons.lang.builder.HashCodeBuilder; -import org.apache.commons.lang.builder.ToStringBuilder; - - -/** - * meta-information about an instance of a jsonObject along with the actual object instance - * - */ -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonPropertyOrder({ - "jsonObject", - "objectInstance", - "objectInstanceEpochMicrosec", - "objectKeys" -}) -public class ObjectInstance { - - /** - * json object schema, name and other meta-information along with one or more object instances - * - */ - @JsonProperty("jsonObject") - @JsonPropertyDescription("json object schema, name and other meta-information along with one or more object instances") - private AdditionalObject jsonObject; - /** - * an instance conforming to the jsonObject objectSchema - * - */ - @JsonProperty("objectInstance") - @JsonPropertyDescription("an instance conforming to the jsonObject objectSchema") - private ObjectInstance objectInstance; - /** - * the unix time aka epoch time associated with this objectInstance--as microseconds elapsed since 1 Jan 1970 not including leap seconds - * - */ - @JsonProperty("objectInstanceEpochMicrosec") - @JsonPropertyDescription("the unix time aka epoch time associated with this objectInstance--as microseconds elapsed since 1 Jan 1970 not including leap seconds") - private Double objectInstanceEpochMicrosec; - /** - * an ordered set of keys that identifies this particular instance of jsonObject - * - */ - @JsonProperty("objectKeys") - @JsonPropertyDescription("an ordered set of keys that identifies this particular instance of jsonObject") - private List objectKeys = new ArrayList(); - - /** - * json object schema, name and other meta-information along with one or more object instances - * - */ - @JsonProperty("jsonObject") - public AdditionalObject getJsonObject() { - return jsonObject; - } - - /** - * json object schema, name and other meta-information along with one or more object instances - * - */ - @JsonProperty("jsonObject") - public void setJsonObject(AdditionalObject jsonObject) { - this.jsonObject = jsonObject; - } - - /** - * an instance conforming to the jsonObject objectSchema - * - */ - @JsonProperty("objectInstance") - public ObjectInstance getObjectInstance() { - return objectInstance; - } - - /** - * an instance conforming to the jsonObject objectSchema - * - */ - @JsonProperty("objectInstance") - public void setObjectInstance(ObjectInstance objectInstance) { - this.objectInstance = objectInstance; - } - - /** - * the unix time aka epoch time associated with this objectInstance--as microseconds elapsed since 1 Jan 1970 not including leap seconds - * - */ - @JsonProperty("objectInstanceEpochMicrosec") - public Double getObjectInstanceEpochMicrosec() { - return objectInstanceEpochMicrosec; - } - - /** - * the unix time aka epoch time associated with this objectInstance--as microseconds elapsed since 1 Jan 1970 not including leap seconds - * - */ - @JsonProperty("objectInstanceEpochMicrosec") - public void setObjectInstanceEpochMicrosec(Double objectInstanceEpochMicrosec) { - this.objectInstanceEpochMicrosec = objectInstanceEpochMicrosec; - } - - /** - * an ordered set of keys that identifies this particular instance of jsonObject - * - */ - @JsonProperty("objectKeys") - public List getObjectKeys() { - return objectKeys; - } - - /** - * an ordered set of keys that identifies this particular instance of jsonObject - * - */ - @JsonProperty("objectKeys") - public void setObjectKeys(List objectKeys) { - this.objectKeys = objectKeys; - } - - @Override - public String toString() { - return ToStringBuilder.reflectionToString(this); - } - - @Override - public int hashCode() { - return new HashCodeBuilder().append(jsonObject).append(objectInstance).append(objectInstanceEpochMicrosec).append(objectKeys).toHashCode(); - } - - @Override - public boolean equals(Object other) { - if (other == this) { - return true; - } - if ((other instanceof ObjectInstance) == false) { - return false; - } - ObjectInstance rhs = ((ObjectInstance) other); - return new EqualsBuilder().append(jsonObject, rhs.jsonObject).append(objectInstance, rhs.objectInstance).append(objectInstanceEpochMicrosec, rhs.objectInstanceEpochMicrosec).append(objectKeys, rhs.objectKeys).isEquals(); - } - -} diff --git a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/ObjectKey.java b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/ObjectKey.java deleted file mode 100644 index e641dc5..0000000 --- a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/ObjectKey.java +++ /dev/null @@ -1,144 +0,0 @@ -/* -* ============LICENSE_START======================================================= -* ONAP : DCAE -* ================================================================================ -* Copyright 2018 TechMahindra -*================================================================================= -* 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========================================================= -*/ -package org.onap.dcaegen2.ves.domain.ves7_0; - -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyDescription; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import org.apache.commons.lang.builder.EqualsBuilder; -import org.apache.commons.lang.builder.HashCodeBuilder; -import org.apache.commons.lang.builder.ToStringBuilder; - - -/** - * tuple which provides the name of a key along with its value and relative order - * - */ -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonPropertyOrder({ - "keyName", - "keyOrder", - "keyValue" -}) -public class ObjectKey { - - /** - * name of the key - * (Required) - * - */ - @JsonProperty("keyName") - @JsonPropertyDescription("name of the key") - private String keyName; - /** - * relative sequence or order of the key with respect to other keys - * - */ - @JsonProperty("keyOrder") - @JsonPropertyDescription("relative sequence or order of the key with respect to other keys") - private Integer keyOrder; - /** - * value of the key - * - */ - @JsonProperty("keyValue") - @JsonPropertyDescription("value of the key") - private String keyValue; - - /** - * name of the key - * (Required) - * - */ - @JsonProperty("keyName") - public String getKeyName() { - return keyName; - } - - /** - * name of the key - * (Required) - * - */ - @JsonProperty("keyName") - public void setKeyName(String keyName) { - this.keyName = keyName; - } - - /** - * relative sequence or order of the key with respect to other keys - * - */ - @JsonProperty("keyOrder") - public Integer getKeyOrder() { - return keyOrder; - } - - /** - * relative sequence or order of the key with respect to other keys - * - */ - @JsonProperty("keyOrder") - public void setKeyOrder(Integer keyOrder) { - this.keyOrder = keyOrder; - } - - /** - * value of the key - * - */ - @JsonProperty("keyValue") - public String getKeyValue() { - return keyValue; - } - - /** - * value of the key - * - */ - @JsonProperty("keyValue") - public void setKeyValue(String keyValue) { - this.keyValue = keyValue; - } - - @Override - public String toString() { - return ToStringBuilder.reflectionToString(this); - } - - @Override - public int hashCode() { - return new HashCodeBuilder().append(keyName).append(keyOrder).append(keyValue).toHashCode(); - } - - @Override - public boolean equals(Object other) { - if (other == this) { - return true; - } - if ((other instanceof ObjectKey) == false) { - return false; - } - ObjectKey rhs = ((ObjectKey) other); - return new EqualsBuilder().append(keyName, rhs.keyName).append(keyOrder, rhs.keyOrder).append(keyValue, rhs.keyValue).isEquals(); - } - -} diff --git a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/OtherFields.java b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/OtherFields.java deleted file mode 100644 index b38707a..0000000 --- a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/OtherFields.java +++ /dev/null @@ -1,214 +0,0 @@ -/* -* ============LICENSE_START======================================================= -* ONAP : DCAE -* ================================================================================ -* Copyright 2018 TechMahindra -*================================================================================= -* 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========================================================= -*/ -package org.onap.dcaegen2.ves.domain.ves7_0; - -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyDescription; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonValue; -import org.apache.commons.lang.builder.EqualsBuilder; -import org.apache.commons.lang.builder.HashCodeBuilder; -import org.apache.commons.lang.builder.ToStringBuilder; - - -/** - * fields for events belonging to the 'other' domain of the commonEventHeader domain enumeration - * - */ -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonPropertyOrder({ - "arrayOfNamedHashMap", - "hashMap", - "jsonObjects", - "otherFieldsVersion" -}) -public class OtherFields { - - /** - * array of named hashMaps - * - */ - @JsonProperty("arrayOfNamedHashMap") - @JsonPropertyDescription("array of named hashMaps") - private List arrayOfNamedHashMap = new ArrayList(); - /** - * an associative array which is an array of key:value pairs - * - */ - @JsonProperty("hashMap") - @JsonPropertyDescription("an associative array which is an array of key:value pairs") - private AlarmAdditionalInformation hashMap; - /** - * array of json objects described by name, schema and other meta-information - * - */ - @JsonProperty("jsonObjects") - @JsonPropertyDescription("array of json objects described by name, schema and other meta-information") - private List jsonObjects = new ArrayList(); - /** - * version of the otherFields block - * (Required) - * - */ - @JsonProperty("otherFieldsVersion") - @JsonPropertyDescription("version of the otherFields block") - private OtherFields.OtherFieldsVersion otherFieldsVersion; - - /** - * array of named hashMaps - * - */ - @JsonProperty("arrayOfNamedHashMap") - public List getArrayOfNamedHashMap() { - return arrayOfNamedHashMap; - } - - /** - * array of named hashMaps - * - */ - @JsonProperty("arrayOfNamedHashMap") - public void setArrayOfNamedHashMap(List arrayOfNamedHashMap) { - this.arrayOfNamedHashMap = arrayOfNamedHashMap; - } - - /** - * an associative array which is an array of key:value pairs - * - */ - @JsonProperty("hashMap") - public AlarmAdditionalInformation getHashMap() { - return hashMap; - } - - /** - * an associative array which is an array of key:value pairs - * - */ - @JsonProperty("hashMap") - public void setHashMap(AlarmAdditionalInformation hashMap) { - this.hashMap = hashMap; - } - - /** - * array of json objects described by name, schema and other meta-information - * - */ - @JsonProperty("jsonObjects") - public List getJsonObjects() { - return jsonObjects; - } - - /** - * array of json objects described by name, schema and other meta-information - * - */ - @JsonProperty("jsonObjects") - public void setJsonObjects(List jsonObjects) { - this.jsonObjects = jsonObjects; - } - - /** - * version of the otherFields block - * (Required) - * - */ - @JsonProperty("otherFieldsVersion") - public OtherFields.OtherFieldsVersion getOtherFieldsVersion() { - return otherFieldsVersion; - } - - /** - * version of the otherFields block - * (Required) - * - */ - @JsonProperty("otherFieldsVersion") - public void setOtherFieldsVersion(OtherFields.OtherFieldsVersion otherFieldsVersion) { - this.otherFieldsVersion = otherFieldsVersion; - } - - @Override - public String toString() { - return ToStringBuilder.reflectionToString(this); - } - - @Override - public int hashCode() { - return new HashCodeBuilder().append(arrayOfNamedHashMap).append(hashMap).append(jsonObjects).append(otherFieldsVersion).toHashCode(); - } - - @Override - public boolean equals(Object other) { - if (other == this) { - return true; - } - if ((other instanceof OtherFields) == false) { - return false; - } - OtherFields rhs = ((OtherFields) other); - return new EqualsBuilder().append(arrayOfNamedHashMap, rhs.arrayOfNamedHashMap).append(hashMap, rhs.hashMap).append(jsonObjects, rhs.jsonObjects).append(otherFieldsVersion, rhs.otherFieldsVersion).isEquals(); - } - - public enum OtherFieldsVersion { - - _3_0("3.0"); - private final String value; - private final static Map CONSTANTS = new HashMap(); - - static { - for (OtherFields.OtherFieldsVersion c: values()) { - CONSTANTS.put(c.value, c); - } - } - - private OtherFieldsVersion(String value) { - this.value = value; - } - - @Override - public String toString() { - return this.value; - } - - @JsonValue - public String value() { - return this.value; - } - - @JsonCreator - public static OtherFields.OtherFieldsVersion fromValue(String value) { - OtherFields.OtherFieldsVersion constant = CONSTANTS.get(value); - if (constant == null) { - throw new IllegalArgumentException(value); - } else { - return constant; - } - } - - } - -} diff --git a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/PnfRegistrationFields.java b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/PnfRegistrationFields.java deleted file mode 100644 index 3fe8b00..0000000 --- a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/PnfRegistrationFields.java +++ /dev/null @@ -1,446 +0,0 @@ -/* -* ============LICENSE_START======================================================= -* ONAP : DCAE -* ================================================================================ -* Copyright 2018 TechMahindra -*================================================================================= -* 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========================================================= -*/ -package org.onap.dcaegen2.ves.domain.ves7_0; - -import java.util.HashMap; -import java.util.Map; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyDescription; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonValue; -import org.apache.commons.lang.builder.EqualsBuilder; -import org.apache.commons.lang.builder.HashCodeBuilder; -import org.apache.commons.lang.builder.ToStringBuilder; - - -/** - * hardware device registration fields - * - */ -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonPropertyOrder({ - "additionalFields", - "lastServiceDate", - "macAddress", - "manufactureDate", - "modelNumber", - "oamV4IpAddress", - "oamV6IpAddress", - "pnfRegistrationFieldsVersion", - "serialNumber", - "softwareVersion", - "unitFamily", - "unitType", - "vendorName" -}) -public class PnfRegistrationFields { - - /** - * an associative array which is an array of key:value pairs - * - */ - @JsonProperty("additionalFields") - @JsonPropertyDescription("an associative array which is an array of key:value pairs") - private AlarmAdditionalInformation additionalFields; - /** - * TS 32.692 dateOfLastService = date of last service; e.g. 15022017 - * - */ - @JsonProperty("lastServiceDate") - @JsonPropertyDescription("TS 32.692 dateOfLastService = date of last service; e.g. 15022017") - private String lastServiceDate; - /** - * MAC address of OAM interface of the unit - * - */ - @JsonProperty("macAddress") - @JsonPropertyDescription("MAC address of OAM interface of the unit") - private String macAddress; - /** - * TS 32.692 dateOfManufacture = manufacture date of the unit; 24032016 - * - */ - @JsonProperty("manufactureDate") - @JsonPropertyDescription("TS 32.692 dateOfManufacture = manufacture date of the unit; 24032016") - private String manufactureDate; - /** - * TS 32.692 versionNumber = version of the unit from vendor; e.g. AJ02. Maps to AAI equip-model - * - */ - @JsonProperty("modelNumber") - @JsonPropertyDescription("TS 32.692 versionNumber = version of the unit from vendor; e.g. AJ02. Maps to AAI equip-model") - private String modelNumber; - /** - * IPv4 m-plane IP address to be used by the manager to contact the PNF - * - */ - @JsonProperty("oamV4IpAddress") - @JsonPropertyDescription("IPv4 m-plane IP address to be used by the manager to contact the PNF") - private String oamV4IpAddress; - /** - * IPv6 m-plane IP address to be used by the manager to contact the PNF - * - */ - @JsonProperty("oamV6IpAddress") - @JsonPropertyDescription("IPv6 m-plane IP address to be used by the manager to contact the PNF") - private String oamV6IpAddress; - /** - * version of the pnfRegistrationFields block - * (Required) - * - */ - @JsonProperty("pnfRegistrationFieldsVersion") - @JsonPropertyDescription("version of the pnfRegistrationFields block") - private PnfRegistrationFields.PnfRegistrationFieldsVersion pnfRegistrationFieldsVersion; - /** - * TS 32.692 serialNumber = serial number of the unit; e.g. 6061ZW3 - * - */ - @JsonProperty("serialNumber") - @JsonPropertyDescription("TS 32.692 serialNumber = serial number of the unit; e.g. 6061ZW3") - private String serialNumber; - /** - * TS 32.692 swName = active SW running on the unit; e.g. 5gDUv18.05.201 - * - */ - @JsonProperty("softwareVersion") - @JsonPropertyDescription("TS 32.692 swName = active SW running on the unit; e.g. 5gDUv18.05.201") - private String softwareVersion; - /** - * TS 32.692 vendorUnitFamilyType = general type of HW unit; e.g. BBU - * - */ - @JsonProperty("unitFamily") - @JsonPropertyDescription("TS 32.692 vendorUnitFamilyType = general type of HW unit; e.g. BBU") - private String unitFamily; - /** - * TS 32.692 vendorUnitTypeNumber = vendor name for the unit; e.g. Airscale - * - */ - @JsonProperty("unitType") - @JsonPropertyDescription("TS 32.692 vendorUnitTypeNumber = vendor name for the unit; e.g. Airscale") - private String unitType; - /** - * TS 32.692 vendorName = name of manufacturer; e.g. Nokia. Maps to AAI equip-vendor - * - */ - @JsonProperty("vendorName") - @JsonPropertyDescription("TS 32.692 vendorName = name of manufacturer; e.g. Nokia. Maps to AAI equip-vendor") - private String vendorName; - - /** - * an associative array which is an array of key:value pairs - * - */ - @JsonProperty("additionalFields") - public AlarmAdditionalInformation getAdditionalFields() { - return additionalFields; - } - - /** - * an associative array which is an array of key:value pairs - * - */ - @JsonProperty("additionalFields") - public void setAdditionalFields(AlarmAdditionalInformation additionalFields) { - this.additionalFields = additionalFields; - } - - /** - * TS 32.692 dateOfLastService = date of last service; e.g. 15022017 - * - */ - @JsonProperty("lastServiceDate") - public String getLastServiceDate() { - return lastServiceDate; - } - - /** - * TS 32.692 dateOfLastService = date of last service; e.g. 15022017 - * - */ - @JsonProperty("lastServiceDate") - public void setLastServiceDate(String lastServiceDate) { - this.lastServiceDate = lastServiceDate; - } - - /** - * MAC address of OAM interface of the unit - * - */ - @JsonProperty("macAddress") - public String getMacAddress() { - return macAddress; - } - - /** - * MAC address of OAM interface of the unit - * - */ - @JsonProperty("macAddress") - public void setMacAddress(String macAddress) { - this.macAddress = macAddress; - } - - /** - * TS 32.692 dateOfManufacture = manufacture date of the unit; 24032016 - * - */ - @JsonProperty("manufactureDate") - public String getManufactureDate() { - return manufactureDate; - } - - /** - * TS 32.692 dateOfManufacture = manufacture date of the unit; 24032016 - * - */ - @JsonProperty("manufactureDate") - public void setManufactureDate(String manufactureDate) { - this.manufactureDate = manufactureDate; - } - - /** - * TS 32.692 versionNumber = version of the unit from vendor; e.g. AJ02. Maps to AAI equip-model - * - */ - @JsonProperty("modelNumber") - public String getModelNumber() { - return modelNumber; - } - - /** - * TS 32.692 versionNumber = version of the unit from vendor; e.g. AJ02. Maps to AAI equip-model - * - */ - @JsonProperty("modelNumber") - public void setModelNumber(String modelNumber) { - this.modelNumber = modelNumber; - } - - /** - * IPv4 m-plane IP address to be used by the manager to contact the PNF - * - */ - @JsonProperty("oamV4IpAddress") - public String getOamV4IpAddress() { - return oamV4IpAddress; - } - - /** - * IPv4 m-plane IP address to be used by the manager to contact the PNF - * - */ - @JsonProperty("oamV4IpAddress") - public void setOamV4IpAddress(String oamV4IpAddress) { - this.oamV4IpAddress = oamV4IpAddress; - } - - /** - * IPv6 m-plane IP address to be used by the manager to contact the PNF - * - */ - @JsonProperty("oamV6IpAddress") - public String getOamV6IpAddress() { - return oamV6IpAddress; - } - - /** - * IPv6 m-plane IP address to be used by the manager to contact the PNF - * - */ - @JsonProperty("oamV6IpAddress") - public void setOamV6IpAddress(String oamV6IpAddress) { - this.oamV6IpAddress = oamV6IpAddress; - } - - /** - * version of the pnfRegistrationFields block - * (Required) - * - */ - @JsonProperty("pnfRegistrationFieldsVersion") - public PnfRegistrationFields.PnfRegistrationFieldsVersion getPnfRegistrationFieldsVersion() { - return pnfRegistrationFieldsVersion; - } - - /** - * version of the pnfRegistrationFields block - * (Required) - * - */ - @JsonProperty("pnfRegistrationFieldsVersion") - public void setPnfRegistrationFieldsVersion(PnfRegistrationFields.PnfRegistrationFieldsVersion pnfRegistrationFieldsVersion) { - this.pnfRegistrationFieldsVersion = pnfRegistrationFieldsVersion; - } - - /** - * TS 32.692 serialNumber = serial number of the unit; e.g. 6061ZW3 - * - */ - @JsonProperty("serialNumber") - public String getSerialNumber() { - return serialNumber; - } - - /** - * TS 32.692 serialNumber = serial number of the unit; e.g. 6061ZW3 - * - */ - @JsonProperty("serialNumber") - public void setSerialNumber(String serialNumber) { - this.serialNumber = serialNumber; - } - - /** - * TS 32.692 swName = active SW running on the unit; e.g. 5gDUv18.05.201 - * - */ - @JsonProperty("softwareVersion") - public String getSoftwareVersion() { - return softwareVersion; - } - - /** - * TS 32.692 swName = active SW running on the unit; e.g. 5gDUv18.05.201 - * - */ - @JsonProperty("softwareVersion") - public void setSoftwareVersion(String softwareVersion) { - this.softwareVersion = softwareVersion; - } - - /** - * TS 32.692 vendorUnitFamilyType = general type of HW unit; e.g. BBU - * - */ - @JsonProperty("unitFamily") - public String getUnitFamily() { - return unitFamily; - } - - /** - * TS 32.692 vendorUnitFamilyType = general type of HW unit; e.g. BBU - * - */ - @JsonProperty("unitFamily") - public void setUnitFamily(String unitFamily) { - this.unitFamily = unitFamily; - } - - /** - * TS 32.692 vendorUnitTypeNumber = vendor name for the unit; e.g. Airscale - * - */ - @JsonProperty("unitType") - public String getUnitType() { - return unitType; - } - - /** - * TS 32.692 vendorUnitTypeNumber = vendor name for the unit; e.g. Airscale - * - */ - @JsonProperty("unitType") - public void setUnitType(String unitType) { - this.unitType = unitType; - } - - /** - * TS 32.692 vendorName = name of manufacturer; e.g. Nokia. Maps to AAI equip-vendor - * - */ - @JsonProperty("vendorName") - public String getVendorName() { - return vendorName; - } - - /** - * TS 32.692 vendorName = name of manufacturer; e.g. Nokia. Maps to AAI equip-vendor - * - */ - @JsonProperty("vendorName") - public void setVendorName(String vendorName) { - this.vendorName = vendorName; - } - - @Override - public String toString() { - return ToStringBuilder.reflectionToString(this); - } - - @Override - public int hashCode() { - return new HashCodeBuilder().append(additionalFields).append(lastServiceDate).append(macAddress).append(manufactureDate).append(modelNumber).append(oamV4IpAddress).append(oamV6IpAddress).append(pnfRegistrationFieldsVersion).append(serialNumber).append(softwareVersion).append(unitFamily).append(unitType).append(vendorName).toHashCode(); - } - - @Override - public boolean equals(Object other) { - if (other == this) { - return true; - } - if ((other instanceof PnfRegistrationFields) == false) { - return false; - } - PnfRegistrationFields rhs = ((PnfRegistrationFields) other); - return new EqualsBuilder().append(additionalFields, rhs.additionalFields).append(lastServiceDate, rhs.lastServiceDate).append(macAddress, rhs.macAddress).append(manufactureDate, rhs.manufactureDate).append(modelNumber, rhs.modelNumber).append(oamV4IpAddress, rhs.oamV4IpAddress).append(oamV6IpAddress, rhs.oamV6IpAddress).append(pnfRegistrationFieldsVersion, rhs.pnfRegistrationFieldsVersion).append(serialNumber, rhs.serialNumber).append(softwareVersion, rhs.softwareVersion).append(unitFamily, rhs.unitFamily).append(unitType, rhs.unitType).append(vendorName, rhs.vendorName).isEquals(); - } - - public enum PnfRegistrationFieldsVersion { - - _2_0("2.0"); - private final String value; - private final static Map CONSTANTS = new HashMap(); - - static { - for (PnfRegistrationFields.PnfRegistrationFieldsVersion c: values()) { - CONSTANTS.put(c.value, c); - } - } - - private PnfRegistrationFieldsVersion(String value) { - this.value = value; - } - - @Override - public String toString() { - return this.value; - } - - @JsonValue - public String value() { - return this.value; - } - - @JsonCreator - public static PnfRegistrationFields.PnfRegistrationFieldsVersion fromValue(String value) { - PnfRegistrationFields.PnfRegistrationFieldsVersion constant = CONSTANTS.get(value); - if (constant == null) { - throw new IllegalArgumentException(value); - } else { - return constant; - } - } - - } - -} diff --git a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/ProcessStatsArray.java b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/ProcessStatsArray.java deleted file mode 100644 index 5e7fe19..0000000 --- a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/ProcessStatsArray.java +++ /dev/null @@ -1,274 +0,0 @@ -/* -* ============LICENSE_START======================================================= -* ONAP : DCAE -* ================================================================================ -* Copyright 2018 TechMahindra -*================================================================================= -* 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========================================================= -*/ -package org.onap.dcaegen2.ves.domain.ves7_0; - -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyDescription; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import org.apache.commons.lang.builder.EqualsBuilder; -import org.apache.commons.lang.builder.HashCodeBuilder; -import org.apache.commons.lang.builder.ToStringBuilder; - - -/** - * metrics on system processes - * - */ -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonPropertyOrder({ - "forkRate", - "processIdentifier", - "psStateBlocked", - "psStatePaging", - "psStateRunning", - "psStateSleeping", - "psStateStopped", - "psStateZombie" -}) -public class ProcessStatsArray { - - /** - * the number of threads created since the last reboot - * - */ - @JsonProperty("forkRate") - @JsonPropertyDescription("the number of threads created since the last reboot") - private Double forkRate; - /** - * processIdentifier - * (Required) - * - */ - @JsonProperty("processIdentifier") - @JsonPropertyDescription("processIdentifier") - private String processIdentifier; - /** - * the number of processes in a blocked state - * - */ - @JsonProperty("psStateBlocked") - @JsonPropertyDescription("the number of processes in a blocked state") - private Double psStateBlocked; - /** - * the number of processes in a paging state - * - */ - @JsonProperty("psStatePaging") - @JsonPropertyDescription("the number of processes in a paging state") - private Double psStatePaging; - /** - * the number of processes in a running state - * - */ - @JsonProperty("psStateRunning") - @JsonPropertyDescription("the number of processes in a running state") - private Double psStateRunning; - /** - * the number of processes in a sleeping state - * - */ - @JsonProperty("psStateSleeping") - @JsonPropertyDescription("the number of processes in a sleeping state") - private Double psStateSleeping; - /** - * the number of processes in a stopped state - * - */ - @JsonProperty("psStateStopped") - @JsonPropertyDescription("the number of processes in a stopped state") - private Double psStateStopped; - /** - * the number of processes in a zombie state - * - */ - @JsonProperty("psStateZombie") - @JsonPropertyDescription("the number of processes in a zombie state") - private Double psStateZombie; - - /** - * the number of threads created since the last reboot - * - */ - @JsonProperty("forkRate") - public Double getForkRate() { - return forkRate; - } - - /** - * the number of threads created since the last reboot - * - */ - @JsonProperty("forkRate") - public void setForkRate(Double forkRate) { - this.forkRate = forkRate; - } - - /** - * processIdentifier - * (Required) - * - */ - @JsonProperty("processIdentifier") - public String getProcessIdentifier() { - return processIdentifier; - } - - /** - * processIdentifier - * (Required) - * - */ - @JsonProperty("processIdentifier") - public void setProcessIdentifier(String processIdentifier) { - this.processIdentifier = processIdentifier; - } - - /** - * the number of processes in a blocked state - * - */ - @JsonProperty("psStateBlocked") - public Double getPsStateBlocked() { - return psStateBlocked; - } - - /** - * the number of processes in a blocked state - * - */ - @JsonProperty("psStateBlocked") - public void setPsStateBlocked(Double psStateBlocked) { - this.psStateBlocked = psStateBlocked; - } - - /** - * the number of processes in a paging state - * - */ - @JsonProperty("psStatePaging") - public Double getPsStatePaging() { - return psStatePaging; - } - - /** - * the number of processes in a paging state - * - */ - @JsonProperty("psStatePaging") - public void setPsStatePaging(Double psStatePaging) { - this.psStatePaging = psStatePaging; - } - - /** - * the number of processes in a running state - * - */ - @JsonProperty("psStateRunning") - public Double getPsStateRunning() { - return psStateRunning; - } - - /** - * the number of processes in a running state - * - */ - @JsonProperty("psStateRunning") - public void setPsStateRunning(Double psStateRunning) { - this.psStateRunning = psStateRunning; - } - - /** - * the number of processes in a sleeping state - * - */ - @JsonProperty("psStateSleeping") - public Double getPsStateSleeping() { - return psStateSleeping; - } - - /** - * the number of processes in a sleeping state - * - */ - @JsonProperty("psStateSleeping") - public void setPsStateSleeping(Double psStateSleeping) { - this.psStateSleeping = psStateSleeping; - } - - /** - * the number of processes in a stopped state - * - */ - @JsonProperty("psStateStopped") - public Double getPsStateStopped() { - return psStateStopped; - } - - /** - * the number of processes in a stopped state - * - */ - @JsonProperty("psStateStopped") - public void setPsStateStopped(Double psStateStopped) { - this.psStateStopped = psStateStopped; - } - - /** - * the number of processes in a zombie state - * - */ - @JsonProperty("psStateZombie") - public Double getPsStateZombie() { - return psStateZombie; - } - - /** - * the number of processes in a zombie state - * - */ - @JsonProperty("psStateZombie") - public void setPsStateZombie(Double psStateZombie) { - this.psStateZombie = psStateZombie; - } - - @Override - public String toString() { - return ToStringBuilder.reflectionToString(this); - } - - @Override - public int hashCode() { - return new HashCodeBuilder().append(forkRate).append(processIdentifier).append(psStateBlocked).append(psStatePaging).append(psStateRunning).append(psStateSleeping).append(psStateStopped).append(psStateZombie).toHashCode(); - } - - @Override - public boolean equals(Object other) { - if (other == this) { - return true; - } - if ((other instanceof ProcessStatsArray) == false) { - return false; - } - ProcessStatsArray rhs = ((ProcessStatsArray) other); - return new EqualsBuilder().append(forkRate, rhs.forkRate).append(processIdentifier, rhs.processIdentifier).append(psStateBlocked, rhs.psStateBlocked).append(psStatePaging, rhs.psStatePaging).append(psStateRunning, rhs.psStateRunning).append(psStateSleeping, rhs.psStateSleeping).append(psStateStopped, rhs.psStateStopped).append(psStateZombie, rhs.psStateZombie).isEquals(); - } - -} diff --git a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/ProcessorDimmAggregateThermalMarginArray.java b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/ProcessorDimmAggregateThermalMarginArray.java deleted file mode 100644 index 00d8c1b..0000000 --- a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/ProcessorDimmAggregateThermalMarginArray.java +++ /dev/null @@ -1,121 +0,0 @@ -/* -* ============LICENSE_START======================================================= -* ONAP : DCAE -* ================================================================================ -* Copyright 2018 TechMahindra -*================================================================================= -* 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========================================================= -*/ -package org.onap.dcaegen2.ves.domain.ves7_0; - -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyDescription; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import org.apache.commons.lang.builder.EqualsBuilder; -import org.apache.commons.lang.builder.HashCodeBuilder; -import org.apache.commons.lang.builder.ToStringBuilder; - - -/** - * intelligent platform management interface (ipmi) processor dual inline memory module aggregate thermal margin metrics - * - */ -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonPropertyOrder({ - "processorDimmAggregateThermalMarginIdentifier", - "thermalMargin" -}) -public class ProcessorDimmAggregateThermalMarginArray { - - /** - * identifier for the aggregate thermal margin metrics from the processor dual inline memory module - * (Required) - * - */ - @JsonProperty("processorDimmAggregateThermalMarginIdentifier") - @JsonPropertyDescription("identifier for the aggregate thermal margin metrics from the processor dual inline memory module") - private String processorDimmAggregateThermalMarginIdentifier; - /** - * the difference between the DIMM's current temperature, in celsius, and the DIMM's throttling thermal trip point - * (Required) - * - */ - @JsonProperty("thermalMargin") - @JsonPropertyDescription("the difference between the DIMM's current temperature, in celsius, and the DIMM's throttling thermal trip point") - private Double thermalMargin; - - /** - * identifier for the aggregate thermal margin metrics from the processor dual inline memory module - * (Required) - * - */ - @JsonProperty("processorDimmAggregateThermalMarginIdentifier") - public String getProcessorDimmAggregateThermalMarginIdentifier() { - return processorDimmAggregateThermalMarginIdentifier; - } - - /** - * identifier for the aggregate thermal margin metrics from the processor dual inline memory module - * (Required) - * - */ - @JsonProperty("processorDimmAggregateThermalMarginIdentifier") - public void setProcessorDimmAggregateThermalMarginIdentifier(String processorDimmAggregateThermalMarginIdentifier) { - this.processorDimmAggregateThermalMarginIdentifier = processorDimmAggregateThermalMarginIdentifier; - } - - /** - * the difference between the DIMM's current temperature, in celsius, and the DIMM's throttling thermal trip point - * (Required) - * - */ - @JsonProperty("thermalMargin") - public Double getThermalMargin() { - return thermalMargin; - } - - /** - * the difference between the DIMM's current temperature, in celsius, and the DIMM's throttling thermal trip point - * (Required) - * - */ - @JsonProperty("thermalMargin") - public void setThermalMargin(Double thermalMargin) { - this.thermalMargin = thermalMargin; - } - - @Override - public String toString() { - return ToStringBuilder.reflectionToString(this); - } - - @Override - public int hashCode() { - return new HashCodeBuilder().append(processorDimmAggregateThermalMarginIdentifier).append(thermalMargin).toHashCode(); - } - - @Override - public boolean equals(Object other) { - if (other == this) { - return true; - } - if ((other instanceof ProcessorDimmAggregateThermalMarginArray) == false) { - return false; - } - ProcessorDimmAggregateThermalMarginArray rhs = ((ProcessorDimmAggregateThermalMarginArray) other); - return new EqualsBuilder().append(processorDimmAggregateThermalMarginIdentifier, rhs.processorDimmAggregateThermalMarginIdentifier).append(thermalMargin, rhs.thermalMargin).isEquals(); - } - -} diff --git a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/SipSignalingFields.java b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/SipSignalingFields.java deleted file mode 100644 index 34d4558..0000000 --- a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/SipSignalingFields.java +++ /dev/null @@ -1,386 +0,0 @@ -/* -* ============LICENSE_START======================================================= -* ONAP : DCAE -* ================================================================================ -* Copyright 2018 TechMahindra -*================================================================================= -* 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========================================================= -*/ -package org.onap.dcaegen2.ves.domain.ves7_0; - -import java.util.HashMap; -import java.util.Map; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyDescription; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonValue; -import org.apache.commons.lang.builder.EqualsBuilder; -import org.apache.commons.lang.builder.HashCodeBuilder; -import org.apache.commons.lang.builder.ToStringBuilder; - - -/** - * sip signaling fields - * - */ -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonPropertyOrder({ - "additionalInformation", - "compressedSip", - "correlator", - "localIpAddress", - "localPort", - "remoteIpAddress", - "remotePort", - "sipSignalingFieldsVersion", - "summarySip", - "vendorNfNameFields" -}) -public class SipSignalingFields { - - /** - * an associative array which is an array of key:value pairs - * - */ - @JsonProperty("additionalInformation") - @JsonPropertyDescription("an associative array which is an array of key:value pairs") - private AlarmAdditionalInformation additionalInformation; - /** - * the full SIP request/response including headers and bodies - * - */ - @JsonProperty("compressedSip") - @JsonPropertyDescription("the full SIP request/response including headers and bodies") - private String compressedSip; - /** - * this is the same for all events on this call - * (Required) - * - */ - @JsonProperty("correlator") - @JsonPropertyDescription("this is the same for all events on this call") - private String correlator; - /** - * IP address on xNF - * (Required) - * - */ - @JsonProperty("localIpAddress") - @JsonPropertyDescription("IP address on xNF") - private String localIpAddress; - /** - * port on xNF - * (Required) - * - */ - @JsonProperty("localPort") - @JsonPropertyDescription("port on xNF") - private String localPort; - /** - * IP address of peer endpoint - * (Required) - * - */ - @JsonProperty("remoteIpAddress") - @JsonPropertyDescription("IP address of peer endpoint") - private String remoteIpAddress; - /** - * port of peer endpoint - * (Required) - * - */ - @JsonProperty("remotePort") - @JsonPropertyDescription("port of peer endpoint") - private String remotePort; - /** - * version of the sipSignalingFields block - * (Required) - * - */ - @JsonProperty("sipSignalingFieldsVersion") - @JsonPropertyDescription("version of the sipSignalingFields block") - private SipSignalingFields.SipSignalingFieldsVersion sipSignalingFieldsVersion; - /** - * the SIP Method or Response ('INVITE', '200 OK', 'BYE', etc) - * - */ - @JsonProperty("summarySip") - @JsonPropertyDescription("the SIP Method or Response ('INVITE', '200 OK', 'BYE', etc)") - private String summarySip; - /** - * provides vendor, nf and nfModule identifying information - * (Required) - * - */ - @JsonProperty("vendorNfNameFields") - @JsonPropertyDescription("provides vendor, nf and nfModule identifying information") - private VendorNfNameFields vendorNfNameFields; - - /** - * an associative array which is an array of key:value pairs - * - */ - @JsonProperty("additionalInformation") - public AlarmAdditionalInformation getAdditionalInformation() { - return additionalInformation; - } - - /** - * an associative array which is an array of key:value pairs - * - */ - @JsonProperty("additionalInformation") - public void setAdditionalInformation(AlarmAdditionalInformation additionalInformation) { - this.additionalInformation = additionalInformation; - } - - /** - * the full SIP request/response including headers and bodies - * - */ - @JsonProperty("compressedSip") - public String getCompressedSip() { - return compressedSip; - } - - /** - * the full SIP request/response including headers and bodies - * - */ - @JsonProperty("compressedSip") - public void setCompressedSip(String compressedSip) { - this.compressedSip = compressedSip; - } - - /** - * this is the same for all events on this call - * (Required) - * - */ - @JsonProperty("correlator") - public String getCorrelator() { - return correlator; - } - - /** - * this is the same for all events on this call - * (Required) - * - */ - @JsonProperty("correlator") - public void setCorrelator(String correlator) { - this.correlator = correlator; - } - - /** - * IP address on xNF - * (Required) - * - */ - @JsonProperty("localIpAddress") - public String getLocalIpAddress() { - return localIpAddress; - } - - /** - * IP address on xNF - * (Required) - * - */ - @JsonProperty("localIpAddress") - public void setLocalIpAddress(String localIpAddress) { - this.localIpAddress = localIpAddress; - } - - /** - * port on xNF - * (Required) - * - */ - @JsonProperty("localPort") - public String getLocalPort() { - return localPort; - } - - /** - * port on xNF - * (Required) - * - */ - @JsonProperty("localPort") - public void setLocalPort(String localPort) { - this.localPort = localPort; - } - - /** - * IP address of peer endpoint - * (Required) - * - */ - @JsonProperty("remoteIpAddress") - public String getRemoteIpAddress() { - return remoteIpAddress; - } - - /** - * IP address of peer endpoint - * (Required) - * - */ - @JsonProperty("remoteIpAddress") - public void setRemoteIpAddress(String remoteIpAddress) { - this.remoteIpAddress = remoteIpAddress; - } - - /** - * port of peer endpoint - * (Required) - * - */ - @JsonProperty("remotePort") - public String getRemotePort() { - return remotePort; - } - - /** - * port of peer endpoint - * (Required) - * - */ - @JsonProperty("remotePort") - public void setRemotePort(String remotePort) { - this.remotePort = remotePort; - } - - /** - * version of the sipSignalingFields block - * (Required) - * - */ - @JsonProperty("sipSignalingFieldsVersion") - public SipSignalingFields.SipSignalingFieldsVersion getSipSignalingFieldsVersion() { - return sipSignalingFieldsVersion; - } - - /** - * version of the sipSignalingFields block - * (Required) - * - */ - @JsonProperty("sipSignalingFieldsVersion") - public void setSipSignalingFieldsVersion(SipSignalingFields.SipSignalingFieldsVersion sipSignalingFieldsVersion) { - this.sipSignalingFieldsVersion = sipSignalingFieldsVersion; - } - - /** - * the SIP Method or Response ('INVITE', '200 OK', 'BYE', etc) - * - */ - @JsonProperty("summarySip") - public String getSummarySip() { - return summarySip; - } - - /** - * the SIP Method or Response ('INVITE', '200 OK', 'BYE', etc) - * - */ - @JsonProperty("summarySip") - public void setSummarySip(String summarySip) { - this.summarySip = summarySip; - } - - /** - * provides vendor, nf and nfModule identifying information - * (Required) - * - */ - @JsonProperty("vendorNfNameFields") - public VendorNfNameFields getVendorNfNameFields() { - return vendorNfNameFields; - } - - /** - * provides vendor, nf and nfModule identifying information - * (Required) - * - */ - @JsonProperty("vendorNfNameFields") - public void setVendorNfNameFields(VendorNfNameFields vendorNfNameFields) { - this.vendorNfNameFields = vendorNfNameFields; - } - - @Override - public String toString() { - return ToStringBuilder.reflectionToString(this); - } - - @Override - public int hashCode() { - return new HashCodeBuilder().append(additionalInformation).append(compressedSip).append(correlator).append(localIpAddress).append(localPort).append(remoteIpAddress).append(remotePort).append(sipSignalingFieldsVersion).append(summarySip).append(vendorNfNameFields).toHashCode(); - } - - @Override - public boolean equals(Object other) { - if (other == this) { - return true; - } - if ((other instanceof SipSignalingFields) == false) { - return false; - } - SipSignalingFields rhs = ((SipSignalingFields) other); - return new EqualsBuilder().append(additionalInformation, rhs.additionalInformation).append(compressedSip, rhs.compressedSip).append(correlator, rhs.correlator).append(localIpAddress, rhs.localIpAddress).append(localPort, rhs.localPort).append(remoteIpAddress, rhs.remoteIpAddress).append(remotePort, rhs.remotePort).append(sipSignalingFieldsVersion, rhs.sipSignalingFieldsVersion).append(summarySip, rhs.summarySip).append(vendorNfNameFields, rhs.vendorNfNameFields).isEquals(); - } - - public enum SipSignalingFieldsVersion { - - _3_0("3.0"); - private final String value; - private final static Map CONSTANTS = new HashMap(); - - static { - for (SipSignalingFields.SipSignalingFieldsVersion c: values()) { - CONSTANTS.put(c.value, c); - } - } - - private SipSignalingFieldsVersion(String value) { - this.value = value; - } - - @Override - public String toString() { - return this.value; - } - - @JsonValue - public String value() { - return this.value; - } - - @JsonCreator - public static SipSignalingFields.SipSignalingFieldsVersion fromValue(String value) { - SipSignalingFields.SipSignalingFieldsVersion constant = CONSTANTS.get(value); - if (constant == null) { - throw new IllegalArgumentException(value); - } else { - return constant; - } - } - - } - -} diff --git a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/StateChangeFields.java b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/StateChangeFields.java deleted file mode 100644 index cf9708f..0000000 --- a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/StateChangeFields.java +++ /dev/null @@ -1,327 +0,0 @@ -/* -* ============LICENSE_START======================================================= -* ONAP : DCAE -* ================================================================================ -* Copyright 2018 TechMahindra -*================================================================================= -* 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========================================================= -*/ -package org.onap.dcaegen2.ves.domain.ves7_0; - -import java.util.HashMap; -import java.util.Map; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyDescription; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonValue; -import org.apache.commons.lang.builder.EqualsBuilder; -import org.apache.commons.lang.builder.HashCodeBuilder; -import org.apache.commons.lang.builder.ToStringBuilder; - - -/** - * stateChange fields - * - */ -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonPropertyOrder({ - "additionalFields", - "newState", - "oldState", - "stateChangeFieldsVersion", - "stateInterface" -}) -public class StateChangeFields { - - /** - * an associative array which is an array of key:value pairs - * - */ - @JsonProperty("additionalFields") - @JsonPropertyDescription("an associative array which is an array of key:value pairs") - private AlarmAdditionalInformation additionalFields; - /** - * new state of the entity - * (Required) - * - */ - @JsonProperty("newState") - @JsonPropertyDescription("new state of the entity") - private StateChangeFields.NewState newState; - /** - * previous state of the entity - * (Required) - * - */ - @JsonProperty("oldState") - @JsonPropertyDescription("previous state of the entity") - private StateChangeFields.OldState oldState; - /** - * version of the stateChangeFields block - * (Required) - * - */ - @JsonProperty("stateChangeFieldsVersion") - @JsonPropertyDescription("version of the stateChangeFields block") - private StateChangeFields.StateChangeFieldsVersion stateChangeFieldsVersion; - /** - * card or port name of the entity that changed state - * (Required) - * - */ - @JsonProperty("stateInterface") - @JsonPropertyDescription("card or port name of the entity that changed state") - private String stateInterface; - - /** - * an associative array which is an array of key:value pairs - * - */ - @JsonProperty("additionalFields") - public AlarmAdditionalInformation getAdditionalFields() { - return additionalFields; - } - - /** - * an associative array which is an array of key:value pairs - * - */ - @JsonProperty("additionalFields") - public void setAdditionalFields(AlarmAdditionalInformation additionalFields) { - this.additionalFields = additionalFields; - } - - /** - * new state of the entity - * (Required) - * - */ - @JsonProperty("newState") - public StateChangeFields.NewState getNewState() { - return newState; - } - - /** - * new state of the entity - * (Required) - * - */ - @JsonProperty("newState") - public void setNewState(StateChangeFields.NewState newState) { - this.newState = newState; - } - - /** - * previous state of the entity - * (Required) - * - */ - @JsonProperty("oldState") - public StateChangeFields.OldState getOldState() { - return oldState; - } - - /** - * previous state of the entity - * (Required) - * - */ - @JsonProperty("oldState") - public void setOldState(StateChangeFields.OldState oldState) { - this.oldState = oldState; - } - - /** - * version of the stateChangeFields block - * (Required) - * - */ - @JsonProperty("stateChangeFieldsVersion") - public StateChangeFields.StateChangeFieldsVersion getStateChangeFieldsVersion() { - return stateChangeFieldsVersion; - } - - /** - * version of the stateChangeFields block - * (Required) - * - */ - @JsonProperty("stateChangeFieldsVersion") - public void setStateChangeFieldsVersion(StateChangeFields.StateChangeFieldsVersion stateChangeFieldsVersion) { - this.stateChangeFieldsVersion = stateChangeFieldsVersion; - } - - /** - * card or port name of the entity that changed state - * (Required) - * - */ - @JsonProperty("stateInterface") - public String getStateInterface() { - return stateInterface; - } - - /** - * card or port name of the entity that changed state - * (Required) - * - */ - @JsonProperty("stateInterface") - public void setStateInterface(String stateInterface) { - this.stateInterface = stateInterface; - } - - @Override - public String toString() { - return ToStringBuilder.reflectionToString(this); - } - - @Override - public int hashCode() { - return new HashCodeBuilder().append(additionalFields).append(newState).append(oldState).append(stateChangeFieldsVersion).append(stateInterface).toHashCode(); - } - - @Override - public boolean equals(Object other) { - if (other == this) { - return true; - } - if ((other instanceof StateChangeFields) == false) { - return false; - } - StateChangeFields rhs = ((StateChangeFields) other); - return new EqualsBuilder().append(additionalFields, rhs.additionalFields).append(newState, rhs.newState).append(oldState, rhs.oldState).append(stateChangeFieldsVersion, rhs.stateChangeFieldsVersion).append(stateInterface, rhs.stateInterface).isEquals(); - } - - public enum NewState { - - IN_SERVICE("inService"), - MAINTENANCE("maintenance"), - OUT_OF_SERVICE("outOfService"); - private final String value; - private final static Map CONSTANTS = new HashMap(); - - static { - for (StateChangeFields.NewState c: values()) { - CONSTANTS.put(c.value, c); - } - } - - private NewState(String value) { - this.value = value; - } - - @Override - public String toString() { - return this.value; - } - - @JsonValue - public String value() { - return this.value; - } - - @JsonCreator - public static StateChangeFields.NewState fromValue(String value) { - StateChangeFields.NewState constant = CONSTANTS.get(value); - if (constant == null) { - throw new IllegalArgumentException(value); - } else { - return constant; - } - } - - } - - public enum OldState { - - IN_SERVICE("inService"), - MAINTENANCE("maintenance"), - OUT_OF_SERVICE("outOfService"); - private final String value; - private final static Map CONSTANTS = new HashMap(); - - static { - for (StateChangeFields.OldState c: values()) { - CONSTANTS.put(c.value, c); - } - } - - private OldState(String value) { - this.value = value; - } - - @Override - public String toString() { - return this.value; - } - - @JsonValue - public String value() { - return this.value; - } - - @JsonCreator - public static StateChangeFields.OldState fromValue(String value) { - StateChangeFields.OldState constant = CONSTANTS.get(value); - if (constant == null) { - throw new IllegalArgumentException(value); - } else { - return constant; - } - } - - } - - public enum StateChangeFieldsVersion { - - _4_0("4.0"); - private final String value; - private final static Map CONSTANTS = new HashMap(); - - static { - for (StateChangeFields.StateChangeFieldsVersion c: values()) { - CONSTANTS.put(c.value, c); - } - } - - private StateChangeFieldsVersion(String value) { - this.value = value; - } - - @Override - public String toString() { - return this.value; - } - - @JsonValue - public String value() { - return this.value; - } - - @JsonCreator - public static StateChangeFields.StateChangeFieldsVersion fromValue(String value) { - StateChangeFields.StateChangeFieldsVersion constant = CONSTANTS.get(value); - if (constant == null) { - throw new IllegalArgumentException(value); - } else { - return constant; - } - } - - } - -} diff --git a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/SyslogFields.java b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/SyslogFields.java deleted file mode 100644 index c8439e6..0000000 --- a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/SyslogFields.java +++ /dev/null @@ -1,578 +0,0 @@ -/* -* ============LICENSE_START======================================================= -* ONAP : DCAE -* ================================================================================ -* Copyright 2018 TechMahindra -*================================================================================= -* 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========================================================= -*/ -package org.onap.dcaegen2.ves.domain.ves7_0; - -import java.util.HashMap; -import java.util.Map; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyDescription; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonValue; -import org.apache.commons.lang.builder.EqualsBuilder; -import org.apache.commons.lang.builder.HashCodeBuilder; -import org.apache.commons.lang.builder.ToStringBuilder; - - -/** - * sysLog fields - * - */ -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonPropertyOrder({ - "additionalFields", - "eventSourceHost", - "eventSourceType", - "syslogFacility", - "syslogFieldsVersion", - "syslogMsg", - "syslogMsgHost", - "syslogPri", - "syslogProc", - "syslogProcId", - "syslogSData", - "syslogSdId", - "syslogSev", - "syslogTag", - "syslogTs", - "syslogVer" -}) -public class SyslogFields { - - /** - * an associative array which is an array of key:value pairs - * - */ - @JsonProperty("additionalFields") - @JsonPropertyDescription("an associative array which is an array of key:value pairs") - private AlarmAdditionalInformation additionalFields; - /** - * hostname of the device - * - */ - @JsonProperty("eventSourceHost") - @JsonPropertyDescription("hostname of the device") - private String eventSourceHost; - /** - * type of event source; examples: other, router, switch, host, card, port, slotThreshold, portThreshold, virtualMachine, virtualNetworkFunction - * (Required) - * - */ - @JsonProperty("eventSourceType") - @JsonPropertyDescription("type of event source; examples: other, router, switch, host, card, port, slotThreshold, portThreshold, virtualMachine, virtualNetworkFunction") - private String eventSourceType; - /** - * numeric code from 0 to 23 for facility--see table in documentation - * - */ - @JsonProperty("syslogFacility") - @JsonPropertyDescription("numeric code from 0 to 23 for facility--see table in documentation") - private Integer syslogFacility; - /** - * version of the syslogFields block - * (Required) - * - */ - @JsonProperty("syslogFieldsVersion") - @JsonPropertyDescription("version of the syslogFields block") - private SyslogFields.SyslogFieldsVersion syslogFieldsVersion; - /** - * syslog message - * (Required) - * - */ - @JsonProperty("syslogMsg") - @JsonPropertyDescription("syslog message") - private String syslogMsg; - /** - * hostname parsed from non-VES syslog message - * - */ - @JsonProperty("syslogMsgHost") - @JsonPropertyDescription("hostname parsed from non-VES syslog message") - private String syslogMsgHost; - /** - * 0-192 combined severity and facility - * - */ - @JsonProperty("syslogPri") - @JsonPropertyDescription("0-192 combined severity and facility") - private Integer syslogPri; - /** - * identifies the application that originated the message - * - */ - @JsonProperty("syslogProc") - @JsonPropertyDescription("identifies the application that originated the message") - private String syslogProc; - /** - * a change in the value of this field indicates a discontinuity in syslog reporting - * - */ - @JsonProperty("syslogProcId") - @JsonPropertyDescription("a change in the value of this field indicates a discontinuity in syslog reporting") - private Double syslogProcId; - /** - * syslog structured data consisting of a structured data Id followed by a set of key value pairs - * - */ - @JsonProperty("syslogSData") - @JsonPropertyDescription("syslog structured data consisting of a structured data Id followed by a set of key value pairs") - private String syslogSData; - /** - * 0-32 char in format name@number for example ourSDID@32473 - * - */ - @JsonProperty("syslogSdId") - @JsonPropertyDescription("0-32 char in format name@number for example ourSDID@32473") - private String syslogSdId; - /** - * numerical Code for severity derived from syslogPri as remaider of syslogPri / 8 - * - */ - @JsonProperty("syslogSev") - @JsonPropertyDescription("numerical Code for severity derived from syslogPri as remaider of syslogPri / 8") - private SyslogFields.SyslogSev syslogSev; - /** - * msgId indicating the type of message such as TCPOUT or TCPIN; NILVALUE should be used when no other value can be provided - * (Required) - * - */ - @JsonProperty("syslogTag") - @JsonPropertyDescription("msgId indicating the type of message such as TCPOUT or TCPIN; NILVALUE should be used when no other value can be provided") - private String syslogTag; - /** - * timestamp parsed from non-VES syslog message - * - */ - @JsonProperty("syslogTs") - @JsonPropertyDescription("timestamp parsed from non-VES syslog message") - private String syslogTs; - /** - * IANA assigned version of the syslog protocol specification - typically 1 - * - */ - @JsonProperty("syslogVer") - @JsonPropertyDescription("IANA assigned version of the syslog protocol specification - typically 1") - private Double syslogVer; - - /** - * an associative array which is an array of key:value pairs - * - */ - @JsonProperty("additionalFields") - public AlarmAdditionalInformation getAdditionalFields() { - return additionalFields; - } - - /** - * an associative array which is an array of key:value pairs - * - */ - @JsonProperty("additionalFields") - public void setAdditionalFields(AlarmAdditionalInformation additionalFields) { - this.additionalFields = additionalFields; - } - - /** - * hostname of the device - * - */ - @JsonProperty("eventSourceHost") - public String getEventSourceHost() { - return eventSourceHost; - } - - /** - * hostname of the device - * - */ - @JsonProperty("eventSourceHost") - public void setEventSourceHost(String eventSourceHost) { - this.eventSourceHost = eventSourceHost; - } - - /** - * type of event source; examples: other, router, switch, host, card, port, slotThreshold, portThreshold, virtualMachine, virtualNetworkFunction - * (Required) - * - */ - @JsonProperty("eventSourceType") - public String getEventSourceType() { - return eventSourceType; - } - - /** - * type of event source; examples: other, router, switch, host, card, port, slotThreshold, portThreshold, virtualMachine, virtualNetworkFunction - * (Required) - * - */ - @JsonProperty("eventSourceType") - public void setEventSourceType(String eventSourceType) { - this.eventSourceType = eventSourceType; - } - - /** - * numeric code from 0 to 23 for facility--see table in documentation - * - */ - @JsonProperty("syslogFacility") - public Integer getSyslogFacility() { - return syslogFacility; - } - - /** - * numeric code from 0 to 23 for facility--see table in documentation - * - */ - @JsonProperty("syslogFacility") - public void setSyslogFacility(Integer syslogFacility) { - this.syslogFacility = syslogFacility; - } - - /** - * version of the syslogFields block - * (Required) - * - */ - @JsonProperty("syslogFieldsVersion") - public SyslogFields.SyslogFieldsVersion getSyslogFieldsVersion() { - return syslogFieldsVersion; - } - - /** - * version of the syslogFields block - * (Required) - * - */ - @JsonProperty("syslogFieldsVersion") - public void setSyslogFieldsVersion(SyslogFields.SyslogFieldsVersion syslogFieldsVersion) { - this.syslogFieldsVersion = syslogFieldsVersion; - } - - /** - * syslog message - * (Required) - * - */ - @JsonProperty("syslogMsg") - public String getSyslogMsg() { - return syslogMsg; - } - - /** - * syslog message - * (Required) - * - */ - @JsonProperty("syslogMsg") - public void setSyslogMsg(String syslogMsg) { - this.syslogMsg = syslogMsg; - } - - /** - * hostname parsed from non-VES syslog message - * - */ - @JsonProperty("syslogMsgHost") - public String getSyslogMsgHost() { - return syslogMsgHost; - } - - /** - * hostname parsed from non-VES syslog message - * - */ - @JsonProperty("syslogMsgHost") - public void setSyslogMsgHost(String syslogMsgHost) { - this.syslogMsgHost = syslogMsgHost; - } - - /** - * 0-192 combined severity and facility - * - */ - @JsonProperty("syslogPri") - public Integer getSyslogPri() { - return syslogPri; - } - - /** - * 0-192 combined severity and facility - * - */ - @JsonProperty("syslogPri") - public void setSyslogPri(Integer syslogPri) { - this.syslogPri = syslogPri; - } - - /** - * identifies the application that originated the message - * - */ - @JsonProperty("syslogProc") - public String getSyslogProc() { - return syslogProc; - } - - /** - * identifies the application that originated the message - * - */ - @JsonProperty("syslogProc") - public void setSyslogProc(String syslogProc) { - this.syslogProc = syslogProc; - } - - /** - * a change in the value of this field indicates a discontinuity in syslog reporting - * - */ - @JsonProperty("syslogProcId") - public Double getSyslogProcId() { - return syslogProcId; - } - - /** - * a change in the value of this field indicates a discontinuity in syslog reporting - * - */ - @JsonProperty("syslogProcId") - public void setSyslogProcId(Double syslogProcId) { - this.syslogProcId = syslogProcId; - } - - /** - * syslog structured data consisting of a structured data Id followed by a set of key value pairs - * - */ - @JsonProperty("syslogSData") - public String getSyslogSData() { - return syslogSData; - } - - /** - * syslog structured data consisting of a structured data Id followed by a set of key value pairs - * - */ - @JsonProperty("syslogSData") - public void setSyslogSData(String syslogSData) { - this.syslogSData = syslogSData; - } - - /** - * 0-32 char in format name@number for example ourSDID@32473 - * - */ - @JsonProperty("syslogSdId") - public String getSyslogSdId() { - return syslogSdId; - } - - /** - * 0-32 char in format name@number for example ourSDID@32473 - * - */ - @JsonProperty("syslogSdId") - public void setSyslogSdId(String syslogSdId) { - this.syslogSdId = syslogSdId; - } - - /** - * numerical Code for severity derived from syslogPri as remaider of syslogPri / 8 - * - */ - @JsonProperty("syslogSev") - public SyslogFields.SyslogSev getSyslogSev() { - return syslogSev; - } - - /** - * numerical Code for severity derived from syslogPri as remaider of syslogPri / 8 - * - */ - @JsonProperty("syslogSev") - public void setSyslogSev(SyslogFields.SyslogSev syslogSev) { - this.syslogSev = syslogSev; - } - - /** - * msgId indicating the type of message such as TCPOUT or TCPIN; NILVALUE should be used when no other value can be provided - * (Required) - * - */ - @JsonProperty("syslogTag") - public String getSyslogTag() { - return syslogTag; - } - - /** - * msgId indicating the type of message such as TCPOUT or TCPIN; NILVALUE should be used when no other value can be provided - * (Required) - * - */ - @JsonProperty("syslogTag") - public void setSyslogTag(String syslogTag) { - this.syslogTag = syslogTag; - } - - /** - * timestamp parsed from non-VES syslog message - * - */ - @JsonProperty("syslogTs") - public String getSyslogTs() { - return syslogTs; - } - - /** - * timestamp parsed from non-VES syslog message - * - */ - @JsonProperty("syslogTs") - public void setSyslogTs(String syslogTs) { - this.syslogTs = syslogTs; - } - - /** - * IANA assigned version of the syslog protocol specification - typically 1 - * - */ - @JsonProperty("syslogVer") - public Double getSyslogVer() { - return syslogVer; - } - - /** - * IANA assigned version of the syslog protocol specification - typically 1 - * - */ - @JsonProperty("syslogVer") - public void setSyslogVer(Double syslogVer) { - this.syslogVer = syslogVer; - } - - @Override - public String toString() { - return ToStringBuilder.reflectionToString(this); - } - - @Override - public int hashCode() { - return new HashCodeBuilder().append(additionalFields).append(eventSourceHost).append(eventSourceType).append(syslogFacility).append(syslogFieldsVersion).append(syslogMsg).append(syslogMsgHost).append(syslogPri).append(syslogProc).append(syslogProcId).append(syslogSData).append(syslogSdId).append(syslogSev).append(syslogTag).append(syslogTs).append(syslogVer).toHashCode(); - } - - @Override - public boolean equals(Object other) { - if (other == this) { - return true; - } - if ((other instanceof SyslogFields) == false) { - return false; - } - SyslogFields rhs = ((SyslogFields) other); - return new EqualsBuilder().append(additionalFields, rhs.additionalFields).append(eventSourceHost, rhs.eventSourceHost).append(eventSourceType, rhs.eventSourceType).append(syslogFacility, rhs.syslogFacility).append(syslogFieldsVersion, rhs.syslogFieldsVersion).append(syslogMsg, rhs.syslogMsg).append(syslogMsgHost, rhs.syslogMsgHost).append(syslogPri, rhs.syslogPri).append(syslogProc, rhs.syslogProc).append(syslogProcId, rhs.syslogProcId).append(syslogSData, rhs.syslogSData).append(syslogSdId, rhs.syslogSdId).append(syslogSev, rhs.syslogSev).append(syslogTag, rhs.syslogTag).append(syslogTs, rhs.syslogTs).append(syslogVer, rhs.syslogVer).isEquals(); - } - - public enum SyslogFieldsVersion { - - _4_0("4.0"); - private final String value; - private final static Map CONSTANTS = new HashMap(); - - static { - for (SyslogFields.SyslogFieldsVersion c: values()) { - CONSTANTS.put(c.value, c); - } - } - - private SyslogFieldsVersion(String value) { - this.value = value; - } - - @Override - public String toString() { - return this.value; - } - - @JsonValue - public String value() { - return this.value; - } - - @JsonCreator - public static SyslogFields.SyslogFieldsVersion fromValue(String value) { - SyslogFields.SyslogFieldsVersion constant = CONSTANTS.get(value); - if (constant == null) { - throw new IllegalArgumentException(value); - } else { - return constant; - } - } - - } - - public enum SyslogSev { - - ALERT("Alert"), - CRITICAL("Critical"), - DEBUG("Debug"), - EMERGENCY("Emergency"), - ERROR("Error"), - INFO("Info"), - NOTICE("Notice"), - WARNING("Warning"); - private final String value; - private final static Map CONSTANTS = new HashMap(); - - static { - for (SyslogFields.SyslogSev c: values()) { - CONSTANTS.put(c.value, c); - } - } - - private SyslogSev(String value) { - this.value = value; - } - - @Override - public String toString() { - return this.value; - } - - @JsonValue - public String value() { - return this.value; - } - - @JsonCreator - public static SyslogFields.SyslogSev fromValue(String value) { - SyslogFields.SyslogSev constant = CONSTANTS.get(value); - if (constant == null) { - throw new IllegalArgumentException(value); - } else { - return constant; - } - } - - } - -} diff --git a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/ThresholdCrossingAlertFields.java b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/ThresholdCrossingAlertFields.java deleted file mode 100644 index daa9855..0000000 --- a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/ThresholdCrossingAlertFields.java +++ /dev/null @@ -1,670 +0,0 @@ -/* -* ============LICENSE_START======================================================= -* ONAP : DCAE -* ================================================================================ -* Copyright 2018 TechMahindra -*================================================================================= -* 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========================================================= -*/ -package org.onap.dcaegen2.ves.domain.ves7_0; - -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyDescription; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonValue; -import org.apache.commons.lang.builder.EqualsBuilder; -import org.apache.commons.lang.builder.HashCodeBuilder; -import org.apache.commons.lang.builder.ToStringBuilder; - - -/** - * fields specific to threshold crossing alert events - * - */ -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonPropertyOrder({ - "additionalFields", - "additionalParameters", - "alertAction", - "alertDescription", - "alertType", - "alertValue", - "associatedAlertIdList", - "collectionTimestamp", - "dataCollector", - "elementType", - "eventSeverity", - "eventStartTimestamp", - "interfaceName", - "networkService", - "possibleRootCause", - "thresholdCrossingFieldsVersion" -}) -public class ThresholdCrossingAlertFields { - - /** - * an associative array which is an array of key:value pairs - * - */ - @JsonProperty("additionalFields") - @JsonPropertyDescription("an associative array which is an array of key:value pairs") - private AlarmAdditionalInformation additionalFields; - /** - * performance counters - * (Required) - * - */ - @JsonProperty("additionalParameters") - @JsonPropertyDescription("performance counters") - private List additionalParameters = new ArrayList(); - /** - * Event action - * (Required) - * - */ - @JsonProperty("alertAction") - @JsonPropertyDescription("Event action") - private ThresholdCrossingAlertFields.AlertAction alertAction; - /** - * Unique short alert description such as IF-SHUB-ERRDROP - * (Required) - * - */ - @JsonProperty("alertDescription") - @JsonPropertyDescription("Unique short alert description such as IF-SHUB-ERRDROP") - private String alertDescription; - /** - * Event type - * (Required) - * - */ - @JsonProperty("alertType") - @JsonPropertyDescription("Event type") - private ThresholdCrossingAlertFields.AlertType alertType; - /** - * Calculated API value (if applicable) - * - */ - @JsonProperty("alertValue") - @JsonPropertyDescription("Calculated API value (if applicable)") - private String alertValue; - /** - * List of eventIds associated with the event being reported - * - */ - @JsonProperty("associatedAlertIdList") - @JsonPropertyDescription("List of eventIds associated with the event being reported") - private List associatedAlertIdList = new ArrayList(); - /** - * Time when the performance collector picked up the data; with RFC 2822 compliant format: Sat, 13 Mar 2010 11:29:05 -0800 - * (Required) - * - */ - @JsonProperty("collectionTimestamp") - @JsonPropertyDescription("Time when the performance collector picked up the data; with RFC 2822 compliant format: Sat, 13 Mar 2010 11:29:05 -0800") - private String collectionTimestamp; - /** - * Specific performance collector instance used - * - */ - @JsonProperty("dataCollector") - @JsonPropertyDescription("Specific performance collector instance used") - private String dataCollector; - /** - * type of network element - internal ATT field - * - */ - @JsonProperty("elementType") - @JsonPropertyDescription("type of network element - internal ATT field") - private String elementType; - /** - * event severity or priority - * (Required) - * - */ - @JsonProperty("eventSeverity") - @JsonPropertyDescription("event severity or priority") - private ThresholdCrossingAlertFields.EventSeverity eventSeverity; - /** - * Time closest to when the measurement was made; with RFC 2822 compliant format: Sat, 13 Mar 2010 11:29:05 -0800 - * (Required) - * - */ - @JsonProperty("eventStartTimestamp") - @JsonPropertyDescription("Time closest to when the measurement was made; with RFC 2822 compliant format: Sat, 13 Mar 2010 11:29:05 -0800") - private String eventStartTimestamp; - /** - * Physical or logical port or card (if applicable) - * - */ - @JsonProperty("interfaceName") - @JsonPropertyDescription("Physical or logical port or card (if applicable)") - private String interfaceName; - /** - * network name - internal ATT field - * - */ - @JsonProperty("networkService") - @JsonPropertyDescription("network name - internal ATT field") - private String networkService; - /** - * Reserved for future use - * - */ - @JsonProperty("possibleRootCause") - @JsonPropertyDescription("Reserved for future use") - private String possibleRootCause; - /** - * version of the thresholdCrossingAlertFields block - * (Required) - * - */ - @JsonProperty("thresholdCrossingFieldsVersion") - @JsonPropertyDescription("version of the thresholdCrossingAlertFields block") - private ThresholdCrossingAlertFields.ThresholdCrossingFieldsVersion thresholdCrossingFieldsVersion; - - /** - * an associative array which is an array of key:value pairs - * - */ - @JsonProperty("additionalFields") - public AlarmAdditionalInformation getAdditionalFields() { - return additionalFields; - } - - /** - * an associative array which is an array of key:value pairs - * - */ - @JsonProperty("additionalFields") - public void setAdditionalFields(AlarmAdditionalInformation additionalFields) { - this.additionalFields = additionalFields; - } - - /** - * performance counters - * (Required) - * - */ - @JsonProperty("additionalParameters") - public List getAdditionalParameters() { - return additionalParameters; - } - - /** - * performance counters - * (Required) - * - */ - @JsonProperty("additionalParameters") - public void setAdditionalParameters(List additionalParameters) { - this.additionalParameters = additionalParameters; - } - - /** - * Event action - * (Required) - * - */ - @JsonProperty("alertAction") - public ThresholdCrossingAlertFields.AlertAction getAlertAction() { - return alertAction; - } - - /** - * Event action - * (Required) - * - */ - @JsonProperty("alertAction") - public void setAlertAction(ThresholdCrossingAlertFields.AlertAction alertAction) { - this.alertAction = alertAction; - } - - /** - * Unique short alert description such as IF-SHUB-ERRDROP - * (Required) - * - */ - @JsonProperty("alertDescription") - public String getAlertDescription() { - return alertDescription; - } - - /** - * Unique short alert description such as IF-SHUB-ERRDROP - * (Required) - * - */ - @JsonProperty("alertDescription") - public void setAlertDescription(String alertDescription) { - this.alertDescription = alertDescription; - } - - /** - * Event type - * (Required) - * - */ - @JsonProperty("alertType") - public ThresholdCrossingAlertFields.AlertType getAlertType() { - return alertType; - } - - /** - * Event type - * (Required) - * - */ - @JsonProperty("alertType") - public void setAlertType(ThresholdCrossingAlertFields.AlertType alertType) { - this.alertType = alertType; - } - - /** - * Calculated API value (if applicable) - * - */ - @JsonProperty("alertValue") - public String getAlertValue() { - return alertValue; - } - - /** - * Calculated API value (if applicable) - * - */ - @JsonProperty("alertValue") - public void setAlertValue(String alertValue) { - this.alertValue = alertValue; - } - - /** - * List of eventIds associated with the event being reported - * - */ - @JsonProperty("associatedAlertIdList") - public List getAssociatedAlertIdList() { - return associatedAlertIdList; - } - - /** - * List of eventIds associated with the event being reported - * - */ - @JsonProperty("associatedAlertIdList") - public void setAssociatedAlertIdList(List associatedAlertIdList) { - this.associatedAlertIdList = associatedAlertIdList; - } - - /** - * Time when the performance collector picked up the data; with RFC 2822 compliant format: Sat, 13 Mar 2010 11:29:05 -0800 - * (Required) - * - */ - @JsonProperty("collectionTimestamp") - public String getCollectionTimestamp() { - return collectionTimestamp; - } - - /** - * Time when the performance collector picked up the data; with RFC 2822 compliant format: Sat, 13 Mar 2010 11:29:05 -0800 - * (Required) - * - */ - @JsonProperty("collectionTimestamp") - public void setCollectionTimestamp(String collectionTimestamp) { - this.collectionTimestamp = collectionTimestamp; - } - - /** - * Specific performance collector instance used - * - */ - @JsonProperty("dataCollector") - public String getDataCollector() { - return dataCollector; - } - - /** - * Specific performance collector instance used - * - */ - @JsonProperty("dataCollector") - public void setDataCollector(String dataCollector) { - this.dataCollector = dataCollector; - } - - /** - * type of network element - internal ATT field - * - */ - @JsonProperty("elementType") - public String getElementType() { - return elementType; - } - - /** - * type of network element - internal ATT field - * - */ - @JsonProperty("elementType") - public void setElementType(String elementType) { - this.elementType = elementType; - } - - /** - * event severity or priority - * (Required) - * - */ - @JsonProperty("eventSeverity") - public ThresholdCrossingAlertFields.EventSeverity getEventSeverity() { - return eventSeverity; - } - - /** - * event severity or priority - * (Required) - * - */ - @JsonProperty("eventSeverity") - public void setEventSeverity(ThresholdCrossingAlertFields.EventSeverity eventSeverity) { - this.eventSeverity = eventSeverity; - } - - /** - * Time closest to when the measurement was made; with RFC 2822 compliant format: Sat, 13 Mar 2010 11:29:05 -0800 - * (Required) - * - */ - @JsonProperty("eventStartTimestamp") - public String getEventStartTimestamp() { - return eventStartTimestamp; - } - - /** - * Time closest to when the measurement was made; with RFC 2822 compliant format: Sat, 13 Mar 2010 11:29:05 -0800 - * (Required) - * - */ - @JsonProperty("eventStartTimestamp") - public void setEventStartTimestamp(String eventStartTimestamp) { - this.eventStartTimestamp = eventStartTimestamp; - } - - /** - * Physical or logical port or card (if applicable) - * - */ - @JsonProperty("interfaceName") - public String getInterfaceName() { - return interfaceName; - } - - /** - * Physical or logical port or card (if applicable) - * - */ - @JsonProperty("interfaceName") - public void setInterfaceName(String interfaceName) { - this.interfaceName = interfaceName; - } - - /** - * network name - internal ATT field - * - */ - @JsonProperty("networkService") - public String getNetworkService() { - return networkService; - } - - /** - * network name - internal ATT field - * - */ - @JsonProperty("networkService") - public void setNetworkService(String networkService) { - this.networkService = networkService; - } - - /** - * Reserved for future use - * - */ - @JsonProperty("possibleRootCause") - public String getPossibleRootCause() { - return possibleRootCause; - } - - /** - * Reserved for future use - * - */ - @JsonProperty("possibleRootCause") - public void setPossibleRootCause(String possibleRootCause) { - this.possibleRootCause = possibleRootCause; - } - - /** - * version of the thresholdCrossingAlertFields block - * (Required) - * - */ - @JsonProperty("thresholdCrossingFieldsVersion") - public ThresholdCrossingAlertFields.ThresholdCrossingFieldsVersion getThresholdCrossingFieldsVersion() { - return thresholdCrossingFieldsVersion; - } - - /** - * version of the thresholdCrossingAlertFields block - * (Required) - * - */ - @JsonProperty("thresholdCrossingFieldsVersion") - public void setThresholdCrossingFieldsVersion(ThresholdCrossingAlertFields.ThresholdCrossingFieldsVersion thresholdCrossingFieldsVersion) { - this.thresholdCrossingFieldsVersion = thresholdCrossingFieldsVersion; - } - - @Override - public String toString() { - return ToStringBuilder.reflectionToString(this); - } - - @Override - public int hashCode() { - return new HashCodeBuilder().append(additionalFields).append(additionalParameters).append(alertAction).append(alertDescription).append(alertType).append(alertValue).append(associatedAlertIdList).append(collectionTimestamp).append(dataCollector).append(elementType).append(eventSeverity).append(eventStartTimestamp).append(interfaceName).append(networkService).append(possibleRootCause).append(thresholdCrossingFieldsVersion).toHashCode(); - } - - @Override - public boolean equals(Object other) { - if (other == this) { - return true; - } - if ((other instanceof ThresholdCrossingAlertFields) == false) { - return false; - } - ThresholdCrossingAlertFields rhs = ((ThresholdCrossingAlertFields) other); - return new EqualsBuilder().append(additionalFields, rhs.additionalFields).append(additionalParameters, rhs.additionalParameters).append(alertAction, rhs.alertAction).append(alertDescription, rhs.alertDescription).append(alertType, rhs.alertType).append(alertValue, rhs.alertValue).append(associatedAlertIdList, rhs.associatedAlertIdList).append(collectionTimestamp, rhs.collectionTimestamp).append(dataCollector, rhs.dataCollector).append(elementType, rhs.elementType).append(eventSeverity, rhs.eventSeverity).append(eventStartTimestamp, rhs.eventStartTimestamp).append(interfaceName, rhs.interfaceName).append(networkService, rhs.networkService).append(possibleRootCause, rhs.possibleRootCause).append(thresholdCrossingFieldsVersion, rhs.thresholdCrossingFieldsVersion).isEquals(); - } - - public enum AlertAction { - - CLEAR("CLEAR"), - CONT("CONT"), - SET("SET"); - private final String value; - private final static Map CONSTANTS = new HashMap(); - - static { - for (ThresholdCrossingAlertFields.AlertAction c: values()) { - CONSTANTS.put(c.value, c); - } - } - - private AlertAction(String value) { - this.value = value; - } - - @Override - public String toString() { - return this.value; - } - - @JsonValue - public String value() { - return this.value; - } - - @JsonCreator - public static ThresholdCrossingAlertFields.AlertAction fromValue(String value) { - ThresholdCrossingAlertFields.AlertAction constant = CONSTANTS.get(value); - if (constant == null) { - throw new IllegalArgumentException(value); - } else { - return constant; - } - } - - } - - public enum AlertType { - - CARD_ANOMALY("CARD-ANOMALY"), - ELEMENT_ANOMALY("ELEMENT-ANOMALY"), - INTERFACE_ANOMALY("INTERFACE-ANOMALY"), - SERVICE_ANOMALY("SERVICE-ANOMALY"); - private final String value; - private final static Map CONSTANTS = new HashMap(); - - static { - for (ThresholdCrossingAlertFields.AlertType c: values()) { - CONSTANTS.put(c.value, c); - } - } - - private AlertType(String value) { - this.value = value; - } - - @Override - public String toString() { - return this.value; - } - - @JsonValue - public String value() { - return this.value; - } - - @JsonCreator - public static ThresholdCrossingAlertFields.AlertType fromValue(String value) { - ThresholdCrossingAlertFields.AlertType constant = CONSTANTS.get(value); - if (constant == null) { - throw new IllegalArgumentException(value); - } else { - return constant; - } - } - - } - - public enum EventSeverity { - - CRITICAL("CRITICAL"), - MAJOR("MAJOR"), - MINOR("MINOR"), - WARNING("WARNING"), - NORMAL("NORMAL"); - private final String value; - private final static Map CONSTANTS = new HashMap(); - - static { - for (ThresholdCrossingAlertFields.EventSeverity c: values()) { - CONSTANTS.put(c.value, c); - } - } - - private EventSeverity(String value) { - this.value = value; - } - - @Override - public String toString() { - return this.value; - } - - @JsonValue - public String value() { - return this.value; - } - - @JsonCreator - public static ThresholdCrossingAlertFields.EventSeverity fromValue(String value) { - ThresholdCrossingAlertFields.EventSeverity constant = CONSTANTS.get(value); - if (constant == null) { - throw new IllegalArgumentException(value); - } else { - return constant; - } - } - - } - - public enum ThresholdCrossingFieldsVersion { - - _4_0("4.0"); - private final String value; - private final static Map CONSTANTS = new HashMap(); - - static { - for (ThresholdCrossingAlertFields.ThresholdCrossingFieldsVersion c: values()) { - CONSTANTS.put(c.value, c); - } - } - - private ThresholdCrossingFieldsVersion(String value) { - this.value = value; - } - - @Override - public String toString() { - return this.value; - } - - @JsonValue - public String value() { - return this.value; - } - - @JsonCreator - public static ThresholdCrossingAlertFields.ThresholdCrossingFieldsVersion fromValue(String value) { - ThresholdCrossingAlertFields.ThresholdCrossingFieldsVersion constant = CONSTANTS.get(value); - if (constant == null) { - throw new IllegalArgumentException(value); - } else { - return constant; - } - } - - } - -} diff --git a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/VendorNfNameFields.java b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/VendorNfNameFields.java deleted file mode 100644 index f665097..0000000 --- a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/VendorNfNameFields.java +++ /dev/null @@ -1,144 +0,0 @@ -/* -* ============LICENSE_START======================================================= -* ONAP : DCAE -* ================================================================================ -* Copyright 2018 TechMahindra -*================================================================================= -* 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========================================================= -*/ -package org.onap.dcaegen2.ves.domain.ves7_0; - -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyDescription; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import org.apache.commons.lang.builder.EqualsBuilder; -import org.apache.commons.lang.builder.HashCodeBuilder; -import org.apache.commons.lang.builder.ToStringBuilder; - - -/** - * provides vendor, nf and nfModule identifying information - * - */ -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonPropertyOrder({ - "vendorName", - "nfModuleName", - "nfName" -}) -public class VendorNfNameFields { - - /** - * network function vendor name - * (Required) - * - */ - @JsonProperty("vendorName") - @JsonPropertyDescription("network function vendor name") - private String vendorName; - /** - * name of the nfModule generating the event - * - */ - @JsonProperty("nfModuleName") - @JsonPropertyDescription("name of the nfModule generating the event") - private String nfModuleName; - /** - * name of the network function generating the event - * - */ - @JsonProperty("nfName") - @JsonPropertyDescription("name of the network function generating the event") - private String nfName; - - /** - * network function vendor name - * (Required) - * - */ - @JsonProperty("vendorName") - public String getVendorName() { - return vendorName; - } - - /** - * network function vendor name - * (Required) - * - */ - @JsonProperty("vendorName") - public void setVendorName(String vendorName) { - this.vendorName = vendorName; - } - - /** - * name of the nfModule generating the event - * - */ - @JsonProperty("nfModuleName") - public String getNfModuleName() { - return nfModuleName; - } - - /** - * name of the nfModule generating the event - * - */ - @JsonProperty("nfModuleName") - public void setNfModuleName(String nfModuleName) { - this.nfModuleName = nfModuleName; - } - - /** - * name of the network function generating the event - * - */ - @JsonProperty("nfName") - public String getNfName() { - return nfName; - } - - /** - * name of the network function generating the event - * - */ - @JsonProperty("nfName") - public void setNfName(String nfName) { - this.nfName = nfName; - } - - @Override - public String toString() { - return ToStringBuilder.reflectionToString(this); - } - - @Override - public int hashCode() { - return new HashCodeBuilder().append(vendorName).append(nfModuleName).append(nfName).toHashCode(); - } - - @Override - public boolean equals(Object other) { - if (other == this) { - return true; - } - if ((other instanceof VendorNfNameFields) == false) { - return false; - } - VendorNfNameFields rhs = ((VendorNfNameFields) other); - return new EqualsBuilder().append(vendorName, rhs.vendorName).append(nfModuleName, rhs.nfModuleName).append(nfName, rhs.nfName).isEquals(); - } - -} diff --git a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/VesEvent.java b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/VesEvent.java deleted file mode 100644 index 9342f0b..0000000 --- a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/VesEvent.java +++ /dev/null @@ -1,116 +0,0 @@ -/* -* ============LICENSE_START======================================================= -* ONAP : DCAE -* ================================================================================ -* Copyright 2018 TechMahindra -*================================================================================= -* 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========================================================= -*/ -package org.onap.dcaegen2.ves.domain.ves7_0; - -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyDescription; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import org.apache.commons.lang.builder.EqualsBuilder; -import org.apache.commons.lang.builder.HashCodeBuilder; -import org.apache.commons.lang.builder.ToStringBuilder; - - -/** - * VES Event Listener Common Event Format - *

- * - * - */ -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonPropertyOrder({ - "event" - -}) -public class VesEvent { - - /** - * the root level of the common event format - * - */ - @JsonProperty("event") - @JsonPropertyDescription("the root level of the common event format") - private Event event; - - - @JsonIgnore - private Map additionalProperties = new HashMap(); - - /** - * the root level of the common event format - * - */ - @JsonProperty("event") - public Event getEvent() { - return event; - } - - /** - * the root level of the common event format - * - */ - @JsonProperty("event") - public void setEvent(Event event) { - this.event = event; - } - - - - - @Override - public String toString() { - return ToStringBuilder.reflectionToString(this); - } - - @JsonAnyGetter - public Map getAdditionalProperties() { - return this.additionalProperties; - } - - @JsonAnySetter - public void setAdditionalProperty(String name, Object value) { - this.additionalProperties.put(name, value); - } - - @Override - public int hashCode() { - return new HashCodeBuilder().append(event).append(additionalProperties).toHashCode(); - } - - @Override - public boolean equals(Object other) { - if (other == this) { - return true; - } - if ((other instanceof VesEvent) == false) { - return false; - } - VesEvent rhs = ((VesEvent) other); - return new EqualsBuilder().append(event, rhs.event).append(additionalProperties, rhs.additionalProperties).isEquals(); - } - -} diff --git a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/VoiceQualityFields.java b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/VoiceQualityFields.java deleted file mode 100644 index 80572c9..0000000 --- a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/VoiceQualityFields.java +++ /dev/null @@ -1,357 +0,0 @@ -/* -* ============LICENSE_START======================================================= -* ONAP : DCAE -* ================================================================================ -* Copyright 2018 TechMahindra -*================================================================================= -* 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========================================================= -*/ -package org.onap.dcaegen2.ves.domain.ves7_0; - -import java.util.HashMap; -import java.util.Map; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyDescription; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonValue; -import org.apache.commons.lang.builder.EqualsBuilder; -import org.apache.commons.lang.builder.HashCodeBuilder; -import org.apache.commons.lang.builder.ToStringBuilder; - - -/** - * provides statistics related to customer facing voice products - * - */ -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonPropertyOrder({ - "additionalInformation", - "calleeSideCodec", - "callerSideCodec", - "correlator", - "endOfCallVqmSummaries", - "phoneNumber", - "midCallRtcp", - "vendorNfNameFields", - "voiceQualityFieldsVersion" -}) -public class VoiceQualityFields { - - /** - * an associative array which is an array of key:value pairs - * - */ - @JsonProperty("additionalInformation") - @JsonPropertyDescription("an associative array which is an array of key:value pairs") - private AlarmAdditionalInformation additionalInformation; - /** - * callee codec for the call - * (Required) - * - */ - @JsonProperty("calleeSideCodec") - @JsonPropertyDescription("callee codec for the call") - private String calleeSideCodec; - /** - * caller codec for the call - * (Required) - * - */ - @JsonProperty("callerSideCodec") - @JsonPropertyDescription("caller codec for the call") - private String callerSideCodec; - /** - * this is the same for all events on this call - * (Required) - * - */ - @JsonProperty("correlator") - @JsonPropertyDescription("this is the same for all events on this call") - private String correlator; - /** - * provides end of call voice quality metrics - * - */ - @JsonProperty("endOfCallVqmSummaries") - @JsonPropertyDescription("provides end of call voice quality metrics") - private EndOfCallVqmSummaries endOfCallVqmSummaries; - /** - * phone number associated with the correlator - * - */ - @JsonProperty("phoneNumber") - @JsonPropertyDescription("phone number associated with the correlator") - private String phoneNumber; - /** - * Base64 encoding of the binary RTCP data excluding Eth/IP/UDP headers - * (Required) - * - */ - @JsonProperty("midCallRtcp") - @JsonPropertyDescription("Base64 encoding of the binary RTCP data excluding Eth/IP/UDP headers") - private String midCallRtcp; - /** - * provides vendor, nf and nfModule identifying information - * (Required) - * - */ - @JsonProperty("vendorNfNameFields") - @JsonPropertyDescription("provides vendor, nf and nfModule identifying information") - private VendorNfNameFields vendorNfNameFields; - /** - * version of the voiceQualityFields block - * (Required) - * - */ - @JsonProperty("voiceQualityFieldsVersion") - @JsonPropertyDescription("version of the voiceQualityFields block") - private VoiceQualityFields.VoiceQualityFieldsVersion voiceQualityFieldsVersion; - - /** - * an associative array which is an array of key:value pairs - * - */ - @JsonProperty("additionalInformation") - public AlarmAdditionalInformation getAdditionalInformation() { - return additionalInformation; - } - - /** - * an associative array which is an array of key:value pairs - * - */ - @JsonProperty("additionalInformation") - public void setAdditionalInformation(AlarmAdditionalInformation additionalInformation) { - this.additionalInformation = additionalInformation; - } - - /** - * callee codec for the call - * (Required) - * - */ - @JsonProperty("calleeSideCodec") - public String getCalleeSideCodec() { - return calleeSideCodec; - } - - /** - * callee codec for the call - * (Required) - * - */ - @JsonProperty("calleeSideCodec") - public void setCalleeSideCodec(String calleeSideCodec) { - this.calleeSideCodec = calleeSideCodec; - } - - /** - * caller codec for the call - * (Required) - * - */ - @JsonProperty("callerSideCodec") - public String getCallerSideCodec() { - return callerSideCodec; - } - - /** - * caller codec for the call - * (Required) - * - */ - @JsonProperty("callerSideCodec") - public void setCallerSideCodec(String callerSideCodec) { - this.callerSideCodec = callerSideCodec; - } - - /** - * this is the same for all events on this call - * (Required) - * - */ - @JsonProperty("correlator") - public String getCorrelator() { - return correlator; - } - - /** - * this is the same for all events on this call - * (Required) - * - */ - @JsonProperty("correlator") - public void setCorrelator(String correlator) { - this.correlator = correlator; - } - - /** - * provides end of call voice quality metrics - * - */ - @JsonProperty("endOfCallVqmSummaries") - public EndOfCallVqmSummaries getEndOfCallVqmSummaries() { - return endOfCallVqmSummaries; - } - - /** - * provides end of call voice quality metrics - * - */ - @JsonProperty("endOfCallVqmSummaries") - public void setEndOfCallVqmSummaries(EndOfCallVqmSummaries endOfCallVqmSummaries) { - this.endOfCallVqmSummaries = endOfCallVqmSummaries; - } - - /** - * phone number associated with the correlator - * - */ - @JsonProperty("phoneNumber") - public String getPhoneNumber() { - return phoneNumber; - } - - /** - * phone number associated with the correlator - * - */ - @JsonProperty("phoneNumber") - public void setPhoneNumber(String phoneNumber) { - this.phoneNumber = phoneNumber; - } - - /** - * Base64 encoding of the binary RTCP data excluding Eth/IP/UDP headers - * (Required) - * - */ - @JsonProperty("midCallRtcp") - public String getMidCallRtcp() { - return midCallRtcp; - } - - /** - * Base64 encoding of the binary RTCP data excluding Eth/IP/UDP headers - * (Required) - * - */ - @JsonProperty("midCallRtcp") - public void setMidCallRtcp(String midCallRtcp) { - this.midCallRtcp = midCallRtcp; - } - - /** - * provides vendor, nf and nfModule identifying information - * (Required) - * - */ - @JsonProperty("vendorNfNameFields") - public VendorNfNameFields getVendorNfNameFields() { - return vendorNfNameFields; - } - - /** - * provides vendor, nf and nfModule identifying information - * (Required) - * - */ - @JsonProperty("vendorNfNameFields") - public void setVendorNfNameFields(VendorNfNameFields vendorNfNameFields) { - this.vendorNfNameFields = vendorNfNameFields; - } - - /** - * version of the voiceQualityFields block - * (Required) - * - */ - @JsonProperty("voiceQualityFieldsVersion") - public VoiceQualityFields.VoiceQualityFieldsVersion getVoiceQualityFieldsVersion() { - return voiceQualityFieldsVersion; - } - - /** - * version of the voiceQualityFields block - * (Required) - * - */ - @JsonProperty("voiceQualityFieldsVersion") - public void setVoiceQualityFieldsVersion(VoiceQualityFields.VoiceQualityFieldsVersion voiceQualityFieldsVersion) { - this.voiceQualityFieldsVersion = voiceQualityFieldsVersion; - } - - @Override - public String toString() { - return ToStringBuilder.reflectionToString(this); - } - - @Override - public int hashCode() { - return new HashCodeBuilder().append(additionalInformation).append(calleeSideCodec).append(callerSideCodec).append(correlator).append(endOfCallVqmSummaries).append(phoneNumber).append(midCallRtcp).append(vendorNfNameFields).append(voiceQualityFieldsVersion).toHashCode(); - } - - @Override - public boolean equals(Object other) { - if (other == this) { - return true; - } - if ((other instanceof VoiceQualityFields) == false) { - return false; - } - VoiceQualityFields rhs = ((VoiceQualityFields) other); - return new EqualsBuilder().append(additionalInformation, rhs.additionalInformation).append(calleeSideCodec, rhs.calleeSideCodec).append(callerSideCodec, rhs.callerSideCodec).append(correlator, rhs.correlator).append(endOfCallVqmSummaries, rhs.endOfCallVqmSummaries).append(phoneNumber, rhs.phoneNumber).append(midCallRtcp, rhs.midCallRtcp).append(vendorNfNameFields, rhs.vendorNfNameFields).append(voiceQualityFieldsVersion, rhs.voiceQualityFieldsVersion).isEquals(); - } - - public enum VoiceQualityFieldsVersion { - - _4_0("4.0"); - private final String value; - private final static Map CONSTANTS = new HashMap(); - - static { - for (VoiceQualityFields.VoiceQualityFieldsVersion c: values()) { - CONSTANTS.put(c.value, c); - } - } - - private VoiceQualityFieldsVersion(String value) { - this.value = value; - } - - @Override - public String toString() { - return this.value; - } - - @JsonValue - public String value() { - return this.value; - } - - @JsonCreator - public static VoiceQualityFields.VoiceQualityFieldsVersion fromValue(String value) { - VoiceQualityFields.VoiceQualityFieldsVersion constant = CONSTANTS.get(value); - if (constant == null) { - throw new IllegalArgumentException(value); - } else { - return constant; - } - } - - } - -} diff --git a/UniversalVesAdapter/src/main/java/org/onap/universalvesadapter/adapter/UniversalEventAdapter.java b/UniversalVesAdapter/src/main/java/org/onap/universalvesadapter/adapter/UniversalEventAdapter.java index f17f3a6..484625f 100644 --- a/UniversalVesAdapter/src/main/java/org/onap/universalvesadapter/adapter/UniversalEventAdapter.java +++ b/UniversalVesAdapter/src/main/java/org/onap/universalvesadapter/adapter/UniversalEventAdapter.java @@ -1,185 +1,185 @@ -/* -* ============LICENSE_START======================================================= -* ONAP : DCAE -* ================================================================================ -* Copyright 2018 TechMahindra -*================================================================================= -* 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========================================================= -*/ -package org.onap.universalvesadapter.adapter; - -import java.io.ByteArrayInputStream; -import java.io.IOException; -import java.nio.charset.StandardCharsets; -import java.util.Iterator; -import java.util.Map; -import java.util.concurrent.ConcurrentHashMap; - -import javax.annotation.PreDestroy; - -import org.milyn.Smooks; -import org.onap.dcaegen2.ves.domain.ves7_0.VesEvent; -import org.onap.universalvesadapter.exception.ConfigFileSmooksConversionException; -import org.onap.universalvesadapter.exception.VesException; -import org.onap.universalvesadapter.service.VESAdapterInitializer; -import org.onap.universalvesadapter.utils.CollectorConfigPropertyRetrival; -import org.onap.universalvesadapter.utils.SmooksUtils; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; -import org.springframework.beans.factory.annotation.Value; -import org.springframework.stereotype.Component; -import org.xml.sax.SAXException; - -import com.fasterxml.jackson.core.JsonProcessingException; -import com.fasterxml.jackson.databind.ObjectMapper; -import com.google.gson.Gson; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; -import com.google.gson.JsonSyntaxException; - -/** - * Default implementation of the Generic Adapter - * - * @author kmalbari - * - */ - -@Component -public class UniversalEventAdapter implements GenericAdapter { - private static final Logger debugLogger = LoggerFactory.getLogger("debugLogger"); - private static final Logger errorLogger = LoggerFactory.getLogger("errorLogger"); - - @Value("${defaultConfigFilelocation}") - private String defaultConfigFilelocation; - private String collectorIdentifierValue; - private String collectorIdentifierKey; - private Map eventToSmooksMapping = new ConcurrentHashMap<>(); - - public UniversalEventAdapter() { - - } - - /** - * transforms JSON to VES format and and returns the ves Event - * - * @param IncomingJason,eventType - * @return ves Event - */ - @Override - public String transform(String incomingJsonString) - throws ConfigFileSmooksConversionException, VesException { - String result = ""; - String configFileData; - - String identifier[]= CollectorConfigPropertyRetrival.getProperyArray("identifier",defaultConfigFilelocation ); - String defaultMappingFile="defaultMappingFile-"+Thread.currentThread().getName(); - try { - - Gson gson = new Gson(); - JsonObject body = gson.fromJson(incomingJsonString, JsonObject.class); - - JsonElement results; - for(int i=0;i keys = object.keySet().iterator(); - while( keys.hasNext() ) { - String key = (String)keys.next(); - if ( object.get(key) instanceof JsonObject ) { - - jsonObject=(JsonObject) object.get(key); - JsonObject obj = keyObject(jsonObject, searchedKey); - exists = obj.has(searchedKey); - } - } - } - - return jsonObject; - } - -} +/* +* ============LICENSE_START======================================================= +* ONAP : DCAE +* ================================================================================ +* Copyright 2018-2019 TechMahindra +*================================================================================= +* 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========================================================= +*/ +package org.onap.universalvesadapter.adapter; + +import java.io.ByteArrayInputStream; +import java.io.IOException; +import java.nio.charset.StandardCharsets; +import java.util.Iterator; +import java.util.Map; +import java.util.concurrent.ConcurrentHashMap; + +import javax.annotation.PreDestroy; + +import org.milyn.Smooks; +import org.onap.dcaegen2.ves.domain.ves70.VesEvent; +import org.onap.universalvesadapter.exception.ConfigFileSmooksConversionException; +import org.onap.universalvesadapter.exception.VesException; +import org.onap.universalvesadapter.service.VESAdapterInitializer; +import org.onap.universalvesadapter.utils.CollectorConfigPropertyRetrival; +import org.onap.universalvesadapter.utils.SmooksUtils; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; +import org.springframework.beans.factory.annotation.Value; +import org.springframework.stereotype.Component; +import org.xml.sax.SAXException; + +import com.fasterxml.jackson.core.JsonProcessingException; +import com.fasterxml.jackson.databind.ObjectMapper; +import com.google.gson.Gson; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.JsonSyntaxException; + +/** + * Default implementation of the Generic Adapter + * + * @author kmalbari + * + */ + +@Component +public class UniversalEventAdapter implements GenericAdapter { + private static final Logger debugLogger = LoggerFactory.getLogger("debugLogger"); + private static final Logger errorLogger = LoggerFactory.getLogger("errorLogger"); + + @Value("${defaultConfigFilelocation}") + private String defaultConfigFilelocation; + private String collectorIdentifierValue; + private String collectorIdentifierKey; + private Map eventToSmooksMapping = new ConcurrentHashMap<>(); + + public UniversalEventAdapter() { + + } + + /** + * transforms JSON to VES format and and returns the ves Event + * + * @param IncomingJason,eventType + * @return ves Event + */ + @Override + public String transform(String incomingJsonString) + throws ConfigFileSmooksConversionException, VesException { + String result = ""; + String configFileData; + + String identifier[]= CollectorConfigPropertyRetrival.getProperyArray("identifier",defaultConfigFilelocation ); + String defaultMappingFile="defaultMappingFile-"+Thread.currentThread().getName(); + try { + + Gson gson = new Gson(); + JsonObject body = gson.fromJson(incomingJsonString, JsonObject.class); + + JsonElement results; + for(int i=0;i keys = object.keySet().iterator(); + while( keys.hasNext() ) { + String key = (String)keys.next(); + if ( object.get(key) instanceof JsonObject ) { + + jsonObject=(JsonObject) object.get(key); + JsonObject obj = keyObject(jsonObject, searchedKey); + exists = obj.has(searchedKey); + } + } + } + + return jsonObject; + } + +} diff --git a/UniversalVesAdapter/src/main/java/org/onap/universalvesadapter/utils/SmooksUtils.java b/UniversalVesAdapter/src/main/java/org/onap/universalvesadapter/utils/SmooksUtils.java index 9b341d5..f0fe0ee 100644 --- a/UniversalVesAdapter/src/main/java/org/onap/universalvesadapter/utils/SmooksUtils.java +++ b/UniversalVesAdapter/src/main/java/org/onap/universalvesadapter/utils/SmooksUtils.java @@ -1,76 +1,76 @@ -/* -* ============LICENSE_START======================================================= -* ONAP : DCAE -* ================================================================================ -* Copyright 2018 TechMahindra -*================================================================================= -* 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========================================================= -*/ -package org.onap.universalvesadapter.utils; - -import java.io.ByteArrayInputStream; -import java.io.IOException; -import java.nio.charset.StandardCharsets; -import java.util.Locale; -import javax.xml.transform.stream.StreamSource; -import org.milyn.Smooks; -import org.milyn.container.ExecutionContext; -import org.milyn.payload.StringResult; -import org.onap.dcaegen2.ves.domain.ves7_0.VesEvent; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; - - -/** - * Utility methods for smooks module - * - * @author kmalbari - * - */ - - -public class SmooksUtils { - - - private static final Logger debugLogger = LoggerFactory.getLogger("debugLogger"); - private static final Logger errorLogger = LoggerFactory.getLogger("errorLogger"); - - /** - * converts the incoming json using passed smooks instance and return the pojo representation of VES event - * - * @param smooks smooks object for the event type - * @param incomingJsonString - * @return VES json's pojo representation - * @throws IOException - */ - public static VesEvent getTransformedObjectForInput(Smooks smooks, String incomingJsonString) { - - debugLogger.info("Transforming incoming json " ); - ExecutionContext executionContext = smooks.createExecutionContext(); - debugLogger.info("Context created"); - Locale defaultLocale = Locale.getDefault(); - Locale.setDefault(new Locale("en", "IE")); - - StringResult result = new StringResult(); - - smooks.filterSource(executionContext, new StreamSource(new ByteArrayInputStream(incomingJsonString.getBytes(StandardCharsets.UTF_8))), result); - - Locale.setDefault(defaultLocale); - VesEvent vesEvent = (VesEvent) executionContext.getBeanContext().getBean("vesEvent"); - debugLogger.debug("consversion successful to VES Event"); - - return vesEvent; - } - -} +/* +* ============LICENSE_START======================================================= +* ONAP : DCAE +* ================================================================================ +* Copyright 2018-2019 TechMahindra +*================================================================================= +* 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========================================================= +*/ +package org.onap.universalvesadapter.utils; + +import java.io.ByteArrayInputStream; +import java.io.IOException; +import java.nio.charset.StandardCharsets; +import java.util.Locale; +import javax.xml.transform.stream.StreamSource; +import org.milyn.Smooks; +import org.milyn.container.ExecutionContext; +import org.milyn.payload.StringResult; +import org.onap.dcaegen2.ves.domain.ves70.VesEvent; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; + + +/** + * Utility methods for smooks module + * + * @author kmalbari + * + */ + + +public class SmooksUtils { + + + private static final Logger debugLogger = LoggerFactory.getLogger("debugLogger"); + private static final Logger errorLogger = LoggerFactory.getLogger("errorLogger"); + + /** + * converts the incoming json using passed smooks instance and return the pojo representation of VES event + * + * @param smooks smooks object for the event type + * @param incomingJsonString + * @return VES json's pojo representation + * @throws IOException + */ + public static VesEvent getTransformedObjectForInput(Smooks smooks, String incomingJsonString) { + + debugLogger.info("Transforming incoming json " ); + ExecutionContext executionContext = smooks.createExecutionContext(); + debugLogger.info("Context created"); + Locale defaultLocale = Locale.getDefault(); + Locale.setDefault(new Locale("en", "IE")); + + StringResult result = new StringResult(); + + smooks.filterSource(executionContext, new StreamSource(new ByteArrayInputStream(incomingJsonString.getBytes(StandardCharsets.UTF_8))), result); + + Locale.setDefault(defaultLocale); + VesEvent vesEvent = (VesEvent) executionContext.getBeanContext().getBean("vesEvent"); + debugLogger.debug("consversion successful to VES Event"); + + return vesEvent; + } + +} diff --git a/UniversalVesAdapter/src/main/resources/kv.json b/UniversalVesAdapter/src/main/resources/kv.json index e1b8d2a..c4231cb 100644 --- a/UniversalVesAdapter/src/main/resources/kv.json +++ b/UniversalVesAdapter/src/main/resources/kv.json @@ -1,15 +1,15 @@ -{ - "app_preferences":{ - "collectors":[ - { - "identifier":"notification-id", - "subscriberTopic":"ONAP-COLLECTOR-RESTCONFTRAP", - "mapping-files":[ - { - "defaultMappingFile-ONAP-COLLECTOR-RESTCONFTRAP":"<\/json:keyMap><\/json:reader><\/jb:bean><\/jb:bean>org.onap.dcaegen2.ves.domain.ves7_0.CommonEventHeader.Version._4_0_1<\/jb:expression>'pnfRegistration'<\/jb:expression>org.onap.dcaegen2.ves.domain.ves7_0.CommonEventHeader.VesEventListenerVersion._7_0_1<\/jb:expression>'registration_'+commonEventHeader.ts1<\/jb:expression>'VESMapper'<\/jb:expression>org.onap.dcaegen2.ves.domain.ves7_0.CommonEventHeader.Domain.PNF_REGISTRATION<\/jb:expression>commonEventHeader.domain<\/jb:expression>commonEventHeader.ts1<\/jb:expression>commonEventHeader.ts1<\/jb:expression>org.onap.dcaegen2.ves.domain.ves7_0.CommonEventHeader.Priority.NORMAL<\/jb:expression><\/jb:bean>org.onap.dcaegen2.ves.domain.ves7_0.PnfRegistrationFields.PnfRegistrationFieldsVersion._2_0<\/jb:expression><\/jb:bean><\/smooks-resource-list>" - } - ] - } - ] - } +{ + "app_preferences":{ + "collectors":[ + { + "identifier":"notification-id", + "subscriberTopic":"ONAP-COLLECTOR-RESTCONFTRAP", + "mapping-files":[ + { + "defaultMappingFile-ONAP-COLLECTOR-RESTCONFTRAP":"<\/json:keyMap><\/json:reader><\/jb:bean><\/jb:bean>org.onap.dcaegen2.ves.domain.ves70.CommonEventHeader.Version._4_0_1<\/jb:expression>'pnfRegistration'<\/jb:expression>org.onap.dcaegen2.ves.domain.ves70.CommonEventHeader.VesEventListenerVersion._7_0_1<\/jb:expression>'registration_'+commonEventHeader.ts1<\/jb:expression>'VESMapper'<\/jb:expression>org.onap.dcaegen2.ves.domain.ves70.CommonEventHeader.Domain.PNF_REGISTRATION<\/jb:expression>commonEventHeader.domain<\/jb:expression>commonEventHeader.ts1<\/jb:expression>commonEventHeader.ts1<\/jb:expression>org.onap.dcaegen2.ves.domain.ves70.CommonEventHeader.Priority.NORMAL<\/jb:expression><\/jb:bean>org.onap.dcaegen2.ves.domain.ves70.PnfRegistrationFields.PnfRegistrationFieldsVersion._2_0<\/jb:expression><\/jb:bean><\/smooks-resource-list>" + } + ] + } + ] + } } \ No newline at end of file diff --git a/UniversalVesAdapter/src/main/resources/kvTest.json b/UniversalVesAdapter/src/main/resources/kvTest.json index f6c5bac..c4231cb 100644 --- a/UniversalVesAdapter/src/main/resources/kvTest.json +++ b/UniversalVesAdapter/src/main/resources/kvTest.json @@ -6,7 +6,7 @@ "subscriberTopic":"ONAP-COLLECTOR-RESTCONFTRAP", "mapping-files":[ { - "defaultMappingFile-ONAP-COLLECTOR-RESTCONFTRAP":"<\/json:keyMap><\/json:reader><\/jb:bean><\/jb:bean>org.onap.dcaegen2.ves.domain.ves7_0.CommonEventHeader.Version._4_0_1<\/jb:expression>'pnfRegistration'<\/jb:expression>org.onap.dcaegen2.ves.domain.ves7_0.CommonEventHeader.VesEventListenerVersion._7_0_1<\/jb:expression>'registration_'+commonEventHeader.ts1<\/jb:expression>'VESMapper'<\/jb:expression>org.onap.dcaegen2.ves.domain.ves7_0.CommonEventHeader.Domain.PNF_REGISTRATION<\/jb:expression>commonEventHeader.domain<\/jb:expression>commonEventHeader.ts1<\/jb:expression>commonEventHeader.ts1<\/jb:expression>org.onap.dcaegen2.ves.domain.ves7_0.CommonEventHeader.Priority.NORMAL<\/jb:expression><\/jb:bean>org.onap.dcaegen2.ves.domain.ves7_0.PnfRegistrationFields.PnfRegistrationFieldsVersion._2_0<\/jb:expression><\/jb:bean><\/smooks-resource-list>" + "defaultMappingFile-ONAP-COLLECTOR-RESTCONFTRAP":"<\/json:keyMap><\/json:reader><\/jb:bean><\/jb:bean>org.onap.dcaegen2.ves.domain.ves70.CommonEventHeader.Version._4_0_1<\/jb:expression>'pnfRegistration'<\/jb:expression>org.onap.dcaegen2.ves.domain.ves70.CommonEventHeader.VesEventListenerVersion._7_0_1<\/jb:expression>'registration_'+commonEventHeader.ts1<\/jb:expression>'VESMapper'<\/jb:expression>org.onap.dcaegen2.ves.domain.ves70.CommonEventHeader.Domain.PNF_REGISTRATION<\/jb:expression>commonEventHeader.domain<\/jb:expression>commonEventHeader.ts1<\/jb:expression>commonEventHeader.ts1<\/jb:expression>org.onap.dcaegen2.ves.domain.ves70.CommonEventHeader.Priority.NORMAL<\/jb:expression><\/jb:bean>org.onap.dcaegen2.ves.domain.ves70.PnfRegistrationFields.PnfRegistrationFieldsVersion._2_0<\/jb:expression><\/jb:bean><\/smooks-resource-list>" } ] } diff --git a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/AdditionalMeasurementTest.java b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/AdditionalMeasurementTest.java new file mode 100644 index 0000000..3b1a3ac --- /dev/null +++ b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/AdditionalMeasurementTest.java @@ -0,0 +1,110 @@ +/*- + * ============LICENSE_START======================================================= + * ONAP : DCAE + * ================================================================================ + * Copyright 2019 TechMahindra + * ================================================================================ + * 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========================================================= + */ + +package org.onap.dcaegen2.ves.domain.ves70; + +import static org.junit.Assert.assertNotNull; + +import org.junit.Test; +import org.onap.dcaegen2.ves.domain.ves70.AdditionalMeasurement; +import org.onap.dcaegen2.ves.domain.ves70.AlarmAdditionalInformation; + + +public class AdditionalMeasurementTest { + + private AdditionalMeasurement createTestSubject() { + return new AdditionalMeasurement(); + } + + @Test + public void testGetName() throws Exception { + AdditionalMeasurement testSubject; + + + // default test + testSubject = createTestSubject(); + testSubject.getName(); + } + + @Test + public void testSetName() throws Exception { + AdditionalMeasurement testSubject; + String name = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setName(name); + } + + @Test + public void testGetHashMap() throws Exception { + AdditionalMeasurement testSubject; + + // default test + testSubject = createTestSubject(); + testSubject.getHashMap(); + } + + @Test + public void testSetHashMap() throws Exception { + AdditionalMeasurement testSubject; + AlarmAdditionalInformation hashMap = null; + + // default test + testSubject = createTestSubject(); + testSubject.setHashMap(hashMap); + } + + @Test + public void testToString() throws Exception { + AdditionalMeasurement testSubject; + + + // default test + testSubject = createTestSubject(); + testSubject.toString(); + } + + @Test + public void testHashCode() throws Exception { + AdditionalMeasurement testSubject; + + + // default test + testSubject = createTestSubject(); + testSubject.hashCode(); + } + + @Test + public void testEquals() throws Exception { + AdditionalMeasurement testSubject; + AdditionalMeasurement testSubject2; + Object other = null; + boolean result; + // default test + testSubject = createTestSubject(); + testSubject2 = createTestSubject(); + result = testSubject.equals(other); + result = testSubject.equals(testSubject); + result = testSubject.equals(testSubject2); + assertNotNull(result); + + } +} diff --git a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/AdditionalObjectTest.java b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/AdditionalObjectTest.java new file mode 100644 index 0000000..3096fe2 --- /dev/null +++ b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/AdditionalObjectTest.java @@ -0,0 +1,193 @@ +/*- + * ============LICENSE_START======================================================= + * ONAP : DCAE + * ================================================================================ + * Copyright 2019 TechMahindra + * ================================================================================ + * 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========================================================= + */ + +package org.onap.dcaegen2.ves.domain.ves70; + +import static org.junit.Assert.assertNotNull; + +import java.util.List; + +import org.junit.Test; +import org.onap.dcaegen2.ves.domain.ves70.AdditionalObject; +import org.onap.dcaegen2.ves.domain.ves70.ObjectInstance; + + +public class AdditionalObjectTest { + + private AdditionalObject createTestSubject() { + return new AdditionalObject(); + } + + @Test + public void testGetObjectInstances() throws Exception { + AdditionalObject testSubject; + + // default test + testSubject = createTestSubject(); + testSubject.getObjectInstances(); + } + + @Test + public void testSetObjectInstances() throws Exception { + AdditionalObject testSubject; + List objectInstances = null; + + // default test + testSubject = createTestSubject(); + testSubject.setObjectInstances(objectInstances); + } + + @Test + public void testGetObjectName() throws Exception { + AdditionalObject testSubject; + + + // default test + testSubject = createTestSubject(); + testSubject.getObjectName(); + } + + @Test + public void testSetObjectName() throws Exception { + AdditionalObject testSubject; + String objectName = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setObjectName(objectName); + } + + @Test + public void testGetObjectSchema() throws Exception { + AdditionalObject testSubject; + + + // default test + testSubject = createTestSubject(); + testSubject.getObjectSchema(); + } + + @Test + public void testSetObjectSchema() throws Exception { + AdditionalObject testSubject; + String objectSchema = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setObjectSchema(objectSchema); + } + + @Test + public void testGetObjectSchemaUrl() throws Exception { + AdditionalObject testSubject; + + + // default test + testSubject = createTestSubject(); + testSubject.getObjectSchemaUrl(); + } + + @Test + public void testSetObjectSchemaUrl() throws Exception { + AdditionalObject testSubject; + String objectSchemaUrl = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setObjectSchemaUrl(objectSchemaUrl); + } + + @Test + public void testGetNfSubscribedObjectName() throws Exception { + AdditionalObject testSubject; + + + // default test + testSubject = createTestSubject(); + testSubject.getNfSubscribedObjectName(); + } + + @Test + public void testSetNfSubscribedObjectName() throws Exception { + AdditionalObject testSubject; + String nfSubscribedObjectName = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setNfSubscribedObjectName(nfSubscribedObjectName); + } + + @Test + public void testGetNfSubscriptionId() throws Exception { + AdditionalObject testSubject; + + + // default test + testSubject = createTestSubject(); + testSubject.getNfSubscriptionId(); + } + + @Test + public void testSetNfSubscriptionId() throws Exception { + AdditionalObject testSubject; + String nfSubscriptionId = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setNfSubscriptionId(nfSubscriptionId); + } + + @Test + public void testToString() throws Exception { + AdditionalObject testSubject; + + + // default test + testSubject = createTestSubject(); + testSubject.toString(); + } + + @Test + public void testHashCode() throws Exception { + AdditionalObject testSubject; + + + // default test + testSubject = createTestSubject(); + testSubject.hashCode(); + } + + @Test + public void testEquals() throws Exception { + AdditionalObject testSubject; + AdditionalObject testSubject2; + Object other = null; + boolean result; + + // default test + testSubject = createTestSubject(); + testSubject2 = createTestSubject(); + result = testSubject.equals(other); + result = testSubject.equals(testSubject); + result = testSubject.equals(testSubject2); + assertNotNull(result); + + } +} diff --git a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/AdditionalParameterTest.java b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/AdditionalParameterTest.java new file mode 100644 index 0000000..d72037f --- /dev/null +++ b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/AdditionalParameterTest.java @@ -0,0 +1,128 @@ +/*- + * ============LICENSE_START======================================================= + * ONAP : DCAE + * ================================================================================ + * Copyright 2019 TechMahindra + * ================================================================================ + * 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========================================================= + */ + +package org.onap.dcaegen2.ves.domain.ves70; + +import org.junit.Test; +import org.onap.dcaegen2.ves.domain.ves70.AdditionalParameter.Criticality; + + + +public class AdditionalParameterTest { + + private AdditionalParameter createTestSubject() { + return new AdditionalParameter(); + } + + @Test + public void getCriticalityTest() throws Exception { + AdditionalParameter testSubject; + Criticality result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getCriticality(); + } + + @Test + public void setCriticalityTest() throws Exception { + AdditionalParameter testSubject; + Criticality criticality = Criticality.CRIT; + + // default test + testSubject = createTestSubject(); + testSubject.setCriticality(criticality); + } + + @Test + public void getHashMapTest() throws Exception { + AdditionalParameter testSubject; + AlarmAdditionalInformation result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getHashMap(); + } + + @Test + public void setHashMapTest() throws Exception { + AdditionalParameter testSubject; + AlarmAdditionalInformation hashMap = null; + + // default test + testSubject = createTestSubject(); + testSubject.setHashMap(hashMap); + } + + @Test + public void getThresholdCrossedTest() throws Exception { + AdditionalParameter testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getThresholdCrossed(); + } + + @Test + public void setThresholdCrossedTest() throws Exception { + AdditionalParameter testSubject; + String thresholdCrossed = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setThresholdCrossed(thresholdCrossed); + } + + @Test + public void toStringTest() throws Exception { + AdditionalParameter testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.toString(); + } + + @Test + public void hashCodeTest() throws Exception { + AdditionalParameter testSubject; + int result; + + // default test + testSubject = createTestSubject(); + result = testSubject.hashCode(); + } + + @Test + public void equalsTest() throws Exception { + AdditionalParameter testSubject; + AdditionalParameter testSubject2; + Object other = null; + boolean result; + + // default test + testSubject = createTestSubject(); + testSubject2 = createTestSubject(); + result = testSubject.equals(other); + result = testSubject.equals(testSubject); + result = testSubject.equals(testSubject2); + } +} diff --git a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/AlarmAdditionalInformationTest.java b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/AlarmAdditionalInformationTest.java new file mode 100644 index 0000000..aceac0b --- /dev/null +++ b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/AlarmAdditionalInformationTest.java @@ -0,0 +1,90 @@ +/*- + * ============LICENSE_START======================================================= + * ONAP : DCAE + * ================================================================================ + * Copyright 2019 TechMahindra + * ================================================================================ + * 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========================================================= + */ + +package org.onap.dcaegen2.ves.domain.ves70; + +import java.util.Map; + +import org.junit.Test; +import org.onap.dcaegen2.ves.domain.ves70.AlarmAdditionalInformation; + + +public class AlarmAdditionalInformationTest { + + private AlarmAdditionalInformation createTestSubject() { + return new AlarmAdditionalInformation(); + } + + @Test + public void testToString() throws Exception { + AlarmAdditionalInformation testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.toString(); + } + + @Test + public void testGetAdditionalProperties() throws Exception { + AlarmAdditionalInformation testSubject; + Map result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getAdditionalProperties(); + } + + @Test + public void testSetAdditionalProperty() throws Exception { + AlarmAdditionalInformation testSubject; + String name = ""; + String value = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setAdditionalProperty(name, value); + } + + @Test + public void testHashCode() throws Exception { + AlarmAdditionalInformation testSubject; + int result; + + // default test + testSubject = createTestSubject(); + result = testSubject.hashCode(); + } + + @Test + public void testEquals() throws Exception { + AlarmAdditionalInformation testSubject; + AlarmAdditionalInformation testSubject2; + Object other = null; + boolean result; + + // default test + testSubject = createTestSubject(); + testSubject2 = createTestSubject(); + result = testSubject.equals(other); + result = testSubject.equals(testSubject); + result = testSubject.equals(testSubject2); + } +} diff --git a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/CodecUsageArrayTest.java b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/CodecUsageArrayTest.java new file mode 100644 index 0000000..c9812fd --- /dev/null +++ b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/CodecUsageArrayTest.java @@ -0,0 +1,110 @@ +/*- + * ============LICENSE_START======================================================= + * ONAP : DCAE + * ================================================================================ + * Copyright 2019 TechMahindra + * ================================================================================ + * 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========================================================= + */ + +package org.onap.dcaegen2.ves.domain.ves70; + +import static org.junit.Assert.assertNotNull; + +import org.junit.Test; +import org.onap.dcaegen2.ves.domain.ves70.CodecUsageArray; + + +public class CodecUsageArrayTest { + + private CodecUsageArray createTestSubject() { + return new CodecUsageArray(); + } + + @Test + public void testGetCodecIdentifier() throws Exception { + CodecUsageArray testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getCodecIdentifier(); + } + + @Test + public void testSetCodecIdentifier() throws Exception { + CodecUsageArray testSubject; + String codecIdentifier = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setCodecIdentifier(codecIdentifier); + } + + @Test + public void testGetNumberInUse() throws Exception { + CodecUsageArray testSubject; + Integer result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getNumberInUse(); + } + + @Test + public void testSetNumberInUse() throws Exception { + CodecUsageArray testSubject; + Integer numberInUse = 0; + + // default test + testSubject = createTestSubject(); + testSubject.setNumberInUse(numberInUse); + } + + @Test + public void testToString() throws Exception { + CodecUsageArray testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.toString(); + } + + @Test + public void testHashCode() throws Exception { + CodecUsageArray testSubject; + int result; + + // default test + testSubject = createTestSubject(); + result = testSubject.hashCode(); + } + + @Test + public void testEquals() throws Exception { + CodecUsageArray testSubject; + CodecUsageArray testSubject2; + Object other = null; + boolean result; + + // default test + testSubject = createTestSubject(); + testSubject2 = createTestSubject(); + result = testSubject.equals(other); + result = testSubject.equals(testSubject); + result = testSubject.equals(testSubject2); + assertNotNull(result); + } +} diff --git a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/CommonEventHeaderTest.java b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/CommonEventHeaderTest.java new file mode 100644 index 0000000..8e5deb4 --- /dev/null +++ b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/CommonEventHeaderTest.java @@ -0,0 +1,472 @@ +/*- + * ============LICENSE_START======================================================= + * ONAP : DCAE + * ================================================================================ + * Copyright 2019 TechMahindra + * ================================================================================ + * 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========================================================= + */ + +package org.onap.dcaegen2.ves.domain.ves70; + +import static org.junit.Assert.assertNotNull; + +import org.junit.Test; +import org.onap.dcaegen2.ves.domain.ves70.CommonEventHeader.Domain; +import org.onap.dcaegen2.ves.domain.ves70.CommonEventHeader.VesEventListenerVersion; + + +public class CommonEventHeaderTest { + + private CommonEventHeader createTestSubject() { + return new CommonEventHeader(); + } + + @Test + public void testGetTs1() throws Exception { + CommonEventHeader testSubject; + long result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getTs1(); + } + + @Test + public void testSetTs1() throws Exception { + CommonEventHeader testSubject; + long ts1 = 123222; + + // default test + testSubject = createTestSubject(); + testSubject.setTs1(ts1); + } + + @Test + public void testGetDomain() throws Exception { + CommonEventHeader testSubject; + Domain result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getDomain(); + } + + @Test + public void testSetDomain() throws Exception { + CommonEventHeader testSubject; + Domain domain = CommonEventHeader.Domain.FAULT; + + // default test + testSubject = createTestSubject(); + testSubject.setDomain(domain); + } + + @Test + public void testGetEventId() throws Exception { + CommonEventHeader testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getEventId(); + } + + @Test + public void testSetEventId() throws Exception { + CommonEventHeader testSubject; + String eventId = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setEventId(eventId); + } + + @Test + public void testGetEventName() throws Exception { + CommonEventHeader testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getEventName(); + } + + @Test + public void testSetEventName() throws Exception { + CommonEventHeader testSubject; + String eventName = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setEventName(eventName); + } + + @Test + public void testGetEventType() throws Exception { + CommonEventHeader testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getEventType(); + } + + @Test + public void testSetEventType() throws Exception { + CommonEventHeader testSubject; + String eventType = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setEventType(eventType); + } + + @Test + public void testGetInternalHeaderFields() throws Exception { + CommonEventHeader testSubject; + InternalHeaderFields result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getInternalHeaderFields(); + } + + @Test + public void testSetInternalHeaderFields() throws Exception { + CommonEventHeader testSubject; + InternalHeaderFields internalHeaderFields = null; + + // default test + testSubject = createTestSubject(); + testSubject.setInternalHeaderFields(internalHeaderFields); + } + + @Test + public void testGetLastEpochMicrosec() throws Exception { + CommonEventHeader testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getLastEpochMicrosec(); + } + + @Test + public void testSetLastEpochMicrosec() throws Exception { + CommonEventHeader testSubject; + Double lastEpochMicrosec = null; + + // default test + testSubject = createTestSubject(); + testSubject.setLastEpochMicrosec(lastEpochMicrosec); + } + + @Test + public void testGetNfcNamingCode() throws Exception { + CommonEventHeader testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getNfcNamingCode(); + } + + @Test + public void testSetNfcNamingCode() throws Exception { + CommonEventHeader testSubject; + String nfcNamingCode = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setNfcNamingCode(nfcNamingCode); + } + + @Test + public void testGetNfNamingCode() throws Exception { + CommonEventHeader testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getNfNamingCode(); + } + + @Test + public void testSetNfNamingCode() throws Exception { + CommonEventHeader testSubject; + String nfNamingCode = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setNfNamingCode(nfNamingCode); + } + + @Test + public void testGetNfVendorName() throws Exception { + CommonEventHeader testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getNfVendorName(); + } + + @Test + public void testSetNfVendorName() throws Exception { + CommonEventHeader testSubject; + String nfVendorName = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setNfVendorName(nfVendorName); + } + + @Test + public void testGetPriority() throws Exception { + CommonEventHeader testSubject; + CommonEventHeader.Priority result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getPriority(); + } + + @Test + public void testSetPriority() throws Exception { + CommonEventHeader testSubject; + CommonEventHeader.Priority priority = CommonEventHeader.Priority.HIGH; + + // default test + testSubject = createTestSubject(); + testSubject.setPriority(priority); + } + + @Test + public void testGetReportingEntityId() throws Exception { + CommonEventHeader testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getReportingEntityId(); + } + + @Test + public void testSetReportingEntityId() throws Exception { + CommonEventHeader testSubject; + String reportingEntityId = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setReportingEntityId(reportingEntityId); + } + + @Test + public void testGetReportingEntityName() throws Exception { + CommonEventHeader testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getReportingEntityName(); + } + + @Test + public void testSetReportingEntityName() throws Exception { + CommonEventHeader testSubject; + String reportingEntityName = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setReportingEntityName(reportingEntityName); + } + + @Test + public void testGetSequence() throws Exception { + CommonEventHeader testSubject; + Integer result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getSequence(); + } + + @Test + public void testSetSequence() throws Exception { + CommonEventHeader testSubject; + Integer sequence = 0; + + // default test + testSubject = createTestSubject(); + testSubject.setSequence(sequence); + } + + @Test + public void testGetSourceId() throws Exception { + CommonEventHeader testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getSourceId(); + } + + @Test + public void testSetSourceId() throws Exception { + CommonEventHeader testSubject; + String sourceId = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setSourceId(sourceId); + } + + @Test + public void testGetSourceName() throws Exception { + CommonEventHeader testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getSourceName(); + } + + @Test + public void testSetSourceName() throws Exception { + CommonEventHeader testSubject; + String sourceName = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setSourceName(sourceName); + } + + @Test + public void testGetStartEpochMicrosec() throws Exception { + CommonEventHeader testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getStartEpochMicrosec(); + } + + @Test + public void testSetStartEpochMicrosec() throws Exception { + CommonEventHeader testSubject; + Double startEpochMicrosec = null; + + // default test + testSubject = createTestSubject(); + testSubject.setStartEpochMicrosec(startEpochMicrosec); + } + + @Test + public void testGetTimeZoneOffset() throws Exception { + CommonEventHeader testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getTimeZoneOffset(); + } + + @Test + public void testSetTimeZoneOffset() throws Exception { + CommonEventHeader testSubject; + String timeZoneOffset = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setTimeZoneOffset(timeZoneOffset); + } + + @Test + public void testGetVersion() throws Exception { + CommonEventHeader testSubject; + CommonEventHeader.Version result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getVersion(); + } + + @Test + public void testSetVersion() throws Exception { + CommonEventHeader testSubject; + CommonEventHeader.Version version = CommonEventHeader.Version._4_0_1; + + // default test + testSubject = createTestSubject(); + testSubject.setVersion(version); + } + + @Test + public void testGetVesEventListenerVersion() throws Exception { + CommonEventHeader testSubject; + VesEventListenerVersion result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getVesEventListenerVersion(); + } + + @Test + public void testSetVesEventListenerVersion() throws Exception { + CommonEventHeader testSubject; + VesEventListenerVersion vesEventListenerVersion = + CommonEventHeader.VesEventListenerVersion._7_0_1; + + // default test + testSubject = createTestSubject(); + testSubject.setVesEventListenerVersion(vesEventListenerVersion); + } + + @Test + public void testToString() throws Exception { + CommonEventHeader testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.toString(); + } + + @Test + public void testHashCode() throws Exception { + CommonEventHeader testSubject; + int result; + + // default test + testSubject = createTestSubject(); + result = testSubject.hashCode(); + } + + @Test + public void testEquals() throws Exception { + CommonEventHeader testSubject; + CommonEventHeader testSubject2; + Object other = null; + boolean result; + + // default test + testSubject = createTestSubject(); + testSubject2 = createTestSubject(); + result = testSubject.equals(other); + result = testSubject.equals(testSubject); + result = testSubject.equals(testSubject2); + assertNotNull(result); + } +} diff --git a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/CpuUsageArrayTest.java b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/CpuUsageArrayTest.java new file mode 100644 index 0000000..683b777 --- /dev/null +++ b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/CpuUsageArrayTest.java @@ -0,0 +1,410 @@ +/*- + * ============LICENSE_START======================================================= + * ONAP : DCAE + * ================================================================================ + * Copyright 2019 TechMahindra + * ================================================================================ + * 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========================================================= + */ + +package org.onap.dcaegen2.ves.domain.ves70; + +import static org.junit.Assert.assertNotNull; + +import org.junit.Test; +import org.onap.dcaegen2.ves.domain.ves70.CpuUsageArray; + + +public class CpuUsageArrayTest { + + private CpuUsageArray createTestSubject() { + return new CpuUsageArray(); + } + + @Test + public void testGetCpuCapacityContention() throws Exception { + CpuUsageArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getCpuCapacityContention(); + } + + @Test + public void testSetCpuCapacityContention() throws Exception { + CpuUsageArray testSubject; + Double cpuCapacityContention = null; + + // default test + testSubject = createTestSubject(); + testSubject.setCpuCapacityContention(cpuCapacityContention); + } + + @Test + public void testGetCpuDemandAvg() throws Exception { + CpuUsageArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getCpuDemandAvg(); + } + + @Test + public void testSetCpuDemandAvg() throws Exception { + CpuUsageArray testSubject; + Double cpuDemandAvg = null; + + // default test + testSubject = createTestSubject(); + testSubject.setCpuDemandAvg(cpuDemandAvg); + } + + @Test + public void testGetCpuDemandMhz() throws Exception { + CpuUsageArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getCpuDemandMhz(); + } + + @Test + public void testSetCpuDemandMhz() throws Exception { + CpuUsageArray testSubject; + Double cpuDemandMhz = null; + + // default test + testSubject = createTestSubject(); + testSubject.setCpuDemandMhz(cpuDemandMhz); + } + + @Test + public void testGetCpuDemandPct() throws Exception { + CpuUsageArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getCpuDemandPct(); + } + + @Test + public void testSetCpuDemandPct() throws Exception { + CpuUsageArray testSubject; + Double cpuDemandPct = null; + + // default test + testSubject = createTestSubject(); + testSubject.setCpuDemandPct(cpuDemandPct); + } + + @Test + public void testGetCpuIdentifier() throws Exception { + CpuUsageArray testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getCpuIdentifier(); + } + + @Test + public void testSetCpuIdentifier() throws Exception { + CpuUsageArray testSubject; + String cpuIdentifier = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setCpuIdentifier(cpuIdentifier); + } + + @Test + public void testGetCpuIdle() throws Exception { + CpuUsageArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getCpuIdle(); + } + + @Test + public void testSetCpuIdle() throws Exception { + CpuUsageArray testSubject; + Double cpuIdle = null; + + // default test + testSubject = createTestSubject(); + testSubject.setCpuIdle(cpuIdle); + } + + @Test + public void testGetCpuLatencyAvg() throws Exception { + CpuUsageArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getCpuLatencyAvg(); + } + + @Test + public void testSetCpuLatencyAvg() throws Exception { + CpuUsageArray testSubject; + Double cpuLatencyAvg = null; + + // default test + testSubject = createTestSubject(); + testSubject.setCpuLatencyAvg(cpuLatencyAvg); + } + + @Test + public void testGetCpuOverheadAvg() throws Exception { + CpuUsageArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getCpuOverheadAvg(); + } + + @Test + public void testSetCpuOverheadAvg() throws Exception { + CpuUsageArray testSubject; + Double cpuOverheadAvg = null; + + // default test + testSubject = createTestSubject(); + testSubject.setCpuOverheadAvg(cpuOverheadAvg); + } + + @Test + public void testGetCpuSwapWaitTime() throws Exception { + CpuUsageArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getCpuSwapWaitTime(); + } + + @Test + public void testSetCpuSwapWaitTime() throws Exception { + CpuUsageArray testSubject; + Double cpuSwapWaitTime = null; + + // default test + testSubject = createTestSubject(); + testSubject.setCpuSwapWaitTime(cpuSwapWaitTime); + } + + @Test + public void testGetCpuUsageInterrupt() throws Exception { + CpuUsageArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getCpuUsageInterrupt(); + } + + @Test + public void testSetCpuUsageInterrupt() throws Exception { + CpuUsageArray testSubject; + Double cpuUsageInterrupt = null; + + // default test + testSubject = createTestSubject(); + testSubject.setCpuUsageInterrupt(cpuUsageInterrupt); + } + + @Test + public void testGetCpuUsageNice() throws Exception { + CpuUsageArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getCpuUsageNice(); + } + + @Test + public void testSetCpuUsageNice() throws Exception { + CpuUsageArray testSubject; + Double cpuUsageNice = null; + + // default test + testSubject = createTestSubject(); + testSubject.setCpuUsageNice(cpuUsageNice); + } + + @Test + public void testGetCpuUsageSoftIrq() throws Exception { + CpuUsageArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getCpuUsageSoftIrq(); + } + + @Test + public void testSetCpuUsageSoftIrq() throws Exception { + CpuUsageArray testSubject; + Double cpuUsageSoftIrq = null; + + // default test + testSubject = createTestSubject(); + testSubject.setCpuUsageSoftIrq(cpuUsageSoftIrq); + } + + @Test + public void testGetCpuUsageSteal() throws Exception { + CpuUsageArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getCpuUsageSteal(); + } + + @Test + public void testSetCpuUsageSteal() throws Exception { + CpuUsageArray testSubject; + Double cpuUsageSteal = null; + + // default test + testSubject = createTestSubject(); + testSubject.setCpuUsageSteal(cpuUsageSteal); + } + + @Test + public void testGetCpuUsageSystem() throws Exception { + CpuUsageArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getCpuUsageSystem(); + } + + @Test + public void testSetCpuUsageSystem() throws Exception { + CpuUsageArray testSubject; + Double cpuUsageSystem = null; + + // default test + testSubject = createTestSubject(); + testSubject.setCpuUsageSystem(cpuUsageSystem); + } + + @Test + public void testGetCpuUsageUser() throws Exception { + CpuUsageArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getCpuUsageUser(); + } + + @Test + public void testSetCpuUsageUser() throws Exception { + CpuUsageArray testSubject; + Double cpuUsageUser = null; + + // default test + testSubject = createTestSubject(); + testSubject.setCpuUsageUser(cpuUsageUser); + } + + @Test + public void testGetCpuWait() throws Exception { + CpuUsageArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getCpuWait(); + } + + @Test + public void testSetCpuWait() throws Exception { + CpuUsageArray testSubject; + Double cpuWait = null; + + // default test + testSubject = createTestSubject(); + testSubject.setCpuWait(cpuWait); + } + + @Test + public void testGetPercentUsage() throws Exception { + CpuUsageArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getPercentUsage(); + } + + @Test + public void testSetPercentUsage() throws Exception { + CpuUsageArray testSubject; + Double percentUsage = null; + + // default test + testSubject = createTestSubject(); + testSubject.setPercentUsage(percentUsage); + } + + @Test + public void testToString() throws Exception { + CpuUsageArray testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.toString(); + } + + @Test + public void testHashCode() throws Exception { + CpuUsageArray testSubject; + int result; + + // default test + testSubject = createTestSubject(); + result = testSubject.hashCode(); + } + + @Test + public void testEquals() throws Exception { + CpuUsageArray testSubject; + CpuUsageArray testSubject2; + Object other = null; + boolean result; + + // default test + testSubject = createTestSubject(); + testSubject2 = createTestSubject(); + result = testSubject.equals(other); + result = testSubject.equals(testSubject); + result = testSubject.equals(testSubject2); + assertNotNull(result); + } +} diff --git a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/DiskUsageArrayTest.java b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/DiskUsageArrayTest.java new file mode 100644 index 0000000..d634540 --- /dev/null +++ b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/DiskUsageArrayTest.java @@ -0,0 +1,1170 @@ +/*- + * ============LICENSE_START======================================================= + * ONAP : DCAE + * ================================================================================ + * Copyright 2019 TechMahindra + * ================================================================================ + * 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========================================================= + */ + +package org.onap.dcaegen2.ves.domain.ves70; + +import static org.junit.Assert.assertNotNull; + +import org.junit.Test; +import org.onap.dcaegen2.ves.domain.ves70.DiskUsageArray; + + +public class DiskUsageArrayTest { + + private DiskUsageArray createTestSubject() { + return new DiskUsageArray(); + } + + @Test + public void testGetDiskBusResets() throws Exception { + DiskUsageArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getDiskBusResets(); + } + + @Test + public void testSetDiskBusResets() throws Exception { + DiskUsageArray testSubject; + Double diskBusResets = null; + + // default test + testSubject = createTestSubject(); + testSubject.setDiskBusResets(diskBusResets); + } + + @Test + public void testGetDiskCommandsAborted() throws Exception { + DiskUsageArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getDiskCommandsAborted(); + } + + @Test + public void testSetDiskCommandsAborted() throws Exception { + DiskUsageArray testSubject; + Double diskCommandsAborted = null; + + // default test + testSubject = createTestSubject(); + testSubject.setDiskCommandsAborted(diskCommandsAborted); + } + + @Test + public void testGetDiskCommandsAvg() throws Exception { + DiskUsageArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getDiskCommandsAvg(); + } + + @Test + public void testSetDiskCommandsAvg() throws Exception { + DiskUsageArray testSubject; + Double diskCommandsAvg = null; + + // default test + testSubject = createTestSubject(); + testSubject.setDiskCommandsAvg(diskCommandsAvg); + } + + @Test + public void testGetDiskFlushRequests() throws Exception { + DiskUsageArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getDiskFlushRequests(); + } + + @Test + public void testSetDiskFlushRequests() throws Exception { + DiskUsageArray testSubject; + Double diskFlushRequests = null; + + // default test + testSubject = createTestSubject(); + testSubject.setDiskFlushRequests(diskFlushRequests); + } + + @Test + public void testGetDiskFlushTime() throws Exception { + DiskUsageArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getDiskFlushTime(); + } + + @Test + public void testSetDiskFlushTime() throws Exception { + DiskUsageArray testSubject; + Double diskFlushTime = null; + + // default test + testSubject = createTestSubject(); + testSubject.setDiskFlushTime(diskFlushTime); + } + + @Test + public void testGetDiskIdentifier() throws Exception { + DiskUsageArray testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getDiskIdentifier(); + } + + @Test + public void testSetDiskIdentifier() throws Exception { + DiskUsageArray testSubject; + String diskIdentifier = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setDiskIdentifier(diskIdentifier); + } + + @Test + public void testGetDiskIoTimeAvg() throws Exception { + DiskUsageArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getDiskIoTimeAvg(); + } + + @Test + public void testSetDiskIoTimeAvg() throws Exception { + DiskUsageArray testSubject; + Double diskIoTimeAvg = null; + + // default test + testSubject = createTestSubject(); + testSubject.setDiskIoTimeAvg(diskIoTimeAvg); + } + + @Test + public void testGetDiskIoTimeLast() throws Exception { + DiskUsageArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getDiskIoTimeLast(); + } + + @Test + public void testSetDiskIoTimeLast() throws Exception { + DiskUsageArray testSubject; + Double diskIoTimeLast = null; + + // default test + testSubject = createTestSubject(); + testSubject.setDiskIoTimeLast(diskIoTimeLast); + } + + @Test + public void testGetDiskIoTimeMax() throws Exception { + DiskUsageArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getDiskIoTimeMax(); + } + + @Test + public void testSetDiskIoTimeMax() throws Exception { + DiskUsageArray testSubject; + Double diskIoTimeMax = null; + + // default test + testSubject = createTestSubject(); + testSubject.setDiskIoTimeMax(diskIoTimeMax); + } + + @Test + public void testGetDiskIoTimeMin() throws Exception { + DiskUsageArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getDiskIoTimeMin(); + } + + @Test + public void testSetDiskIoTimeMin() throws Exception { + DiskUsageArray testSubject; + Double diskIoTimeMin = null; + + // default test + testSubject = createTestSubject(); + testSubject.setDiskIoTimeMin(diskIoTimeMin); + } + + @Test + public void testGetDiskMergedReadAvg() throws Exception { + DiskUsageArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getDiskMergedReadAvg(); + } + + @Test + public void testSetDiskMergedReadAvg() throws Exception { + DiskUsageArray testSubject; + Double diskMergedReadAvg = null; + + // default test + testSubject = createTestSubject(); + testSubject.setDiskMergedReadAvg(diskMergedReadAvg); + } + + @Test + public void testGetDiskMergedReadLast() throws Exception { + DiskUsageArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getDiskMergedReadLast(); + } + + @Test + public void testSetDiskMergedReadLast() throws Exception { + DiskUsageArray testSubject; + Double diskMergedReadLast = null; + + // default test + testSubject = createTestSubject(); + testSubject.setDiskMergedReadLast(diskMergedReadLast); + } + + @Test + public void testGetDiskMergedReadMax() throws Exception { + DiskUsageArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getDiskMergedReadMax(); + } + + @Test + public void testSetDiskMergedReadMax() throws Exception { + DiskUsageArray testSubject; + Double diskMergedReadMax = null; + + // default test + testSubject = createTestSubject(); + testSubject.setDiskMergedReadMax(diskMergedReadMax); + } + + @Test + public void testGetDiskMergedReadMin() throws Exception { + DiskUsageArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getDiskMergedReadMin(); + } + + @Test + public void testSetDiskMergedReadMin() throws Exception { + DiskUsageArray testSubject; + Double diskMergedReadMin = null; + + // default test + testSubject = createTestSubject(); + testSubject.setDiskMergedReadMin(diskMergedReadMin); + } + + @Test + public void testGetDiskMergedWriteAvg() throws Exception { + DiskUsageArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getDiskMergedWriteAvg(); + } + + @Test + public void testSetDiskMergedWriteAvg() throws Exception { + DiskUsageArray testSubject; + Double diskMergedWriteAvg = null; + + // default test + testSubject = createTestSubject(); + testSubject.setDiskMergedWriteAvg(diskMergedWriteAvg); + } + + @Test + public void testGetDiskMergedWriteLast() throws Exception { + DiskUsageArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getDiskMergedWriteLast(); + } + + @Test + public void testSetDiskMergedWriteLast() throws Exception { + DiskUsageArray testSubject; + Double diskMergedWriteLast = null; + + // default test + testSubject = createTestSubject(); + testSubject.setDiskMergedWriteLast(diskMergedWriteLast); + } + + @Test + public void testGetDiskMergedWriteMax() throws Exception { + DiskUsageArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getDiskMergedWriteMax(); + } + + @Test + public void testSetDiskMergedWriteMax() throws Exception { + DiskUsageArray testSubject; + Double diskMergedWriteMax = null; + + // default test + testSubject = createTestSubject(); + testSubject.setDiskMergedWriteMax(diskMergedWriteMax); + } + + @Test + public void testGetDiskMergedWriteMin() throws Exception { + DiskUsageArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getDiskMergedWriteMin(); + } + + @Test + public void testSetDiskMergedWriteMin() throws Exception { + DiskUsageArray testSubject; + Double diskMergedWriteMin = null; + + // default test + testSubject = createTestSubject(); + testSubject.setDiskMergedWriteMin(diskMergedWriteMin); + } + + @Test + public void testGetDiskOctetsReadAvg() throws Exception { + DiskUsageArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getDiskOctetsReadAvg(); + } + + @Test + public void testSetDiskOctetsReadAvg() throws Exception { + DiskUsageArray testSubject; + Double diskOctetsReadAvg = null; + + // default test + testSubject = createTestSubject(); + testSubject.setDiskOctetsReadAvg(diskOctetsReadAvg); + } + + @Test + public void testGetDiskOctetsReadLast() throws Exception { + DiskUsageArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getDiskOctetsReadLast(); + } + + @Test + public void testSetDiskOctetsReadLast() throws Exception { + DiskUsageArray testSubject; + Double diskOctetsReadLast = null; + + // default test + testSubject = createTestSubject(); + testSubject.setDiskOctetsReadLast(diskOctetsReadLast); + } + + @Test + public void testGetDiskOctetsReadMax() throws Exception { + DiskUsageArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getDiskOctetsReadMax(); + } + + @Test + public void testSetDiskOctetsReadMax() throws Exception { + DiskUsageArray testSubject; + Double diskOctetsReadMax = null; + + // default test + testSubject = createTestSubject(); + testSubject.setDiskOctetsReadMax(diskOctetsReadMax); + } + + @Test + public void testGetDiskOctetsReadMin() throws Exception { + DiskUsageArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getDiskOctetsReadMin(); + } + + @Test + public void testSetDiskOctetsReadMin() throws Exception { + DiskUsageArray testSubject; + Double diskOctetsReadMin = null; + + // default test + testSubject = createTestSubject(); + testSubject.setDiskOctetsReadMin(diskOctetsReadMin); + } + + @Test + public void testGetDiskOctetsWriteAvg() throws Exception { + DiskUsageArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getDiskOctetsWriteAvg(); + } + + @Test + public void testSetDiskOctetsWriteAvg() throws Exception { + DiskUsageArray testSubject; + Double diskOctetsWriteAvg = null; + + // default test + testSubject = createTestSubject(); + testSubject.setDiskOctetsWriteAvg(diskOctetsWriteAvg); + } + + @Test + public void testGetDiskOctetsWriteLast() throws Exception { + DiskUsageArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getDiskOctetsWriteLast(); + } + + @Test + public void testSetDiskOctetsWriteLast() throws Exception { + DiskUsageArray testSubject; + Double diskOctetsWriteLast = null; + + // default test + testSubject = createTestSubject(); + testSubject.setDiskOctetsWriteLast(diskOctetsWriteLast); + } + + @Test + public void testGetDiskOctetsWriteMax() throws Exception { + DiskUsageArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getDiskOctetsWriteMax(); + } + + @Test + public void testSetDiskOctetsWriteMax() throws Exception { + DiskUsageArray testSubject; + Double diskOctetsWriteMax = null; + + // default test + testSubject = createTestSubject(); + testSubject.setDiskOctetsWriteMax(diskOctetsWriteMax); + } + + @Test + public void testGetDiskOctetsWriteMin() throws Exception { + DiskUsageArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getDiskOctetsWriteMin(); + } + + @Test + public void testSetDiskOctetsWriteMin() throws Exception { + DiskUsageArray testSubject; + Double diskOctetsWriteMin = null; + + // default test + testSubject = createTestSubject(); + testSubject.setDiskOctetsWriteMin(diskOctetsWriteMin); + } + + @Test + public void testGetDiskOpsReadAvg() throws Exception { + DiskUsageArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getDiskOpsReadAvg(); + } + + @Test + public void testSetDiskOpsReadAvg() throws Exception { + DiskUsageArray testSubject; + Double diskOpsReadAvg = null; + + // default test + testSubject = createTestSubject(); + testSubject.setDiskOpsReadAvg(diskOpsReadAvg); + } + + @Test + public void testGetDiskOpsReadLast() throws Exception { + DiskUsageArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getDiskOpsReadLast(); + } + + @Test + public void testSetDiskOpsReadLast() throws Exception { + DiskUsageArray testSubject; + Double diskOpsReadLast = null; + + // default test + testSubject = createTestSubject(); + testSubject.setDiskOpsReadLast(diskOpsReadLast); + } + + @Test + public void testGetDiskOpsReadMax() throws Exception { + DiskUsageArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getDiskOpsReadMax(); + } + + @Test + public void testSetDiskOpsReadMax() throws Exception { + DiskUsageArray testSubject; + Double diskOpsReadMax = null; + + // default test + testSubject = createTestSubject(); + testSubject.setDiskOpsReadMax(diskOpsReadMax); + } + + @Test + public void testGetDiskOpsReadMin() throws Exception { + DiskUsageArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getDiskOpsReadMin(); + } + + @Test + public void testSetDiskOpsReadMin() throws Exception { + DiskUsageArray testSubject; + Double diskOpsReadMin = null; + + // default test + testSubject = createTestSubject(); + testSubject.setDiskOpsReadMin(diskOpsReadMin); + } + + @Test + public void testGetDiskOpsWriteAvg() throws Exception { + DiskUsageArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getDiskOpsWriteAvg(); + } + + @Test + public void testSetDiskOpsWriteAvg() throws Exception { + DiskUsageArray testSubject; + Double diskOpsWriteAvg = null; + + // default test + testSubject = createTestSubject(); + testSubject.setDiskOpsWriteAvg(diskOpsWriteAvg); + } + + @Test + public void testGetDiskOpsWriteLast() throws Exception { + DiskUsageArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getDiskOpsWriteLast(); + } + + @Test + public void testSetDiskOpsWriteLast() throws Exception { + DiskUsageArray testSubject; + Double diskOpsWriteLast = null; + + // default test + testSubject = createTestSubject(); + testSubject.setDiskOpsWriteLast(diskOpsWriteLast); + } + + @Test + public void testGetDiskOpsWriteMax() throws Exception { + DiskUsageArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getDiskOpsWriteMax(); + } + + @Test + public void testSetDiskOpsWriteMax() throws Exception { + DiskUsageArray testSubject; + Double diskOpsWriteMax = null; + + // default test + testSubject = createTestSubject(); + testSubject.setDiskOpsWriteMax(diskOpsWriteMax); + } + + @Test + public void testGetDiskOpsWriteMin() throws Exception { + DiskUsageArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getDiskOpsWriteMin(); + } + + @Test + public void testSetDiskOpsWriteMin() throws Exception { + DiskUsageArray testSubject; + Double diskOpsWriteMin = null; + + // default test + testSubject = createTestSubject(); + testSubject.setDiskOpsWriteMin(diskOpsWriteMin); + } + + @Test + public void testGetDiskPendingOperationsAvg() throws Exception { + DiskUsageArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getDiskPendingOperationsAvg(); + } + + @Test + public void testSetDiskPendingOperationsAvg() throws Exception { + DiskUsageArray testSubject; + Double diskPendingOperationsAvg = null; + + // default test + testSubject = createTestSubject(); + testSubject.setDiskPendingOperationsAvg(diskPendingOperationsAvg); + } + + @Test + public void testGetDiskPendingOperationsLast() throws Exception { + DiskUsageArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getDiskPendingOperationsLast(); + } + + @Test + public void testSetDiskPendingOperationsLast() throws Exception { + DiskUsageArray testSubject; + Double diskPendingOperationsLast = null; + + // default test + testSubject = createTestSubject(); + testSubject.setDiskPendingOperationsLast(diskPendingOperationsLast); + } + + @Test + public void testGetDiskPendingOperationsMax() throws Exception { + DiskUsageArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getDiskPendingOperationsMax(); + } + + @Test + public void testSetDiskPendingOperationsMax() throws Exception { + DiskUsageArray testSubject; + Double diskPendingOperationsMax = null; + + // default test + testSubject = createTestSubject(); + testSubject.setDiskPendingOperationsMax(diskPendingOperationsMax); + } + + @Test + public void testGetDiskPendingOperationsMin() throws Exception { + DiskUsageArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getDiskPendingOperationsMin(); + } + + @Test + public void testSetDiskPendingOperationsMin() throws Exception { + DiskUsageArray testSubject; + Double diskPendingOperationsMin = null; + + // default test + testSubject = createTestSubject(); + testSubject.setDiskPendingOperationsMin(diskPendingOperationsMin); + } + + @Test + public void testGetDiskReadCommandsAvg() throws Exception { + DiskUsageArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getDiskReadCommandsAvg(); + } + + @Test + public void testSetDiskReadCommandsAvg() throws Exception { + DiskUsageArray testSubject; + Double diskReadCommandsAvg = null; + + // default test + testSubject = createTestSubject(); + testSubject.setDiskReadCommandsAvg(diskReadCommandsAvg); + } + + @Test + public void testGetDiskTime() throws Exception { + DiskUsageArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getDiskTime(); + } + + @Test + public void testSetDiskTime() throws Exception { + DiskUsageArray testSubject; + Double diskTime = null; + + // default test + testSubject = createTestSubject(); + testSubject.setDiskTime(diskTime); + } + + @Test + public void testGetDiskTimeReadAvg() throws Exception { + DiskUsageArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getDiskTimeReadAvg(); + } + + @Test + public void testSetDiskTimeReadAvg() throws Exception { + DiskUsageArray testSubject; + Double diskTimeReadAvg = null; + + // default test + testSubject = createTestSubject(); + testSubject.setDiskTimeReadAvg(diskTimeReadAvg); + } + + @Test + public void testGetDiskTimeReadLast() throws Exception { + DiskUsageArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getDiskTimeReadLast(); + } + + @Test + public void testSetDiskTimeReadLast() throws Exception { + DiskUsageArray testSubject; + Double diskTimeReadLast = null; + + // default test + testSubject = createTestSubject(); + testSubject.setDiskTimeReadLast(diskTimeReadLast); + } + + @Test + public void testGetDiskTimeReadMax() throws Exception { + DiskUsageArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getDiskTimeReadMax(); + } + + @Test + public void testSetDiskTimeReadMax() throws Exception { + DiskUsageArray testSubject; + Double diskTimeReadMax = null; + + // default test + testSubject = createTestSubject(); + testSubject.setDiskTimeReadMax(diskTimeReadMax); + } + + @Test + public void testGetDiskTimeReadMin() throws Exception { + DiskUsageArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getDiskTimeReadMin(); + } + + @Test + public void testSetDiskTimeReadMin() throws Exception { + DiskUsageArray testSubject; + Double diskTimeReadMin = null; + + // default test + testSubject = createTestSubject(); + testSubject.setDiskTimeReadMin(diskTimeReadMin); + } + + @Test + public void testGetDiskTimeWriteAvg() throws Exception { + DiskUsageArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getDiskTimeWriteAvg(); + } + + @Test + public void testSetDiskTimeWriteAvg() throws Exception { + DiskUsageArray testSubject; + Double diskTimeWriteAvg = null; + + // default test + testSubject = createTestSubject(); + testSubject.setDiskTimeWriteAvg(diskTimeWriteAvg); + } + + @Test + public void testGetDiskTimeWriteLast() throws Exception { + DiskUsageArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getDiskTimeWriteLast(); + } + + @Test + public void testSetDiskTimeWriteLast() throws Exception { + DiskUsageArray testSubject; + Double diskTimeWriteLast = null; + + // default test + testSubject = createTestSubject(); + testSubject.setDiskTimeWriteLast(diskTimeWriteLast); + } + + @Test + public void testGetDiskTimeWriteMax() throws Exception { + DiskUsageArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getDiskTimeWriteMax(); + } + + @Test + public void testSetDiskTimeWriteMax() throws Exception { + DiskUsageArray testSubject; + Double diskTimeWriteMax = null; + + // default test + testSubject = createTestSubject(); + testSubject.setDiskTimeWriteMax(diskTimeWriteMax); + } + + @Test + public void testGetDiskTimeWriteMin() throws Exception { + DiskUsageArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getDiskTimeWriteMin(); + } + + @Test + public void testSetDiskTimeWriteMin() throws Exception { + DiskUsageArray testSubject; + Double diskTimeWriteMin = null; + + // default test + testSubject = createTestSubject(); + testSubject.setDiskTimeWriteMin(diskTimeWriteMin); + } + + @Test + public void testGetDiskTotalReadLatencyAvg() throws Exception { + DiskUsageArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getDiskTotalReadLatencyAvg(); + } + + @Test + public void testSetDiskTotalReadLatencyAvg() throws Exception { + DiskUsageArray testSubject; + Double diskTotalReadLatencyAvg = null; + + // default test + testSubject = createTestSubject(); + testSubject.setDiskTotalReadLatencyAvg(diskTotalReadLatencyAvg); + } + + @Test + public void testGetDiskTotalWriteLatencyAvg() throws Exception { + DiskUsageArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getDiskTotalWriteLatencyAvg(); + } + + @Test + public void testSetDiskTotalWriteLatencyAvg() throws Exception { + DiskUsageArray testSubject; + Double diskTotalWriteLatencyAvg = null; + + // default test + testSubject = createTestSubject(); + testSubject.setDiskTotalWriteLatencyAvg(diskTotalWriteLatencyAvg); + } + + @Test + public void testGetDiskWeightedIoTimeAvg() throws Exception { + DiskUsageArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getDiskWeightedIoTimeAvg(); + } + + @Test + public void testSetDiskWeightedIoTimeAvg() throws Exception { + DiskUsageArray testSubject; + Double diskWeightedIoTimeAvg = null; + + // default test + testSubject = createTestSubject(); + testSubject.setDiskWeightedIoTimeAvg(diskWeightedIoTimeAvg); + } + + @Test + public void testGetDiskWeightedIoTimeLast() throws Exception { + DiskUsageArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getDiskWeightedIoTimeLast(); + } + + @Test + public void testSetDiskWeightedIoTimeLast() throws Exception { + DiskUsageArray testSubject; + Double diskWeightedIoTimeLast = null; + + // default test + testSubject = createTestSubject(); + testSubject.setDiskWeightedIoTimeLast(diskWeightedIoTimeLast); + } + + @Test + public void testGetDiskWeightedIoTimeMax() throws Exception { + DiskUsageArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getDiskWeightedIoTimeMax(); + } + + @Test + public void testSetDiskWeightedIoTimeMax() throws Exception { + DiskUsageArray testSubject; + Double diskWeightedIoTimeMax = null; + + // default test + testSubject = createTestSubject(); + testSubject.setDiskWeightedIoTimeMax(diskWeightedIoTimeMax); + } + + @Test + public void testGetDiskWeightedIoTimeMin() throws Exception { + DiskUsageArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getDiskWeightedIoTimeMin(); + } + + @Test + public void testSetDiskWeightedIoTimeMin() throws Exception { + DiskUsageArray testSubject; + Double diskWeightedIoTimeMin = null; + + // default test + testSubject = createTestSubject(); + testSubject.setDiskWeightedIoTimeMin(diskWeightedIoTimeMin); + } + + @Test + public void testGetDiskWriteCommandsAvg() throws Exception { + DiskUsageArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getDiskWriteCommandsAvg(); + } + + @Test + public void testSetDiskWriteCommandsAvg() throws Exception { + DiskUsageArray testSubject; + Double diskWriteCommandsAvg = null; + + // default test + testSubject = createTestSubject(); + testSubject.setDiskWriteCommandsAvg(diskWriteCommandsAvg); + } + + @Test + public void testToString() throws Exception { + DiskUsageArray testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.toString(); + } + + @Test + public void testHashCode() throws Exception { + DiskUsageArray testSubject; + int result; + + // default test + testSubject = createTestSubject(); + result = testSubject.hashCode(); + } + + @Test + public void testEquals() throws Exception { + DiskUsageArray testSubject; + DiskUsageArray testSubject2; + Object other = null; + boolean result; + + // default test + testSubject = createTestSubject(); + testSubject2 = createTestSubject(); + result = testSubject.equals(other); + result = testSubject.equals(testSubject); + result = testSubject.equals(testSubject2); + assertNotNull(result); + } +} diff --git a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/EndOfCallVqmSummariesTest.java b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/EndOfCallVqmSummariesTest.java new file mode 100644 index 0000000..62109eb --- /dev/null +++ b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/EndOfCallVqmSummariesTest.java @@ -0,0 +1,651 @@ +/*- + * ============LICENSE_START======================================================= + * ONAP : DCAE + * ================================================================================ + * Copyright 2019 TechMahindra + * ================================================================================ + * 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========================================================= + */ + +package org.onap.dcaegen2.ves.domain.ves70; + +import static org.junit.Assert.assertNotNull; + +import org.junit.Test; +import org.onap.dcaegen2.ves.domain.ves70.EndOfCallVqmSummaries; +import org.onap.dcaegen2.ves.domain.ves70.EndOfCallVqmSummaries.EndpointDescription; + + +public class EndOfCallVqmSummariesTest { + + private EndOfCallVqmSummaries createTestSubject() { + return new EndOfCallVqmSummaries(); + } + + @Test + public void testGetAdjacencyName() throws Exception { + EndOfCallVqmSummaries testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getAdjacencyName(); + } + + @Test + public void testSetAdjacencyName() throws Exception { + EndOfCallVqmSummaries testSubject; + String adjacencyName = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setAdjacencyName(adjacencyName); + } + + @Test + public void testGetEndpointAverageJitter() throws Exception { + EndOfCallVqmSummaries testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getEndpointAverageJitter(); + } + + @Test + public void testSetEndpointAverageJitter() throws Exception { + EndOfCallVqmSummaries testSubject; + Double endpointAverageJitter = null; + + // default test + testSubject = createTestSubject(); + testSubject.setEndpointAverageJitter(endpointAverageJitter); + } + + @Test + public void testGetEndpointDescription() throws Exception { + EndOfCallVqmSummaries testSubject; + EndpointDescription result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getEndpointDescription(); + } + + @Test + public void testSetEndpointDescription() throws Exception { + EndOfCallVqmSummaries testSubject; + EndpointDescription endpointDescription = EndpointDescription.CALLEE; + + // default test + testSubject = createTestSubject(); + testSubject.setEndpointDescription(endpointDescription); + } + + @Test + public void testGetEndpointMaxJitter() throws Exception { + EndOfCallVqmSummaries testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getEndpointMaxJitter(); + } + + @Test + public void testSetEndpointMaxJitter() throws Exception { + EndOfCallVqmSummaries testSubject; + Double endpointMaxJitter = null; + + // default test + testSubject = createTestSubject(); + testSubject.setEndpointMaxJitter(endpointMaxJitter); + } + + @Test + public void testGetEndpointRtpOctetsDiscarded() throws Exception { + EndOfCallVqmSummaries testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getEndpointRtpOctetsDiscarded(); + } + + @Test + public void testSetEndpointRtpOctetsDiscarded() throws Exception { + EndOfCallVqmSummaries testSubject; + Double endpointRtpOctetsDiscarded = null; + + // default test + testSubject = createTestSubject(); + testSubject.setEndpointRtpOctetsDiscarded(endpointRtpOctetsDiscarded); + } + + @Test + public void testGetEndpointRtpOctetsLost() throws Exception { + EndOfCallVqmSummaries testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getEndpointRtpOctetsLost(); + } + + @Test + public void testSetEndpointRtpOctetsLost() throws Exception { + EndOfCallVqmSummaries testSubject; + Double endpointRtpOctetsLost = null; + + // default test + testSubject = createTestSubject(); + testSubject.setEndpointRtpOctetsLost(endpointRtpOctetsLost); + } + + @Test + public void testGetEndpointRtpOctetsReceived() throws Exception { + EndOfCallVqmSummaries testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getEndpointRtpOctetsReceived(); + } + + @Test + public void testSetEndpointRtpOctetsReceived() throws Exception { + EndOfCallVqmSummaries testSubject; + Double endpointRtpOctetsReceived = null; + + // default test + testSubject = createTestSubject(); + testSubject.setEndpointRtpOctetsReceived(endpointRtpOctetsReceived); + } + + @Test + public void testGetEndpointRtpOctetsSent() throws Exception { + EndOfCallVqmSummaries testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getEndpointRtpOctetsSent(); + } + + @Test + public void testSetEndpointRtpOctetsSent() throws Exception { + EndOfCallVqmSummaries testSubject; + Double endpointRtpOctetsSent = null; + + // default test + testSubject = createTestSubject(); + testSubject.setEndpointRtpOctetsSent(endpointRtpOctetsSent); + } + + @Test + public void testGetEndpointRtpPacketsDiscarded() throws Exception { + EndOfCallVqmSummaries testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getEndpointRtpPacketsDiscarded(); + } + + @Test + public void testSetEndpointRtpPacketsDiscarded() throws Exception { + EndOfCallVqmSummaries testSubject; + Double endpointRtpPacketsDiscarded = null; + + // default test + testSubject = createTestSubject(); + testSubject.setEndpointRtpPacketsDiscarded(endpointRtpPacketsDiscarded); + } + + @Test + public void testGetEndpointRtpPacketsLost() throws Exception { + EndOfCallVqmSummaries testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getEndpointRtpPacketsLost(); + } + + @Test + public void testSetEndpointRtpPacketsLost() throws Exception { + EndOfCallVqmSummaries testSubject; + Double endpointRtpPacketsLost = null; + + // default test + testSubject = createTestSubject(); + testSubject.setEndpointRtpPacketsLost(endpointRtpPacketsLost); + } + + @Test + public void testGetEndpointRtpPacketsReceived() throws Exception { + EndOfCallVqmSummaries testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getEndpointRtpPacketsReceived(); + } + + @Test + public void testSetEndpointRtpPacketsReceived() throws Exception { + EndOfCallVqmSummaries testSubject; + Double endpointRtpPacketsReceived = null; + + // default test + testSubject = createTestSubject(); + testSubject.setEndpointRtpPacketsReceived(endpointRtpPacketsReceived); + } + + @Test + public void testGetEndpointRtpPacketsSent() throws Exception { + EndOfCallVqmSummaries testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getEndpointRtpPacketsSent(); + } + + @Test + public void testSetEndpointRtpPacketsSent() throws Exception { + EndOfCallVqmSummaries testSubject; + Double endpointRtpPacketsSent = null; + + // default test + testSubject = createTestSubject(); + testSubject.setEndpointRtpPacketsSent(endpointRtpPacketsSent); + } + + @Test + public void testGetLocalAverageJitter() throws Exception { + EndOfCallVqmSummaries testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getLocalAverageJitter(); + } + + @Test + public void testSetLocalAverageJitter() throws Exception { + EndOfCallVqmSummaries testSubject; + Double localAverageJitter = null; + + // default test + testSubject = createTestSubject(); + testSubject.setLocalAverageJitter(localAverageJitter); + } + + @Test + public void testGetLocalAverageJitterBufferDelay() throws Exception { + EndOfCallVqmSummaries testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getLocalAverageJitterBufferDelay(); + } + + @Test + public void testSetLocalAverageJitterBufferDelay() throws Exception { + EndOfCallVqmSummaries testSubject; + Double localAverageJitterBufferDelay = null; + + // default test + testSubject = createTestSubject(); + testSubject.setLocalAverageJitterBufferDelay(localAverageJitterBufferDelay); + } + + @Test + public void testGetLocalMaxJitter() throws Exception { + EndOfCallVqmSummaries testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getLocalMaxJitter(); + } + + @Test + public void testSetLocalMaxJitter() throws Exception { + EndOfCallVqmSummaries testSubject; + Double localMaxJitter = null; + + // default test + testSubject = createTestSubject(); + testSubject.setLocalMaxJitter(localMaxJitter); + } + + @Test + public void testGetLocalMaxJitterBufferDelay() throws Exception { + EndOfCallVqmSummaries testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getLocalMaxJitterBufferDelay(); + } + + @Test + public void testSetLocalMaxJitterBufferDelay() throws Exception { + EndOfCallVqmSummaries testSubject; + Double localMaxJitterBufferDelay = null; + + // default test + testSubject = createTestSubject(); + testSubject.setLocalMaxJitterBufferDelay(localMaxJitterBufferDelay); + } + + @Test + public void testGetLocalRtpOctetsDiscarded() throws Exception { + EndOfCallVqmSummaries testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getLocalRtpOctetsDiscarded(); + } + + @Test + public void testSetLocalRtpOctetsDiscarded() throws Exception { + EndOfCallVqmSummaries testSubject; + Double localRtpOctetsDiscarded = null; + + // default test + testSubject = createTestSubject(); + testSubject.setLocalRtpOctetsDiscarded(localRtpOctetsDiscarded); + } + + @Test + public void testGetLocalRtpOctetsLost() throws Exception { + EndOfCallVqmSummaries testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getLocalRtpOctetsLost(); + } + + @Test + public void testSetLocalRtpOctetsLost() throws Exception { + EndOfCallVqmSummaries testSubject; + Double localRtpOctetsLost = null; + + // default test + testSubject = createTestSubject(); + testSubject.setLocalRtpOctetsLost(localRtpOctetsLost); + } + + @Test + public void testGetLocalRtpOctetsReceived() throws Exception { + EndOfCallVqmSummaries testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getLocalRtpOctetsReceived(); + } + + @Test + public void testSetLocalRtpOctetsReceived() throws Exception { + EndOfCallVqmSummaries testSubject; + Double localRtpOctetsReceived = null; + + // default test + testSubject = createTestSubject(); + testSubject.setLocalRtpOctetsReceived(localRtpOctetsReceived); + } + + @Test + public void testGetLocalRtpOctetsSent() throws Exception { + EndOfCallVqmSummaries testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getLocalRtpOctetsSent(); + } + + @Test + public void testSetLocalRtpOctetsSent() throws Exception { + EndOfCallVqmSummaries testSubject; + Double localRtpOctetsSent = null; + + // default test + testSubject = createTestSubject(); + testSubject.setLocalRtpOctetsSent(localRtpOctetsSent); + } + + @Test + public void testGetLocalRtpPacketsDiscarded() throws Exception { + EndOfCallVqmSummaries testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getLocalRtpPacketsDiscarded(); + } + + @Test + public void testSetLocalRtpPacketsDiscarded() throws Exception { + EndOfCallVqmSummaries testSubject; + Double localRtpPacketsDiscarded = null; + + // default test + testSubject = createTestSubject(); + testSubject.setLocalRtpPacketsDiscarded(localRtpPacketsDiscarded); + } + + @Test + public void testGetLocalRtpPacketsLost() throws Exception { + EndOfCallVqmSummaries testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getLocalRtpPacketsLost(); + } + + @Test + public void testSetLocalRtpPacketsLost() throws Exception { + EndOfCallVqmSummaries testSubject; + Double localRtpPacketsLost = null; + + // default test + testSubject = createTestSubject(); + testSubject.setLocalRtpPacketsLost(localRtpPacketsLost); + } + + @Test + public void testGetLocalRtpPacketsReceived() throws Exception { + EndOfCallVqmSummaries testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getLocalRtpPacketsReceived(); + } + + @Test + public void testSetLocalRtpPacketsReceived() throws Exception { + EndOfCallVqmSummaries testSubject; + Double localRtpPacketsReceived = null; + + // default test + testSubject = createTestSubject(); + testSubject.setLocalRtpPacketsReceived(localRtpPacketsReceived); + } + + @Test + public void testGetLocalRtpPacketsSent() throws Exception { + EndOfCallVqmSummaries testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getLocalRtpPacketsSent(); + } + + @Test + public void testSetLocalRtpPacketsSent() throws Exception { + EndOfCallVqmSummaries testSubject; + Double localRtpPacketsSent = null; + + // default test + testSubject = createTestSubject(); + testSubject.setLocalRtpPacketsSent(localRtpPacketsSent); + } + + @Test + public void testGetMosCqe() throws Exception { + EndOfCallVqmSummaries testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getMosCqe(); + } + + @Test + public void testSetMosCqe() throws Exception { + EndOfCallVqmSummaries testSubject; + Double mosCqe = null; + + // default test + testSubject = createTestSubject(); + testSubject.setMosCqe(mosCqe); + } + + @Test + public void testGetOneWayDelay() throws Exception { + EndOfCallVqmSummaries testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getOneWayDelay(); + } + + @Test + public void testSetOneWayDelay() throws Exception { + EndOfCallVqmSummaries testSubject; + Double oneWayDelay = null; + + // default test + testSubject = createTestSubject(); + testSubject.setOneWayDelay(oneWayDelay); + } + + @Test + public void testGetPacketLossPercent() throws Exception { + EndOfCallVqmSummaries testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getPacketLossPercent(); + } + + @Test + public void testSetPacketLossPercent() throws Exception { + EndOfCallVqmSummaries testSubject; + Double packetLossPercent = null; + + // default test + testSubject = createTestSubject(); + testSubject.setPacketLossPercent(packetLossPercent); + } + + @Test + public void testGetRFactor() throws Exception { + EndOfCallVqmSummaries testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getRFactor(); + } + + @Test + public void testSetRFactor() throws Exception { + EndOfCallVqmSummaries testSubject; + Double value = null; + + // default test + testSubject = createTestSubject(); + testSubject.setRFactor(value); + } + + @Test + public void testGetRoundTripDelay() throws Exception { + EndOfCallVqmSummaries testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getRoundTripDelay(); + } + + @Test + public void testSetRoundTripDelay() throws Exception { + EndOfCallVqmSummaries testSubject; + Double roundTripDelay = null; + + // default test + testSubject = createTestSubject(); + testSubject.setRoundTripDelay(roundTripDelay); + } + + @Test + public void testToString() throws Exception { + EndOfCallVqmSummaries testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.toString(); + } + + @Test + public void testHashCode() throws Exception { + EndOfCallVqmSummaries testSubject; + int result; + + // default test + testSubject = createTestSubject(); + result = testSubject.hashCode(); + } + + @Test + public void testEquals() throws Exception { + EndOfCallVqmSummaries testSubject; + EndOfCallVqmSummaries testSubject2; + Object other = null; + boolean result; + + // default test + testSubject = createTestSubject(); + testSubject2 = createTestSubject(); + result = testSubject.equals(other); + result = testSubject.equals(testSubject); + result = testSubject.equals(testSubject2); + assertNotNull(result); + } +} diff --git a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/EventTest.java b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/EventTest.java new file mode 100644 index 0000000..4ad45aa --- /dev/null +++ b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/EventTest.java @@ -0,0 +1,343 @@ +/*- + * ============LICENSE_START======================================================= + * ONAP : DCAE + * ================================================================================ + * Copyright 2019 TechMahindra + * ================================================================================ + * 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========================================================= + */ + +package org.onap.dcaegen2.ves.domain.ves70; + +import static org.junit.Assert.assertNotNull; + +import org.junit.Test; +import org.onap.dcaegen2.ves.domain.ves70.CommonEventHeader; +import org.onap.dcaegen2.ves.domain.ves70.Event; +import org.onap.dcaegen2.ves.domain.ves70.FaultFields; +import org.onap.dcaegen2.ves.domain.ves70.HeartbeatFields; +import org.onap.dcaegen2.ves.domain.ves70.MeasurementFields; +import org.onap.dcaegen2.ves.domain.ves70.MobileFlowFields; +import org.onap.dcaegen2.ves.domain.ves70.NotificationFields; +import org.onap.dcaegen2.ves.domain.ves70.OtherFields; +import org.onap.dcaegen2.ves.domain.ves70.PnfRegistrationFields; +import org.onap.dcaegen2.ves.domain.ves70.SipSignalingFields; +import org.onap.dcaegen2.ves.domain.ves70.StateChangeFields; +import org.onap.dcaegen2.ves.domain.ves70.SyslogFields; +import org.onap.dcaegen2.ves.domain.ves70.ThresholdCrossingAlertFields; +import org.onap.dcaegen2.ves.domain.ves70.VoiceQualityFields; + + +public class EventTest { + + private Event createTestSubject() { + return new Event(); + } + + @Test + public void testGetCommonEventHeader() throws Exception { + Event testSubject; + CommonEventHeader result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getCommonEventHeader(); + } + + @Test + public void testSetCommonEventHeader() throws Exception { + Event testSubject; + CommonEventHeader commonEventHeader = null; + + // default test + testSubject = createTestSubject(); + testSubject.setCommonEventHeader(commonEventHeader); + } + + @Test + public void testGetFaultFields() throws Exception { + Event testSubject; + FaultFields result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getFaultFields(); + } + + @Test + public void testSetFaultFields() throws Exception { + Event testSubject; + FaultFields faultFields = null; + + // default test + testSubject = createTestSubject(); + testSubject.setFaultFields(faultFields); + } + + @Test + public void testGetHeartbeatFields() throws Exception { + Event testSubject; + HeartbeatFields result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getHeartbeatFields(); + } + + @Test + public void testSetHeartbeatFields() throws Exception { + Event testSubject; + HeartbeatFields heartbeatFields = null; + + // default test + testSubject = createTestSubject(); + testSubject.setHeartbeatFields(heartbeatFields); + } + + @Test + public void testGetMeasurementFields() throws Exception { + Event testSubject; + MeasurementFields result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getMeasurementFields(); + } + + @Test + public void testSetMeasurementFields() throws Exception { + Event testSubject; + MeasurementFields measurementFields = null; + + // default test + testSubject = createTestSubject(); + testSubject.setMeasurementFields(measurementFields); + } + + @Test + public void testGetMobileFlowFields() throws Exception { + Event testSubject; + MobileFlowFields result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getMobileFlowFields(); + } + + @Test + public void testSetMobileFlowFields() throws Exception { + Event testSubject; + MobileFlowFields mobileFlowFields = null; + + // default test + testSubject = createTestSubject(); + testSubject.setMobileFlowFields(mobileFlowFields); + } + + @Test + public void testGetNotificationFields() throws Exception { + Event testSubject; + NotificationFields result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getNotificationFields(); + } + + @Test + public void testSetNotificationFields() throws Exception { + Event testSubject; + NotificationFields notificationFields = null; + + // default test + testSubject = createTestSubject(); + testSubject.setNotificationFields(notificationFields); + } + + @Test + public void testGetOtherFields() throws Exception { + Event testSubject; + OtherFields result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getOtherFields(); + } + + @Test + public void testSetOtherFields() throws Exception { + Event testSubject; + OtherFields otherFields = null; + + // default test + testSubject = createTestSubject(); + testSubject.setOtherFields(otherFields); + } + + @Test + public void testGetPnfRegistrationFields() throws Exception { + Event testSubject; + PnfRegistrationFields result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getPnfRegistrationFields(); + } + + @Test + public void testSetPnfRegistrationFields() throws Exception { + Event testSubject; + PnfRegistrationFields pnfRegistrationFields = null; + + // default test + testSubject = createTestSubject(); + testSubject.setPnfRegistrationFields(pnfRegistrationFields); + } + + @Test + public void testGetSipSignalingFields() throws Exception { + Event testSubject; + SipSignalingFields result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getSipSignalingFields(); + } + + @Test + public void testSetSipSignalingFields() throws Exception { + Event testSubject; + SipSignalingFields sipSignalingFields = null; + + // default test + testSubject = createTestSubject(); + testSubject.setSipSignalingFields(sipSignalingFields); + } + + @Test + public void testGetStateChangeFields() throws Exception { + Event testSubject; + StateChangeFields result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getStateChangeFields(); + } + + @Test + public void testSetStateChangeFields() throws Exception { + Event testSubject; + StateChangeFields stateChangeFields = null; + + // default test + testSubject = createTestSubject(); + testSubject.setStateChangeFields(stateChangeFields); + } + + @Test + public void testGetSyslogFields() throws Exception { + Event testSubject; + SyslogFields result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getSyslogFields(); + } + + @Test + public void testSetSyslogFields() throws Exception { + Event testSubject; + SyslogFields syslogFields = null; + + // default test + testSubject = createTestSubject(); + testSubject.setSyslogFields(syslogFields); + } + + @Test + public void testGetThresholdCrossingAlertFields() throws Exception { + Event testSubject; + ThresholdCrossingAlertFields result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getThresholdCrossingAlertFields(); + } + + @Test + public void testSetThresholdCrossingAlertFields() throws Exception { + Event testSubject; + ThresholdCrossingAlertFields thresholdCrossingAlertFields = null; + + // default test + testSubject = createTestSubject(); + testSubject.setThresholdCrossingAlertFields(thresholdCrossingAlertFields); + } + + @Test + public void testGetVoiceQualityFields() throws Exception { + Event testSubject; + VoiceQualityFields result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getVoiceQualityFields(); + } + + @Test + public void testSetVoiceQualityFields() throws Exception { + Event testSubject; + VoiceQualityFields voiceQualityFields = null; + + // default test + testSubject = createTestSubject(); + testSubject.setVoiceQualityFields(voiceQualityFields); + } + + @Test + public void testToString() throws Exception { + Event testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.toString(); + } + + @Test + public void testHashCode() throws Exception { + Event testSubject; + int result; + + // default test + testSubject = createTestSubject(); + result = testSubject.hashCode(); + } + + @Test + public void testEquals() throws Exception { + Event testSubject; + Event testSubject2; + Object other = null; + boolean result; + + // default test + testSubject = createTestSubject(); + testSubject2 = createTestSubject(); + result = testSubject.equals(other); + result = testSubject.equals(testSubject); + result = testSubject.equals(testSubject2); + assertNotNull(result); + } +} diff --git a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/FaultFieldsTest.java b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/FaultFieldsTest.java new file mode 100644 index 0000000..80cbd57 --- /dev/null +++ b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/FaultFieldsTest.java @@ -0,0 +1,253 @@ +/*- + * ============LICENSE_START======================================================= + * ONAP : DCAE + * ================================================================================ + * Copyright 2019 TechMahindra + * ================================================================================ + * 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========================================================= + */ + +package org.onap.dcaegen2.ves.domain.ves70; + +import static org.junit.Assert.assertNotNull; + +import org.junit.Test; +import org.onap.dcaegen2.ves.domain.ves70.AlarmAdditionalInformation; +import org.onap.dcaegen2.ves.domain.ves70.FaultFields; +import org.onap.dcaegen2.ves.domain.ves70.FaultFields.FaultFieldsVersion; +import org.onap.dcaegen2.ves.domain.ves70.FaultFields.VfStatus; + + +public class FaultFieldsTest { + + private FaultFields createTestSubject() { + return new FaultFields(); + } + + @Test + public void testGetAlarmAdditionalInformation() throws Exception { + FaultFields testSubject; + AlarmAdditionalInformation result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getAlarmAdditionalInformation(); + } + + @Test + public void testSetAlarmAdditionalInformation() throws Exception { + FaultFields testSubject; + AlarmAdditionalInformation alarmAdditionalInformation = null; + + // default test + testSubject = createTestSubject(); + testSubject.setAlarmAdditionalInformation(alarmAdditionalInformation); + } + + @Test + public void testGetAlarmCondition() throws Exception { + FaultFields testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getAlarmCondition(); + } + + @Test + public void testSetAlarmCondition() throws Exception { + FaultFields testSubject; + String alarmCondition = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setAlarmCondition(alarmCondition); + } + + @Test + public void testGetAlarmInterfaceA() throws Exception { + FaultFields testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getAlarmInterfaceA(); + } + + @Test + public void testSetAlarmInterfaceA() throws Exception { + FaultFields testSubject; + String alarmInterfaceA = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setAlarmInterfaceA(alarmInterfaceA); + } + + @Test + public void testGetEventCategory() throws Exception { + FaultFields testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getEventCategory(); + } + + @Test + public void testSetEventCategory() throws Exception { + FaultFields testSubject; + String eventCategory = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setEventCategory(eventCategory); + } + + @Test + public void testGetEventSeverity() throws Exception { + FaultFields testSubject; + FaultFields.EventSeverity result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getEventSeverity(); + } + + @Test + public void testSetEventSeverity() throws Exception { + FaultFields testSubject; + FaultFields.EventSeverity eventSeverity = FaultFields.EventSeverity.CRITICAL; + + // default test + testSubject = createTestSubject(); + testSubject.setEventSeverity(eventSeverity); + } + + @Test + public void testGetEventSourceType() throws Exception { + FaultFields testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getEventSourceType(); + } + + @Test + public void testSetEventSourceType() throws Exception { + FaultFields testSubject; + String eventSourceType = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setEventSourceType(eventSourceType); + } + + @Test + public void testGetFaultFieldsVersion() throws Exception { + FaultFields testSubject; + FaultFieldsVersion result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getFaultFieldsVersion(); + } + + @Test + public void testSetFaultFieldsVersion() throws Exception { + FaultFields testSubject; + FaultFieldsVersion faultFieldsVersion = FaultFieldsVersion._4_0; + + // default test + testSubject = createTestSubject(); + testSubject.setFaultFieldsVersion(faultFieldsVersion); + } + + @Test + public void testGetSpecificProblem() throws Exception { + FaultFields testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getSpecificProblem(); + } + + @Test + public void testSetSpecificProblem() throws Exception { + FaultFields testSubject; + String specificProblem = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setSpecificProblem(specificProblem); + } + + @Test + public void testGetVfStatus() throws Exception { + FaultFields testSubject; + VfStatus result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getVfStatus(); + } + + @Test + public void testSetVfStatus() throws Exception { + FaultFields testSubject; + VfStatus vfStatus = VfStatus.ACTIVE; + + // default test + testSubject = createTestSubject(); + testSubject.setVfStatus(vfStatus); + } + + @Test + public void testToString() throws Exception { + FaultFields testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.toString(); + } + + @Test + public void testHashCode() throws Exception { + FaultFields testSubject; + int result; + + // default test + testSubject = createTestSubject(); + result = testSubject.hashCode(); + } + + @Test + public void testEquals() throws Exception { + FaultFields testSubject; + FaultFields testSubject2; + Object other = null; + boolean result; + + // default test + testSubject = createTestSubject(); + testSubject2 = createTestSubject(); + result = testSubject.equals(other); + result = testSubject.equals(testSubject); + result = testSubject.equals(testSubject2); + assertNotNull(result); + } +} diff --git a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/FilesystemUsageArrayTest.java b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/FilesystemUsageArrayTest.java new file mode 100644 index 0000000..4bb1a1a --- /dev/null +++ b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/FilesystemUsageArrayTest.java @@ -0,0 +1,210 @@ +/*- + * ============LICENSE_START======================================================= + * ONAP : DCAE + * ================================================================================ + * Copyright 2019 TechMahindra + * ================================================================================ + * 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========================================================= + */ + +package org.onap.dcaegen2.ves.domain.ves70; + +import static org.junit.Assert.assertNotNull; + +import org.junit.Test; +import org.onap.dcaegen2.ves.domain.ves70.FilesystemUsageArray; + + +public class FilesystemUsageArrayTest { + + private FilesystemUsageArray createTestSubject() { + return new FilesystemUsageArray(); + } + + @Test + public void testGetBlockConfigured() throws Exception { + FilesystemUsageArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getBlockConfigured(); + } + + @Test + public void testSetBlockConfigured() throws Exception { + FilesystemUsageArray testSubject; + Double blockConfigured = null; + + // default test + testSubject = createTestSubject(); + testSubject.setBlockConfigured(blockConfigured); + } + + @Test + public void testGetBlockIops() throws Exception { + FilesystemUsageArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getBlockIops(); + } + + @Test + public void testSetBlockIops() throws Exception { + FilesystemUsageArray testSubject; + Double blockIops = null; + + // default test + testSubject = createTestSubject(); + testSubject.setBlockIops(blockIops); + } + + @Test + public void testGetBlockUsed() throws Exception { + FilesystemUsageArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getBlockUsed(); + } + + @Test + public void testSetBlockUsed() throws Exception { + FilesystemUsageArray testSubject; + Double blockUsed = null; + + // default test + testSubject = createTestSubject(); + testSubject.setBlockUsed(blockUsed); + } + + @Test + public void testGetEphemeralConfigured() throws Exception { + FilesystemUsageArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getEphemeralConfigured(); + } + + @Test + public void testSetEphemeralConfigured() throws Exception { + FilesystemUsageArray testSubject; + Double ephemeralConfigured = null; + + // default test + testSubject = createTestSubject(); + testSubject.setEphemeralConfigured(ephemeralConfigured); + } + + @Test + public void testGetEphemeralIops() throws Exception { + FilesystemUsageArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getEphemeralIops(); + } + + @Test + public void testSetEphemeralIops() throws Exception { + FilesystemUsageArray testSubject; + Double ephemeralIops = null; + + // default test + testSubject = createTestSubject(); + testSubject.setEphemeralIops(ephemeralIops); + } + + @Test + public void testGetEphemeralUsed() throws Exception { + FilesystemUsageArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getEphemeralUsed(); + } + + @Test + public void testSetEphemeralUsed() throws Exception { + FilesystemUsageArray testSubject; + Double ephemeralUsed = null; + + // default test + testSubject = createTestSubject(); + testSubject.setEphemeralUsed(ephemeralUsed); + } + + @Test + public void testGetFilesystemName() throws Exception { + FilesystemUsageArray testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getFilesystemName(); + } + + @Test + public void testSetFilesystemName() throws Exception { + FilesystemUsageArray testSubject; + String filesystemName = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setFilesystemName(filesystemName); + } + + @Test + public void testToString() throws Exception { + FilesystemUsageArray testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.toString(); + } + + @Test + public void testHashCode() throws Exception { + FilesystemUsageArray testSubject; + int result; + + // default test + testSubject = createTestSubject(); + result = testSubject.hashCode(); + } + + @Test + public void testEquals() throws Exception { + FilesystemUsageArray testSubject; + FilesystemUsageArray testSubject2; + Object other = null; + boolean result; + + // default test + testSubject = createTestSubject(); + testSubject2 = createTestSubject(); + result = testSubject.equals(other); + result = testSubject.equals(testSubject); + result = testSubject.equals(testSubject2); + assertNotNull(result); + } +} diff --git a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/GtpPerFlowMetricsTest.java b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/GtpPerFlowMetricsTest.java new file mode 100644 index 0000000..f191748 --- /dev/null +++ b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/GtpPerFlowMetricsTest.java @@ -0,0 +1,1073 @@ +/*- + * ============LICENSE_START======================================================= + * ONAP : DCAE + * ================================================================================ + * Copyright 2019 TechMahindra + * ================================================================================ + * 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========================================================= + */ + +package org.onap.dcaegen2.ves.domain.ves70; + +import static org.junit.Assert.assertNotNull; + +import java.util.List; + +import org.junit.Test; +import org.onap.dcaegen2.ves.domain.ves70.AlarmAdditionalInformation; +import org.onap.dcaegen2.ves.domain.ves70.GtpPerFlowMetrics; + + +public class GtpPerFlowMetricsTest { + + private GtpPerFlowMetrics createTestSubject() { + return new GtpPerFlowMetrics(); + } + + @Test + public void testGetAvgBitErrorRate() throws Exception { + GtpPerFlowMetrics testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getAvgBitErrorRate(); + } + + @Test + public void testSetAvgBitErrorRate() throws Exception { + GtpPerFlowMetrics testSubject; + Double avgBitErrorRate = null; + + // default test + testSubject = createTestSubject(); + testSubject.setAvgBitErrorRate(avgBitErrorRate); + } + + @Test + public void testGetAvgPacketDelayVariation() throws Exception { + GtpPerFlowMetrics testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getAvgPacketDelayVariation(); + } + + @Test + public void testSetAvgPacketDelayVariation() throws Exception { + GtpPerFlowMetrics testSubject; + Double avgPacketDelayVariation = null; + + // default test + testSubject = createTestSubject(); + testSubject.setAvgPacketDelayVariation(avgPacketDelayVariation); + } + + @Test + public void testGetAvgPacketLatency() throws Exception { + GtpPerFlowMetrics testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getAvgPacketLatency(); + } + + @Test + public void testSetAvgPacketLatency() throws Exception { + GtpPerFlowMetrics testSubject; + Double avgPacketLatency = null; + + // default test + testSubject = createTestSubject(); + testSubject.setAvgPacketLatency(avgPacketLatency); + } + + @Test + public void testGetAvgReceiveThroughput() throws Exception { + GtpPerFlowMetrics testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getAvgReceiveThroughput(); + } + + @Test + public void testSetAvgReceiveThroughput() throws Exception { + GtpPerFlowMetrics testSubject; + Double avgReceiveThroughput = null; + + // default test + testSubject = createTestSubject(); + testSubject.setAvgReceiveThroughput(avgReceiveThroughput); + } + + @Test + public void testGetAvgTransmitThroughput() throws Exception { + GtpPerFlowMetrics testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getAvgTransmitThroughput(); + } + + @Test + public void testSetAvgTransmitThroughput() throws Exception { + GtpPerFlowMetrics testSubject; + Double avgTransmitThroughput = null; + + // default test + testSubject = createTestSubject(); + testSubject.setAvgTransmitThroughput(avgTransmitThroughput); + } + + @Test + public void testGetDurConnectionFailedStatus() throws Exception { + GtpPerFlowMetrics testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getDurConnectionFailedStatus(); + } + + @Test + public void testSetDurConnectionFailedStatus() throws Exception { + GtpPerFlowMetrics testSubject; + Double durConnectionFailedStatus = null; + + // default test + testSubject = createTestSubject(); + testSubject.setDurConnectionFailedStatus(durConnectionFailedStatus); + } + + @Test + public void testGetDurTunnelFailedStatus() throws Exception { + GtpPerFlowMetrics testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getDurTunnelFailedStatus(); + } + + @Test + public void testSetDurTunnelFailedStatus() throws Exception { + GtpPerFlowMetrics testSubject; + Double durTunnelFailedStatus = null; + + // default test + testSubject = createTestSubject(); + testSubject.setDurTunnelFailedStatus(durTunnelFailedStatus); + } + + @Test + public void testGetFlowActivatedBy() throws Exception { + GtpPerFlowMetrics testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getFlowActivatedBy(); + } + + @Test + public void testSetFlowActivatedBy() throws Exception { + GtpPerFlowMetrics testSubject; + String flowActivatedBy = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setFlowActivatedBy(flowActivatedBy); + } + + @Test + public void testGetFlowActivationEpoch() throws Exception { + GtpPerFlowMetrics testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getFlowActivationEpoch(); + } + + @Test + public void testSetFlowActivationEpoch() throws Exception { + GtpPerFlowMetrics testSubject; + Double flowActivationEpoch = null; + + // default test + testSubject = createTestSubject(); + testSubject.setFlowActivationEpoch(flowActivationEpoch); + } + + @Test + public void testGetFlowActivationMicrosec() throws Exception { + GtpPerFlowMetrics testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getFlowActivationMicrosec(); + } + + @Test + public void testSetFlowActivationMicrosec() throws Exception { + GtpPerFlowMetrics testSubject; + Double flowActivationMicrosec = null; + + // default test + testSubject = createTestSubject(); + testSubject.setFlowActivationMicrosec(flowActivationMicrosec); + } + + @Test + public void testGetFlowActivationTime() throws Exception { + GtpPerFlowMetrics testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getFlowActivationTime(); + } + + @Test + public void testSetFlowActivationTime() throws Exception { + GtpPerFlowMetrics testSubject; + String flowActivationTime = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setFlowActivationTime(flowActivationTime); + } + + @Test + public void testGetFlowDeactivatedBy() throws Exception { + GtpPerFlowMetrics testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getFlowDeactivatedBy(); + } + + @Test + public void testSetFlowDeactivatedBy() throws Exception { + GtpPerFlowMetrics testSubject; + String flowDeactivatedBy = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setFlowDeactivatedBy(flowDeactivatedBy); + } + + @Test + public void testGetFlowDeactivationEpoch() throws Exception { + GtpPerFlowMetrics testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getFlowDeactivationEpoch(); + } + + @Test + public void testSetFlowDeactivationEpoch() throws Exception { + GtpPerFlowMetrics testSubject; + Double flowDeactivationEpoch = null; + + // default test + testSubject = createTestSubject(); + testSubject.setFlowDeactivationEpoch(flowDeactivationEpoch); + } + + @Test + public void testGetFlowDeactivationMicrosec() throws Exception { + GtpPerFlowMetrics testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getFlowDeactivationMicrosec(); + } + + @Test + public void testSetFlowDeactivationMicrosec() throws Exception { + GtpPerFlowMetrics testSubject; + Double flowDeactivationMicrosec = null; + + // default test + testSubject = createTestSubject(); + testSubject.setFlowDeactivationMicrosec(flowDeactivationMicrosec); + } + + @Test + public void testGetFlowDeactivationTime() throws Exception { + GtpPerFlowMetrics testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getFlowDeactivationTime(); + } + + @Test + public void testSetFlowDeactivationTime() throws Exception { + GtpPerFlowMetrics testSubject; + String flowDeactivationTime = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setFlowDeactivationTime(flowDeactivationTime); + } + + @Test + public void testGetFlowStatus() throws Exception { + GtpPerFlowMetrics testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getFlowStatus(); + } + + @Test + public void testSetFlowStatus() throws Exception { + GtpPerFlowMetrics testSubject; + String flowStatus = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setFlowStatus(flowStatus); + } + + @Test + public void testGetGtpConnectionStatus() throws Exception { + GtpPerFlowMetrics testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getGtpConnectionStatus(); + } + + @Test + public void testSetGtpConnectionStatus() throws Exception { + GtpPerFlowMetrics testSubject; + String gtpConnectionStatus = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setGtpConnectionStatus(gtpConnectionStatus); + } + + @Test + public void testGetGtpTunnelStatus() throws Exception { + GtpPerFlowMetrics testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getGtpTunnelStatus(); + } + + @Test + public void testSetGtpTunnelStatus() throws Exception { + GtpPerFlowMetrics testSubject; + String gtpTunnelStatus = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setGtpTunnelStatus(gtpTunnelStatus); + } + + @Test + public void testGetIpTosCountList() throws Exception { + GtpPerFlowMetrics testSubject; + AlarmAdditionalInformation result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getIpTosCountList(); + } + + @Test + public void testSetIpTosCountList() throws Exception { + GtpPerFlowMetrics testSubject; + AlarmAdditionalInformation ipTosCountList = null; + + // default test + testSubject = createTestSubject(); + testSubject.setIpTosCountList(ipTosCountList); + } + + @Test + public void testGetIpTosList() throws Exception { + GtpPerFlowMetrics testSubject; + List result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getIpTosList(); + } + + @Test + public void testSetIpTosList() throws Exception { + GtpPerFlowMetrics testSubject; + List ipTosList = null; + + // default test + testSubject = createTestSubject(); + testSubject.setIpTosList(ipTosList); + } + + @Test + public void testGetLargePacketRtt() throws Exception { + GtpPerFlowMetrics testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getLargePacketRtt(); + } + + @Test + public void testSetLargePacketRtt() throws Exception { + GtpPerFlowMetrics testSubject; + Double largePacketRtt = null; + + // default test + testSubject = createTestSubject(); + testSubject.setLargePacketRtt(largePacketRtt); + } + + @Test + public void testGetLargePacketThreshold() throws Exception { + GtpPerFlowMetrics testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getLargePacketThreshold(); + } + + @Test + public void testSetLargePacketThreshold() throws Exception { + GtpPerFlowMetrics testSubject; + Double largePacketThreshold = null; + + // default test + testSubject = createTestSubject(); + testSubject.setLargePacketThreshold(largePacketThreshold); + } + + @Test + public void testGetMaxPacketDelayVariation() throws Exception { + GtpPerFlowMetrics testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getMaxPacketDelayVariation(); + } + + @Test + public void testSetMaxPacketDelayVariation() throws Exception { + GtpPerFlowMetrics testSubject; + Double maxPacketDelayVariation = null; + + // default test + testSubject = createTestSubject(); + testSubject.setMaxPacketDelayVariation(maxPacketDelayVariation); + } + + @Test + public void testGetMaxReceiveBitRate() throws Exception { + GtpPerFlowMetrics testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getMaxReceiveBitRate(); + } + + @Test + public void testSetMaxReceiveBitRate() throws Exception { + GtpPerFlowMetrics testSubject; + Double maxReceiveBitRate = null; + + // default test + testSubject = createTestSubject(); + testSubject.setMaxReceiveBitRate(maxReceiveBitRate); + } + + @Test + public void testGetMaxTransmitBitRate() throws Exception { + GtpPerFlowMetrics testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getMaxTransmitBitRate(); + } + + @Test + public void testSetMaxTransmitBitRate() throws Exception { + GtpPerFlowMetrics testSubject; + Double maxTransmitBitRate = null; + + // default test + testSubject = createTestSubject(); + testSubject.setMaxTransmitBitRate(maxTransmitBitRate); + } + + @Test + public void testGetMobileQciCosCountList() throws Exception { + GtpPerFlowMetrics testSubject; + AlarmAdditionalInformation result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getMobileQciCosCountList(); + } + + @Test + public void testSetMobileQciCosCountList() throws Exception { + GtpPerFlowMetrics testSubject; + AlarmAdditionalInformation mobileQciCosCountList = null; + + // default test + testSubject = createTestSubject(); + testSubject.setMobileQciCosCountList(mobileQciCosCountList); + } + + @Test + public void testGetMobileQciCosList() throws Exception { + GtpPerFlowMetrics testSubject; + List result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getMobileQciCosList(); + } + + @Test + public void testSetMobileQciCosList() throws Exception { + GtpPerFlowMetrics testSubject; + List mobileQciCosList = null; + + // default test + testSubject = createTestSubject(); + testSubject.setMobileQciCosList(mobileQciCosList); + } + + @Test + public void testGetNumActivationFailures() throws Exception { + GtpPerFlowMetrics testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getNumActivationFailures(); + } + + @Test + public void testSetNumActivationFailures() throws Exception { + GtpPerFlowMetrics testSubject; + Double numActivationFailures = null; + + // default test + testSubject = createTestSubject(); + testSubject.setNumActivationFailures(numActivationFailures); + } + + @Test + public void testGetNumBitErrors() throws Exception { + GtpPerFlowMetrics testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getNumBitErrors(); + } + + @Test + public void testSetNumBitErrors() throws Exception { + GtpPerFlowMetrics testSubject; + Double numBitErrors = null; + + // default test + testSubject = createTestSubject(); + testSubject.setNumBitErrors(numBitErrors); + } + + @Test + public void testGetNumBytesReceived() throws Exception { + GtpPerFlowMetrics testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getNumBytesReceived(); + } + + @Test + public void testSetNumBytesReceived() throws Exception { + GtpPerFlowMetrics testSubject; + Double numBytesReceived = null; + + // default test + testSubject = createTestSubject(); + testSubject.setNumBytesReceived(numBytesReceived); + } + + @Test + public void testGetNumBytesTransmitted() throws Exception { + GtpPerFlowMetrics testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getNumBytesTransmitted(); + } + + @Test + public void testSetNumBytesTransmitted() throws Exception { + GtpPerFlowMetrics testSubject; + Double numBytesTransmitted = null; + + // default test + testSubject = createTestSubject(); + testSubject.setNumBytesTransmitted(numBytesTransmitted); + } + + @Test + public void testGetNumDroppedPackets() throws Exception { + GtpPerFlowMetrics testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getNumDroppedPackets(); + } + + @Test + public void testSetNumDroppedPackets() throws Exception { + GtpPerFlowMetrics testSubject; + Double numDroppedPackets = null; + + // default test + testSubject = createTestSubject(); + testSubject.setNumDroppedPackets(numDroppedPackets); + } + + @Test + public void testGetNumGtpEchoFailures() throws Exception { + GtpPerFlowMetrics testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getNumGtpEchoFailures(); + } + + @Test + public void testSetNumGtpEchoFailures() throws Exception { + GtpPerFlowMetrics testSubject; + Double numGtpEchoFailures = null; + + // default test + testSubject = createTestSubject(); + testSubject.setNumGtpEchoFailures(numGtpEchoFailures); + } + + @Test + public void testGetNumGtpTunnelErrors() throws Exception { + GtpPerFlowMetrics testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getNumGtpTunnelErrors(); + } + + @Test + public void testSetNumGtpTunnelErrors() throws Exception { + GtpPerFlowMetrics testSubject; + Double numGtpTunnelErrors = null; + + // default test + testSubject = createTestSubject(); + testSubject.setNumGtpTunnelErrors(numGtpTunnelErrors); + } + + @Test + public void testGetNumHttpErrors() throws Exception { + GtpPerFlowMetrics testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getNumHttpErrors(); + } + + @Test + public void testSetNumHttpErrors() throws Exception { + GtpPerFlowMetrics testSubject; + Double numHttpErrors = null; + + // default test + testSubject = createTestSubject(); + testSubject.setNumHttpErrors(numHttpErrors); + } + + @Test + public void testGetNumL7BytesReceived() throws Exception { + GtpPerFlowMetrics testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getNumL7BytesReceived(); + } + + @Test + public void testSetNumL7BytesReceived() throws Exception { + GtpPerFlowMetrics testSubject; + Double numL7BytesReceived = null; + + // default test + testSubject = createTestSubject(); + testSubject.setNumL7BytesReceived(numL7BytesReceived); + } + + @Test + public void testGetNumL7BytesTransmitted() throws Exception { + GtpPerFlowMetrics testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getNumL7BytesTransmitted(); + } + + @Test + public void testSetNumL7BytesTransmitted() throws Exception { + GtpPerFlowMetrics testSubject; + Double numL7BytesTransmitted = null; + + // default test + testSubject = createTestSubject(); + testSubject.setNumL7BytesTransmitted(numL7BytesTransmitted); + } + + @Test + public void testGetNumLostPackets() throws Exception { + GtpPerFlowMetrics testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getNumLostPackets(); + } + + @Test + public void testSetNumLostPackets() throws Exception { + GtpPerFlowMetrics testSubject; + Double numLostPackets = null; + + // default test + testSubject = createTestSubject(); + testSubject.setNumLostPackets(numLostPackets); + } + + @Test + public void testGetNumOutOfOrderPackets() throws Exception { + GtpPerFlowMetrics testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getNumOutOfOrderPackets(); + } + + @Test + public void testSetNumOutOfOrderPackets() throws Exception { + GtpPerFlowMetrics testSubject; + Double numOutOfOrderPackets = null; + + // default test + testSubject = createTestSubject(); + testSubject.setNumOutOfOrderPackets(numOutOfOrderPackets); + } + + @Test + public void testGetNumPacketErrors() throws Exception { + GtpPerFlowMetrics testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getNumPacketErrors(); + } + + @Test + public void testSetNumPacketErrors() throws Exception { + GtpPerFlowMetrics testSubject; + Double numPacketErrors = null; + + // default test + testSubject = createTestSubject(); + testSubject.setNumPacketErrors(numPacketErrors); + } + + @Test + public void testGetNumPacketsReceivedExclRetrans() throws Exception { + GtpPerFlowMetrics testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getNumPacketsReceivedExclRetrans(); + } + + @Test + public void testSetNumPacketsReceivedExclRetrans() throws Exception { + GtpPerFlowMetrics testSubject; + Double numPacketsReceivedExclRetrans = null; + + // default test + testSubject = createTestSubject(); + testSubject.setNumPacketsReceivedExclRetrans(numPacketsReceivedExclRetrans); + } + + @Test + public void testGetNumPacketsReceivedInclRetrans() throws Exception { + GtpPerFlowMetrics testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getNumPacketsReceivedInclRetrans(); + } + + @Test + public void testSetNumPacketsReceivedInclRetrans() throws Exception { + GtpPerFlowMetrics testSubject; + Double numPacketsReceivedInclRetrans = null; + + // default test + testSubject = createTestSubject(); + testSubject.setNumPacketsReceivedInclRetrans(numPacketsReceivedInclRetrans); + } + + @Test + public void testGetNumPacketsTransmittedInclRetrans() throws Exception { + GtpPerFlowMetrics testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getNumPacketsTransmittedInclRetrans(); + } + + @Test + public void testSetNumPacketsTransmittedInclRetrans() throws Exception { + GtpPerFlowMetrics testSubject; + Double numPacketsTransmittedInclRetrans = null; + + // default test + testSubject = createTestSubject(); + testSubject.setNumPacketsTransmittedInclRetrans(numPacketsTransmittedInclRetrans); + } + + @Test + public void testGetNumRetries() throws Exception { + GtpPerFlowMetrics testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getNumRetries(); + } + + @Test + public void testSetNumRetries() throws Exception { + GtpPerFlowMetrics testSubject; + Double numRetries = null; + + // default test + testSubject = createTestSubject(); + testSubject.setNumRetries(numRetries); + } + + @Test + public void testGetNumTimeouts() throws Exception { + GtpPerFlowMetrics testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getNumTimeouts(); + } + + @Test + public void testSetNumTimeouts() throws Exception { + GtpPerFlowMetrics testSubject; + Double numTimeouts = null; + + // default test + testSubject = createTestSubject(); + testSubject.setNumTimeouts(numTimeouts); + } + + @Test + public void testGetNumTunneledL7BytesReceived() throws Exception { + GtpPerFlowMetrics testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getNumTunneledL7BytesReceived(); + } + + @Test + public void testSetNumTunneledL7BytesReceived() throws Exception { + GtpPerFlowMetrics testSubject; + Double numTunneledL7BytesReceived = null; + + // default test + testSubject = createTestSubject(); + testSubject.setNumTunneledL7BytesReceived(numTunneledL7BytesReceived); + } + + @Test + public void testGetRoundTripTime() throws Exception { + GtpPerFlowMetrics testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getRoundTripTime(); + } + + @Test + public void testSetRoundTripTime() throws Exception { + GtpPerFlowMetrics testSubject; + Double roundTripTime = null; + + // default test + testSubject = createTestSubject(); + testSubject.setRoundTripTime(roundTripTime); + } + + @Test + public void testGetTcpFlagCountList() throws Exception { + GtpPerFlowMetrics testSubject; + AlarmAdditionalInformation result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getTcpFlagCountList(); + } + + @Test + public void testSetTcpFlagCountList() throws Exception { + GtpPerFlowMetrics testSubject; + AlarmAdditionalInformation tcpFlagCountList = null; + + // default test + testSubject = createTestSubject(); + testSubject.setTcpFlagCountList(tcpFlagCountList); + } + + @Test + public void testGetTcpFlagList() throws Exception { + GtpPerFlowMetrics testSubject; + List result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getTcpFlagList(); + } + + @Test + public void testSetTcpFlagList() throws Exception { + GtpPerFlowMetrics testSubject; + List tcpFlagList = null; + + // default test + testSubject = createTestSubject(); + testSubject.setTcpFlagList(tcpFlagList); + } + + @Test + public void testGetTimeToFirstByte() throws Exception { + GtpPerFlowMetrics testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getTimeToFirstByte(); + } + + @Test + public void testSetTimeToFirstByte() throws Exception { + GtpPerFlowMetrics testSubject; + Double timeToFirstByte = null; + + // default test + testSubject = createTestSubject(); + testSubject.setTimeToFirstByte(timeToFirstByte); + } + + @Test + public void testToString() throws Exception { + GtpPerFlowMetrics testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.toString(); + } + + @Test + public void testHashCode() throws Exception { + GtpPerFlowMetrics testSubject; + int result; + + // default test + testSubject = createTestSubject(); + result = testSubject.hashCode(); + } + + @Test + public void testEquals() throws Exception { + GtpPerFlowMetrics testSubject; + GtpPerFlowMetrics testSubject2; + Object other = null; + boolean result; + + // default test + testSubject = createTestSubject(); + testSubject2 = createTestSubject(); + result = testSubject.equals(other); + result = testSubject.equals(testSubject); + result = testSubject.equals(testSubject2); + assertNotNull(result); + } +} diff --git a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/HeartbeatFieldsTest.java b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/HeartbeatFieldsTest.java new file mode 100644 index 0000000..777fd91 --- /dev/null +++ b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/HeartbeatFieldsTest.java @@ -0,0 +1,132 @@ +/*- + * ============LICENSE_START======================================================= + * ONAP : DCAE + * ================================================================================ + * Copyright 2019 TechMahindra + * ================================================================================ + * 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========================================================= + */ + +package org.onap.dcaegen2.ves.domain.ves70; + +import static org.junit.Assert.assertNotNull; + +import org.junit.Test; +import org.onap.dcaegen2.ves.domain.ves70.AlarmAdditionalInformation; +import org.onap.dcaegen2.ves.domain.ves70.HeartbeatFields; +import org.onap.dcaegen2.ves.domain.ves70.HeartbeatFields.HeartbeatFieldsVersion; + + +public class HeartbeatFieldsTest { + + private HeartbeatFields createTestSubject() { + return new HeartbeatFields(); + } + + @Test + public void testGetAdditionalFields() throws Exception { + HeartbeatFields testSubject; + AlarmAdditionalInformation result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getAdditionalFields(); + } + + @Test + public void testSetAdditionalFields() throws Exception { + HeartbeatFields testSubject; + AlarmAdditionalInformation additionalFields = null; + + // default test + testSubject = createTestSubject(); + testSubject.setAdditionalFields(additionalFields); + } + + @Test + public void testGetHeartbeatFieldsVersion() throws Exception { + HeartbeatFields testSubject; + HeartbeatFieldsVersion result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getHeartbeatFieldsVersion(); + } + + @Test + public void testSetHeartbeatFieldsVersion() throws Exception { + HeartbeatFields testSubject; + HeartbeatFieldsVersion heartbeatFieldsVersion = HeartbeatFieldsVersion._3_0; + + // default test + testSubject = createTestSubject(); + testSubject.setHeartbeatFieldsVersion(heartbeatFieldsVersion); + } + + @Test + public void testGetHeartbeatInterval() throws Exception { + HeartbeatFields testSubject; + Integer result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getHeartbeatInterval(); + } + + @Test + public void testSetHeartbeatInterval() throws Exception { + HeartbeatFields testSubject; + Integer heartbeatInterval = 0; + + // default test + testSubject = createTestSubject(); + testSubject.setHeartbeatInterval(heartbeatInterval); + } + + @Test + public void testToString() throws Exception { + HeartbeatFields testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.toString(); + } + + @Test + public void testHashCode() throws Exception { + HeartbeatFields testSubject; + int result; + + // default test + testSubject = createTestSubject(); + result = testSubject.hashCode(); + } + + @Test + public void testEquals() throws Exception { + HeartbeatFields testSubject; + HeartbeatFields testSubject2; + Object other = null; + boolean result; + + // default test + testSubject = createTestSubject(); + testSubject2 = createTestSubject(); + result = testSubject.equals(other); + result = testSubject.equals(testSubject); + result = testSubject.equals(testSubject2); + assertNotNull(result); + } +} diff --git a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/HugePagesArrayTest.java b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/HugePagesArrayTest.java new file mode 100644 index 0000000..2381a1b --- /dev/null +++ b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/HugePagesArrayTest.java @@ -0,0 +1,211 @@ +/*- + * ============LICENSE_START======================================================= + * ONAP : DCAE + * ================================================================================ + * Copyright 2019 TechMahindra + * ================================================================================ + * 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========================================================= + */ + +package org.onap.dcaegen2.ves.domain.ves70; + +import static org.junit.Assert.assertNotNull; + +import org.junit.Test; +import org.onap.dcaegen2.ves.domain.ves70.HugePagesArray; + + +public class HugePagesArrayTest { + + private HugePagesArray createTestSubject() { + return new HugePagesArray(); + } + + @Test + public void testGetBytesFree() throws Exception { + HugePagesArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getBytesFree(); + } + + @Test + public void testSetBytesFree() throws Exception { + HugePagesArray testSubject; + Double bytesFree = null; + + // default test + testSubject = createTestSubject(); + testSubject.setBytesFree(bytesFree); + } + + @Test + public void testGetBytesUsed() throws Exception { + HugePagesArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getBytesUsed(); + } + + @Test + public void testSetBytesUsed() throws Exception { + HugePagesArray testSubject; + Double bytesUsed = null; + + // default test + testSubject = createTestSubject(); + testSubject.setBytesUsed(bytesUsed); + } + + @Test + public void testGetHugePagesIdentifier() throws Exception { + HugePagesArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getHugePagesIdentifier(); + } + + @Test + public void testSetHugePagesIdentifier() throws Exception { + HugePagesArray testSubject; + Double hugePagesIdentifier = null; + + // default test + testSubject = createTestSubject(); + testSubject.setHugePagesIdentifier(hugePagesIdentifier); + } + + @Test + public void testGetPercentFree() throws Exception { + HugePagesArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getPercentFree(); + } + + @Test + public void testSetPercentFree() throws Exception { + HugePagesArray testSubject; + Double percentFree = null; + + // default test + testSubject = createTestSubject(); + testSubject.setPercentFree(percentFree); + } + + @Test + public void testGetPercentUsed() throws Exception { + HugePagesArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getPercentUsed(); + } + + @Test + public void testSetPercentUsed() throws Exception { + HugePagesArray testSubject; + Double percentUsed = null; + + // default test + testSubject = createTestSubject(); + testSubject.setPercentUsed(percentUsed); + } + + @Test + public void testGetVmPageNumberFree() throws Exception { + HugePagesArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getVmPageNumberFree(); + } + + @Test + public void testSetVmPageNumberFree() throws Exception { + HugePagesArray testSubject; + Double vmPageNumberFree = null; + + // default test + testSubject = createTestSubject(); + testSubject.setVmPageNumberFree(vmPageNumberFree); + } + + @Test + public void testGetVmPageNumberUsed() throws Exception { + HugePagesArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getVmPageNumberUsed(); + } + + @Test + public void testSetVmPageNumberUsed() throws Exception { + HugePagesArray testSubject; + Double vmPageNumberUsed = null; + + // default test + testSubject = createTestSubject(); + testSubject.setVmPageNumberUsed(vmPageNumberUsed); + } + + @Test + public void testToString() throws Exception { + HugePagesArray testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.toString(); + } + + @Test + public void testHashCode() throws Exception { + HugePagesArray testSubject; + int result; + + // default test + testSubject = createTestSubject(); + result = testSubject.hashCode(); + } + + @Test + public void testEquals() throws Exception { + + HugePagesArray testSubject; + HugePagesArray testSubject2; + Object other = null; + boolean result; + + // default test + testSubject = createTestSubject(); + testSubject2 = createTestSubject(); + result = testSubject.equals(other); + result = testSubject.equals(testSubject); + result = testSubject.equals(testSubject2); + assertNotNull(result); + } +} diff --git a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/InternalHeaderFieldsTest.java b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/InternalHeaderFieldsTest.java new file mode 100644 index 0000000..041d068 --- /dev/null +++ b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/InternalHeaderFieldsTest.java @@ -0,0 +1,93 @@ +/*- + * ============LICENSE_START======================================================= + * ONAP : DCAE + * ================================================================================ + * Copyright 2019 TechMahindra + * ================================================================================ + * 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========================================================= + */ + +package org.onap.dcaegen2.ves.domain.ves70; + +import static org.junit.Assert.assertNotNull; + +import java.util.Map; + +import org.junit.Test; +import org.onap.dcaegen2.ves.domain.ves70.InternalHeaderFields; + + +public class InternalHeaderFieldsTest { + + private InternalHeaderFields createTestSubject() { + return new InternalHeaderFields(); + } + + @Test + public void testToString() throws Exception { + InternalHeaderFields testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.toString(); + } + + @Test + public void testGetAdditionalProperties() throws Exception { + InternalHeaderFields testSubject; + Map result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getAdditionalProperties(); + } + + @Test + public void testSetAdditionalProperty() throws Exception { + InternalHeaderFields testSubject; + String name = ""; + Object value = null; + + // default test + testSubject = createTestSubject(); + testSubject.setAdditionalProperty(name, value); + } + + @Test + public void testHashCode() throws Exception { + InternalHeaderFields testSubject; + int result; + + // default test + testSubject = createTestSubject(); + result = testSubject.hashCode(); + } + + @Test + public void testEquals() throws Exception { + InternalHeaderFields testSubject; + InternalHeaderFields testSubject2; + Object other = null; + boolean result; + + // default test + testSubject = createTestSubject(); + testSubject2 = createTestSubject(); + result = testSubject.equals(other); + result = testSubject.equals(testSubject); + result = testSubject.equals(testSubject2); + assertNotNull(result); + } +} diff --git a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/IpmiBaseboardTemperatureArrayTest.java b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/IpmiBaseboardTemperatureArrayTest.java new file mode 100644 index 0000000..5ecd58a --- /dev/null +++ b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/IpmiBaseboardTemperatureArrayTest.java @@ -0,0 +1,110 @@ +/*- + * ============LICENSE_START======================================================= + * ONAP : DCAE + * ================================================================================ + * Copyright 2019 TechMahindra + * ================================================================================ + * 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========================================================= + */ + +package org.onap.dcaegen2.ves.domain.ves70; + +import static org.junit.Assert.assertNotNull; + +import org.junit.Test; +import org.onap.dcaegen2.ves.domain.ves70.IpmiBaseboardTemperatureArray; + + +public class IpmiBaseboardTemperatureArrayTest { + + private IpmiBaseboardTemperatureArray createTestSubject() { + return new IpmiBaseboardTemperatureArray(); + } + + @Test + public void testGetBaseboardTemperatureIdentifier() throws Exception { + IpmiBaseboardTemperatureArray testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getBaseboardTemperatureIdentifier(); + } + + @Test + public void testSetBaseboardTemperatureIdentifier() throws Exception { + IpmiBaseboardTemperatureArray testSubject; + String baseboardTemperatureIdentifier = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setBaseboardTemperatureIdentifier(baseboardTemperatureIdentifier); + } + + @Test + public void testGetBaseboardTemperature() throws Exception { + IpmiBaseboardTemperatureArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getBaseboardTemperature(); + } + + @Test + public void testSetBaseboardTemperature() throws Exception { + IpmiBaseboardTemperatureArray testSubject; + Double baseboardTemperature = null; + + // default test + testSubject = createTestSubject(); + testSubject.setBaseboardTemperature(baseboardTemperature); + } + + @Test + public void testToString() throws Exception { + IpmiBaseboardTemperatureArray testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.toString(); + } + + @Test + public void testHashCode() throws Exception { + IpmiBaseboardTemperatureArray testSubject; + int result; + + // default test + testSubject = createTestSubject(); + result = testSubject.hashCode(); + } + + @Test + public void testEquals() throws Exception { + IpmiBaseboardTemperatureArray testSubject; + IpmiBaseboardTemperatureArray testSubject2; + Object other = null; + boolean result; + + // default test + testSubject = createTestSubject(); + testSubject2 = createTestSubject(); + result = testSubject.equals(other); + result = testSubject.equals(testSubject); + result = testSubject.equals(testSubject2); + assertNotNull(result); + } +} diff --git a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/IpmiBaseboardVoltageRegulatorArrayTest.java b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/IpmiBaseboardVoltageRegulatorArrayTest.java new file mode 100644 index 0000000..6186c07 --- /dev/null +++ b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/IpmiBaseboardVoltageRegulatorArrayTest.java @@ -0,0 +1,110 @@ +/*- + * ============LICENSE_START======================================================= + * ONAP : DCAE + * ================================================================================ + * Copyright 2019 TechMahindra + * ================================================================================ + * 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========================================================= + */ + +package org.onap.dcaegen2.ves.domain.ves70; + +import static org.junit.Assert.assertNotNull; + +import org.junit.Test; +import org.onap.dcaegen2.ves.domain.ves70.IpmiBaseboardVoltageRegulatorArray; + + +public class IpmiBaseboardVoltageRegulatorArrayTest { + + private IpmiBaseboardVoltageRegulatorArray createTestSubject() { + return new IpmiBaseboardVoltageRegulatorArray(); + } + + @Test + public void testGetBaseboardVoltageRegulatorIdentifier() throws Exception { + IpmiBaseboardVoltageRegulatorArray testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getBaseboardVoltageRegulatorIdentifier(); + } + + @Test + public void testSetBaseboardVoltageRegulatorIdentifier() throws Exception { + IpmiBaseboardVoltageRegulatorArray testSubject; + String baseboardVoltageRegulatorIdentifier = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setBaseboardVoltageRegulatorIdentifier(baseboardVoltageRegulatorIdentifier); + } + + @Test + public void testGetVoltageRegulatorTemperature() throws Exception { + IpmiBaseboardVoltageRegulatorArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getVoltageRegulatorTemperature(); + } + + @Test + public void testSetVoltageRegulatorTemperature() throws Exception { + IpmiBaseboardVoltageRegulatorArray testSubject; + Double voltageRegulatorTemperature = null; + + // default test + testSubject = createTestSubject(); + testSubject.setVoltageRegulatorTemperature(voltageRegulatorTemperature); + } + + @Test + public void testToString() throws Exception { + IpmiBaseboardVoltageRegulatorArray testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.toString(); + } + + @Test + public void testHashCode() throws Exception { + IpmiBaseboardVoltageRegulatorArray testSubject; + int result; + + // default test + testSubject = createTestSubject(); + result = testSubject.hashCode(); + } + + @Test + public void testEquals() throws Exception { + IpmiBaseboardVoltageRegulatorArray testSubject; + IpmiBaseboardVoltageRegulatorArray testSubject2; + Object other = null; + boolean result; + + // default test + testSubject = createTestSubject(); + testSubject2 = createTestSubject(); + result = testSubject.equals(other); + result = testSubject.equals(testSubject); + result = testSubject.equals(testSubject2); + assertNotNull(result); + } +} diff --git a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/IpmiBatteryArrayTest.java b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/IpmiBatteryArrayTest.java new file mode 100644 index 0000000..2e8197a --- /dev/null +++ b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/IpmiBatteryArrayTest.java @@ -0,0 +1,130 @@ +/*- + * ============LICENSE_START======================================================= + * ONAP : DCAE + * ================================================================================ + * Copyright 2019 TechMahindra + * ================================================================================ + * 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========================================================= + */ + +package org.onap.dcaegen2.ves.domain.ves70; + +import static org.junit.Assert.assertNotNull; + +import org.junit.Test; +import org.onap.dcaegen2.ves.domain.ves70.IpmiBatteryArray; + + +public class IpmiBatteryArrayTest { + + private IpmiBatteryArray createTestSubject() { + return new IpmiBatteryArray(); + } + + @Test + public void testGetBatteryIdentifier() throws Exception { + IpmiBatteryArray testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getBatteryIdentifier(); + } + + @Test + public void testSetBatteryIdentifier() throws Exception { + IpmiBatteryArray testSubject; + String batteryIdentifier = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setBatteryIdentifier(batteryIdentifier); + } + + @Test + public void testGetBatteryType() throws Exception { + IpmiBatteryArray testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getBatteryType(); + } + + @Test + public void testSetBatteryType() throws Exception { + IpmiBatteryArray testSubject; + String batteryType = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setBatteryType(batteryType); + } + + @Test + public void testGetBatteryVoltageLevel() throws Exception { + IpmiBatteryArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getBatteryVoltageLevel(); + } + + @Test + public void testSetBatteryVoltageLevel() throws Exception { + IpmiBatteryArray testSubject; + Double batteryVoltageLevel = null; + + // default test + testSubject = createTestSubject(); + testSubject.setBatteryVoltageLevel(batteryVoltageLevel); + } + + @Test + public void testToString() throws Exception { + IpmiBatteryArray testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.toString(); + } + + @Test + public void testHashCode() throws Exception { + IpmiBatteryArray testSubject; + int result; + + // default test + testSubject = createTestSubject(); + result = testSubject.hashCode(); + } + + @Test + public void testEquals() throws Exception { + IpmiBatteryArray testSubject; + IpmiBatteryArray testSubject2; + Object other = null; + boolean result; + + // default test + testSubject = createTestSubject(); + testSubject2 = createTestSubject(); + result = testSubject.equals(other); + result = testSubject.equals(testSubject); + result = testSubject.equals(testSubject2); + assertNotNull(result); + } +} diff --git a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/IpmiFanArrayTest.java b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/IpmiFanArrayTest.java new file mode 100644 index 0000000..a5851e8 --- /dev/null +++ b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/IpmiFanArrayTest.java @@ -0,0 +1,110 @@ +/*- + * ============LICENSE_START======================================================= + * ONAP : DCAE + * ================================================================================ + * Copyright 2019 TechMahindra + * ================================================================================ + * 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========================================================= + */ + +package org.onap.dcaegen2.ves.domain.ves70; + +import static org.junit.Assert.assertNotNull; + +import org.junit.Test; +import org.onap.dcaegen2.ves.domain.ves70.IpmiFanArray; + + +public class IpmiFanArrayTest { + + private IpmiFanArray createTestSubject() { + return new IpmiFanArray(); + } + + @Test + public void testGetFanIdentifier() throws Exception { + IpmiFanArray testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getFanIdentifier(); + } + + @Test + public void testSetFanIdentifier() throws Exception { + IpmiFanArray testSubject; + String fanIdentifier = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setFanIdentifier(fanIdentifier); + } + + @Test + public void testGetFanSpeed() throws Exception { + IpmiFanArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getFanSpeed(); + } + + @Test + public void testSetFanSpeed() throws Exception { + IpmiFanArray testSubject; + Double fanSpeed = null; + + // default test + testSubject = createTestSubject(); + testSubject.setFanSpeed(fanSpeed); + } + + @Test + public void testToString() throws Exception { + IpmiFanArray testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.toString(); + } + + @Test + public void testHashCode() throws Exception { + IpmiFanArray testSubject; + int result; + + // default test + testSubject = createTestSubject(); + result = testSubject.hashCode(); + } + + @Test + public void testEquals() throws Exception { + IpmiFanArray testSubject; + IpmiFanArray testSubject2; + Object other = null; + boolean result; + + // default test + testSubject = createTestSubject(); + testSubject2 = createTestSubject(); + result = testSubject.equals(other); + result = testSubject.equals(testSubject); + result = testSubject.equals(testSubject2); + assertNotNull(result); + } +} diff --git a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/IpmiGlobalAggregateTemperatureMarginArrayTest.java b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/IpmiGlobalAggregateTemperatureMarginArrayTest.java new file mode 100644 index 0000000..dbceee5 --- /dev/null +++ b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/IpmiGlobalAggregateTemperatureMarginArrayTest.java @@ -0,0 +1,111 @@ +/*- + * ============LICENSE_START======================================================= + * ONAP : DCAE + * ================================================================================ + * Copyright 2019 TechMahindra + * ================================================================================ + * 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========================================================= + */ + +package org.onap.dcaegen2.ves.domain.ves70; + +import static org.junit.Assert.assertNotNull; + +import org.junit.Test; +import org.onap.dcaegen2.ves.domain.ves70.IpmiGlobalAggregateTemperatureMarginArray; + + +public class IpmiGlobalAggregateTemperatureMarginArrayTest { + + private IpmiGlobalAggregateTemperatureMarginArray createTestSubject() { + return new IpmiGlobalAggregateTemperatureMarginArray(); + } + + @Test + public void testGetIpmiGlobalAggregateTemperatureMarginIdentifier() throws Exception { + IpmiGlobalAggregateTemperatureMarginArray testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getIpmiGlobalAggregateTemperatureMarginIdentifier(); + } + + @Test + public void testSetIpmiGlobalAggregateTemperatureMarginIdentifier() throws Exception { + IpmiGlobalAggregateTemperatureMarginArray testSubject; + String ipmiGlobalAggregateTemperatureMarginIdentifier = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setIpmiGlobalAggregateTemperatureMarginIdentifier( + ipmiGlobalAggregateTemperatureMarginIdentifier); + } + + @Test + public void testGetGlobalAggregateTemperatureMargin() throws Exception { + IpmiGlobalAggregateTemperatureMarginArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getGlobalAggregateTemperatureMargin(); + } + + @Test + public void testSetGlobalAggregateTemperatureMargin() throws Exception { + IpmiGlobalAggregateTemperatureMarginArray testSubject; + Double globalAggregateTemperatureMargin = null; + + // default test + testSubject = createTestSubject(); + testSubject.setGlobalAggregateTemperatureMargin(globalAggregateTemperatureMargin); + } + + @Test + public void testToString() throws Exception { + IpmiGlobalAggregateTemperatureMarginArray testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.toString(); + } + + @Test + public void testHashCode() throws Exception { + IpmiGlobalAggregateTemperatureMarginArray testSubject; + int result; + + // default test + testSubject = createTestSubject(); + result = testSubject.hashCode(); + } + + @Test + public void testEquals() throws Exception { + IpmiGlobalAggregateTemperatureMarginArray testSubject; + IpmiGlobalAggregateTemperatureMarginArray testSubject2; + Object other = null; + boolean result; + + // default test + testSubject = createTestSubject(); + testSubject2 = createTestSubject(); + result = testSubject.equals(other); + result = testSubject.equals(testSubject); + result = testSubject.equals(testSubject2); + assertNotNull(result); + } +} diff --git a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/IpmiHsbpArrayTest.java b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/IpmiHsbpArrayTest.java new file mode 100644 index 0000000..3729d17 --- /dev/null +++ b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/IpmiHsbpArrayTest.java @@ -0,0 +1,110 @@ +/*- + * ============LICENSE_START======================================================= + * ONAP : DCAE + * ================================================================================ + * Copyright 2019 TechMahindra + * ================================================================================ + * 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========================================================= + */ + +package org.onap.dcaegen2.ves.domain.ves70; + +import static org.junit.Assert.assertNotNull; + +import org.junit.Test; +import org.onap.dcaegen2.ves.domain.ves70.IpmiHsbpArray; + + +public class IpmiHsbpArrayTest { + + private IpmiHsbpArray createTestSubject() { + return new IpmiHsbpArray(); + } + + @Test + public void testGetHsbpIdentifier() throws Exception { + IpmiHsbpArray testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getHsbpIdentifier(); + } + + @Test + public void testSetHsbpIdentifier() throws Exception { + IpmiHsbpArray testSubject; + String hsbpIdentifier = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setHsbpIdentifier(hsbpIdentifier); + } + + @Test + public void testGetHsbpTemperature() throws Exception { + IpmiHsbpArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getHsbpTemperature(); + } + + @Test + public void testSetHsbpTemperature() throws Exception { + IpmiHsbpArray testSubject; + Double hsbpTemperature = null; + + // default test + testSubject = createTestSubject(); + testSubject.setHsbpTemperature(hsbpTemperature); + } + + @Test + public void testToString() throws Exception { + IpmiHsbpArray testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.toString(); + } + + @Test + public void testHashCode() throws Exception { + IpmiHsbpArray testSubject; + int result; + + // default test + testSubject = createTestSubject(); + result = testSubject.hashCode(); + } + + @Test + public void testEquals() throws Exception { + IpmiHsbpArray testSubject; + IpmiHsbpArray testSubject2; + Object other = null; + boolean result; + + // default test + testSubject = createTestSubject(); + testSubject2 = createTestSubject(); + result = testSubject.equals(other); + result = testSubject.equals(testSubject); + result = testSubject.equals(testSubject2); + assertNotNull(result); + } +} diff --git a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/IpmiNicArrayTest.java b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/IpmiNicArrayTest.java new file mode 100644 index 0000000..ced4972 --- /dev/null +++ b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/IpmiNicArrayTest.java @@ -0,0 +1,110 @@ +/*- + * ============LICENSE_START======================================================= + * ONAP : DCAE + * ================================================================================ + * Copyright 2019 TechMahindra + * ================================================================================ + * 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========================================================= + */ + +package org.onap.dcaegen2.ves.domain.ves70; + +import static org.junit.Assert.assertNotNull; + +import org.junit.Test; +import org.onap.dcaegen2.ves.domain.ves70.IpmiNicArray; + + +public class IpmiNicArrayTest { + + private IpmiNicArray createTestSubject() { + return new IpmiNicArray(); + } + + @Test + public void testGetNicIdentifier() throws Exception { + IpmiNicArray testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getNicIdentifier(); + } + + @Test + public void testSetNicIdentifier() throws Exception { + IpmiNicArray testSubject; + String nicIdentifier = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setNicIdentifier(nicIdentifier); + } + + @Test + public void testGetNicTemperature() throws Exception { + IpmiNicArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getNicTemperature(); + } + + @Test + public void testSetNicTemperature() throws Exception { + IpmiNicArray testSubject; + Double nicTemperature = null; + + // default test + testSubject = createTestSubject(); + testSubject.setNicTemperature(nicTemperature); + } + + @Test + public void testToString() throws Exception { + IpmiNicArray testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.toString(); + } + + @Test + public void testHashCode() throws Exception { + IpmiNicArray testSubject; + int result; + + // default test + testSubject = createTestSubject(); + result = testSubject.hashCode(); + } + + @Test + public void testEquals() throws Exception { + IpmiNicArray testSubject; + IpmiNicArray testSubject2; + Object other = null; + boolean result; + + // default test + testSubject = createTestSubject(); + testSubject2 = createTestSubject(); + result = testSubject.equals(other); + result = testSubject.equals(testSubject); + result = testSubject.equals(testSubject2); + assertNotNull(result); + } +} diff --git a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/IpmiPowerSupplyArrayTest.java b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/IpmiPowerSupplyArrayTest.java new file mode 100644 index 0000000..b86a9a5 --- /dev/null +++ b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/IpmiPowerSupplyArrayTest.java @@ -0,0 +1,150 @@ +/*- + * ============LICENSE_START======================================================= + * ONAP : DCAE + * ================================================================================ + * Copyright 2019 TechMahindra + * ================================================================================ + * 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========================================================= + */ + +package org.onap.dcaegen2.ves.domain.ves70; + +import static org.junit.Assert.assertNotNull; + +import org.junit.Test; +import org.onap.dcaegen2.ves.domain.ves70.IpmiPowerSupplyArray; + + +public class IpmiPowerSupplyArrayTest { + + private IpmiPowerSupplyArray createTestSubject() { + return new IpmiPowerSupplyArray(); + } + + @Test + public void testGetPowerSupplyIdentifier() throws Exception { + IpmiPowerSupplyArray testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getPowerSupplyIdentifier(); + } + + @Test + public void testSetPowerSupplyIdentifier() throws Exception { + IpmiPowerSupplyArray testSubject; + String powerSupplyIdentifier = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setPowerSupplyIdentifier(powerSupplyIdentifier); + } + + @Test + public void testGetPowerSupplyInputPower() throws Exception { + IpmiPowerSupplyArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getPowerSupplyInputPower(); + } + + @Test + public void testSetPowerSupplyInputPower() throws Exception { + IpmiPowerSupplyArray testSubject; + Double powerSupplyInputPower = null; + + // default test + testSubject = createTestSubject(); + testSubject.setPowerSupplyInputPower(powerSupplyInputPower); + } + + @Test + public void testGetPowerSupplyCurrentOutputPercent() throws Exception { + IpmiPowerSupplyArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getPowerSupplyCurrentOutputPercent(); + } + + @Test + public void testSetPowerSupplyCurrentOutputPercent() throws Exception { + IpmiPowerSupplyArray testSubject; + Double powerSupplyCurrentOutputPercent = null; + + // default test + testSubject = createTestSubject(); + testSubject.setPowerSupplyCurrentOutputPercent(powerSupplyCurrentOutputPercent); + } + + @Test + public void testGetPowerSupplyTemperature() throws Exception { + IpmiPowerSupplyArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getPowerSupplyTemperature(); + } + + @Test + public void testSetPowerSupplyTemperature() throws Exception { + IpmiPowerSupplyArray testSubject; + Double powerSupplyTemperature = null; + + // default test + testSubject = createTestSubject(); + testSubject.setPowerSupplyTemperature(powerSupplyTemperature); + } + + @Test + public void testToString() throws Exception { + IpmiPowerSupplyArray testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.toString(); + } + + @Test + public void testHashCode() throws Exception { + IpmiPowerSupplyArray testSubject; + int result; + + // default test + testSubject = createTestSubject(); + result = testSubject.hashCode(); + } + + @Test + public void testEquals() throws Exception { + IpmiPowerSupplyArray testSubject; + IpmiPowerSupplyArray testSubject2; + Object other = null; + boolean result; + + // default test + testSubject = createTestSubject(); + testSubject2 = createTestSubject(); + result = testSubject.equals(other); + result = testSubject.equals(testSubject); + result = testSubject.equals(testSubject2); + assertNotNull(result); + } +} diff --git a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/IpmiProcessorArrayTest.java b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/IpmiProcessorArrayTest.java new file mode 100644 index 0000000..5c95151 --- /dev/null +++ b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/IpmiProcessorArrayTest.java @@ -0,0 +1,155 @@ +/*- + * ============LICENSE_START======================================================= + * ONAP : DCAE + * ================================================================================ + * Copyright 2019 TechMahindra + * ================================================================================ + * 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========================================================= + */ + +package org.onap.dcaegen2.ves.domain.ves70; + +import static org.junit.Assert.assertNotNull; + +import java.util.List; + +import org.junit.Test; +import org.onap.dcaegen2.ves.domain.ves70.IpmiProcessorArray; +import org.onap.dcaegen2.ves.domain.ves70.ProcessorDimmAggregateThermalMarginArray; + + +public class IpmiProcessorArrayTest { + + private IpmiProcessorArray createTestSubject() { + return new IpmiProcessorArray(); + } + + @Test + public void testGetProcessorIdentifier() throws Exception { + IpmiProcessorArray testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getProcessorIdentifier(); + } + + @Test + public void testSetProcessorIdentifier() throws Exception { + IpmiProcessorArray testSubject; + String processorIdentifier = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setProcessorIdentifier(processorIdentifier); + } + + @Test + public void testGetProcessorThermalControlPercent() throws Exception { + IpmiProcessorArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getProcessorThermalControlPercent(); + } + + @Test + public void testSetProcessorThermalControlPercent() throws Exception { + IpmiProcessorArray testSubject; + Double processorThermalControlPercent = null; + + // default test + testSubject = createTestSubject(); + testSubject.setProcessorThermalControlPercent(processorThermalControlPercent); + } + + @Test + public void testGetProcessorDtsThermalMargin() throws Exception { + IpmiProcessorArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getProcessorDtsThermalMargin(); + } + + @Test + public void testSetProcessorDtsThermalMargin() throws Exception { + IpmiProcessorArray testSubject; + Double processorDtsThermalMargin = null; + + // default test + testSubject = createTestSubject(); + testSubject.setProcessorDtsThermalMargin(processorDtsThermalMargin); + } + + @Test + public void testGetProcessorDimmAggregateThermalMarginArray() throws Exception { + IpmiProcessorArray testSubject; + List result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getProcessorDimmAggregateThermalMarginArray(); + } + + @Test + public void testSetProcessorDimmAggregateThermalMarginArray() throws Exception { + IpmiProcessorArray testSubject; + List processorDimmAggregateThermalMarginArray = + null; + + // default test + testSubject = createTestSubject(); + testSubject.setProcessorDimmAggregateThermalMarginArray( + processorDimmAggregateThermalMarginArray); + } + + @Test + public void testToString() throws Exception { + IpmiProcessorArray testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.toString(); + } + + @Test + public void testHashCode() throws Exception { + IpmiProcessorArray testSubject; + int result; + + // default test + testSubject = createTestSubject(); + result = testSubject.hashCode(); + } + + @Test + public void testEquals() throws Exception { + IpmiProcessorArray testSubject; + IpmiProcessorArray testSubject2; + Object other = null; + boolean result; + + // default test + testSubject = createTestSubject(); + testSubject2 = createTestSubject(); + result = testSubject.equals(other); + result = testSubject.equals(testSubject); + result = testSubject.equals(testSubject2); + assertNotNull(result); + } +} diff --git a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/IpmiTest.java b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/IpmiTest.java new file mode 100644 index 0000000..a898238 --- /dev/null +++ b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/IpmiTest.java @@ -0,0 +1,343 @@ +/*- + * ============LICENSE_START======================================================= + * ONAP : DCAE + * ================================================================================ + * Copyright 2019 TechMahindra + * ================================================================================ + * 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========================================================= + */ + +package org.onap.dcaegen2.ves.domain.ves70; + +import static org.junit.Assert.assertNotNull; + +import java.util.List; + +import org.junit.Test; +import org.onap.dcaegen2.ves.domain.ves70.Ipmi; +import org.onap.dcaegen2.ves.domain.ves70.IpmiBaseboardTemperatureArray; +import org.onap.dcaegen2.ves.domain.ves70.IpmiBaseboardVoltageRegulatorArray; +import org.onap.dcaegen2.ves.domain.ves70.IpmiBatteryArray; +import org.onap.dcaegen2.ves.domain.ves70.IpmiFanArray; +import org.onap.dcaegen2.ves.domain.ves70.IpmiGlobalAggregateTemperatureMarginArray; +import org.onap.dcaegen2.ves.domain.ves70.IpmiHsbpArray; +import org.onap.dcaegen2.ves.domain.ves70.IpmiNicArray; +import org.onap.dcaegen2.ves.domain.ves70.IpmiPowerSupplyArray; +import org.onap.dcaegen2.ves.domain.ves70.IpmiProcessorArray; + + +public class IpmiTest { + + private Ipmi createTestSubject() { + return new Ipmi(); + } + + @Test + public void testGetExitAirTemperature() throws Exception { + Ipmi testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getExitAirTemperature(); + } + + @Test + public void testSetExitAirTemperature() throws Exception { + Ipmi testSubject; + Double exitAirTemperature = null; + + // default test + testSubject = createTestSubject(); + testSubject.setExitAirTemperature(exitAirTemperature); + } + + @Test + public void testGetFrontPanelTemperature() throws Exception { + Ipmi testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getFrontPanelTemperature(); + } + + @Test + public void testSetFrontPanelTemperature() throws Exception { + Ipmi testSubject; + Double frontPanelTemperature = null; + + // default test + testSubject = createTestSubject(); + testSubject.setFrontPanelTemperature(frontPanelTemperature); + } + + @Test + public void testGetIoModuleTemperature() throws Exception { + Ipmi testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getIoModuleTemperature(); + } + + @Test + public void testSetIoModuleTemperature() throws Exception { + Ipmi testSubject; + Double ioModuleTemperature = null; + + // default test + testSubject = createTestSubject(); + testSubject.setIoModuleTemperature(ioModuleTemperature); + } + + @Test + public void testGetIpmiBaseboardTemperatureArray() throws Exception { + Ipmi testSubject; + List result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getIpmiBaseboardTemperatureArray(); + } + + @Test + public void testSetIpmiBaseboardTemperatureArray() throws Exception { + Ipmi testSubject; + List ipmiBaseboardTemperatureArray = null; + + // default test + testSubject = createTestSubject(); + testSubject.setIpmiBaseboardTemperatureArray(ipmiBaseboardTemperatureArray); + } + + @Test + public void testGetIpmiBaseboardVoltageRegulatorArray() throws Exception { + Ipmi testSubject; + List result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getIpmiBaseboardVoltageRegulatorArray(); + } + + @Test + public void testSetIpmiBaseboardVoltageRegulatorArray() throws Exception { + Ipmi testSubject; + List ipmiBaseboardVoltageRegulatorArray = null; + + // default test + testSubject = createTestSubject(); + testSubject.setIpmiBaseboardVoltageRegulatorArray(ipmiBaseboardVoltageRegulatorArray); + } + + @Test + public void testGetIpmiBatteryArray() throws Exception { + Ipmi testSubject; + List result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getIpmiBatteryArray(); + } + + @Test + public void testSetIpmiBatteryArray() throws Exception { + Ipmi testSubject; + List ipmiBatteryArray = null; + + // default test + testSubject = createTestSubject(); + testSubject.setIpmiBatteryArray(ipmiBatteryArray); + } + + @Test + public void testGetIpmiFanArray() throws Exception { + Ipmi testSubject; + List result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getIpmiFanArray(); + } + + @Test + public void testSetIpmiFanArray() throws Exception { + Ipmi testSubject; + List ipmiFanArray = null; + + // default test + testSubject = createTestSubject(); + testSubject.setIpmiFanArray(ipmiFanArray); + } + + @Test + public void testGetIpmiHsbpArray() throws Exception { + Ipmi testSubject; + List result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getIpmiHsbpArray(); + } + + @Test + public void testSetIpmiHsbpArray() throws Exception { + Ipmi testSubject; + List ipmiHsbpArray = null; + + // default test + testSubject = createTestSubject(); + testSubject.setIpmiHsbpArray(ipmiHsbpArray); + } + + @Test + public void testGetIpmiGlobalAggregateTemperatureMarginArray() throws Exception { + Ipmi testSubject; + List result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getIpmiGlobalAggregateTemperatureMarginArray(); + } + + @Test + public void testSetIpmiGlobalAggregateTemperatureMarginArray() throws Exception { + Ipmi testSubject; + List ipmiGlobalAggregateTemperatureMarginArray = + null; + + // default test + testSubject = createTestSubject(); + testSubject.setIpmiGlobalAggregateTemperatureMarginArray( + ipmiGlobalAggregateTemperatureMarginArray); + } + + @Test + public void testGetIpmiNicArray() throws Exception { + Ipmi testSubject; + List result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getIpmiNicArray(); + } + + @Test + public void testSetIpmiNicArray() throws Exception { + Ipmi testSubject; + List ipmiNicArray = null; + + // default test + testSubject = createTestSubject(); + testSubject.setIpmiNicArray(ipmiNicArray); + } + + @Test + public void testGetIpmiPowerSupplyArray() throws Exception { + Ipmi testSubject; + List result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getIpmiPowerSupplyArray(); + } + + @Test + public void testSetIpmiPowerSupplyArray() throws Exception { + Ipmi testSubject; + List ipmiPowerSupplyArray = null; + + // default test + testSubject = createTestSubject(); + testSubject.setIpmiPowerSupplyArray(ipmiPowerSupplyArray); + } + + @Test + public void testGetIpmiProcessorArray() throws Exception { + Ipmi testSubject; + List result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getIpmiProcessorArray(); + } + + @Test + public void testSetIpmiProcessorArray() throws Exception { + Ipmi testSubject; + List ipmiProcessorArray = null; + + // default test + testSubject = createTestSubject(); + testSubject.setIpmiProcessorArray(ipmiProcessorArray); + } + + @Test + public void testGetSystemAirflow() throws Exception { + Ipmi testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getSystemAirflow(); + } + + @Test + public void testSetSystemAirflow() throws Exception { + Ipmi testSubject; + Double systemAirflow = null; + + // default test + testSubject = createTestSubject(); + testSubject.setSystemAirflow(systemAirflow); + } + + @Test + public void testToString() throws Exception { + Ipmi testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.toString(); + } + + @Test + public void testHashCode() throws Exception { + Ipmi testSubject; + int result; + + // default test + testSubject = createTestSubject(); + result = testSubject.hashCode(); + } + + @Test + public void testEquals() throws Exception { + Ipmi testSubject; + Ipmi testSubject2; + Object other = null; + boolean result; + + // default test + testSubject = createTestSubject(); + testSubject2 = createTestSubject(); + result = testSubject.equals(other); + result = testSubject.equals(testSubject); + result = testSubject.equals(testSubject2); + assertNotNull(result); + } +} diff --git a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/LatencyDistributionTest.java b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/LatencyDistributionTest.java new file mode 100644 index 0000000..e3c11e8 --- /dev/null +++ b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/LatencyDistributionTest.java @@ -0,0 +1,130 @@ +/*- + * ============LICENSE_START======================================================= + * ONAP : DCAE + * ================================================================================ + * Copyright 2019 TechMahindra + * ================================================================================ + * 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========================================================= + */ + +package org.onap.dcaegen2.ves.domain.ves70; + +import static org.junit.Assert.assertNotNull; + +import org.junit.Test; +import org.onap.dcaegen2.ves.domain.ves70.LatencyDistribution; + + +public class LatencyDistributionTest { + + private LatencyDistribution createTestSubject() { + return new LatencyDistribution(); + } + + @Test + public void testGetCountsInTheBucket() throws Exception { + LatencyDistribution testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getCountsInTheBucket(); + } + + @Test + public void testSetCountsInTheBucket() throws Exception { + LatencyDistribution testSubject; + Double countsInTheBucket = null; + + // default test + testSubject = createTestSubject(); + testSubject.setCountsInTheBucket(countsInTheBucket); + } + + @Test + public void testGetHighEndOfLatencyBucket() throws Exception { + LatencyDistribution testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getHighEndOfLatencyBucket(); + } + + @Test + public void testSetHighEndOfLatencyBucket() throws Exception { + LatencyDistribution testSubject; + Double highEndOfLatencyBucket = null; + + // default test + testSubject = createTestSubject(); + testSubject.setHighEndOfLatencyBucket(highEndOfLatencyBucket); + } + + @Test + public void testGetLowEndOfLatencyBucket() throws Exception { + LatencyDistribution testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getLowEndOfLatencyBucket(); + } + + @Test + public void testSetLowEndOfLatencyBucket() throws Exception { + LatencyDistribution testSubject; + Double lowEndOfLatencyBucket = null; + + // default test + testSubject = createTestSubject(); + testSubject.setLowEndOfLatencyBucket(lowEndOfLatencyBucket); + } + + @Test + public void testToString() throws Exception { + LatencyDistribution testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.toString(); + } + + @Test + public void testHashCode() throws Exception { + LatencyDistribution testSubject; + int result; + + // default test + testSubject = createTestSubject(); + result = testSubject.hashCode(); + } + + @Test + public void testEquals() throws Exception { + LatencyDistribution testSubject; + LatencyDistribution testSubject2; + Object other = null; + boolean result; + + // default test + testSubject = createTestSubject(); + testSubject2 = createTestSubject(); + result = testSubject.equals(other); + result = testSubject.equals(testSubject); + result = testSubject.equals(testSubject2); + assertNotNull(result); + } +} diff --git a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/LoadArrayTest.java b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/LoadArrayTest.java new file mode 100644 index 0000000..b951658 --- /dev/null +++ b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/LoadArrayTest.java @@ -0,0 +1,130 @@ +/*- + * ============LICENSE_START======================================================= + * ONAP : DCAE + * ================================================================================ + * Copyright 2019 TechMahindra + * ================================================================================ + * 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========================================================= + */ + +package org.onap.dcaegen2.ves.domain.ves70; + +import static org.junit.Assert.assertNotNull; + +import org.junit.Test; +import org.onap.dcaegen2.ves.domain.ves70.LoadArray; + + +public class LoadArrayTest { + + private LoadArray createTestSubject() { + return new LoadArray(); + } + + @Test + public void testGetLongTerm() throws Exception { + LoadArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getLongTerm(); + } + + @Test + public void testSetLongTerm() throws Exception { + LoadArray testSubject; + Double longTerm = null; + + // default test + testSubject = createTestSubject(); + testSubject.setLongTerm(longTerm); + } + + @Test + public void testGetMidTerm() throws Exception { + LoadArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getMidTerm(); + } + + @Test + public void testSetMidTerm() throws Exception { + LoadArray testSubject; + Double midTerm = null; + + // default test + testSubject = createTestSubject(); + testSubject.setMidTerm(midTerm); + } + + @Test + public void testGetShortTerm() throws Exception { + LoadArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getShortTerm(); + } + + @Test + public void testSetShortTerm() throws Exception { + LoadArray testSubject; + Double shortTerm = null; + + // default test + testSubject = createTestSubject(); + testSubject.setShortTerm(shortTerm); + } + + @Test + public void testToString() throws Exception { + LoadArray testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.toString(); + } + + @Test + public void testHashCode() throws Exception { + LoadArray testSubject; + int result; + + // default test + testSubject = createTestSubject(); + result = testSubject.hashCode(); + } + + @Test + public void testEquals() throws Exception { + LoadArray testSubject; + LoadArray testSubject2; + Object other = null; + boolean result; + + // default test + testSubject = createTestSubject(); + testSubject2 = createTestSubject(); + result = testSubject.equals(other); + result = testSubject.equals(testSubject); + result = testSubject.equals(testSubject2); + assertNotNull(result); + } +} diff --git a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/MachineCheckExceptionArrayTest.java b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/MachineCheckExceptionArrayTest.java new file mode 100644 index 0000000..a22616e --- /dev/null +++ b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/MachineCheckExceptionArrayTest.java @@ -0,0 +1,170 @@ +/*- + * ============LICENSE_START======================================================= + * ONAP : DCAE + * ================================================================================ + * Copyright 2019 TechMahindra + * ================================================================================ + * 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========================================================= + */ + +package org.onap.dcaegen2.ves.domain.ves70; + +import static org.junit.Assert.assertNotNull; + +import org.junit.Test; +import org.onap.dcaegen2.ves.domain.ves70.MachineCheckExceptionArray; + + +public class MachineCheckExceptionArrayTest { + + private MachineCheckExceptionArray createTestSubject() { + return new MachineCheckExceptionArray(); + } + + @Test + public void testGetCorrectedMemoryErrors() throws Exception { + MachineCheckExceptionArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getCorrectedMemoryErrors(); + } + + @Test + public void testSetCorrectedMemoryErrors() throws Exception { + MachineCheckExceptionArray testSubject; + Double correctedMemoryErrors = null; + + // default test + testSubject = createTestSubject(); + testSubject.setCorrectedMemoryErrors(correctedMemoryErrors); + } + + @Test + public void testGetCorrectedMemoryErrorsIn1Hr() throws Exception { + MachineCheckExceptionArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getCorrectedMemoryErrorsIn1Hr(); + } + + @Test + public void testSetCorrectedMemoryErrorsIn1Hr() throws Exception { + MachineCheckExceptionArray testSubject; + Double correctedMemoryErrorsIn1Hr = null; + + // default test + testSubject = createTestSubject(); + testSubject.setCorrectedMemoryErrorsIn1Hr(correctedMemoryErrorsIn1Hr); + } + + @Test + public void testGetUncorrectedMemoryErrors() throws Exception { + MachineCheckExceptionArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getUncorrectedMemoryErrors(); + } + + @Test + public void testSetUncorrectedMemoryErrors() throws Exception { + MachineCheckExceptionArray testSubject; + Double uncorrectedMemoryErrors = null; + + // default test + testSubject = createTestSubject(); + testSubject.setUncorrectedMemoryErrors(uncorrectedMemoryErrors); + } + + @Test + public void testGetUncorrectedMemoryErrorsIn1Hr() throws Exception { + MachineCheckExceptionArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getUncorrectedMemoryErrorsIn1Hr(); + } + + @Test + public void testSetUncorrectedMemoryErrorsIn1Hr() throws Exception { + MachineCheckExceptionArray testSubject; + Double uncorrectedMemoryErrorsIn1Hr = null; + + // default test + testSubject = createTestSubject(); + testSubject.setUncorrectedMemoryErrorsIn1Hr(uncorrectedMemoryErrorsIn1Hr); + } + + @Test + public void testGetVmIdentifier() throws Exception { + MachineCheckExceptionArray testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getVmIdentifier(); + } + + @Test + public void testSetVmIdentifier() throws Exception { + MachineCheckExceptionArray testSubject; + String vmIdentifier = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setVmIdentifier(vmIdentifier); + } + + @Test + public void testToString() throws Exception { + MachineCheckExceptionArray testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.toString(); + } + + @Test + public void testHashCode() throws Exception { + MachineCheckExceptionArray testSubject; + int result; + + // default test + testSubject = createTestSubject(); + result = testSubject.hashCode(); + } + + @Test + public void testEquals() throws Exception { + MachineCheckExceptionArray testSubject; + MachineCheckExceptionArray testSubject2; + Object other = null; + boolean result; + + // default test + testSubject = createTestSubject(); + testSubject2 = createTestSubject(); + result = testSubject.equals(other); + result = testSubject.equals(testSubject); + result = testSubject.equals(testSubject2); + assertNotNull(result); + } +} diff --git a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/MeasurementFieldsTest.java b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/MeasurementFieldsTest.java new file mode 100644 index 0000000..b838933 --- /dev/null +++ b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/MeasurementFieldsTest.java @@ -0,0 +1,553 @@ +/*- + * ============LICENSE_START======================================================= + * ONAP : DCAE + * ================================================================================ + * Copyright 2019 TechMahindra + * ================================================================================ + * 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========================================================= + */ + +package org.onap.dcaegen2.ves.domain.ves70; + +import static org.junit.Assert.assertNotNull; + +import java.util.List; + +import org.junit.Test; +import org.onap.dcaegen2.ves.domain.ves70.MeasurementFields.MeasurementFieldsVersion; + + + +public class MeasurementFieldsTest { + + private MeasurementFields createTestSubject() { + return new MeasurementFields(); + } + + @Test + public void testGetAdditionalFields() throws Exception { + MeasurementFields testSubject; + AlarmAdditionalInformation result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getAdditionalFields(); + } + + @Test + public void testSetAdditionalFields() throws Exception { + MeasurementFields testSubject; + AlarmAdditionalInformation additionalFields = null; + + // default test + testSubject = createTestSubject(); + testSubject.setAdditionalFields(additionalFields); + } + + @Test + public void testGetAdditionalMeasurements() throws Exception { + MeasurementFields testSubject; + List result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getAdditionalMeasurements(); + } + + @Test + public void testSetAdditionalMeasurements() throws Exception { + MeasurementFields testSubject; + List additionalMeasurements = null; + + // default test + testSubject = createTestSubject(); + testSubject.setAdditionalMeasurements(additionalMeasurements); + } + + @Test + public void testGetAdditionalObjects() throws Exception { + MeasurementFields testSubject; + List result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getAdditionalObjects(); + } + + @Test + public void testSetAdditionalObjects() throws Exception { + MeasurementFields testSubject; + List additionalObjects = null; + + // default test + testSubject = createTestSubject(); + testSubject.setAdditionalObjects(additionalObjects); + } + + @Test + public void testGetCodecUsageArray() throws Exception { + MeasurementFields testSubject; + List result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getCodecUsageArray(); + } + + @Test + public void testSetCodecUsageArray() throws Exception { + MeasurementFields testSubject; + List codecUsageArray = null; + + // default test + testSubject = createTestSubject(); + testSubject.setCodecUsageArray(codecUsageArray); + } + + @Test + public void testGetConcurrentSessions() throws Exception { + MeasurementFields testSubject; + Integer result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getConcurrentSessions(); + } + + @Test + public void testSetConcurrentSessions() throws Exception { + MeasurementFields testSubject; + Integer concurrentSessions = 0; + + // default test + testSubject = createTestSubject(); + testSubject.setConcurrentSessions(concurrentSessions); + } + + @Test + public void testGetConfiguredEntities() throws Exception { + MeasurementFields testSubject; + Integer result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getConfiguredEntities(); + } + + @Test + public void testSetConfiguredEntities() throws Exception { + MeasurementFields testSubject; + Integer configuredEntities = 0; + + // default test + testSubject = createTestSubject(); + testSubject.setConfiguredEntities(configuredEntities); + } + + @Test + public void testGetCpuUsageArray() throws Exception { + MeasurementFields testSubject; + List result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getCpuUsageArray(); + } + + @Test + public void testSetCpuUsageArray() throws Exception { + MeasurementFields testSubject; + List cpuUsageArray = null; + + // default test + testSubject = createTestSubject(); + testSubject.setCpuUsageArray(cpuUsageArray); + } + + @Test + public void testGetDiskUsageArray() throws Exception { + MeasurementFields testSubject; + List result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getDiskUsageArray(); + } + + @Test + public void testSetDiskUsageArray() throws Exception { + MeasurementFields testSubject; + List diskUsageArray = null; + + // default test + testSubject = createTestSubject(); + testSubject.setDiskUsageArray(diskUsageArray); + } + + @Test + public void testGetFeatureUsageArray() throws Exception { + MeasurementFields testSubject; + AlarmAdditionalInformation result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getFeatureUsageArray(); + } + + @Test + public void testSetFeatureUsageArray() throws Exception { + MeasurementFields testSubject; + AlarmAdditionalInformation featureUsageArray = null; + + // default test + testSubject = createTestSubject(); + testSubject.setFeatureUsageArray(featureUsageArray); + } + + @Test + public void testGetFilesystemUsageArray() throws Exception { + MeasurementFields testSubject; + List result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getFilesystemUsageArray(); + } + + @Test + public void testSetFilesystemUsageArray() throws Exception { + MeasurementFields testSubject; + List filesystemUsageArray = null; + + // default test + testSubject = createTestSubject(); + testSubject.setFilesystemUsageArray(filesystemUsageArray); + } + + @Test + public void testGetHugePagesArray() throws Exception { + MeasurementFields testSubject; + List result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getHugePagesArray(); + } + + @Test + public void testSetHugePagesArray() throws Exception { + MeasurementFields testSubject; + List hugePagesArray = null; + + // default test + testSubject = createTestSubject(); + testSubject.setHugePagesArray(hugePagesArray); + } + + @Test + public void testGetIpmi() throws Exception { + MeasurementFields testSubject; + Ipmi result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getIpmi(); + } + + @Test + public void testSetIpmi() throws Exception { + MeasurementFields testSubject; + Ipmi ipmi = null; + + // default test + testSubject = createTestSubject(); + testSubject.setIpmi(ipmi); + } + + @Test + public void testGetLatencyDistribution() throws Exception { + MeasurementFields testSubject; + List result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getLatencyDistribution(); + } + + @Test + public void testSetLatencyDistribution() throws Exception { + MeasurementFields testSubject; + List latencyDistribution = null; + + // default test + testSubject = createTestSubject(); + testSubject.setLatencyDistribution(latencyDistribution); + } + + @Test + public void testGetLoadArray() throws Exception { + MeasurementFields testSubject; + List result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getLoadArray(); + } + + @Test + public void testSetLoadArray() throws Exception { + MeasurementFields testSubject; + List loadArray = null; + + // default test + testSubject = createTestSubject(); + testSubject.setLoadArray(loadArray); + } + + @Test + public void testGetMachineCheckExceptionArray() throws Exception { + MeasurementFields testSubject; + List result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getMachineCheckExceptionArray(); + } + + @Test + public void testSetMachineCheckExceptionArray() throws Exception { + MeasurementFields testSubject; + List machineCheckExceptionArray = null; + + // default test + testSubject = createTestSubject(); + testSubject.setMachineCheckExceptionArray(machineCheckExceptionArray); + } + + @Test + public void testGetMeanRequestLatency() throws Exception { + MeasurementFields testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getMeanRequestLatency(); + } + + @Test + public void testSetMeanRequestLatency() throws Exception { + MeasurementFields testSubject; + Double meanRequestLatency = null; + + // default test + testSubject = createTestSubject(); + testSubject.setMeanRequestLatency(meanRequestLatency); + } + + @Test + public void testGetMeasurementInterval() throws Exception { + MeasurementFields testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getMeasurementInterval(); + } + + @Test + public void testSetMeasurementInterval() throws Exception { + MeasurementFields testSubject; + Double measurementInterval = null; + + // default test + testSubject = createTestSubject(); + testSubject.setMeasurementInterval(measurementInterval); + } + + @Test + public void testGetMeasurementFieldsVersion() throws Exception { + MeasurementFields testSubject; + MeasurementFieldsVersion result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getMeasurementFieldsVersion(); + } + + @Test + public void testSetMeasurementFieldsVersion() throws Exception { + MeasurementFields testSubject; + MeasurementFieldsVersion measurementFieldsVersion = MeasurementFieldsVersion._4_0; + + // default test + testSubject = createTestSubject(); + testSubject.setMeasurementFieldsVersion(measurementFieldsVersion); + } + + @Test + public void testGetMemoryUsageArray() throws Exception { + MeasurementFields testSubject; + List result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getMemoryUsageArray(); + } + + @Test + public void testSetMemoryUsageArray() throws Exception { + MeasurementFields testSubject; + List memoryUsageArray = null; + + // default test + testSubject = createTestSubject(); + testSubject.setMemoryUsageArray(memoryUsageArray); + } + + @Test + public void testGetNumberOfMediaPortsInUse() throws Exception { + MeasurementFields testSubject; + Integer result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getNumberOfMediaPortsInUse(); + } + + @Test + public void testSetNumberOfMediaPortsInUse() throws Exception { + MeasurementFields testSubject; + Integer numberOfMediaPortsInUse = 0; + + // default test + testSubject = createTestSubject(); + testSubject.setNumberOfMediaPortsInUse(numberOfMediaPortsInUse); + } + + @Test + public void testGetRequestRate() throws Exception { + MeasurementFields testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getRequestRate(); + } + + @Test + public void testSetRequestRate() throws Exception { + MeasurementFields testSubject; + Double requestRate = null; + + // default test + testSubject = createTestSubject(); + testSubject.setRequestRate(requestRate); + } + + @Test + public void testGetNfcScalingMetric() throws Exception { + MeasurementFields testSubject; + Integer result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getNfcScalingMetric(); + } + + @Test + public void testSetNfcScalingMetric() throws Exception { + MeasurementFields testSubject; + Integer nfcScalingMetric = 0; + + // default test + testSubject = createTestSubject(); + testSubject.setNfcScalingMetric(nfcScalingMetric); + } + + @Test + public void testGetNicPerformanceArray() throws Exception { + MeasurementFields testSubject; + List result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getNicPerformanceArray(); + } + + @Test + public void testSetNicPerformanceArray() throws Exception { + MeasurementFields testSubject; + List nicPerformanceArray = null; + + // default test + testSubject = createTestSubject(); + testSubject.setNicPerformanceArray(nicPerformanceArray); + } + + @Test + public void testGetProcessStatsArray() throws Exception { + MeasurementFields testSubject; + List result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getProcessStatsArray(); + } + + @Test + public void testSetProcessStatsArray() throws Exception { + MeasurementFields testSubject; + List processStatsArray = null; + + // default test + testSubject = createTestSubject(); + testSubject.setProcessStatsArray(processStatsArray); + } + + @Test + public void testToString() throws Exception { + MeasurementFields testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.toString(); + } + + @Test + public void testHashCode() throws Exception { + MeasurementFields testSubject; + int result; + + // default test + testSubject = createTestSubject(); + result = testSubject.hashCode(); + } + + @Test + public void testEquals() throws Exception { + MeasurementFields testSubject; + MeasurementFields testSubject2; + Object other = null; + boolean result; + + // default test + testSubject = createTestSubject(); + testSubject2 = createTestSubject(); + result = testSubject.equals(other); + result = testSubject.equals(testSubject); + result = testSubject.equals(testSubject2); + assertNotNull(result); + } +} diff --git a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/MemoryUsageArrayTest.java b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/MemoryUsageArrayTest.java new file mode 100644 index 0000000..9acf4c9 --- /dev/null +++ b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/MemoryUsageArrayTest.java @@ -0,0 +1,410 @@ +/*- + * ============LICENSE_START======================================================= + * ONAP : DCAE + * ================================================================================ + * Copyright 2019 TechMahindra + * ================================================================================ + * 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========================================================= + */ + +package org.onap.dcaegen2.ves.domain.ves70; + +import static org.junit.Assert.assertNotNull; + +import org.junit.Test; +import org.onap.dcaegen2.ves.domain.ves70.MemoryUsageArray; + + +public class MemoryUsageArrayTest { + + private MemoryUsageArray createTestSubject() { + return new MemoryUsageArray(); + } + + @Test + public void testGetMemoryBuffered() throws Exception { + MemoryUsageArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getMemoryBuffered(); + } + + @Test + public void testSetMemoryBuffered() throws Exception { + MemoryUsageArray testSubject; + Double memoryBuffered = null; + + // default test + testSubject = createTestSubject(); + testSubject.setMemoryBuffered(memoryBuffered); + } + + @Test + public void testGetMemoryCached() throws Exception { + MemoryUsageArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getMemoryCached(); + } + + @Test + public void testSetMemoryCached() throws Exception { + MemoryUsageArray testSubject; + Double memoryCached = null; + + // default test + testSubject = createTestSubject(); + testSubject.setMemoryCached(memoryCached); + } + + @Test + public void testGetMemoryConfigured() throws Exception { + MemoryUsageArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getMemoryConfigured(); + } + + @Test + public void testSetMemoryConfigured() throws Exception { + MemoryUsageArray testSubject; + Double memoryConfigured = null; + + // default test + testSubject = createTestSubject(); + testSubject.setMemoryConfigured(memoryConfigured); + } + + @Test + public void testGetMemoryDemand() throws Exception { + MemoryUsageArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getMemoryDemand(); + } + + @Test + public void testSetMemoryDemand() throws Exception { + MemoryUsageArray testSubject; + Double memoryDemand = null; + + // default test + testSubject = createTestSubject(); + testSubject.setMemoryDemand(memoryDemand); + } + + @Test + public void testGetMemoryFree() throws Exception { + MemoryUsageArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getMemoryFree(); + } + + @Test + public void testSetMemoryFree() throws Exception { + MemoryUsageArray testSubject; + Double memoryFree = null; + + // default test + testSubject = createTestSubject(); + testSubject.setMemoryFree(memoryFree); + } + + @Test + public void testGetMemoryLatencyAvg() throws Exception { + MemoryUsageArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getMemoryLatencyAvg(); + } + + @Test + public void testSetMemoryLatencyAvg() throws Exception { + MemoryUsageArray testSubject; + Double memoryLatencyAvg = null; + + // default test + testSubject = createTestSubject(); + testSubject.setMemoryLatencyAvg(memoryLatencyAvg); + } + + @Test + public void testGetMemorySharedAvg() throws Exception { + MemoryUsageArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getMemorySharedAvg(); + } + + @Test + public void testSetMemorySharedAvg() throws Exception { + MemoryUsageArray testSubject; + Double memorySharedAvg = null; + + // default test + testSubject = createTestSubject(); + testSubject.setMemorySharedAvg(memorySharedAvg); + } + + @Test + public void testGetMemorySlabRecl() throws Exception { + MemoryUsageArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getMemorySlabRecl(); + } + + @Test + public void testSetMemorySlabRecl() throws Exception { + MemoryUsageArray testSubject; + Double memorySlabRecl = null; + + // default test + testSubject = createTestSubject(); + testSubject.setMemorySlabRecl(memorySlabRecl); + } + + @Test + public void testGetMemorySlabUnrecl() throws Exception { + MemoryUsageArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getMemorySlabUnrecl(); + } + + @Test + public void testSetMemorySlabUnrecl() throws Exception { + MemoryUsageArray testSubject; + Double memorySlabUnrecl = null; + + // default test + testSubject = createTestSubject(); + testSubject.setMemorySlabUnrecl(memorySlabUnrecl); + } + + @Test + public void testGetMemorySwapInAvg() throws Exception { + MemoryUsageArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getMemorySwapInAvg(); + } + + @Test + public void testSetMemorySwapInAvg() throws Exception { + MemoryUsageArray testSubject; + Double memorySwapInAvg = null; + + // default test + testSubject = createTestSubject(); + testSubject.setMemorySwapInAvg(memorySwapInAvg); + } + + @Test + public void testGetMemorySwapInRateAvg() throws Exception { + MemoryUsageArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getMemorySwapInRateAvg(); + } + + @Test + public void testSetMemorySwapInRateAvg() throws Exception { + MemoryUsageArray testSubject; + Double memorySwapInRateAvg = null; + + // default test + testSubject = createTestSubject(); + testSubject.setMemorySwapInRateAvg(memorySwapInRateAvg); + } + + @Test + public void testGetMemorySwapOutAvg() throws Exception { + MemoryUsageArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getMemorySwapOutAvg(); + } + + @Test + public void testSetMemorySwapOutAvg() throws Exception { + MemoryUsageArray testSubject; + Double memorySwapOutAvg = null; + + // default test + testSubject = createTestSubject(); + testSubject.setMemorySwapOutAvg(memorySwapOutAvg); + } + + @Test + public void testGetMemorySwapOutRateAvg() throws Exception { + MemoryUsageArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getMemorySwapOutRateAvg(); + } + + @Test + public void testSetMemorySwapOutRateAvg() throws Exception { + MemoryUsageArray testSubject; + Double memorySwapOutRateAvg = null; + + // default test + testSubject = createTestSubject(); + testSubject.setMemorySwapOutRateAvg(memorySwapOutRateAvg); + } + + @Test + public void testGetMemorySwapUsedAvg() throws Exception { + MemoryUsageArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getMemorySwapUsedAvg(); + } + + @Test + public void testSetMemorySwapUsedAvg() throws Exception { + MemoryUsageArray testSubject; + Double memorySwapUsedAvg = null; + + // default test + testSubject = createTestSubject(); + testSubject.setMemorySwapUsedAvg(memorySwapUsedAvg); + } + + @Test + public void testGetMemoryUsed() throws Exception { + MemoryUsageArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getMemoryUsed(); + } + + @Test + public void testSetMemoryUsed() throws Exception { + MemoryUsageArray testSubject; + Double memoryUsed = null; + + // default test + testSubject = createTestSubject(); + testSubject.setMemoryUsed(memoryUsed); + } + + @Test + public void testGetPercentMemoryUsage() throws Exception { + MemoryUsageArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getPercentMemoryUsage(); + } + + @Test + public void testSetPercentMemoryUsage() throws Exception { + MemoryUsageArray testSubject; + Double percentMemoryUsage = null; + + // default test + testSubject = createTestSubject(); + testSubject.setPercentMemoryUsage(percentMemoryUsage); + } + + @Test + public void testGetVmIdentifier() throws Exception { + MemoryUsageArray testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getVmIdentifier(); + } + + @Test + public void testSetVmIdentifier() throws Exception { + MemoryUsageArray testSubject; + String vmIdentifier = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setVmIdentifier(vmIdentifier); + } + + @Test + public void testToString() throws Exception { + MemoryUsageArray testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.toString(); + } + + @Test + public void testHashCode() throws Exception { + MemoryUsageArray testSubject; + int result; + + // default test + testSubject = createTestSubject(); + result = testSubject.hashCode(); + } + + @Test + public void testEquals() throws Exception { + MemoryUsageArray testSubject; + MemoryUsageArray testSubject2; + Object other = null; + boolean result; + + // default test + testSubject = createTestSubject(); + testSubject2 = createTestSubject(); + result = testSubject.equals(other); + result = testSubject.equals(testSubject); + result = testSubject.equals(testSubject2); + assertNotNull(result); + } +} diff --git a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/MobileFlowFieldsTest.java b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/MobileFlowFieldsTest.java new file mode 100644 index 0000000..7ac8a12 --- /dev/null +++ b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/MobileFlowFieldsTest.java @@ -0,0 +1,733 @@ +/*- + * ============LICENSE_START======================================================= + * ONAP : DCAE + * ================================================================================ + * Copyright 2019 TechMahindra + * ================================================================================ + * 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========================================================= + */ + +package org.onap.dcaegen2.ves.domain.ves70; + +import static org.junit.Assert.assertNotNull; + +import org.junit.Test; +import org.onap.dcaegen2.ves.domain.ves70.AlarmAdditionalInformation; +import org.onap.dcaegen2.ves.domain.ves70.GtpPerFlowMetrics; +import org.onap.dcaegen2.ves.domain.ves70.MobileFlowFields; +import org.onap.dcaegen2.ves.domain.ves70.MobileFlowFields.MobileFlowFieldsVersion; + + +public class MobileFlowFieldsTest { + + private MobileFlowFields createTestSubject() { + return new MobileFlowFields(); + } + + @Test + public void testGetAdditionalFields() throws Exception { + MobileFlowFields testSubject; + AlarmAdditionalInformation result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getAdditionalFields(); + } + + @Test + public void testSetAdditionalFields() throws Exception { + MobileFlowFields testSubject; + AlarmAdditionalInformation additionalFields = null; + + // default test + testSubject = createTestSubject(); + testSubject.setAdditionalFields(additionalFields); + } + + @Test + public void testGetApplicationType() throws Exception { + MobileFlowFields testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getApplicationType(); + } + + @Test + public void testSetApplicationType() throws Exception { + MobileFlowFields testSubject; + String applicationType = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setApplicationType(applicationType); + } + + @Test + public void testGetAppProtocolType() throws Exception { + MobileFlowFields testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getAppProtocolType(); + } + + @Test + public void testSetAppProtocolType() throws Exception { + MobileFlowFields testSubject; + String appProtocolType = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setAppProtocolType(appProtocolType); + } + + @Test + public void testGetAppProtocolVersion() throws Exception { + MobileFlowFields testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getAppProtocolVersion(); + } + + @Test + public void testSetAppProtocolVersion() throws Exception { + MobileFlowFields testSubject; + String appProtocolVersion = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setAppProtocolVersion(appProtocolVersion); + } + + @Test + public void testGetCid() throws Exception { + MobileFlowFields testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getCid(); + } + + @Test + public void testSetCid() throws Exception { + MobileFlowFields testSubject; + String cid = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setCid(cid); + } + + @Test + public void testGetConnectionType() throws Exception { + MobileFlowFields testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getConnectionType(); + } + + @Test + public void testSetConnectionType() throws Exception { + MobileFlowFields testSubject; + String connectionType = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setConnectionType(connectionType); + } + + @Test + public void testGetEcgi() throws Exception { + MobileFlowFields testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getEcgi(); + } + + @Test + public void testSetEcgi() throws Exception { + MobileFlowFields testSubject; + String ecgi = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setEcgi(ecgi); + } + + @Test + public void testGetFlowDirection() throws Exception { + MobileFlowFields testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getFlowDirection(); + } + + @Test + public void testSetFlowDirection() throws Exception { + MobileFlowFields testSubject; + String flowDirection = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setFlowDirection(flowDirection); + } + + @Test + public void testGetGtpPerFlowMetrics() throws Exception { + MobileFlowFields testSubject; + GtpPerFlowMetrics result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getGtpPerFlowMetrics(); + } + + @Test + public void testSetGtpPerFlowMetrics() throws Exception { + MobileFlowFields testSubject; + GtpPerFlowMetrics gtpPerFlowMetrics = null; + + // default test + testSubject = createTestSubject(); + testSubject.setGtpPerFlowMetrics(gtpPerFlowMetrics); + } + + @Test + public void testGetGtpProtocolType() throws Exception { + MobileFlowFields testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getGtpProtocolType(); + } + + @Test + public void testSetGtpProtocolType() throws Exception { + MobileFlowFields testSubject; + String gtpProtocolType = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setGtpProtocolType(gtpProtocolType); + } + + @Test + public void testGetGtpVersion() throws Exception { + MobileFlowFields testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getGtpVersion(); + } + + @Test + public void testSetGtpVersion() throws Exception { + MobileFlowFields testSubject; + String gtpVersion = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setGtpVersion(gtpVersion); + } + + @Test + public void testGetHttpHeader() throws Exception { + MobileFlowFields testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getHttpHeader(); + } + + @Test + public void testSetHttpHeader() throws Exception { + MobileFlowFields testSubject; + String httpHeader = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setHttpHeader(httpHeader); + } + + @Test + public void testGetImei() throws Exception { + MobileFlowFields testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getImei(); + } + + @Test + public void testSetImei() throws Exception { + MobileFlowFields testSubject; + String imei = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setImei(imei); + } + + @Test + public void testGetImsi() throws Exception { + MobileFlowFields testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getImsi(); + } + + @Test + public void testSetImsi() throws Exception { + MobileFlowFields testSubject; + String imsi = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setImsi(imsi); + } + + @Test + public void testGetIpProtocolType() throws Exception { + MobileFlowFields testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getIpProtocolType(); + } + + @Test + public void testSetIpProtocolType() throws Exception { + MobileFlowFields testSubject; + String ipProtocolType = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setIpProtocolType(ipProtocolType); + } + + @Test + public void testGetIpVersion() throws Exception { + MobileFlowFields testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getIpVersion(); + } + + @Test + public void testSetIpVersion() throws Exception { + MobileFlowFields testSubject; + String ipVersion = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setIpVersion(ipVersion); + } + + @Test + public void testGetLac() throws Exception { + MobileFlowFields testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getLac(); + } + + @Test + public void testSetLac() throws Exception { + MobileFlowFields testSubject; + String lac = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setLac(lac); + } + + @Test + public void testGetMcc() throws Exception { + MobileFlowFields testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getMcc(); + } + + @Test + public void testSetMcc() throws Exception { + MobileFlowFields testSubject; + String mcc = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setMcc(mcc); + } + + @Test + public void testGetMnc() throws Exception { + MobileFlowFields testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getMnc(); + } + + @Test + public void testSetMnc() throws Exception { + MobileFlowFields testSubject; + String mnc = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setMnc(mnc); + } + + @Test + public void testGetMobileFlowFieldsVersion() throws Exception { + MobileFlowFields testSubject; + MobileFlowFieldsVersion result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getMobileFlowFieldsVersion(); + } + + @Test + public void testSetMobileFlowFieldsVersion() throws Exception { + MobileFlowFields testSubject; + MobileFlowFieldsVersion mobileFlowFieldsVersion = MobileFlowFieldsVersion._4_0; + + // default test + testSubject = createTestSubject(); + testSubject.setMobileFlowFieldsVersion(mobileFlowFieldsVersion); + } + + @Test + public void testGetMsisdn() throws Exception { + MobileFlowFields testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getMsisdn(); + } + + @Test + public void testSetMsisdn() throws Exception { + MobileFlowFields testSubject; + String msisdn = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setMsisdn(msisdn); + } + + @Test + public void testGetOtherEndpointIpAddress() throws Exception { + MobileFlowFields testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getOtherEndpointIpAddress(); + } + + @Test + public void testSetOtherEndpointIpAddress() throws Exception { + MobileFlowFields testSubject; + String otherEndpointIpAddress = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setOtherEndpointIpAddress(otherEndpointIpAddress); + } + + @Test + public void testGetOtherEndpointPort() throws Exception { + MobileFlowFields testSubject; + Integer result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getOtherEndpointPort(); + } + + @Test + public void testSetOtherEndpointPort() throws Exception { + MobileFlowFields testSubject; + Integer otherEndpointPort = 0; + + // default test + testSubject = createTestSubject(); + testSubject.setOtherEndpointPort(otherEndpointPort); + } + + @Test + public void testGetOtherFunctionalRole() throws Exception { + MobileFlowFields testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getOtherFunctionalRole(); + } + + @Test + public void testSetOtherFunctionalRole() throws Exception { + MobileFlowFields testSubject; + String otherFunctionalRole = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setOtherFunctionalRole(otherFunctionalRole); + } + + @Test + public void testGetRac() throws Exception { + MobileFlowFields testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getRac(); + } + + @Test + public void testSetRac() throws Exception { + MobileFlowFields testSubject; + String rac = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setRac(rac); + } + + @Test + public void testGetRadioAccessTechnology() throws Exception { + MobileFlowFields testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getRadioAccessTechnology(); + } + + @Test + public void testSetRadioAccessTechnology() throws Exception { + MobileFlowFields testSubject; + String radioAccessTechnology = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setRadioAccessTechnology(radioAccessTechnology); + } + + @Test + public void testGetReportingEndpointIpAddr() throws Exception { + MobileFlowFields testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getReportingEndpointIpAddr(); + } + + @Test + public void testSetReportingEndpointIpAddr() throws Exception { + MobileFlowFields testSubject; + String reportingEndpointIpAddr = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setReportingEndpointIpAddr(reportingEndpointIpAddr); + } + + @Test + public void testGetReportingEndpointPort() throws Exception { + MobileFlowFields testSubject; + Integer result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getReportingEndpointPort(); + } + + @Test + public void testSetReportingEndpointPort() throws Exception { + MobileFlowFields testSubject; + Integer reportingEndpointPort = 0; + + // default test + testSubject = createTestSubject(); + testSubject.setReportingEndpointPort(reportingEndpointPort); + } + + @Test + public void testGetSac() throws Exception { + MobileFlowFields testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getSac(); + } + + @Test + public void testSetSac() throws Exception { + MobileFlowFields testSubject; + String sac = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setSac(sac); + } + + @Test + public void testGetSamplingAlgorithm() throws Exception { + MobileFlowFields testSubject; + Integer result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getSamplingAlgorithm(); + } + + @Test + public void testSetSamplingAlgorithm() throws Exception { + MobileFlowFields testSubject; + Integer samplingAlgorithm = 0; + + // default test + testSubject = createTestSubject(); + testSubject.setSamplingAlgorithm(samplingAlgorithm); + } + + @Test + public void testGetTac() throws Exception { + MobileFlowFields testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getTac(); + } + + @Test + public void testSetTac() throws Exception { + MobileFlowFields testSubject; + String tac = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setTac(tac); + } + + @Test + public void testGetTunnelId() throws Exception { + MobileFlowFields testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getTunnelId(); + } + + @Test + public void testSetTunnelId() throws Exception { + MobileFlowFields testSubject; + String tunnelId = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setTunnelId(tunnelId); + } + + @Test + public void testGetVlanId() throws Exception { + MobileFlowFields testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getVlanId(); + } + + @Test + public void testSetVlanId() throws Exception { + MobileFlowFields testSubject; + String vlanId = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setVlanId(vlanId); + } + + @Test + public void testToString() throws Exception { + MobileFlowFields testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.toString(); + } + + @Test + public void testHashCode() throws Exception { + MobileFlowFields testSubject; + int result; + + // default test + testSubject = createTestSubject(); + result = testSubject.hashCode(); + } + + @Test + public void testEquals() throws Exception { + MobileFlowFields testSubject; + MobileFlowFields testSubject2; + Object other = null; + boolean result; + + // default test + testSubject = createTestSubject(); + testSubject2 = createTestSubject(); + result = testSubject.equals(other); + result = testSubject.equals(testSubject); + result = testSubject.equals(testSubject2); + assertNotNull(result); + } +} diff --git a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/NicPerformanceArrayTest.java b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/NicPerformanceArrayTest.java new file mode 100644 index 0000000..20adf6f --- /dev/null +++ b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/NicPerformanceArrayTest.java @@ -0,0 +1,856 @@ +/*- + * ============LICENSE_START======================================================= + * ONAP : DCAE + * ================================================================================ + * Copyright 2019 TechMahindra + * ================================================================================ + * 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========================================================= + */ + +package org.onap.dcaegen2.ves.domain.ves70; + +import static org.junit.Assert.assertNotNull; + +import org.junit.Test; +import org.onap.dcaegen2.ves.domain.ves70.NicPerformanceArray; +import org.onap.dcaegen2.ves.domain.ves70.NicPerformanceArray.AdministrativeState; +import org.onap.dcaegen2.ves.domain.ves70.NicPerformanceArray.OperationalState; +import org.onap.dcaegen2.ves.domain.ves70.NicPerformanceArray.ValuesAreSuspect; + + +public class NicPerformanceArrayTest { + + private NicPerformanceArray createTestSubject() { + return new NicPerformanceArray(); + } + + @Test + public void testGetAdministrativeState() throws Exception { + NicPerformanceArray testSubject; + AdministrativeState result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getAdministrativeState(); + } + + @Test + public void testSetAdministrativeState() throws Exception { + NicPerformanceArray testSubject; + AdministrativeState administrativeState = AdministrativeState.IN_SERVICE; + + // default test + testSubject = createTestSubject(); + testSubject.setAdministrativeState(administrativeState); + } + + @Test + public void testGetNicIdentifier() throws Exception { + NicPerformanceArray testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getNicIdentifier(); + } + + @Test + public void testSetNicIdentifier() throws Exception { + NicPerformanceArray testSubject; + String nicIdentifier = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setNicIdentifier(nicIdentifier); + } + + @Test + public void testGetOperationalState() throws Exception { + NicPerformanceArray testSubject; + OperationalState result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getOperationalState(); + } + + @Test + public void testSetOperationalState() throws Exception { + NicPerformanceArray testSubject; + OperationalState operationalState = OperationalState.IN_SERVICE; + + // default test + testSubject = createTestSubject(); + testSubject.setOperationalState(operationalState); + } + + @Test + public void testGetReceivedBroadcastPacketsAccumulated() throws Exception { + NicPerformanceArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getReceivedBroadcastPacketsAccumulated(); + } + + @Test + public void testSetReceivedBroadcastPacketsAccumulated() throws Exception { + NicPerformanceArray testSubject; + Double receivedBroadcastPacketsAccumulated = null; + + // default test + testSubject = createTestSubject(); + testSubject.setReceivedBroadcastPacketsAccumulated(receivedBroadcastPacketsAccumulated); + } + + @Test + public void testGetReceivedBroadcastPacketsDelta() throws Exception { + NicPerformanceArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getReceivedBroadcastPacketsDelta(); + } + + @Test + public void testSetReceivedBroadcastPacketsDelta() throws Exception { + NicPerformanceArray testSubject; + Double receivedBroadcastPacketsDelta = null; + + // default test + testSubject = createTestSubject(); + testSubject.setReceivedBroadcastPacketsDelta(receivedBroadcastPacketsDelta); + } + + @Test + public void testGetReceivedDiscardedPacketsAccumulated() throws Exception { + NicPerformanceArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getReceivedDiscardedPacketsAccumulated(); + } + + @Test + public void testSetReceivedDiscardedPacketsAccumulated() throws Exception { + NicPerformanceArray testSubject; + Double receivedDiscardedPacketsAccumulated = null; + + // default test + testSubject = createTestSubject(); + testSubject.setReceivedDiscardedPacketsAccumulated(receivedDiscardedPacketsAccumulated); + } + + @Test + public void testGetReceivedDiscardedPacketsDelta() throws Exception { + NicPerformanceArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getReceivedDiscardedPacketsDelta(); + } + + @Test + public void testSetReceivedDiscardedPacketsDelta() throws Exception { + NicPerformanceArray testSubject; + Double receivedDiscardedPacketsDelta = null; + + // default test + testSubject = createTestSubject(); + testSubject.setReceivedDiscardedPacketsDelta(receivedDiscardedPacketsDelta); + } + + @Test + public void testGetReceivedErrorPacketsAccumulated() throws Exception { + NicPerformanceArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getReceivedErrorPacketsAccumulated(); + } + + @Test + public void testSetReceivedErrorPacketsAccumulated() throws Exception { + NicPerformanceArray testSubject; + Double receivedErrorPacketsAccumulated = null; + + // default test + testSubject = createTestSubject(); + testSubject.setReceivedErrorPacketsAccumulated(receivedErrorPacketsAccumulated); + } + + @Test + public void testGetReceivedErrorPacketsDelta() throws Exception { + NicPerformanceArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getReceivedErrorPacketsDelta(); + } + + @Test + public void testSetReceivedErrorPacketsDelta() throws Exception { + NicPerformanceArray testSubject; + Double receivedErrorPacketsDelta = null; + + // default test + testSubject = createTestSubject(); + testSubject.setReceivedErrorPacketsDelta(receivedErrorPacketsDelta); + } + + @Test + public void testGetReceivedMulticastPacketsAccumulated() throws Exception { + NicPerformanceArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getReceivedMulticastPacketsAccumulated(); + } + + @Test + public void testSetReceivedMulticastPacketsAccumulated() throws Exception { + NicPerformanceArray testSubject; + Double receivedMulticastPacketsAccumulated = null; + + // default test + testSubject = createTestSubject(); + testSubject.setReceivedMulticastPacketsAccumulated(receivedMulticastPacketsAccumulated); + } + + @Test + public void testGetReceivedMulticastPacketsDelta() throws Exception { + NicPerformanceArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getReceivedMulticastPacketsDelta(); + } + + @Test + public void testSetReceivedMulticastPacketsDelta() throws Exception { + NicPerformanceArray testSubject; + Double receivedMulticastPacketsDelta = null; + + // default test + testSubject = createTestSubject(); + testSubject.setReceivedMulticastPacketsDelta(receivedMulticastPacketsDelta); + } + + @Test + public void testGetReceivedOctetsAccumulated() throws Exception { + NicPerformanceArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getReceivedOctetsAccumulated(); + } + + @Test + public void testSetReceivedOctetsAccumulated() throws Exception { + NicPerformanceArray testSubject; + Double receivedOctetsAccumulated = null; + + // default test + testSubject = createTestSubject(); + testSubject.setReceivedOctetsAccumulated(receivedOctetsAccumulated); + } + + @Test + public void testGetReceivedOctetsDelta() throws Exception { + NicPerformanceArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getReceivedOctetsDelta(); + } + + @Test + public void testSetReceivedOctetsDelta() throws Exception { + NicPerformanceArray testSubject; + Double receivedOctetsDelta = null; + + // default test + testSubject = createTestSubject(); + testSubject.setReceivedOctetsDelta(receivedOctetsDelta); + } + + @Test + public void testGetReceivedTotalPacketsAccumulated() throws Exception { + NicPerformanceArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getReceivedTotalPacketsAccumulated(); + } + + @Test + public void testSetReceivedTotalPacketsAccumulated() throws Exception { + NicPerformanceArray testSubject; + Double receivedTotalPacketsAccumulated = null; + + // default test + testSubject = createTestSubject(); + testSubject.setReceivedTotalPacketsAccumulated(receivedTotalPacketsAccumulated); + } + + @Test + public void testGetReceivedPercentDiscard() throws Exception { + NicPerformanceArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getReceivedPercentDiscard(); + } + + @Test + public void testSetReceivedPercentDiscard() throws Exception { + NicPerformanceArray testSubject; + Double receivedPercentDiscard = null; + + // default test + testSubject = createTestSubject(); + testSubject.setReceivedPercentDiscard(receivedPercentDiscard); + } + + @Test + public void testGetReceivedPercentError() throws Exception { + NicPerformanceArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getReceivedPercentError(); + } + + @Test + public void testSetReceivedPercentError() throws Exception { + NicPerformanceArray testSubject; + Double receivedPercentError = null; + + // default test + testSubject = createTestSubject(); + testSubject.setReceivedPercentError(receivedPercentError); + } + + @Test + public void testGetReceivedTotalPacketsDelta() throws Exception { + NicPerformanceArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getReceivedTotalPacketsDelta(); + } + + @Test + public void testSetReceivedTotalPacketsDelta() throws Exception { + NicPerformanceArray testSubject; + Double receivedTotalPacketsDelta = null; + + // default test + testSubject = createTestSubject(); + testSubject.setReceivedTotalPacketsDelta(receivedTotalPacketsDelta); + } + + @Test + public void testGetReceivedUnicastPacketsAccumulated() throws Exception { + NicPerformanceArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getReceivedUnicastPacketsAccumulated(); + } + + @Test + public void testSetReceivedUnicastPacketsAccumulated() throws Exception { + NicPerformanceArray testSubject; + Double receivedUnicastPacketsAccumulated = null; + + // default test + testSubject = createTestSubject(); + testSubject.setReceivedUnicastPacketsAccumulated(receivedUnicastPacketsAccumulated); + } + + @Test + public void testGetReceivedUnicastPacketsDelta() throws Exception { + NicPerformanceArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getReceivedUnicastPacketsDelta(); + } + + @Test + public void testSetReceivedUnicastPacketsDelta() throws Exception { + NicPerformanceArray testSubject; + Double receivedUnicastPacketsDelta = null; + + // default test + testSubject = createTestSubject(); + testSubject.setReceivedUnicastPacketsDelta(receivedUnicastPacketsDelta); + } + + @Test + public void testGetReceivedUtilization() throws Exception { + NicPerformanceArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getReceivedUtilization(); + } + + @Test + public void testSetReceivedUtilization() throws Exception { + NicPerformanceArray testSubject; + Double receivedUtilization = null; + + // default test + testSubject = createTestSubject(); + testSubject.setReceivedUtilization(receivedUtilization); + } + + @Test + public void testGetSpeed() throws Exception { + NicPerformanceArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getSpeed(); + } + + @Test + public void testSetSpeed() throws Exception { + NicPerformanceArray testSubject; + Double speed = null; + + // default test + testSubject = createTestSubject(); + testSubject.setSpeed(speed); + } + + @Test + public void testGetTransmittedBroadcastPacketsAccumulated() throws Exception { + NicPerformanceArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getTransmittedBroadcastPacketsAccumulated(); + } + + @Test + public void testSetTransmittedBroadcastPacketsAccumulated() throws Exception { + NicPerformanceArray testSubject; + Double transmittedBroadcastPacketsAccumulated = null; + + // default test + testSubject = createTestSubject(); + testSubject + .setTransmittedBroadcastPacketsAccumulated(transmittedBroadcastPacketsAccumulated); + } + + @Test + public void testGetTransmittedBroadcastPacketsDelta() throws Exception { + NicPerformanceArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getTransmittedBroadcastPacketsDelta(); + } + + @Test + public void testSetTransmittedBroadcastPacketsDelta() throws Exception { + NicPerformanceArray testSubject; + Double transmittedBroadcastPacketsDelta = null; + + // default test + testSubject = createTestSubject(); + testSubject.setTransmittedBroadcastPacketsDelta(transmittedBroadcastPacketsDelta); + } + + @Test + public void testGetTransmittedDiscardedPacketsAccumulated() throws Exception { + NicPerformanceArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getTransmittedDiscardedPacketsAccumulated(); + } + + @Test + public void testSetTransmittedDiscardedPacketsAccumulated() throws Exception { + NicPerformanceArray testSubject; + Double transmittedDiscardedPacketsAccumulated = null; + + // default test + testSubject = createTestSubject(); + testSubject + .setTransmittedDiscardedPacketsAccumulated(transmittedDiscardedPacketsAccumulated); + } + + @Test + public void testGetTransmittedDiscardedPacketsDelta() throws Exception { + NicPerformanceArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getTransmittedDiscardedPacketsDelta(); + } + + @Test + public void testSetTransmittedDiscardedPacketsDelta() throws Exception { + NicPerformanceArray testSubject; + Double transmittedDiscardedPacketsDelta = null; + + // default test + testSubject = createTestSubject(); + testSubject.setTransmittedDiscardedPacketsDelta(transmittedDiscardedPacketsDelta); + } + + @Test + public void testGetTransmittedErrorPacketsAccumulated() throws Exception { + NicPerformanceArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getTransmittedErrorPacketsAccumulated(); + } + + @Test + public void testSetTransmittedErrorPacketsAccumulated() throws Exception { + NicPerformanceArray testSubject; + Double transmittedErrorPacketsAccumulated = null; + + // default test + testSubject = createTestSubject(); + testSubject.setTransmittedErrorPacketsAccumulated(transmittedErrorPacketsAccumulated); + } + + @Test + public void testGetTransmittedErrorPacketsDelta() throws Exception { + NicPerformanceArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getTransmittedErrorPacketsDelta(); + } + + @Test + public void testSetTransmittedErrorPacketsDelta() throws Exception { + NicPerformanceArray testSubject; + Double transmittedErrorPacketsDelta = null; + + // default test + testSubject = createTestSubject(); + testSubject.setTransmittedErrorPacketsDelta(transmittedErrorPacketsDelta); + } + + @Test + public void testGetTransmittedMulticastPacketsAccumulated() throws Exception { + NicPerformanceArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getTransmittedMulticastPacketsAccumulated(); + } + + @Test + public void testSetTransmittedMulticastPacketsAccumulated() throws Exception { + NicPerformanceArray testSubject; + Double transmittedMulticastPacketsAccumulated = null; + + // default test + testSubject = createTestSubject(); + testSubject + .setTransmittedMulticastPacketsAccumulated(transmittedMulticastPacketsAccumulated); + } + + @Test + public void testGetTransmittedMulticastPacketsDelta() throws Exception { + NicPerformanceArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getTransmittedMulticastPacketsDelta(); + } + + @Test + public void testSetTransmittedMulticastPacketsDelta() throws Exception { + NicPerformanceArray testSubject; + Double transmittedMulticastPacketsDelta = null; + + // default test + testSubject = createTestSubject(); + testSubject.setTransmittedMulticastPacketsDelta(transmittedMulticastPacketsDelta); + } + + @Test + public void testGetTransmittedOctetsAccumulated() throws Exception { + NicPerformanceArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getTransmittedOctetsAccumulated(); + } + + @Test + public void testSetTransmittedOctetsAccumulated() throws Exception { + NicPerformanceArray testSubject; + Double transmittedOctetsAccumulated = null; + + // default test + testSubject = createTestSubject(); + testSubject.setTransmittedOctetsAccumulated(transmittedOctetsAccumulated); + } + + @Test + public void testGetTransmittedOctetsDelta() throws Exception { + NicPerformanceArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getTransmittedOctetsDelta(); + } + + @Test + public void testSetTransmittedOctetsDelta() throws Exception { + NicPerformanceArray testSubject; + Double transmittedOctetsDelta = null; + + // default test + testSubject = createTestSubject(); + testSubject.setTransmittedOctetsDelta(transmittedOctetsDelta); + } + + @Test + public void testGetTransmittedTotalPacketsAccumulated() throws Exception { + NicPerformanceArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getTransmittedTotalPacketsAccumulated(); + } + + @Test + public void testSetTransmittedTotalPacketsAccumulated() throws Exception { + NicPerformanceArray testSubject; + Double transmittedTotalPacketsAccumulated = null; + + // default test + testSubject = createTestSubject(); + testSubject.setTransmittedTotalPacketsAccumulated(transmittedTotalPacketsAccumulated); + } + + @Test + public void testGetTransmittedTotalPacketsDelta() throws Exception { + NicPerformanceArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getTransmittedTotalPacketsDelta(); + } + + @Test + public void testSetTransmittedTotalPacketsDelta() throws Exception { + NicPerformanceArray testSubject; + Double transmittedTotalPacketsDelta = null; + + // default test + testSubject = createTestSubject(); + testSubject.setTransmittedTotalPacketsDelta(transmittedTotalPacketsDelta); + } + + @Test + public void testGetTransmittedUnicastPacketsAccumulated() throws Exception { + NicPerformanceArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getTransmittedUnicastPacketsAccumulated(); + } + + @Test + public void testSetTransmittedUnicastPacketsAccumulated() throws Exception { + NicPerformanceArray testSubject; + Double transmittedUnicastPacketsAccumulated = null; + + // default test + testSubject = createTestSubject(); + testSubject.setTransmittedUnicastPacketsAccumulated(transmittedUnicastPacketsAccumulated); + } + + @Test + public void testGetTransmittedUnicastPacketsDelta() throws Exception { + NicPerformanceArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getTransmittedUnicastPacketsDelta(); + } + + @Test + public void testSetTransmittedUnicastPacketsDelta() throws Exception { + NicPerformanceArray testSubject; + Double transmittedUnicastPacketsDelta = null; + + // default test + testSubject = createTestSubject(); + testSubject.setTransmittedUnicastPacketsDelta(transmittedUnicastPacketsDelta); + } + + @Test + public void testGetTransmittedPercentDiscard() throws Exception { + NicPerformanceArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getTransmittedPercentDiscard(); + } + + @Test + public void testSetTransmittedPercentDiscard() throws Exception { + NicPerformanceArray testSubject; + Double transmittedPercentDiscard = null; + + // default test + testSubject = createTestSubject(); + testSubject.setTransmittedPercentDiscard(transmittedPercentDiscard); + } + + @Test + public void testGetTransmittedPercentError() throws Exception { + NicPerformanceArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getTransmittedPercentError(); + } + + @Test + public void testSetTransmittedPercentError() throws Exception { + NicPerformanceArray testSubject; + Double transmittedPercentError = null; + + // default test + testSubject = createTestSubject(); + testSubject.setTransmittedPercentError(transmittedPercentError); + } + + @Test + public void testGetTransmittedUtilization() throws Exception { + NicPerformanceArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getTransmittedUtilization(); + } + + @Test + public void testSetTransmittedUtilization() throws Exception { + NicPerformanceArray testSubject; + Double transmittedUtilization = null; + + // default test + testSubject = createTestSubject(); + testSubject.setTransmittedUtilization(transmittedUtilization); + } + + @Test + public void testGetValuesAreSuspect() throws Exception { + NicPerformanceArray testSubject; + ValuesAreSuspect result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getValuesAreSuspect(); + } + + @Test + public void testSetValuesAreSuspect() throws Exception { + NicPerformanceArray testSubject; + ValuesAreSuspect valuesAreSuspect = ValuesAreSuspect.FALSE; + + // default test + testSubject = createTestSubject(); + testSubject.setValuesAreSuspect(valuesAreSuspect); + } + + @Test + public void testToString() throws Exception { + NicPerformanceArray testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.toString(); + } + + @Test + public void testHashCode() throws Exception { + NicPerformanceArray testSubject; + int result; + + // default test + testSubject = createTestSubject(); + result = testSubject.hashCode(); + } + + @Test + public void testEquals() throws Exception { + NicPerformanceArray testSubject; + NicPerformanceArray testSubject2; + Object other = null; + boolean result; + + // default test + testSubject = createTestSubject(); + testSubject2 = createTestSubject(); + result = testSubject.equals(other); + result = testSubject.equals(testSubject); + result = testSubject.equals(testSubject2); + assertNotNull(result); + } +} diff --git a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/NotificationFieldsTest.java b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/NotificationFieldsTest.java new file mode 100644 index 0000000..0aa01d7 --- /dev/null +++ b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/NotificationFieldsTest.java @@ -0,0 +1,255 @@ +/*- + * ============LICENSE_START======================================================= + * ONAP : DCAE + * ================================================================================ + * Copyright 2019 TechMahindra + * ================================================================================ + * 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========================================================= + */ + +package org.onap.dcaegen2.ves.domain.ves70; + +import static org.junit.Assert.assertNotNull; + +import java.util.List; + +import org.junit.Test; +import org.onap.dcaegen2.ves.domain.ves70.AdditionalMeasurement; +import org.onap.dcaegen2.ves.domain.ves70.AlarmAdditionalInformation; +import org.onap.dcaegen2.ves.domain.ves70.NotificationFields; +import org.onap.dcaegen2.ves.domain.ves70.NotificationFields.NotificationFieldsVersion; + + +public class NotificationFieldsTest { + + private NotificationFields createTestSubject() { + return new NotificationFields(); + } + + @Test + public void testGetAdditionalFields() throws Exception { + NotificationFields testSubject; + AlarmAdditionalInformation result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getAdditionalFields(); + } + + @Test + public void testSetAdditionalFields() throws Exception { + NotificationFields testSubject; + AlarmAdditionalInformation additionalFields = null; + + // default test + testSubject = createTestSubject(); + testSubject.setAdditionalFields(additionalFields); + } + + @Test + public void testGetArrayOfNamedHashMap() throws Exception { + NotificationFields testSubject; + List result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getArrayOfNamedHashMap(); + } + + @Test + public void testSetArrayOfNamedHashMap() throws Exception { + NotificationFields testSubject; + List arrayOfNamedHashMap = null; + + // default test + testSubject = createTestSubject(); + testSubject.setArrayOfNamedHashMap(arrayOfNamedHashMap); + } + + @Test + public void testGetChangeContact() throws Exception { + NotificationFields testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getChangeContact(); + } + + @Test + public void testSetChangeContact() throws Exception { + NotificationFields testSubject; + String changeContact = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setChangeContact(changeContact); + } + + @Test + public void testGetChangeIdentifier() throws Exception { + NotificationFields testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getChangeIdentifier(); + } + + @Test + public void testSetChangeIdentifier() throws Exception { + NotificationFields testSubject; + String changeIdentifier = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setChangeIdentifier(changeIdentifier); + } + + @Test + public void testGetChangeType() throws Exception { + NotificationFields testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getChangeType(); + } + + @Test + public void testSetChangeType() throws Exception { + NotificationFields testSubject; + String changeType = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setChangeType(changeType); + } + + @Test + public void testGetNewState() throws Exception { + NotificationFields testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getNewState(); + } + + @Test + public void testSetNewState() throws Exception { + NotificationFields testSubject; + String newState = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setNewState(newState); + } + + @Test + public void testGetOldState() throws Exception { + NotificationFields testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getOldState(); + } + + @Test + public void testSetOldState() throws Exception { + NotificationFields testSubject; + String oldState = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setOldState(oldState); + } + + @Test + public void testGetNotificationFieldsVersion() throws Exception { + NotificationFields testSubject; + NotificationFieldsVersion result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getNotificationFieldsVersion(); + } + + @Test + public void testSetNotificationFieldsVersion() throws Exception { + NotificationFields testSubject; + NotificationFieldsVersion notificationFieldsVersion = NotificationFieldsVersion._2_0; + + // default test + testSubject = createTestSubject(); + testSubject.setNotificationFieldsVersion(notificationFieldsVersion); + } + + @Test + public void testGetStateInterface() throws Exception { + NotificationFields testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getStateInterface(); + } + + @Test + public void testSetStateInterface() throws Exception { + NotificationFields testSubject; + String stateInterface = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setStateInterface(stateInterface); + } + + @Test + public void testToString() throws Exception { + NotificationFields testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.toString(); + } + + @Test + public void testHashCode() throws Exception { + NotificationFields testSubject; + int result; + + // default test + testSubject = createTestSubject(); + result = testSubject.hashCode(); + } + + @Test + public void testEquals() throws Exception { + NotificationFields testSubject; + NotificationFields testSubject2; + Object other = null; + boolean result; + + // default test + testSubject = createTestSubject(); + testSubject2 = createTestSubject(); + result = testSubject.equals(other); + result = testSubject.equals(testSubject); + result = testSubject.equals(testSubject2); + assertNotNull(result); + } +} diff --git a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/ObjectInstanceTest.java b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/ObjectInstanceTest.java new file mode 100644 index 0000000..7092b17 --- /dev/null +++ b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/ObjectInstanceTest.java @@ -0,0 +1,154 @@ +/*- + * ============LICENSE_START======================================================= + * ONAP : DCAE + * ================================================================================ + * Copyright 2019 TechMahindra + * ================================================================================ + * 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========================================================= + */ + +package org.onap.dcaegen2.ves.domain.ves70; + +import static org.junit.Assert.assertNotNull; + +import java.util.List; + +import org.junit.Test; +import org.onap.dcaegen2.ves.domain.ves70.AdditionalObject; +import org.onap.dcaegen2.ves.domain.ves70.ObjectInstance; +import org.onap.dcaegen2.ves.domain.ves70.ObjectKey; + + +public class ObjectInstanceTest { + + private ObjectInstance createTestSubject() { + return new ObjectInstance(); + } + + @Test + public void testGetJsonObject() throws Exception { + ObjectInstance testSubject; + AdditionalObject result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getJsonObject(); + } + + @Test + public void testSetJsonObject() throws Exception { + ObjectInstance testSubject; + AdditionalObject jsonObject = null; + + // default test + testSubject = createTestSubject(); + testSubject.setJsonObject(jsonObject); + } + + @Test + public void testGetObjectInstance() throws Exception { + ObjectInstance testSubject; + ObjectInstance result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getObjectInstance(); + } + + @Test + public void testSetObjectInstance() throws Exception { + ObjectInstance testSubject; + ObjectInstance objectInstance = null; + + // default test + testSubject = createTestSubject(); + testSubject.setObjectInstance(objectInstance); + } + + @Test + public void testGetObjectInstanceEpochMicrosec() throws Exception { + ObjectInstance testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getObjectInstanceEpochMicrosec(); + } + + @Test + public void testSetObjectInstanceEpochMicrosec() throws Exception { + ObjectInstance testSubject; + Double objectInstanceEpochMicrosec = null; + + // default test + testSubject = createTestSubject(); + testSubject.setObjectInstanceEpochMicrosec(objectInstanceEpochMicrosec); + } + + @Test + public void testGetObjectKeys() throws Exception { + ObjectInstance testSubject; + List result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getObjectKeys(); + } + + @Test + public void testSetObjectKeys() throws Exception { + ObjectInstance testSubject; + List objectKeys = null; + + // default test + testSubject = createTestSubject(); + testSubject.setObjectKeys(objectKeys); + } + + @Test + public void testToString() throws Exception { + ObjectInstance testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.toString(); + } + + @Test + public void testHashCode() throws Exception { + ObjectInstance testSubject; + int result; + + // default test + testSubject = createTestSubject(); + result = testSubject.hashCode(); + } + + @Test + public void testEquals() throws Exception { + ObjectInstance testSubject; + ObjectInstance testSubject2; + Object other = null; + boolean result; + + // default test + testSubject = createTestSubject(); + testSubject2 = createTestSubject(); + result = testSubject.equals(other); + result = testSubject.equals(testSubject); + result = testSubject.equals(testSubject2); + assertNotNull(result); + } +} diff --git a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/ObjectKeyTest.java b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/ObjectKeyTest.java new file mode 100644 index 0000000..759a748 --- /dev/null +++ b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/ObjectKeyTest.java @@ -0,0 +1,130 @@ +/*- + * ============LICENSE_START======================================================= + * ONAP : DCAE + * ================================================================================ + * Copyright 2019 TechMahindra + * ================================================================================ + * 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========================================================= + */ + +package org.onap.dcaegen2.ves.domain.ves70; + +import static org.junit.Assert.assertNotNull; + +import org.junit.Test; +import org.onap.dcaegen2.ves.domain.ves70.ObjectKey; + + +public class ObjectKeyTest { + + private ObjectKey createTestSubject() { + return new ObjectKey(); + } + + @Test + public void testGetKeyName() throws Exception { + ObjectKey testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getKeyName(); + } + + @Test + public void testSetKeyName() throws Exception { + ObjectKey testSubject; + String keyName = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setKeyName(keyName); + } + + @Test + public void testGetKeyOrder() throws Exception { + ObjectKey testSubject; + Integer result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getKeyOrder(); + } + + @Test + public void testSetKeyOrder() throws Exception { + ObjectKey testSubject; + Integer keyOrder = 0; + + // default test + testSubject = createTestSubject(); + testSubject.setKeyOrder(keyOrder); + } + + @Test + public void testGetKeyValue() throws Exception { + ObjectKey testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getKeyValue(); + } + + @Test + public void testSetKeyValue() throws Exception { + ObjectKey testSubject; + String keyValue = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setKeyValue(keyValue); + } + + @Test + public void testToString() throws Exception { + ObjectKey testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.toString(); + } + + @Test + public void testHashCode() throws Exception { + ObjectKey testSubject; + int result; + + // default test + testSubject = createTestSubject(); + result = testSubject.hashCode(); + } + + @Test + public void testEquals() throws Exception { + ObjectKey testSubject; + ObjectKey testSubject2; + Object other = null; + boolean result; + + // default test + testSubject = createTestSubject(); + testSubject2 = createTestSubject(); + result = testSubject.equals(other); + result = testSubject.equals(testSubject); + result = testSubject.equals(testSubject2); + assertNotNull(result); + } +} diff --git a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/OtherFieldsTest.java b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/OtherFieldsTest.java new file mode 100644 index 0000000..976cbbb --- /dev/null +++ b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/OtherFieldsTest.java @@ -0,0 +1,156 @@ +/*- + * ============LICENSE_START======================================================= + * ONAP : DCAE + * ================================================================================ + * Copyright 2019 TechMahindra + * ================================================================================ + * 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========================================================= + */ + +package org.onap.dcaegen2.ves.domain.ves70; + +import static org.junit.Assert.assertNotNull; + +import java.util.List; + +import org.junit.Test; +import org.onap.dcaegen2.ves.domain.ves70.AdditionalMeasurement; +import org.onap.dcaegen2.ves.domain.ves70.AdditionalObject; +import org.onap.dcaegen2.ves.domain.ves70.AlarmAdditionalInformation; +import org.onap.dcaegen2.ves.domain.ves70.OtherFields; +import org.onap.dcaegen2.ves.domain.ves70.OtherFields.OtherFieldsVersion; + + +public class OtherFieldsTest { + + private OtherFields createTestSubject() { + return new OtherFields(); + } + + @Test + public void testGetArrayOfNamedHashMap() throws Exception { + OtherFields testSubject; + List result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getArrayOfNamedHashMap(); + } + + @Test + public void testSetArrayOfNamedHashMap() throws Exception { + OtherFields testSubject; + List arrayOfNamedHashMap = null; + + // default test + testSubject = createTestSubject(); + testSubject.setArrayOfNamedHashMap(arrayOfNamedHashMap); + } + + @Test + public void testGetHashMap() throws Exception { + OtherFields testSubject; + AlarmAdditionalInformation result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getHashMap(); + } + + @Test + public void testSetHashMap() throws Exception { + OtherFields testSubject; + AlarmAdditionalInformation hashMap = null; + + // default test + testSubject = createTestSubject(); + testSubject.setHashMap(hashMap); + } + + @Test + public void testGetJsonObjects() throws Exception { + OtherFields testSubject; + List result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getJsonObjects(); + } + + @Test + public void testSetJsonObjects() throws Exception { + OtherFields testSubject; + List jsonObjects = null; + + // default test + testSubject = createTestSubject(); + testSubject.setJsonObjects(jsonObjects); + } + + @Test + public void testGetOtherFieldsVersion() throws Exception { + OtherFields testSubject; + OtherFieldsVersion result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getOtherFieldsVersion(); + } + + @Test + public void testSetOtherFieldsVersion() throws Exception { + OtherFields testSubject; + OtherFieldsVersion otherFieldsVersion = OtherFieldsVersion._3_0; + + // default test + testSubject = createTestSubject(); + testSubject.setOtherFieldsVersion(otherFieldsVersion); + } + + @Test + public void testToString() throws Exception { + OtherFields testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.toString(); + } + + @Test + public void testHashCode() throws Exception { + OtherFields testSubject; + int result; + + // default test + testSubject = createTestSubject(); + result = testSubject.hashCode(); + } + + @Test + public void testEquals() throws Exception { + OtherFields testSubject; + OtherFields testSubject2; + Object other = null; + boolean result; + + // default test + testSubject = createTestSubject(); + testSubject2 = createTestSubject(); + result = testSubject.equals(other); + result = testSubject.equals(testSubject); + result = testSubject.equals(testSubject2); + assertNotNull(result); + } +} diff --git a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/PnfRegistrationFieldsTest.java b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/PnfRegistrationFieldsTest.java new file mode 100644 index 0000000..d1f6f8b --- /dev/null +++ b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/PnfRegistrationFieldsTest.java @@ -0,0 +1,333 @@ +/*- + * ============LICENSE_START======================================================= + * ONAP : DCAE + * ================================================================================ + * Copyright 2019 TechMahindra + * ================================================================================ + * 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========================================================= + */ + +package org.onap.dcaegen2.ves.domain.ves70; + +import static org.junit.Assert.assertNotNull; + +import org.junit.Test; +import org.onap.dcaegen2.ves.domain.ves70.AlarmAdditionalInformation; +import org.onap.dcaegen2.ves.domain.ves70.PnfRegistrationFields; +import org.onap.dcaegen2.ves.domain.ves70.PnfRegistrationFields.PnfRegistrationFieldsVersion; + + +public class PnfRegistrationFieldsTest { + + private PnfRegistrationFields createTestSubject() { + return new PnfRegistrationFields(); + } + + @Test + public void testGetAdditionalFields() throws Exception { + PnfRegistrationFields testSubject; + AlarmAdditionalInformation result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getAdditionalFields(); + } + + @Test + public void testSetAdditionalFields() throws Exception { + PnfRegistrationFields testSubject; + AlarmAdditionalInformation additionalFields = null; + + // default test + testSubject = createTestSubject(); + testSubject.setAdditionalFields(additionalFields); + } + + @Test + public void testGetLastServiceDate() throws Exception { + PnfRegistrationFields testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getLastServiceDate(); + } + + @Test + public void testSetLastServiceDate() throws Exception { + PnfRegistrationFields testSubject; + String lastServiceDate = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setLastServiceDate(lastServiceDate); + } + + @Test + public void testGetMacAddress() throws Exception { + PnfRegistrationFields testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getMacAddress(); + } + + @Test + public void testSetMacAddress() throws Exception { + PnfRegistrationFields testSubject; + String macAddress = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setMacAddress(macAddress); + } + + @Test + public void testGetManufactureDate() throws Exception { + PnfRegistrationFields testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getManufactureDate(); + } + + @Test + public void testSetManufactureDate() throws Exception { + PnfRegistrationFields testSubject; + String manufactureDate = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setManufactureDate(manufactureDate); + } + + @Test + public void testGetModelNumber() throws Exception { + PnfRegistrationFields testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getModelNumber(); + } + + @Test + public void testSetModelNumber() throws Exception { + PnfRegistrationFields testSubject; + String modelNumber = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setModelNumber(modelNumber); + } + + @Test + public void testGetOamV4IpAddress() throws Exception { + PnfRegistrationFields testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getOamV4IpAddress(); + } + + @Test + public void testSetOamV4IpAddress() throws Exception { + PnfRegistrationFields testSubject; + String oamV4IpAddress = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setOamV4IpAddress(oamV4IpAddress); + } + + @Test + public void testGetOamV6IpAddress() throws Exception { + PnfRegistrationFields testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getOamV6IpAddress(); + } + + @Test + public void testSetOamV6IpAddress() throws Exception { + PnfRegistrationFields testSubject; + String oamV6IpAddress = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setOamV6IpAddress(oamV6IpAddress); + } + + @Test + public void testGetPnfRegistrationFieldsVersion() throws Exception { + PnfRegistrationFields testSubject; + PnfRegistrationFieldsVersion result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getPnfRegistrationFieldsVersion(); + } + + @Test + public void testSetPnfRegistrationFieldsVersion() throws Exception { + PnfRegistrationFields testSubject; + PnfRegistrationFieldsVersion pnfRegistrationFieldsVersion = + PnfRegistrationFieldsVersion._2_0; + + // default test + testSubject = createTestSubject(); + testSubject.setPnfRegistrationFieldsVersion(pnfRegistrationFieldsVersion); + } + + @Test + public void testGetSerialNumber() throws Exception { + PnfRegistrationFields testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getSerialNumber(); + } + + @Test + public void testSetSerialNumber() throws Exception { + PnfRegistrationFields testSubject; + String serialNumber = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setSerialNumber(serialNumber); + } + + @Test + public void testGetSoftwareVersion() throws Exception { + PnfRegistrationFields testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getSoftwareVersion(); + } + + @Test + public void testSetSoftwareVersion() throws Exception { + PnfRegistrationFields testSubject; + String softwareVersion = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setSoftwareVersion(softwareVersion); + } + + @Test + public void testGetUnitFamily() throws Exception { + PnfRegistrationFields testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getUnitFamily(); + } + + @Test + public void testSetUnitFamily() throws Exception { + PnfRegistrationFields testSubject; + String unitFamily = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setUnitFamily(unitFamily); + } + + @Test + public void testGetUnitType() throws Exception { + PnfRegistrationFields testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getUnitType(); + } + + @Test + public void testSetUnitType() throws Exception { + PnfRegistrationFields testSubject; + String unitType = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setUnitType(unitType); + } + + @Test + public void testGetVendorName() throws Exception { + PnfRegistrationFields testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getVendorName(); + } + + @Test + public void testSetVendorName() throws Exception { + PnfRegistrationFields testSubject; + String vendorName = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setVendorName(vendorName); + } + + @Test + public void testToString() throws Exception { + PnfRegistrationFields testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.toString(); + } + + @Test + public void testHashCode() throws Exception { + PnfRegistrationFields testSubject; + int result; + + // default test + testSubject = createTestSubject(); + result = testSubject.hashCode(); + } + + @Test + public void testEquals() throws Exception { + PnfRegistrationFields testSubject; + PnfRegistrationFields testSubject2; + Object other = null; + boolean result; + + // default test + testSubject = createTestSubject(); + testSubject2 = createTestSubject(); + result = testSubject.equals(other); + result = testSubject.equals(testSubject); + result = testSubject.equals(testSubject2); + assertNotNull(result); + } +} diff --git a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/ProcessStatsArrayTest.java b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/ProcessStatsArrayTest.java new file mode 100644 index 0000000..a88479e --- /dev/null +++ b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/ProcessStatsArrayTest.java @@ -0,0 +1,230 @@ +/*- + * ============LICENSE_START======================================================= + * ONAP : DCAE + * ================================================================================ + * Copyright 2019 TechMahindra + * ================================================================================ + * 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========================================================= + */ + +package org.onap.dcaegen2.ves.domain.ves70; + +import static org.junit.Assert.assertNotNull; + +import org.junit.Test; +import org.onap.dcaegen2.ves.domain.ves70.ProcessStatsArray; + + +public class ProcessStatsArrayTest { + + private ProcessStatsArray createTestSubject() { + return new ProcessStatsArray(); + } + + @Test + public void testGetForkRate() throws Exception { + ProcessStatsArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getForkRate(); + } + + @Test + public void testSetForkRate() throws Exception { + ProcessStatsArray testSubject; + Double forkRate = null; + + // default test + testSubject = createTestSubject(); + testSubject.setForkRate(forkRate); + } + + @Test + public void testGetProcessIdentifier() throws Exception { + ProcessStatsArray testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getProcessIdentifier(); + } + + @Test + public void testSetProcessIdentifier() throws Exception { + ProcessStatsArray testSubject; + String processIdentifier = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setProcessIdentifier(processIdentifier); + } + + @Test + public void testGetPsStateBlocked() throws Exception { + ProcessStatsArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getPsStateBlocked(); + } + + @Test + public void testSetPsStateBlocked() throws Exception { + ProcessStatsArray testSubject; + Double psStateBlocked = null; + + // default test + testSubject = createTestSubject(); + testSubject.setPsStateBlocked(psStateBlocked); + } + + @Test + public void testGetPsStatePaging() throws Exception { + ProcessStatsArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getPsStatePaging(); + } + + @Test + public void testSetPsStatePaging() throws Exception { + ProcessStatsArray testSubject; + Double psStatePaging = null; + + // default test + testSubject = createTestSubject(); + testSubject.setPsStatePaging(psStatePaging); + } + + @Test + public void testGetPsStateRunning() throws Exception { + ProcessStatsArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getPsStateRunning(); + } + + @Test + public void testSetPsStateRunning() throws Exception { + ProcessStatsArray testSubject; + Double psStateRunning = null; + + // default test + testSubject = createTestSubject(); + testSubject.setPsStateRunning(psStateRunning); + } + + @Test + public void testGetPsStateSleeping() throws Exception { + ProcessStatsArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getPsStateSleeping(); + } + + @Test + public void testSetPsStateSleeping() throws Exception { + ProcessStatsArray testSubject; + Double psStateSleeping = null; + + // default test + testSubject = createTestSubject(); + testSubject.setPsStateSleeping(psStateSleeping); + } + + @Test + public void testGetPsStateStopped() throws Exception { + ProcessStatsArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getPsStateStopped(); + } + + @Test + public void testSetPsStateStopped() throws Exception { + ProcessStatsArray testSubject; + Double psStateStopped = null; + + // default test + testSubject = createTestSubject(); + testSubject.setPsStateStopped(psStateStopped); + } + + @Test + public void testGetPsStateZombie() throws Exception { + ProcessStatsArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getPsStateZombie(); + } + + @Test + public void testSetPsStateZombie() throws Exception { + ProcessStatsArray testSubject; + Double psStateZombie = null; + + // default test + testSubject = createTestSubject(); + testSubject.setPsStateZombie(psStateZombie); + } + + @Test + public void testToString() throws Exception { + ProcessStatsArray testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.toString(); + } + + @Test + public void testHashCode() throws Exception { + ProcessStatsArray testSubject; + int result; + + // default test + testSubject = createTestSubject(); + result = testSubject.hashCode(); + } + + @Test + public void testEquals() throws Exception { + ProcessStatsArray testSubject; + ProcessStatsArray testSubject2; + Object other = null; + boolean result; + + // default test + testSubject = createTestSubject(); + testSubject2 = createTestSubject(); + result = testSubject.equals(other); + result = testSubject.equals(testSubject); + result = testSubject.equals(testSubject2); + assertNotNull(result); + } +} diff --git a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/ProcessorDimmAggregateThermalMarginArrayTest.java b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/ProcessorDimmAggregateThermalMarginArrayTest.java new file mode 100644 index 0000000..55c39e4 --- /dev/null +++ b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/ProcessorDimmAggregateThermalMarginArrayTest.java @@ -0,0 +1,111 @@ +/*- + * ============LICENSE_START======================================================= + * ONAP : DCAE + * ================================================================================ + * Copyright 2019 TechMahindra + * ================================================================================ + * 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========================================================= + */ + +package org.onap.dcaegen2.ves.domain.ves70; + +import static org.junit.Assert.assertNotNull; + +import org.junit.Test; +import org.onap.dcaegen2.ves.domain.ves70.ProcessorDimmAggregateThermalMarginArray; + + +public class ProcessorDimmAggregateThermalMarginArrayTest { + + private ProcessorDimmAggregateThermalMarginArray createTestSubject() { + return new ProcessorDimmAggregateThermalMarginArray(); + } + + @Test + public void testGetProcessorDimmAggregateThermalMarginIdentifier() throws Exception { + ProcessorDimmAggregateThermalMarginArray testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getProcessorDimmAggregateThermalMarginIdentifier(); + } + + @Test + public void testSetProcessorDimmAggregateThermalMarginIdentifier() throws Exception { + ProcessorDimmAggregateThermalMarginArray testSubject; + String processorDimmAggregateThermalMarginIdentifier = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setProcessorDimmAggregateThermalMarginIdentifier( + processorDimmAggregateThermalMarginIdentifier); + } + + @Test + public void testGetThermalMargin() throws Exception { + ProcessorDimmAggregateThermalMarginArray testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getThermalMargin(); + } + + @Test + public void testSetThermalMargin() throws Exception { + ProcessorDimmAggregateThermalMarginArray testSubject; + Double thermalMargin = null; + + // default test + testSubject = createTestSubject(); + testSubject.setThermalMargin(thermalMargin); + } + + @Test + public void testToString() throws Exception { + ProcessorDimmAggregateThermalMarginArray testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.toString(); + } + + @Test + public void testHashCode() throws Exception { + ProcessorDimmAggregateThermalMarginArray testSubject; + int result; + + // default test + testSubject = createTestSubject(); + result = testSubject.hashCode(); + } + + @Test + public void testEquals() throws Exception { + ProcessorDimmAggregateThermalMarginArray testSubject; + ProcessorDimmAggregateThermalMarginArray testSubject2; + Object other = null; + boolean result; + + // default test + testSubject = createTestSubject(); + testSubject2 = createTestSubject(); + result = testSubject.equals(other); + result = testSubject.equals(testSubject); + result = testSubject.equals(testSubject2); + assertNotNull(result); + } +} diff --git a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/SipSignalingFieldsTest.java b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/SipSignalingFieldsTest.java new file mode 100644 index 0000000..a8a0c13 --- /dev/null +++ b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/SipSignalingFieldsTest.java @@ -0,0 +1,271 @@ +/*- + * ============LICENSE_START======================================================= + * ONAP : DCAE + * ================================================================================ + * Copyright 2019 TechMahindra + * ================================================================================ + * 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========================================================= + */ + +package org.onap.dcaegen2.ves.domain.ves70; + +import static org.junit.Assert.assertNotNull; + +import org.junit.Test; +import org.onap.dcaegen2.ves.domain.ves70.SipSignalingFields.SipSignalingFieldsVersion; + + + +public class SipSignalingFieldsTest { + + private SipSignalingFields createTestSubject() { + return new SipSignalingFields(); + } + + @Test + public void testGetAdditionalInformation() throws Exception { + SipSignalingFields testSubject; + AlarmAdditionalInformation result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getAdditionalInformation(); + } + + @Test + public void testSetAdditionalInformation() throws Exception { + SipSignalingFields testSubject; + AlarmAdditionalInformation additionalInformation = null; + + // default test + testSubject = createTestSubject(); + testSubject.setAdditionalInformation(additionalInformation); + } + + @Test + public void testGetCompressedSip() throws Exception { + SipSignalingFields testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getCompressedSip(); + } + + @Test + public void testSetCompressedSip() throws Exception { + SipSignalingFields testSubject; + String compressedSip = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setCompressedSip(compressedSip); + } + + @Test + public void testGetCorrelator() throws Exception { + SipSignalingFields testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getCorrelator(); + } + + @Test + public void testSetCorrelator() throws Exception { + SipSignalingFields testSubject; + String correlator = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setCorrelator(correlator); + } + + @Test + public void testGetLocalIpAddress() throws Exception { + SipSignalingFields testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getLocalIpAddress(); + } + + @Test + public void testSetLocalIpAddress() throws Exception { + SipSignalingFields testSubject; + String localIpAddress = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setLocalIpAddress(localIpAddress); + } + + @Test + public void testGetLocalPort() throws Exception { + SipSignalingFields testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getLocalPort(); + } + + @Test + public void testSetLocalPort() throws Exception { + SipSignalingFields testSubject; + String localPort = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setLocalPort(localPort); + } + + @Test + public void testGetRemoteIpAddress() throws Exception { + SipSignalingFields testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getRemoteIpAddress(); + } + + @Test + public void testSetRemoteIpAddress() throws Exception { + SipSignalingFields testSubject; + String remoteIpAddress = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setRemoteIpAddress(remoteIpAddress); + } + + @Test + public void testGetRemotePort() throws Exception { + SipSignalingFields testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getRemotePort(); + } + + @Test + public void testSetRemotePort() throws Exception { + SipSignalingFields testSubject; + String remotePort = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setRemotePort(remotePort); + } + + @Test + public void testGetSipSignalingFieldsVersion() throws Exception { + SipSignalingFields testSubject; + SipSignalingFieldsVersion result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getSipSignalingFieldsVersion(); + } + + @Test + public void testSetSipSignalingFieldsVersion() throws Exception { + SipSignalingFields testSubject; + SipSignalingFieldsVersion sipSignalingFieldsVersion = SipSignalingFieldsVersion._3_0; + + // default test + testSubject = createTestSubject(); + testSubject.setSipSignalingFieldsVersion(sipSignalingFieldsVersion); + } + + @Test + public void testGetSummarySip() throws Exception { + SipSignalingFields testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getSummarySip(); + } + + @Test + public void testSetSummarySip() throws Exception { + SipSignalingFields testSubject; + String summarySip = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setSummarySip(summarySip); + } + + @Test + public void testGetVendorNfNameFields() throws Exception { + SipSignalingFields testSubject; + VendorNfNameFields result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getVendorNfNameFields(); + } + + @Test + public void testSetVendorNfNameFields() throws Exception { + SipSignalingFields testSubject; + VendorNfNameFields vendorNfNameFields = null; + + // default test + testSubject = createTestSubject(); + testSubject.setVendorNfNameFields(vendorNfNameFields); + } + + @Test + public void testToString() throws Exception { + SipSignalingFields testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.toString(); + } + + @Test + public void testHashCode() throws Exception { + SipSignalingFields testSubject; + int result; + + // default test + testSubject = createTestSubject(); + result = testSubject.hashCode(); + } + + @Test + public void testEquals() throws Exception { + SipSignalingFields testSubject; + SipSignalingFields testSubject2; + Object other = null; + boolean result; + + // default test + testSubject = createTestSubject(); + testSubject2 = createTestSubject(); + result = testSubject.equals(other); + result = testSubject.equals(testSubject); + result = testSubject.equals(testSubject2); + assertNotNull(result); + } +} diff --git a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/StateChangeFieldsTest.java b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/StateChangeFieldsTest.java new file mode 100644 index 0000000..4adb2b1 --- /dev/null +++ b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/StateChangeFieldsTest.java @@ -0,0 +1,174 @@ +/*- + * ============LICENSE_START======================================================= + * ONAP : DCAE + * ================================================================================ + * Copyright 2019 TechMahindra + * ================================================================================ + * 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========================================================= + */ + +package org.onap.dcaegen2.ves.domain.ves70; + +import static org.junit.Assert.assertNotNull; + +import org.junit.Test; +import org.onap.dcaegen2.ves.domain.ves70.AlarmAdditionalInformation; +import org.onap.dcaegen2.ves.domain.ves70.StateChangeFields; +import org.onap.dcaegen2.ves.domain.ves70.StateChangeFields.NewState; +import org.onap.dcaegen2.ves.domain.ves70.StateChangeFields.OldState; +import org.onap.dcaegen2.ves.domain.ves70.StateChangeFields.StateChangeFieldsVersion; + + +public class StateChangeFieldsTest { + + private StateChangeFields createTestSubject() { + return new StateChangeFields(); + } + + @Test + public void testGetAdditionalFields() throws Exception { + StateChangeFields testSubject; + AlarmAdditionalInformation result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getAdditionalFields(); + } + + @Test + public void testSetAdditionalFields() throws Exception { + StateChangeFields testSubject; + AlarmAdditionalInformation additionalFields = null; + + // default test + testSubject = createTestSubject(); + testSubject.setAdditionalFields(additionalFields); + } + + @Test + public void testGetNewState() throws Exception { + StateChangeFields testSubject; + NewState result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getNewState(); + } + + @Test + public void testSetNewState() throws Exception { + StateChangeFields testSubject; + NewState newState = NewState.IN_SERVICE; + + // default test + testSubject = createTestSubject(); + testSubject.setNewState(newState); + } + + @Test + public void testGetOldState() throws Exception { + StateChangeFields testSubject; + OldState result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getOldState(); + } + + @Test + public void testSetOldState() throws Exception { + StateChangeFields testSubject; + OldState oldState = OldState.IN_SERVICE; + + // default test + testSubject = createTestSubject(); + testSubject.setOldState(oldState); + } + + @Test + public void testGetStateChangeFieldsVersion() throws Exception { + StateChangeFields testSubject; + StateChangeFieldsVersion result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getStateChangeFieldsVersion(); + } + + @Test + public void testSetStateChangeFieldsVersion() throws Exception { + StateChangeFields testSubject; + StateChangeFieldsVersion stateChangeFieldsVersion = StateChangeFieldsVersion._4_0; + + // default test + testSubject = createTestSubject(); + testSubject.setStateChangeFieldsVersion(stateChangeFieldsVersion); + } + + @Test + public void testGetStateInterface() throws Exception { + StateChangeFields testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getStateInterface(); + } + + @Test + public void testSetStateInterface() throws Exception { + StateChangeFields testSubject; + String stateInterface = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setStateInterface(stateInterface); + } + + @Test + public void testToString() throws Exception { + StateChangeFields testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.toString(); + } + + @Test + public void testHashCode() throws Exception { + StateChangeFields testSubject; + int result; + + // default test + testSubject = createTestSubject(); + result = testSubject.hashCode(); + } + + @Test + public void testEquals() throws Exception { + StateChangeFields testSubject; + StateChangeFields testSubject2; + Object other = null; + boolean result; + + // default test + testSubject = createTestSubject(); + testSubject2 = createTestSubject(); + result = testSubject.equals(other); + result = testSubject.equals(testSubject); + result = testSubject.equals(testSubject2); + assertNotNull(result); + } +} diff --git a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/SyslogFieldsTest.java b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/SyslogFieldsTest.java new file mode 100644 index 0000000..c15766f --- /dev/null +++ b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/SyslogFieldsTest.java @@ -0,0 +1,393 @@ +/*- + * ============LICENSE_START======================================================= + * ONAP : DCAE + * ================================================================================ + * Copyright 2019 TechMahindra + * ================================================================================ + * 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========================================================= + */ + +package org.onap.dcaegen2.ves.domain.ves70; + +import static org.junit.Assert.assertNotNull; + +import org.junit.Test; +import org.onap.dcaegen2.ves.domain.ves70.AlarmAdditionalInformation; +import org.onap.dcaegen2.ves.domain.ves70.SyslogFields; +import org.onap.dcaegen2.ves.domain.ves70.SyslogFields.SyslogFieldsVersion; +import org.onap.dcaegen2.ves.domain.ves70.SyslogFields.SyslogSev; + + +public class SyslogFieldsTest { + + private SyslogFields createTestSubject() { + return new SyslogFields(); + } + + @Test + public void testGetAdditionalFields() throws Exception { + SyslogFields testSubject; + AlarmAdditionalInformation result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getAdditionalFields(); + } + + @Test + public void testSetAdditionalFields() throws Exception { + SyslogFields testSubject; + AlarmAdditionalInformation additionalFields = null; + + // default test + testSubject = createTestSubject(); + testSubject.setAdditionalFields(additionalFields); + } + + @Test + public void testGetEventSourceHost() throws Exception { + SyslogFields testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getEventSourceHost(); + } + + @Test + public void testSetEventSourceHost() throws Exception { + SyslogFields testSubject; + String eventSourceHost = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setEventSourceHost(eventSourceHost); + } + + @Test + public void testGetEventSourceType() throws Exception { + SyslogFields testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getEventSourceType(); + } + + @Test + public void testSetEventSourceType() throws Exception { + SyslogFields testSubject; + String eventSourceType = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setEventSourceType(eventSourceType); + } + + @Test + public void testGetSyslogFacility() throws Exception { + SyslogFields testSubject; + Integer result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getSyslogFacility(); + } + + @Test + public void testSetSyslogFacility() throws Exception { + SyslogFields testSubject; + Integer syslogFacility = 0; + + // default test + testSubject = createTestSubject(); + testSubject.setSyslogFacility(syslogFacility); + } + + @Test + public void testGetSyslogFieldsVersion() throws Exception { + SyslogFields testSubject; + SyslogFieldsVersion result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getSyslogFieldsVersion(); + } + + @Test + public void testSetSyslogFieldsVersion() throws Exception { + SyslogFields testSubject; + SyslogFieldsVersion syslogFieldsVersion = SyslogFieldsVersion._4_0; + + // default test + testSubject = createTestSubject(); + testSubject.setSyslogFieldsVersion(syslogFieldsVersion); + } + + @Test + public void testGetSyslogMsg() throws Exception { + SyslogFields testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getSyslogMsg(); + } + + @Test + public void testSetSyslogMsg() throws Exception { + SyslogFields testSubject; + String syslogMsg = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setSyslogMsg(syslogMsg); + } + + @Test + public void testGetSyslogMsgHost() throws Exception { + SyslogFields testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getSyslogMsgHost(); + } + + @Test + public void testSetSyslogMsgHost() throws Exception { + SyslogFields testSubject; + String syslogMsgHost = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setSyslogMsgHost(syslogMsgHost); + } + + @Test + public void testGetSyslogPri() throws Exception { + SyslogFields testSubject; + Integer result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getSyslogPri(); + } + + @Test + public void testSetSyslogPri() throws Exception { + SyslogFields testSubject; + Integer syslogPri = 0; + + // default test + testSubject = createTestSubject(); + testSubject.setSyslogPri(syslogPri); + } + + @Test + public void testGetSyslogProc() throws Exception { + SyslogFields testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getSyslogProc(); + } + + @Test + public void testSetSyslogProc() throws Exception { + SyslogFields testSubject; + String syslogProc = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setSyslogProc(syslogProc); + } + + @Test + public void testGetSyslogProcId() throws Exception { + SyslogFields testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getSyslogProcId(); + } + + @Test + public void testSetSyslogProcId() throws Exception { + SyslogFields testSubject; + Double syslogProcId = null; + + // default test + testSubject = createTestSubject(); + testSubject.setSyslogProcId(syslogProcId); + } + + @Test + public void testGetSyslogSData() throws Exception { + SyslogFields testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getSyslogSData(); + } + + @Test + public void testSetSyslogSData() throws Exception { + SyslogFields testSubject; + String syslogSData = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setSyslogSData(syslogSData); + } + + @Test + public void testGetSyslogSdId() throws Exception { + SyslogFields testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getSyslogSdId(); + } + + @Test + public void testSetSyslogSdId() throws Exception { + SyslogFields testSubject; + String syslogSdId = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setSyslogSdId(syslogSdId); + } + + @Test + public void testGetSyslogSev() throws Exception { + SyslogFields testSubject; + SyslogSev result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getSyslogSev(); + } + + @Test + public void testSetSyslogSev() throws Exception { + SyslogFields testSubject; + SyslogSev syslogSev = SyslogSev.ALERT; + + // default test + testSubject = createTestSubject(); + testSubject.setSyslogSev(syslogSev); + } + + @Test + public void testGetSyslogTag() throws Exception { + SyslogFields testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getSyslogTag(); + } + + @Test + public void testSetSyslogTag() throws Exception { + SyslogFields testSubject; + String syslogTag = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setSyslogTag(syslogTag); + } + + @Test + public void testGetSyslogTs() throws Exception { + SyslogFields testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getSyslogTs(); + } + + @Test + public void testSetSyslogTs() throws Exception { + SyslogFields testSubject; + String syslogTs = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setSyslogTs(syslogTs); + } + + @Test + public void testGetSyslogVer() throws Exception { + SyslogFields testSubject; + Double result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getSyslogVer(); + } + + @Test + public void testSetSyslogVer() throws Exception { + SyslogFields testSubject; + Double syslogVer = null; + + // default test + testSubject = createTestSubject(); + testSubject.setSyslogVer(syslogVer); + } + + @Test + public void testToString() throws Exception { + SyslogFields testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.toString(); + } + + @Test + public void testHashCode() throws Exception { + SyslogFields testSubject; + int result; + + // default test + testSubject = createTestSubject(); + result = testSubject.hashCode(); + } + + @Test + public void testEquals() throws Exception { + SyslogFields testSubject; + SyslogFields testSubject2; + Object other = null; + boolean result; + + // default test + testSubject = createTestSubject(); + testSubject2 = createTestSubject(); + result = testSubject.equals(other); + result = testSubject.equals(testSubject); + result = testSubject.equals(testSubject2); + assertNotNull(result); + } +} diff --git a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/ThresholdCrossingAlertFieldsTest.java b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/ThresholdCrossingAlertFieldsTest.java new file mode 100644 index 0000000..279738a --- /dev/null +++ b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/ThresholdCrossingAlertFieldsTest.java @@ -0,0 +1,403 @@ +/*- + * ============LICENSE_START======================================================= + * ONAP : DCAE + * ================================================================================ + * Copyright 2019 TechMahindra + * ================================================================================ + * 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========================================================= + */ + +package org.onap.dcaegen2.ves.domain.ves70; + +import static org.junit.Assert.assertEquals; +import static org.junit.Assert.assertNotNull; + +import java.util.List; + +import org.junit.Test; +import org.onap.dcaegen2.ves.domain.ves70.AdditionalParameter; +import org.onap.dcaegen2.ves.domain.ves70.AlarmAdditionalInformation; +import org.onap.dcaegen2.ves.domain.ves70.ThresholdCrossingAlertFields; +import org.onap.dcaegen2.ves.domain.ves70.ThresholdCrossingAlertFields.AlertAction; +import org.onap.dcaegen2.ves.domain.ves70.ThresholdCrossingAlertFields.AlertType; +import org.onap.dcaegen2.ves.domain.ves70.ThresholdCrossingAlertFields.ThresholdCrossingFieldsVersion; + + +public class ThresholdCrossingAlertFieldsTest { + + private ThresholdCrossingAlertFields createTestSubject() { + return new ThresholdCrossingAlertFields(); + } + + @Test + public void testGetAdditionalFields() throws Exception { + ThresholdCrossingAlertFields testSubject; + AlarmAdditionalInformation result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getAdditionalFields(); + } + + @Test + public void testSetAdditionalFields() throws Exception { + ThresholdCrossingAlertFields testSubject; + AlarmAdditionalInformation additionalFields = null; + + // default test + testSubject = createTestSubject(); + testSubject.setAdditionalFields(additionalFields); + } + + @Test + public void testGetAdditionalParameters() throws Exception { + ThresholdCrossingAlertFields testSubject; + List result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getAdditionalParameters(); + } + + @Test + public void testSetAdditionalParameters() throws Exception { + ThresholdCrossingAlertFields testSubject; + List additionalParameters = null; + + // default test + testSubject = createTestSubject(); + testSubject.setAdditionalParameters(additionalParameters); + } + + @Test + public void testGetAlertAction() throws Exception { + ThresholdCrossingAlertFields testSubject; + + AlertAction result; + + // default test + testSubject = createTestSubject(); + AlertAction alertAction = AlertAction.CLEAR; + testSubject.setAlertAction(alertAction); + result = testSubject.getAlertAction(); + assertEquals(alertAction, result); + } + + @Test + public void testSetAlertAction() throws Exception { + ThresholdCrossingAlertFields testSubject; + AlertAction alertAction = AlertAction.CLEAR; + + // default test + testSubject = createTestSubject(); + testSubject.setAlertAction(alertAction); + } + + @Test + public void testGetAlertDescription() throws Exception { + ThresholdCrossingAlertFields testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getAlertDescription(); + } + + @Test + public void testSetAlertDescription() throws Exception { + ThresholdCrossingAlertFields testSubject; + String alertDescription = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setAlertDescription(alertDescription); + } + + @Test + public void testGetAlertType() throws Exception { + ThresholdCrossingAlertFields testSubject; + AlertType result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getAlertType(); + } + + @Test + public void testSetAlertType() throws Exception { + ThresholdCrossingAlertFields testSubject; + AlertType alertType = AlertType.CARD_ANOMALY; + + // default test + testSubject = createTestSubject(); + testSubject.setAlertType(alertType); + } + + @Test + public void testGetAlertValue() throws Exception { + ThresholdCrossingAlertFields testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getAlertValue(); + } + + @Test + public void testSetAlertValue() throws Exception { + ThresholdCrossingAlertFields testSubject; + String alertValue = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setAlertValue(alertValue); + } + + @Test + public void testGetAssociatedAlertIdList() throws Exception { + ThresholdCrossingAlertFields testSubject; + List result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getAssociatedAlertIdList(); + } + + @Test + public void testSetAssociatedAlertIdList() throws Exception { + ThresholdCrossingAlertFields testSubject; + List associatedAlertIdList = null; + + // default test + testSubject = createTestSubject(); + testSubject.setAssociatedAlertIdList(associatedAlertIdList); + } + + @Test + public void testGetCollectionTimestamp() throws Exception { + ThresholdCrossingAlertFields testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getCollectionTimestamp(); + } + + @Test + public void testSetCollectionTimestamp() throws Exception { + ThresholdCrossingAlertFields testSubject; + String collectionTimestamp = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setCollectionTimestamp(collectionTimestamp); + } + + @Test + public void testGetDataCollector() throws Exception { + ThresholdCrossingAlertFields testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getDataCollector(); + } + + @Test + public void testSetDataCollector() throws Exception { + ThresholdCrossingAlertFields testSubject; + String dataCollector = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setDataCollector(dataCollector); + } + + @Test + public void testGetElementType() throws Exception { + ThresholdCrossingAlertFields testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getElementType(); + } + + @Test + public void testSetElementType() throws Exception { + ThresholdCrossingAlertFields testSubject; + String elementType = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setElementType(elementType); + } + + @Test + public void testGetEventSeverity() throws Exception { + ThresholdCrossingAlertFields testSubject; + + // default test + testSubject = createTestSubject(); + testSubject.setEventSeverity(ThresholdCrossingAlertFields.EventSeverity.MINOR); + ThresholdCrossingAlertFields.EventSeverity result = testSubject.getEventSeverity(); + assertEquals(ThresholdCrossingAlertFields.EventSeverity.MINOR, result); + } + + @Test + public void testSetEventSeverity() throws Exception { + ThresholdCrossingAlertFields testSubject; + ThresholdCrossingAlertFields.EventSeverity eventSeverity = + ThresholdCrossingAlertFields.EventSeverity.MINOR; + + // default test + testSubject = createTestSubject(); + testSubject.setEventSeverity(eventSeverity); + } + + @Test + public void testGetEventStartTimestamp() throws Exception { + ThresholdCrossingAlertFields testSubject; + + + // default test + testSubject = createTestSubject(); + testSubject.getEventStartTimestamp(); + } + + @Test + public void testSetEventStartTimestamp() throws Exception { + ThresholdCrossingAlertFields testSubject; + String eventStartTimestamp = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setEventStartTimestamp(eventStartTimestamp); + } + + @Test + public void testGetInterfaceName() throws Exception { + ThresholdCrossingAlertFields testSubject; + + // default test + testSubject = createTestSubject(); + testSubject.getInterfaceName(); + } + + @Test + public void testSetInterfaceName() throws Exception { + ThresholdCrossingAlertFields testSubject; + String interfaceName = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setInterfaceName(interfaceName); + } + + @Test + public void testGetNetworkService() throws Exception { + ThresholdCrossingAlertFields testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getNetworkService(); + } + + @Test + public void testSetNetworkService() throws Exception { + ThresholdCrossingAlertFields testSubject; + String networkService = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setNetworkService(networkService); + } + + @Test + public void testGetPossibleRootCause() throws Exception { + ThresholdCrossingAlertFields testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getPossibleRootCause(); + } + + @Test + public void testSetPossibleRootCause() throws Exception { + ThresholdCrossingAlertFields testSubject; + String possibleRootCause = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setPossibleRootCause(possibleRootCause); + } + + @Test + public void testGetThresholdCrossingFieldsVersion() throws Exception { + ThresholdCrossingAlertFields testSubject; + ThresholdCrossingFieldsVersion result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getThresholdCrossingFieldsVersion(); + } + + @Test + public void testSetThresholdCrossingFieldsVersion() throws Exception { + ThresholdCrossingAlertFields testSubject; + ThresholdCrossingFieldsVersion thresholdCrossingFieldsVersion = null; + + // default test + testSubject = createTestSubject(); + testSubject.setThresholdCrossingFieldsVersion(thresholdCrossingFieldsVersion); + } + + @Test + public void testToString() throws Exception { + ThresholdCrossingAlertFields testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.toString(); + } + + @Test + public void testHashCode() throws Exception { + ThresholdCrossingAlertFields testSubject; + int result; + + // default test + testSubject = createTestSubject(); + result = testSubject.hashCode(); + } + + @Test + public void testEquals() throws Exception { + ThresholdCrossingAlertFields testSubject; + ThresholdCrossingAlertFields testSubject2; + Object other = null; + boolean result; + + // default test + testSubject = createTestSubject(); + testSubject2 = createTestSubject(); + result = testSubject.equals(other); + result = testSubject.equals(testSubject); + result = testSubject.equals(testSubject2); + assertNotNull(result); + } +} diff --git a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/VendorNfNameFieldsTest.java b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/VendorNfNameFieldsTest.java new file mode 100644 index 0000000..33ce523 --- /dev/null +++ b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/VendorNfNameFieldsTest.java @@ -0,0 +1,130 @@ +/*- + * ============LICENSE_START======================================================= + * ONAP : DCAE + * ================================================================================ + * Copyright 2019 TechMahindra + * ================================================================================ + * 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========================================================= + */ + +package org.onap.dcaegen2.ves.domain.ves70; + +import static org.junit.Assert.assertNotNull; + +import org.junit.Test; +import org.onap.dcaegen2.ves.domain.ves70.VendorNfNameFields; + + +public class VendorNfNameFieldsTest { + + private VendorNfNameFields createTestSubject() { + return new VendorNfNameFields(); + } + + @Test + public void testGetVendorName() throws Exception { + VendorNfNameFields testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getVendorName(); + } + + @Test + public void testSetVendorName() throws Exception { + VendorNfNameFields testSubject; + String vendorName = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setVendorName(vendorName); + } + + @Test + public void testGetNfModuleName() throws Exception { + VendorNfNameFields testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getNfModuleName(); + } + + @Test + public void testSetNfModuleName() throws Exception { + VendorNfNameFields testSubject; + String nfModuleName = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setNfModuleName(nfModuleName); + } + + @Test + public void testGetNfName() throws Exception { + VendorNfNameFields testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getNfName(); + } + + @Test + public void testSetNfName() throws Exception { + VendorNfNameFields testSubject; + String nfName = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setNfName(nfName); + } + + @Test + public void testToString() throws Exception { + VendorNfNameFields testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.toString(); + } + + @Test + public void testHashCode() throws Exception { + VendorNfNameFields testSubject; + int result; + + // default test + testSubject = createTestSubject(); + result = testSubject.hashCode(); + } + + @Test + public void testEquals() throws Exception { + VendorNfNameFields testSubject; + VendorNfNameFields testSubject2; + Object other = null; + boolean result; + + // default test + testSubject = createTestSubject(); + testSubject2 = createTestSubject(); + result = testSubject.equals(other); + result = testSubject.equals(testSubject); + result = testSubject.equals(testSubject2); + assertNotNull(result); + } +} diff --git a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/VesEventTest.java b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/VesEventTest.java new file mode 100644 index 0000000..b84a085 --- /dev/null +++ b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/VesEventTest.java @@ -0,0 +1,114 @@ +/*- + * ============LICENSE_START======================================================= + * ONAP : DCAE + * ================================================================================ + * Copyright 2019 TechMahindra + * ================================================================================ + * 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========================================================= + */ + +package org.onap.dcaegen2.ves.domain.ves70; + +import static org.junit.Assert.assertNotNull; + +import java.util.Map; + +import org.junit.Test; +import org.onap.dcaegen2.ves.domain.ves70.Event; +import org.onap.dcaegen2.ves.domain.ves70.VesEvent; + + +public class VesEventTest { + + private VesEvent createTestSubject() { + return new VesEvent(); + } + + @Test + public void testGetEvent() throws Exception { + VesEvent testSubject; + Event result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getEvent(); + } + + @Test + public void testSetEvent() throws Exception { + VesEvent testSubject; + Event event = null; + + // default test + testSubject = createTestSubject(); + testSubject.setEvent(event); + } + + @Test + public void testToString() throws Exception { + VesEvent testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.toString(); + } + + @Test + public void testGetAdditionalProperties() throws Exception { + VesEvent testSubject; + Map result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getAdditionalProperties(); + } + + @Test + public void testSetAdditionalProperty() throws Exception { + VesEvent testSubject; + String name = ""; + Object value = null; + + // default test + testSubject = createTestSubject(); + testSubject.setAdditionalProperty(name, value); + } + + @Test + public void testHashCode() throws Exception { + VesEvent testSubject; + int result; + + // default test + testSubject = createTestSubject(); + result = testSubject.hashCode(); + } + + @Test + public void testEquals() throws Exception { + VesEvent testSubject; + VesEvent testSubject2; + Object other = null; + boolean result; + + // default test + testSubject = createTestSubject(); + testSubject2 = createTestSubject(); + result = testSubject.equals(other); + result = testSubject.equals(testSubject); + result = testSubject.equals(testSubject2); + assertNotNull(result); + } +} diff --git a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/VoiceQualityFieldsTest.java b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/VoiceQualityFieldsTest.java new file mode 100644 index 0000000..db0ab39 --- /dev/null +++ b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves70/VoiceQualityFieldsTest.java @@ -0,0 +1,254 @@ +/*- + * ============LICENSE_START======================================================= + * ONAP : DCAE + * ================================================================================ + * Copyright 2019 TechMahindra + * ================================================================================ + * 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========================================================= + */ + +package org.onap.dcaegen2.ves.domain.ves70; + +import static org.junit.Assert.assertNotNull; + +import org.junit.Test; +import org.onap.dcaegen2.ves.domain.ves70.AlarmAdditionalInformation; +import org.onap.dcaegen2.ves.domain.ves70.EndOfCallVqmSummaries; +import org.onap.dcaegen2.ves.domain.ves70.VendorNfNameFields; +import org.onap.dcaegen2.ves.domain.ves70.VoiceQualityFields; +import org.onap.dcaegen2.ves.domain.ves70.VoiceQualityFields.VoiceQualityFieldsVersion; + + +public class VoiceQualityFieldsTest { + + private VoiceQualityFields createTestSubject() { + return new VoiceQualityFields(); + } + + @Test + public void testGetAdditionalInformation() throws Exception { + VoiceQualityFields testSubject; + AlarmAdditionalInformation result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getAdditionalInformation(); + } + + @Test + public void testSetAdditionalInformation() throws Exception { + VoiceQualityFields testSubject; + AlarmAdditionalInformation additionalInformation = null; + + // default test + testSubject = createTestSubject(); + testSubject.setAdditionalInformation(additionalInformation); + } + + @Test + public void testGetCalleeSideCodec() throws Exception { + VoiceQualityFields testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getCalleeSideCodec(); + } + + @Test + public void testSetCalleeSideCodec() throws Exception { + VoiceQualityFields testSubject; + String calleeSideCodec = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setCalleeSideCodec(calleeSideCodec); + } + + @Test + public void testGetCallerSideCodec() throws Exception { + VoiceQualityFields testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getCallerSideCodec(); + } + + @Test + public void testSetCallerSideCodec() throws Exception { + VoiceQualityFields testSubject; + String callerSideCodec = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setCallerSideCodec(callerSideCodec); + } + + @Test + public void testGetCorrelator() throws Exception { + VoiceQualityFields testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getCorrelator(); + } + + @Test + public void testSetCorrelator() throws Exception { + VoiceQualityFields testSubject; + String correlator = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setCorrelator(correlator); + } + + @Test + public void testGetEndOfCallVqmSummaries() throws Exception { + VoiceQualityFields testSubject; + EndOfCallVqmSummaries result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getEndOfCallVqmSummaries(); + } + + @Test + public void testSetEndOfCallVqmSummaries() throws Exception { + VoiceQualityFields testSubject; + EndOfCallVqmSummaries endOfCallVqmSummaries = null; + + // default test + testSubject = createTestSubject(); + testSubject.setEndOfCallVqmSummaries(endOfCallVqmSummaries); + } + + @Test + public void testGetPhoneNumber() throws Exception { + VoiceQualityFields testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getPhoneNumber(); + } + + @Test + public void testSetPhoneNumber() throws Exception { + VoiceQualityFields testSubject; + String phoneNumber = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setPhoneNumber(phoneNumber); + } + + @Test + public void testGetMidCallRtcp() throws Exception { + VoiceQualityFields testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getMidCallRtcp(); + } + + @Test + public void testSetMidCallRtcp() throws Exception { + VoiceQualityFields testSubject; + String midCallRtcp = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setMidCallRtcp(midCallRtcp); + } + + @Test + public void testGetVendorNfNameFields() throws Exception { + VoiceQualityFields testSubject; + VendorNfNameFields result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getVendorNfNameFields(); + } + + @Test + public void testSetVendorNfNameFields() throws Exception { + VoiceQualityFields testSubject; + VendorNfNameFields vendorNfNameFields = null; + + // default test + testSubject = createTestSubject(); + testSubject.setVendorNfNameFields(vendorNfNameFields); + } + + @Test + public void testGetVoiceQualityFieldsVersion() throws Exception { + VoiceQualityFields testSubject; + VoiceQualityFieldsVersion result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getVoiceQualityFieldsVersion(); + } + + @Test + public void testSetVoiceQualityFieldsVersion() throws Exception { + VoiceQualityFields testSubject; + VoiceQualityFieldsVersion voiceQualityFieldsVersion = VoiceQualityFieldsVersion._4_0; + + // default test + testSubject = createTestSubject(); + testSubject.setVoiceQualityFieldsVersion(voiceQualityFieldsVersion); + } + + @Test + public void testToString() throws Exception { + VoiceQualityFields testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.toString(); + } + + @Test + public void testHashCode() throws Exception { + VoiceQualityFields testSubject; + int result; + + // default test + testSubject = createTestSubject(); + result = testSubject.hashCode(); + } + + @Test + public void testEquals() throws Exception { + VoiceQualityFields testSubject; + VoiceQualityFields testSubject2; + Object other = null; + boolean result; + + // default test + testSubject = createTestSubject(); + testSubject2 = createTestSubject(); + result = testSubject.equals(other); + result = testSubject.equals(testSubject); + result = testSubject.equals(testSubject2); + assertNotNull(result); + } +} diff --git a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/AdditionalMeasurementTest.java b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/AdditionalMeasurementTest.java deleted file mode 100644 index e1cb555..0000000 --- a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/AdditionalMeasurementTest.java +++ /dev/null @@ -1,106 +0,0 @@ -/* -* ============LICENSE_START======================================================= -* ONAP : DCAE -* ================================================================================ -* Copyright 2018 TechMahindra -*================================================================================= -* 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========================================================= -*/ - -package org.onap.dcaegen2.ves.domain.ves7_0; - -import static org.junit.Assert.assertNotNull; -import org.junit.Test; - -public class AdditionalMeasurementTest { - - private AdditionalMeasurement createTestSubject() { - return new AdditionalMeasurement(); - } - - @Test - public void testGetName() throws Exception { - AdditionalMeasurement testSubject; - - - // default test - testSubject = createTestSubject(); - testSubject.getName(); - } - - @Test - public void testSetName() throws Exception { - AdditionalMeasurement testSubject; - String name = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setName(name); - } - - @Test - public void testGetHashMap() throws Exception { - AdditionalMeasurement testSubject; - - // default test - testSubject = createTestSubject(); - testSubject.getHashMap(); - } - - @Test - public void testSetHashMap() throws Exception { - AdditionalMeasurement testSubject; - AlarmAdditionalInformation hashMap = null; - - // default test - testSubject = createTestSubject(); - testSubject.setHashMap(hashMap); - } - - @Test - public void testToString() throws Exception { - AdditionalMeasurement testSubject; - - - // default test - testSubject = createTestSubject(); - testSubject.toString(); - } - - @Test - public void testHashCode() throws Exception { - AdditionalMeasurement testSubject; - - - // default test - testSubject = createTestSubject(); - testSubject.hashCode(); - } - - @Test - public void testEquals() throws Exception { - AdditionalMeasurement testSubject; - AdditionalMeasurement testSubject2; - Object other = null; - boolean result; - // default test - testSubject = createTestSubject(); - testSubject2 = createTestSubject(); - result = testSubject.equals(other); - result = testSubject.equals(testSubject); - result = testSubject.equals(testSubject2); - assertNotNull(result); - - } -} diff --git a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/AdditionalObjectTest.java b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/AdditionalObjectTest.java deleted file mode 100644 index e0dd676..0000000 --- a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/AdditionalObjectTest.java +++ /dev/null @@ -1,189 +0,0 @@ -/* -* ============LICENSE_START======================================================= -* ONAP : DCAE -* ================================================================================ -* Copyright 2018 TechMahindra -*================================================================================= -* 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========================================================= -*/ - -package org.onap.dcaegen2.ves.domain.ves7_0; - -import static org.junit.Assert.assertNotNull; -import java.util.List; -import org.junit.Test; - - -public class AdditionalObjectTest { - - private AdditionalObject createTestSubject() { - return new AdditionalObject(); - } - - @Test - public void testGetObjectInstances() throws Exception { - AdditionalObject testSubject; - - // default test - testSubject = createTestSubject(); - testSubject.getObjectInstances(); - } - - @Test - public void testSetObjectInstances() throws Exception { - AdditionalObject testSubject; - List objectInstances = null; - - // default test - testSubject = createTestSubject(); - testSubject.setObjectInstances(objectInstances); - } - - @Test - public void testGetObjectName() throws Exception { - AdditionalObject testSubject; - - - // default test - testSubject = createTestSubject(); - testSubject.getObjectName(); - } - - @Test - public void testSetObjectName() throws Exception { - AdditionalObject testSubject; - String objectName = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setObjectName(objectName); - } - - @Test - public void testGetObjectSchema() throws Exception { - AdditionalObject testSubject; - - - // default test - testSubject = createTestSubject(); - testSubject.getObjectSchema(); - } - - @Test - public void testSetObjectSchema() throws Exception { - AdditionalObject testSubject; - String objectSchema = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setObjectSchema(objectSchema); - } - - @Test - public void testGetObjectSchemaUrl() throws Exception { - AdditionalObject testSubject; - - - // default test - testSubject = createTestSubject(); - testSubject.getObjectSchemaUrl(); - } - - @Test - public void testSetObjectSchemaUrl() throws Exception { - AdditionalObject testSubject; - String objectSchemaUrl = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setObjectSchemaUrl(objectSchemaUrl); - } - - @Test - public void testGetNfSubscribedObjectName() throws Exception { - AdditionalObject testSubject; - - - // default test - testSubject = createTestSubject(); - testSubject.getNfSubscribedObjectName(); - } - - @Test - public void testSetNfSubscribedObjectName() throws Exception { - AdditionalObject testSubject; - String nfSubscribedObjectName = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setNfSubscribedObjectName(nfSubscribedObjectName); - } - - @Test - public void testGetNfSubscriptionId() throws Exception { - AdditionalObject testSubject; - - - // default test - testSubject = createTestSubject(); - testSubject.getNfSubscriptionId(); - } - - @Test - public void testSetNfSubscriptionId() throws Exception { - AdditionalObject testSubject; - String nfSubscriptionId = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setNfSubscriptionId(nfSubscriptionId); - } - - @Test - public void testToString() throws Exception { - AdditionalObject testSubject; - - - // default test - testSubject = createTestSubject(); - testSubject.toString(); - } - - @Test - public void testHashCode() throws Exception { - AdditionalObject testSubject; - - - // default test - testSubject = createTestSubject(); - testSubject.hashCode(); - } - - @Test - public void testEquals() throws Exception { - AdditionalObject testSubject; - AdditionalObject testSubject2; - Object other = null; - boolean result; - - // default test - testSubject = createTestSubject(); - testSubject2 = createTestSubject(); - result = testSubject.equals(other); - result = testSubject.equals(testSubject); - result = testSubject.equals(testSubject2); - assertNotNull(result); - - } -} diff --git a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/AdditionalParameterTest.java b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/AdditionalParameterTest.java deleted file mode 100644 index 4b911cf..0000000 --- a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/AdditionalParameterTest.java +++ /dev/null @@ -1,127 +0,0 @@ -/* -* ============LICENSE_START======================================================= -* ONAP : DCAE -* ================================================================================ -* Copyright 2018 TechMahindra -*================================================================================= -* 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========================================================= -*/ - -package org.onap.dcaegen2.ves.domain.ves7_0; - -import org.junit.Test; -import org.onap.dcaegen2.ves.domain.ves7_0.AdditionalParameter.Criticality; - - -public class AdditionalParameterTest { - - private AdditionalParameter createTestSubject() { - return new AdditionalParameter(); - } - - @Test - public void getCriticalityTest() throws Exception { - AdditionalParameter testSubject; - Criticality result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getCriticality(); - } - - @Test - public void setCriticalityTest() throws Exception { - AdditionalParameter testSubject; - Criticality criticality = Criticality.CRIT; - - // default test - testSubject = createTestSubject(); - testSubject.setCriticality(criticality); - } - - @Test - public void getHashMapTest() throws Exception { - AdditionalParameter testSubject; - AlarmAdditionalInformation result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getHashMap(); - } - - @Test - public void setHashMapTest() throws Exception { - AdditionalParameter testSubject; - AlarmAdditionalInformation hashMap = null; - - // default test - testSubject = createTestSubject(); - testSubject.setHashMap(hashMap); - } - - @Test - public void getThresholdCrossedTest() throws Exception { - AdditionalParameter testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getThresholdCrossed(); - } - - @Test - public void setThresholdCrossedTest() throws Exception { - AdditionalParameter testSubject; - String thresholdCrossed = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setThresholdCrossed(thresholdCrossed); - } - - @Test - public void toStringTest() throws Exception { - AdditionalParameter testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.toString(); - } - - @Test - public void hashCodeTest() throws Exception { - AdditionalParameter testSubject; - int result; - - // default test - testSubject = createTestSubject(); - result = testSubject.hashCode(); - } - - @Test - public void equalsTest() throws Exception { - AdditionalParameter testSubject; - AdditionalParameter testSubject2; - Object other = null; - boolean result; - - // default test - testSubject = createTestSubject(); - testSubject2 = createTestSubject(); - result = testSubject.equals(other); - result = testSubject.equals(testSubject); - result = testSubject.equals(testSubject2); - } -} diff --git a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/AlarmAdditionalInformationTest.java b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/AlarmAdditionalInformationTest.java deleted file mode 100644 index 88f6eaa..0000000 --- a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/AlarmAdditionalInformationTest.java +++ /dev/null @@ -1,88 +0,0 @@ -/* -* ============LICENSE_START======================================================= -* ONAP : DCAE -* ================================================================================ -* Copyright 2018 TechMahindra -*================================================================================= -* 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========================================================= -*/ - -package org.onap.dcaegen2.ves.domain.ves7_0; - -import java.util.Map; -import org.junit.Test; - - -public class AlarmAdditionalInformationTest { - - private AlarmAdditionalInformation createTestSubject() { - return new AlarmAdditionalInformation(); - } - - @Test - public void testToString() throws Exception { - AlarmAdditionalInformation testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.toString(); - } - - @Test - public void testGetAdditionalProperties() throws Exception { - AlarmAdditionalInformation testSubject; - Map result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getAdditionalProperties(); - } - - @Test - public void testSetAdditionalProperty() throws Exception { - AlarmAdditionalInformation testSubject; - String name = ""; - String value = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setAdditionalProperty(name, value); - } - - @Test - public void testHashCode() throws Exception { - AlarmAdditionalInformation testSubject; - int result; - - // default test - testSubject = createTestSubject(); - result = testSubject.hashCode(); - } - - @Test - public void testEquals() throws Exception { - AlarmAdditionalInformation testSubject; - AlarmAdditionalInformation testSubject2; - Object other = null; - boolean result; - - // default test - testSubject = createTestSubject(); - testSubject2 = createTestSubject(); - result = testSubject.equals(other); - result = testSubject.equals(testSubject); - result = testSubject.equals(testSubject2); - } -} diff --git a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/CodecUsageArrayTest.java b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/CodecUsageArrayTest.java deleted file mode 100644 index 79741ae..0000000 --- a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/CodecUsageArrayTest.java +++ /dev/null @@ -1,108 +0,0 @@ -/* -* ============LICENSE_START======================================================= -* ONAP : DCAE -* ================================================================================ -* Copyright 2018 TechMahindra -*================================================================================= -* 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========================================================= -*/ - -package org.onap.dcaegen2.ves.domain.ves7_0; - -import static org.junit.Assert.assertNotNull; -import org.junit.Test; - - -public class CodecUsageArrayTest { - - private CodecUsageArray createTestSubject() { - return new CodecUsageArray(); - } - - @Test - public void testGetCodecIdentifier() throws Exception { - CodecUsageArray testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getCodecIdentifier(); - } - - @Test - public void testSetCodecIdentifier() throws Exception { - CodecUsageArray testSubject; - String codecIdentifier = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setCodecIdentifier(codecIdentifier); - } - - @Test - public void testGetNumberInUse() throws Exception { - CodecUsageArray testSubject; - Integer result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getNumberInUse(); - } - - @Test - public void testSetNumberInUse() throws Exception { - CodecUsageArray testSubject; - Integer numberInUse = 0; - - // default test - testSubject = createTestSubject(); - testSubject.setNumberInUse(numberInUse); - } - - @Test - public void testToString() throws Exception { - CodecUsageArray testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.toString(); - } - - @Test - public void testHashCode() throws Exception { - CodecUsageArray testSubject; - int result; - - // default test - testSubject = createTestSubject(); - result = testSubject.hashCode(); - } - - @Test - public void testEquals() throws Exception { - CodecUsageArray testSubject; - CodecUsageArray testSubject2; - Object other = null; - boolean result; - - // default test - testSubject = createTestSubject(); - testSubject2 = createTestSubject(); - result = testSubject.equals(other); - result = testSubject.equals(testSubject); - result = testSubject.equals(testSubject2); - assertNotNull(result); - } -} diff --git a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/CommonEventHeaderTest.java b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/CommonEventHeaderTest.java deleted file mode 100644 index 4eb9166..0000000 --- a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/CommonEventHeaderTest.java +++ /dev/null @@ -1,471 +0,0 @@ -/* -* ============LICENSE_START======================================================= -* ONAP : DCAE -* ================================================================================ -* Copyright 2018 TechMahindra -*================================================================================= -* 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========================================================= -*/ - -package org.onap.dcaegen2.ves.domain.ves7_0; - -import static org.junit.Assert.assertNotNull; -import org.junit.Test; -import org.onap.dcaegen2.ves.domain.ves7_0.CommonEventHeader.Domain; -import org.onap.dcaegen2.ves.domain.ves7_0.CommonEventHeader.VesEventListenerVersion; - - -public class CommonEventHeaderTest { - - private CommonEventHeader createTestSubject() { - return new CommonEventHeader(); - } - - @Test - public void testGetTs1() throws Exception { - CommonEventHeader testSubject; - long result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getTs1(); - } - - @Test - public void testSetTs1() throws Exception { - CommonEventHeader testSubject; - long ts1 = 123222; - - // default test - testSubject = createTestSubject(); - testSubject.setTs1(ts1); - } - - @Test - public void testGetDomain() throws Exception { - CommonEventHeader testSubject; - Domain result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getDomain(); - } - - @Test - public void testSetDomain() throws Exception { - CommonEventHeader testSubject; - Domain domain = CommonEventHeader.Domain.FAULT; - - // default test - testSubject = createTestSubject(); - testSubject.setDomain(domain); - } - - @Test - public void testGetEventId() throws Exception { - CommonEventHeader testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getEventId(); - } - - @Test - public void testSetEventId() throws Exception { - CommonEventHeader testSubject; - String eventId = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setEventId(eventId); - } - - @Test - public void testGetEventName() throws Exception { - CommonEventHeader testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getEventName(); - } - - @Test - public void testSetEventName() throws Exception { - CommonEventHeader testSubject; - String eventName = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setEventName(eventName); - } - - @Test - public void testGetEventType() throws Exception { - CommonEventHeader testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getEventType(); - } - - @Test - public void testSetEventType() throws Exception { - CommonEventHeader testSubject; - String eventType = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setEventType(eventType); - } - - @Test - public void testGetInternalHeaderFields() throws Exception { - CommonEventHeader testSubject; - InternalHeaderFields result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getInternalHeaderFields(); - } - - @Test - public void testSetInternalHeaderFields() throws Exception { - CommonEventHeader testSubject; - InternalHeaderFields internalHeaderFields = null; - - // default test - testSubject = createTestSubject(); - testSubject.setInternalHeaderFields(internalHeaderFields); - } - - @Test - public void testGetLastEpochMicrosec() throws Exception { - CommonEventHeader testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getLastEpochMicrosec(); - } - - @Test - public void testSetLastEpochMicrosec() throws Exception { - CommonEventHeader testSubject; - Double lastEpochMicrosec = null; - - // default test - testSubject = createTestSubject(); - testSubject.setLastEpochMicrosec(lastEpochMicrosec); - } - - @Test - public void testGetNfcNamingCode() throws Exception { - CommonEventHeader testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getNfcNamingCode(); - } - - @Test - public void testSetNfcNamingCode() throws Exception { - CommonEventHeader testSubject; - String nfcNamingCode = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setNfcNamingCode(nfcNamingCode); - } - - @Test - public void testGetNfNamingCode() throws Exception { - CommonEventHeader testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getNfNamingCode(); - } - - @Test - public void testSetNfNamingCode() throws Exception { - CommonEventHeader testSubject; - String nfNamingCode = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setNfNamingCode(nfNamingCode); - } - - @Test - public void testGetNfVendorName() throws Exception { - CommonEventHeader testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getNfVendorName(); - } - - @Test - public void testSetNfVendorName() throws Exception { - CommonEventHeader testSubject; - String nfVendorName = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setNfVendorName(nfVendorName); - } - - @Test - public void testGetPriority() throws Exception { - CommonEventHeader testSubject; - CommonEventHeader.Priority result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getPriority(); - } - - @Test - public void testSetPriority() throws Exception { - CommonEventHeader testSubject; - CommonEventHeader.Priority priority = CommonEventHeader.Priority.HIGH; - - // default test - testSubject = createTestSubject(); - testSubject.setPriority(priority); - } - - @Test - public void testGetReportingEntityId() throws Exception { - CommonEventHeader testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getReportingEntityId(); - } - - @Test - public void testSetReportingEntityId() throws Exception { - CommonEventHeader testSubject; - String reportingEntityId = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setReportingEntityId(reportingEntityId); - } - - @Test - public void testGetReportingEntityName() throws Exception { - CommonEventHeader testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getReportingEntityName(); - } - - @Test - public void testSetReportingEntityName() throws Exception { - CommonEventHeader testSubject; - String reportingEntityName = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setReportingEntityName(reportingEntityName); - } - - @Test - public void testGetSequence() throws Exception { - CommonEventHeader testSubject; - Integer result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getSequence(); - } - - @Test - public void testSetSequence() throws Exception { - CommonEventHeader testSubject; - Integer sequence = 0; - - // default test - testSubject = createTestSubject(); - testSubject.setSequence(sequence); - } - - @Test - public void testGetSourceId() throws Exception { - CommonEventHeader testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getSourceId(); - } - - @Test - public void testSetSourceId() throws Exception { - CommonEventHeader testSubject; - String sourceId = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setSourceId(sourceId); - } - - @Test - public void testGetSourceName() throws Exception { - CommonEventHeader testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getSourceName(); - } - - @Test - public void testSetSourceName() throws Exception { - CommonEventHeader testSubject; - String sourceName = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setSourceName(sourceName); - } - - @Test - public void testGetStartEpochMicrosec() throws Exception { - CommonEventHeader testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getStartEpochMicrosec(); - } - - @Test - public void testSetStartEpochMicrosec() throws Exception { - CommonEventHeader testSubject; - Double startEpochMicrosec = null; - - // default test - testSubject = createTestSubject(); - testSubject.setStartEpochMicrosec(startEpochMicrosec); - } - - @Test - public void testGetTimeZoneOffset() throws Exception { - CommonEventHeader testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getTimeZoneOffset(); - } - - @Test - public void testSetTimeZoneOffset() throws Exception { - CommonEventHeader testSubject; - String timeZoneOffset = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setTimeZoneOffset(timeZoneOffset); - } - - @Test - public void testGetVersion() throws Exception { - CommonEventHeader testSubject; - CommonEventHeader.Version result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getVersion(); - } - - @Test - public void testSetVersion() throws Exception { - CommonEventHeader testSubject; - CommonEventHeader.Version version = CommonEventHeader.Version._4_0_1; - - // default test - testSubject = createTestSubject(); - testSubject.setVersion(version); - } - - @Test - public void testGetVesEventListenerVersion() throws Exception { - CommonEventHeader testSubject; - VesEventListenerVersion result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getVesEventListenerVersion(); - } - - @Test - public void testSetVesEventListenerVersion() throws Exception { - CommonEventHeader testSubject; - VesEventListenerVersion vesEventListenerVersion = - CommonEventHeader.VesEventListenerVersion._7_0_1; - - // default test - testSubject = createTestSubject(); - testSubject.setVesEventListenerVersion(vesEventListenerVersion); - } - - @Test - public void testToString() throws Exception { - CommonEventHeader testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.toString(); - } - - @Test - public void testHashCode() throws Exception { - CommonEventHeader testSubject; - int result; - - // default test - testSubject = createTestSubject(); - result = testSubject.hashCode(); - } - - @Test - public void testEquals() throws Exception { - CommonEventHeader testSubject; - CommonEventHeader testSubject2; - Object other = null; - boolean result; - - // default test - testSubject = createTestSubject(); - testSubject2 = createTestSubject(); - result = testSubject.equals(other); - result = testSubject.equals(testSubject); - result = testSubject.equals(testSubject2); - assertNotNull(result); - } -} diff --git a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/CpuUsageArrayTest.java b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/CpuUsageArrayTest.java deleted file mode 100644 index 91b0fa7..0000000 --- a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/CpuUsageArrayTest.java +++ /dev/null @@ -1,407 +0,0 @@ -/* -* ============LICENSE_START======================================================= -* ONAP : DCAE -* ================================================================================ -* Copyright 2018 TechMahindra -*================================================================================= -* 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========================================================= -*/ -package org.onap.dcaegen2.ves.domain.ves7_0; - -import static org.junit.Assert.assertNotNull; -import org.junit.Test; - - -public class CpuUsageArrayTest { - - private CpuUsageArray createTestSubject() { - return new CpuUsageArray(); - } - - @Test - public void testGetCpuCapacityContention() throws Exception { - CpuUsageArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getCpuCapacityContention(); - } - - @Test - public void testSetCpuCapacityContention() throws Exception { - CpuUsageArray testSubject; - Double cpuCapacityContention = null; - - // default test - testSubject = createTestSubject(); - testSubject.setCpuCapacityContention(cpuCapacityContention); - } - - @Test - public void testGetCpuDemandAvg() throws Exception { - CpuUsageArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getCpuDemandAvg(); - } - - @Test - public void testSetCpuDemandAvg() throws Exception { - CpuUsageArray testSubject; - Double cpuDemandAvg = null; - - // default test - testSubject = createTestSubject(); - testSubject.setCpuDemandAvg(cpuDemandAvg); - } - - @Test - public void testGetCpuDemandMhz() throws Exception { - CpuUsageArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getCpuDemandMhz(); - } - - @Test - public void testSetCpuDemandMhz() throws Exception { - CpuUsageArray testSubject; - Double cpuDemandMhz = null; - - // default test - testSubject = createTestSubject(); - testSubject.setCpuDemandMhz(cpuDemandMhz); - } - - @Test - public void testGetCpuDemandPct() throws Exception { - CpuUsageArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getCpuDemandPct(); - } - - @Test - public void testSetCpuDemandPct() throws Exception { - CpuUsageArray testSubject; - Double cpuDemandPct = null; - - // default test - testSubject = createTestSubject(); - testSubject.setCpuDemandPct(cpuDemandPct); - } - - @Test - public void testGetCpuIdentifier() throws Exception { - CpuUsageArray testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getCpuIdentifier(); - } - - @Test - public void testSetCpuIdentifier() throws Exception { - CpuUsageArray testSubject; - String cpuIdentifier = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setCpuIdentifier(cpuIdentifier); - } - - @Test - public void testGetCpuIdle() throws Exception { - CpuUsageArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getCpuIdle(); - } - - @Test - public void testSetCpuIdle() throws Exception { - CpuUsageArray testSubject; - Double cpuIdle = null; - - // default test - testSubject = createTestSubject(); - testSubject.setCpuIdle(cpuIdle); - } - - @Test - public void testGetCpuLatencyAvg() throws Exception { - CpuUsageArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getCpuLatencyAvg(); - } - - @Test - public void testSetCpuLatencyAvg() throws Exception { - CpuUsageArray testSubject; - Double cpuLatencyAvg = null; - - // default test - testSubject = createTestSubject(); - testSubject.setCpuLatencyAvg(cpuLatencyAvg); - } - - @Test - public void testGetCpuOverheadAvg() throws Exception { - CpuUsageArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getCpuOverheadAvg(); - } - - @Test - public void testSetCpuOverheadAvg() throws Exception { - CpuUsageArray testSubject; - Double cpuOverheadAvg = null; - - // default test - testSubject = createTestSubject(); - testSubject.setCpuOverheadAvg(cpuOverheadAvg); - } - - @Test - public void testGetCpuSwapWaitTime() throws Exception { - CpuUsageArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getCpuSwapWaitTime(); - } - - @Test - public void testSetCpuSwapWaitTime() throws Exception { - CpuUsageArray testSubject; - Double cpuSwapWaitTime = null; - - // default test - testSubject = createTestSubject(); - testSubject.setCpuSwapWaitTime(cpuSwapWaitTime); - } - - @Test - public void testGetCpuUsageInterrupt() throws Exception { - CpuUsageArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getCpuUsageInterrupt(); - } - - @Test - public void testSetCpuUsageInterrupt() throws Exception { - CpuUsageArray testSubject; - Double cpuUsageInterrupt = null; - - // default test - testSubject = createTestSubject(); - testSubject.setCpuUsageInterrupt(cpuUsageInterrupt); - } - - @Test - public void testGetCpuUsageNice() throws Exception { - CpuUsageArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getCpuUsageNice(); - } - - @Test - public void testSetCpuUsageNice() throws Exception { - CpuUsageArray testSubject; - Double cpuUsageNice = null; - - // default test - testSubject = createTestSubject(); - testSubject.setCpuUsageNice(cpuUsageNice); - } - - @Test - public void testGetCpuUsageSoftIrq() throws Exception { - CpuUsageArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getCpuUsageSoftIrq(); - } - - @Test - public void testSetCpuUsageSoftIrq() throws Exception { - CpuUsageArray testSubject; - Double cpuUsageSoftIrq = null; - - // default test - testSubject = createTestSubject(); - testSubject.setCpuUsageSoftIrq(cpuUsageSoftIrq); - } - - @Test - public void testGetCpuUsageSteal() throws Exception { - CpuUsageArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getCpuUsageSteal(); - } - - @Test - public void testSetCpuUsageSteal() throws Exception { - CpuUsageArray testSubject; - Double cpuUsageSteal = null; - - // default test - testSubject = createTestSubject(); - testSubject.setCpuUsageSteal(cpuUsageSteal); - } - - @Test - public void testGetCpuUsageSystem() throws Exception { - CpuUsageArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getCpuUsageSystem(); - } - - @Test - public void testSetCpuUsageSystem() throws Exception { - CpuUsageArray testSubject; - Double cpuUsageSystem = null; - - // default test - testSubject = createTestSubject(); - testSubject.setCpuUsageSystem(cpuUsageSystem); - } - - @Test - public void testGetCpuUsageUser() throws Exception { - CpuUsageArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getCpuUsageUser(); - } - - @Test - public void testSetCpuUsageUser() throws Exception { - CpuUsageArray testSubject; - Double cpuUsageUser = null; - - // default test - testSubject = createTestSubject(); - testSubject.setCpuUsageUser(cpuUsageUser); - } - - @Test - public void testGetCpuWait() throws Exception { - CpuUsageArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getCpuWait(); - } - - @Test - public void testSetCpuWait() throws Exception { - CpuUsageArray testSubject; - Double cpuWait = null; - - // default test - testSubject = createTestSubject(); - testSubject.setCpuWait(cpuWait); - } - - @Test - public void testGetPercentUsage() throws Exception { - CpuUsageArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getPercentUsage(); - } - - @Test - public void testSetPercentUsage() throws Exception { - CpuUsageArray testSubject; - Double percentUsage = null; - - // default test - testSubject = createTestSubject(); - testSubject.setPercentUsage(percentUsage); - } - - @Test - public void testToString() throws Exception { - CpuUsageArray testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.toString(); - } - - @Test - public void testHashCode() throws Exception { - CpuUsageArray testSubject; - int result; - - // default test - testSubject = createTestSubject(); - result = testSubject.hashCode(); - } - - @Test - public void testEquals() throws Exception { - CpuUsageArray testSubject; - CpuUsageArray testSubject2; - Object other = null; - boolean result; - - // default test - testSubject = createTestSubject(); - testSubject2 = createTestSubject(); - result = testSubject.equals(other); - result = testSubject.equals(testSubject); - result = testSubject.equals(testSubject2); - assertNotNull(result); - } -} diff --git a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/DiskUsageArrayTest.java b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/DiskUsageArrayTest.java deleted file mode 100644 index b0fc836..0000000 --- a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/DiskUsageArrayTest.java +++ /dev/null @@ -1,1167 +0,0 @@ -/* -* ============LICENSE_START======================================================= -* ONAP : DCAE -* ================================================================================ -* Copyright 2018 TechMahindra -*================================================================================= -* 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========================================================= -*/ -package org.onap.dcaegen2.ves.domain.ves7_0; - -import static org.junit.Assert.assertNotNull; -import org.junit.Test; - - -public class DiskUsageArrayTest { - - private DiskUsageArray createTestSubject() { - return new DiskUsageArray(); - } - - @Test - public void testGetDiskBusResets() throws Exception { - DiskUsageArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getDiskBusResets(); - } - - @Test - public void testSetDiskBusResets() throws Exception { - DiskUsageArray testSubject; - Double diskBusResets = null; - - // default test - testSubject = createTestSubject(); - testSubject.setDiskBusResets(diskBusResets); - } - - @Test - public void testGetDiskCommandsAborted() throws Exception { - DiskUsageArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getDiskCommandsAborted(); - } - - @Test - public void testSetDiskCommandsAborted() throws Exception { - DiskUsageArray testSubject; - Double diskCommandsAborted = null; - - // default test - testSubject = createTestSubject(); - testSubject.setDiskCommandsAborted(diskCommandsAborted); - } - - @Test - public void testGetDiskCommandsAvg() throws Exception { - DiskUsageArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getDiskCommandsAvg(); - } - - @Test - public void testSetDiskCommandsAvg() throws Exception { - DiskUsageArray testSubject; - Double diskCommandsAvg = null; - - // default test - testSubject = createTestSubject(); - testSubject.setDiskCommandsAvg(diskCommandsAvg); - } - - @Test - public void testGetDiskFlushRequests() throws Exception { - DiskUsageArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getDiskFlushRequests(); - } - - @Test - public void testSetDiskFlushRequests() throws Exception { - DiskUsageArray testSubject; - Double diskFlushRequests = null; - - // default test - testSubject = createTestSubject(); - testSubject.setDiskFlushRequests(diskFlushRequests); - } - - @Test - public void testGetDiskFlushTime() throws Exception { - DiskUsageArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getDiskFlushTime(); - } - - @Test - public void testSetDiskFlushTime() throws Exception { - DiskUsageArray testSubject; - Double diskFlushTime = null; - - // default test - testSubject = createTestSubject(); - testSubject.setDiskFlushTime(diskFlushTime); - } - - @Test - public void testGetDiskIdentifier() throws Exception { - DiskUsageArray testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getDiskIdentifier(); - } - - @Test - public void testSetDiskIdentifier() throws Exception { - DiskUsageArray testSubject; - String diskIdentifier = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setDiskIdentifier(diskIdentifier); - } - - @Test - public void testGetDiskIoTimeAvg() throws Exception { - DiskUsageArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getDiskIoTimeAvg(); - } - - @Test - public void testSetDiskIoTimeAvg() throws Exception { - DiskUsageArray testSubject; - Double diskIoTimeAvg = null; - - // default test - testSubject = createTestSubject(); - testSubject.setDiskIoTimeAvg(diskIoTimeAvg); - } - - @Test - public void testGetDiskIoTimeLast() throws Exception { - DiskUsageArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getDiskIoTimeLast(); - } - - @Test - public void testSetDiskIoTimeLast() throws Exception { - DiskUsageArray testSubject; - Double diskIoTimeLast = null; - - // default test - testSubject = createTestSubject(); - testSubject.setDiskIoTimeLast(diskIoTimeLast); - } - - @Test - public void testGetDiskIoTimeMax() throws Exception { - DiskUsageArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getDiskIoTimeMax(); - } - - @Test - public void testSetDiskIoTimeMax() throws Exception { - DiskUsageArray testSubject; - Double diskIoTimeMax = null; - - // default test - testSubject = createTestSubject(); - testSubject.setDiskIoTimeMax(diskIoTimeMax); - } - - @Test - public void testGetDiskIoTimeMin() throws Exception { - DiskUsageArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getDiskIoTimeMin(); - } - - @Test - public void testSetDiskIoTimeMin() throws Exception { - DiskUsageArray testSubject; - Double diskIoTimeMin = null; - - // default test - testSubject = createTestSubject(); - testSubject.setDiskIoTimeMin(diskIoTimeMin); - } - - @Test - public void testGetDiskMergedReadAvg() throws Exception { - DiskUsageArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getDiskMergedReadAvg(); - } - - @Test - public void testSetDiskMergedReadAvg() throws Exception { - DiskUsageArray testSubject; - Double diskMergedReadAvg = null; - - // default test - testSubject = createTestSubject(); - testSubject.setDiskMergedReadAvg(diskMergedReadAvg); - } - - @Test - public void testGetDiskMergedReadLast() throws Exception { - DiskUsageArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getDiskMergedReadLast(); - } - - @Test - public void testSetDiskMergedReadLast() throws Exception { - DiskUsageArray testSubject; - Double diskMergedReadLast = null; - - // default test - testSubject = createTestSubject(); - testSubject.setDiskMergedReadLast(diskMergedReadLast); - } - - @Test - public void testGetDiskMergedReadMax() throws Exception { - DiskUsageArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getDiskMergedReadMax(); - } - - @Test - public void testSetDiskMergedReadMax() throws Exception { - DiskUsageArray testSubject; - Double diskMergedReadMax = null; - - // default test - testSubject = createTestSubject(); - testSubject.setDiskMergedReadMax(diskMergedReadMax); - } - - @Test - public void testGetDiskMergedReadMin() throws Exception { - DiskUsageArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getDiskMergedReadMin(); - } - - @Test - public void testSetDiskMergedReadMin() throws Exception { - DiskUsageArray testSubject; - Double diskMergedReadMin = null; - - // default test - testSubject = createTestSubject(); - testSubject.setDiskMergedReadMin(diskMergedReadMin); - } - - @Test - public void testGetDiskMergedWriteAvg() throws Exception { - DiskUsageArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getDiskMergedWriteAvg(); - } - - @Test - public void testSetDiskMergedWriteAvg() throws Exception { - DiskUsageArray testSubject; - Double diskMergedWriteAvg = null; - - // default test - testSubject = createTestSubject(); - testSubject.setDiskMergedWriteAvg(diskMergedWriteAvg); - } - - @Test - public void testGetDiskMergedWriteLast() throws Exception { - DiskUsageArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getDiskMergedWriteLast(); - } - - @Test - public void testSetDiskMergedWriteLast() throws Exception { - DiskUsageArray testSubject; - Double diskMergedWriteLast = null; - - // default test - testSubject = createTestSubject(); - testSubject.setDiskMergedWriteLast(diskMergedWriteLast); - } - - @Test - public void testGetDiskMergedWriteMax() throws Exception { - DiskUsageArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getDiskMergedWriteMax(); - } - - @Test - public void testSetDiskMergedWriteMax() throws Exception { - DiskUsageArray testSubject; - Double diskMergedWriteMax = null; - - // default test - testSubject = createTestSubject(); - testSubject.setDiskMergedWriteMax(diskMergedWriteMax); - } - - @Test - public void testGetDiskMergedWriteMin() throws Exception { - DiskUsageArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getDiskMergedWriteMin(); - } - - @Test - public void testSetDiskMergedWriteMin() throws Exception { - DiskUsageArray testSubject; - Double diskMergedWriteMin = null; - - // default test - testSubject = createTestSubject(); - testSubject.setDiskMergedWriteMin(diskMergedWriteMin); - } - - @Test - public void testGetDiskOctetsReadAvg() throws Exception { - DiskUsageArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getDiskOctetsReadAvg(); - } - - @Test - public void testSetDiskOctetsReadAvg() throws Exception { - DiskUsageArray testSubject; - Double diskOctetsReadAvg = null; - - // default test - testSubject = createTestSubject(); - testSubject.setDiskOctetsReadAvg(diskOctetsReadAvg); - } - - @Test - public void testGetDiskOctetsReadLast() throws Exception { - DiskUsageArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getDiskOctetsReadLast(); - } - - @Test - public void testSetDiskOctetsReadLast() throws Exception { - DiskUsageArray testSubject; - Double diskOctetsReadLast = null; - - // default test - testSubject = createTestSubject(); - testSubject.setDiskOctetsReadLast(diskOctetsReadLast); - } - - @Test - public void testGetDiskOctetsReadMax() throws Exception { - DiskUsageArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getDiskOctetsReadMax(); - } - - @Test - public void testSetDiskOctetsReadMax() throws Exception { - DiskUsageArray testSubject; - Double diskOctetsReadMax = null; - - // default test - testSubject = createTestSubject(); - testSubject.setDiskOctetsReadMax(diskOctetsReadMax); - } - - @Test - public void testGetDiskOctetsReadMin() throws Exception { - DiskUsageArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getDiskOctetsReadMin(); - } - - @Test - public void testSetDiskOctetsReadMin() throws Exception { - DiskUsageArray testSubject; - Double diskOctetsReadMin = null; - - // default test - testSubject = createTestSubject(); - testSubject.setDiskOctetsReadMin(diskOctetsReadMin); - } - - @Test - public void testGetDiskOctetsWriteAvg() throws Exception { - DiskUsageArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getDiskOctetsWriteAvg(); - } - - @Test - public void testSetDiskOctetsWriteAvg() throws Exception { - DiskUsageArray testSubject; - Double diskOctetsWriteAvg = null; - - // default test - testSubject = createTestSubject(); - testSubject.setDiskOctetsWriteAvg(diskOctetsWriteAvg); - } - - @Test - public void testGetDiskOctetsWriteLast() throws Exception { - DiskUsageArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getDiskOctetsWriteLast(); - } - - @Test - public void testSetDiskOctetsWriteLast() throws Exception { - DiskUsageArray testSubject; - Double diskOctetsWriteLast = null; - - // default test - testSubject = createTestSubject(); - testSubject.setDiskOctetsWriteLast(diskOctetsWriteLast); - } - - @Test - public void testGetDiskOctetsWriteMax() throws Exception { - DiskUsageArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getDiskOctetsWriteMax(); - } - - @Test - public void testSetDiskOctetsWriteMax() throws Exception { - DiskUsageArray testSubject; - Double diskOctetsWriteMax = null; - - // default test - testSubject = createTestSubject(); - testSubject.setDiskOctetsWriteMax(diskOctetsWriteMax); - } - - @Test - public void testGetDiskOctetsWriteMin() throws Exception { - DiskUsageArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getDiskOctetsWriteMin(); - } - - @Test - public void testSetDiskOctetsWriteMin() throws Exception { - DiskUsageArray testSubject; - Double diskOctetsWriteMin = null; - - // default test - testSubject = createTestSubject(); - testSubject.setDiskOctetsWriteMin(diskOctetsWriteMin); - } - - @Test - public void testGetDiskOpsReadAvg() throws Exception { - DiskUsageArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getDiskOpsReadAvg(); - } - - @Test - public void testSetDiskOpsReadAvg() throws Exception { - DiskUsageArray testSubject; - Double diskOpsReadAvg = null; - - // default test - testSubject = createTestSubject(); - testSubject.setDiskOpsReadAvg(diskOpsReadAvg); - } - - @Test - public void testGetDiskOpsReadLast() throws Exception { - DiskUsageArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getDiskOpsReadLast(); - } - - @Test - public void testSetDiskOpsReadLast() throws Exception { - DiskUsageArray testSubject; - Double diskOpsReadLast = null; - - // default test - testSubject = createTestSubject(); - testSubject.setDiskOpsReadLast(diskOpsReadLast); - } - - @Test - public void testGetDiskOpsReadMax() throws Exception { - DiskUsageArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getDiskOpsReadMax(); - } - - @Test - public void testSetDiskOpsReadMax() throws Exception { - DiskUsageArray testSubject; - Double diskOpsReadMax = null; - - // default test - testSubject = createTestSubject(); - testSubject.setDiskOpsReadMax(diskOpsReadMax); - } - - @Test - public void testGetDiskOpsReadMin() throws Exception { - DiskUsageArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getDiskOpsReadMin(); - } - - @Test - public void testSetDiskOpsReadMin() throws Exception { - DiskUsageArray testSubject; - Double diskOpsReadMin = null; - - // default test - testSubject = createTestSubject(); - testSubject.setDiskOpsReadMin(diskOpsReadMin); - } - - @Test - public void testGetDiskOpsWriteAvg() throws Exception { - DiskUsageArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getDiskOpsWriteAvg(); - } - - @Test - public void testSetDiskOpsWriteAvg() throws Exception { - DiskUsageArray testSubject; - Double diskOpsWriteAvg = null; - - // default test - testSubject = createTestSubject(); - testSubject.setDiskOpsWriteAvg(diskOpsWriteAvg); - } - - @Test - public void testGetDiskOpsWriteLast() throws Exception { - DiskUsageArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getDiskOpsWriteLast(); - } - - @Test - public void testSetDiskOpsWriteLast() throws Exception { - DiskUsageArray testSubject; - Double diskOpsWriteLast = null; - - // default test - testSubject = createTestSubject(); - testSubject.setDiskOpsWriteLast(diskOpsWriteLast); - } - - @Test - public void testGetDiskOpsWriteMax() throws Exception { - DiskUsageArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getDiskOpsWriteMax(); - } - - @Test - public void testSetDiskOpsWriteMax() throws Exception { - DiskUsageArray testSubject; - Double diskOpsWriteMax = null; - - // default test - testSubject = createTestSubject(); - testSubject.setDiskOpsWriteMax(diskOpsWriteMax); - } - - @Test - public void testGetDiskOpsWriteMin() throws Exception { - DiskUsageArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getDiskOpsWriteMin(); - } - - @Test - public void testSetDiskOpsWriteMin() throws Exception { - DiskUsageArray testSubject; - Double diskOpsWriteMin = null; - - // default test - testSubject = createTestSubject(); - testSubject.setDiskOpsWriteMin(diskOpsWriteMin); - } - - @Test - public void testGetDiskPendingOperationsAvg() throws Exception { - DiskUsageArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getDiskPendingOperationsAvg(); - } - - @Test - public void testSetDiskPendingOperationsAvg() throws Exception { - DiskUsageArray testSubject; - Double diskPendingOperationsAvg = null; - - // default test - testSubject = createTestSubject(); - testSubject.setDiskPendingOperationsAvg(diskPendingOperationsAvg); - } - - @Test - public void testGetDiskPendingOperationsLast() throws Exception { - DiskUsageArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getDiskPendingOperationsLast(); - } - - @Test - public void testSetDiskPendingOperationsLast() throws Exception { - DiskUsageArray testSubject; - Double diskPendingOperationsLast = null; - - // default test - testSubject = createTestSubject(); - testSubject.setDiskPendingOperationsLast(diskPendingOperationsLast); - } - - @Test - public void testGetDiskPendingOperationsMax() throws Exception { - DiskUsageArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getDiskPendingOperationsMax(); - } - - @Test - public void testSetDiskPendingOperationsMax() throws Exception { - DiskUsageArray testSubject; - Double diskPendingOperationsMax = null; - - // default test - testSubject = createTestSubject(); - testSubject.setDiskPendingOperationsMax(diskPendingOperationsMax); - } - - @Test - public void testGetDiskPendingOperationsMin() throws Exception { - DiskUsageArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getDiskPendingOperationsMin(); - } - - @Test - public void testSetDiskPendingOperationsMin() throws Exception { - DiskUsageArray testSubject; - Double diskPendingOperationsMin = null; - - // default test - testSubject = createTestSubject(); - testSubject.setDiskPendingOperationsMin(diskPendingOperationsMin); - } - - @Test - public void testGetDiskReadCommandsAvg() throws Exception { - DiskUsageArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getDiskReadCommandsAvg(); - } - - @Test - public void testSetDiskReadCommandsAvg() throws Exception { - DiskUsageArray testSubject; - Double diskReadCommandsAvg = null; - - // default test - testSubject = createTestSubject(); - testSubject.setDiskReadCommandsAvg(diskReadCommandsAvg); - } - - @Test - public void testGetDiskTime() throws Exception { - DiskUsageArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getDiskTime(); - } - - @Test - public void testSetDiskTime() throws Exception { - DiskUsageArray testSubject; - Double diskTime = null; - - // default test - testSubject = createTestSubject(); - testSubject.setDiskTime(diskTime); - } - - @Test - public void testGetDiskTimeReadAvg() throws Exception { - DiskUsageArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getDiskTimeReadAvg(); - } - - @Test - public void testSetDiskTimeReadAvg() throws Exception { - DiskUsageArray testSubject; - Double diskTimeReadAvg = null; - - // default test - testSubject = createTestSubject(); - testSubject.setDiskTimeReadAvg(diskTimeReadAvg); - } - - @Test - public void testGetDiskTimeReadLast() throws Exception { - DiskUsageArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getDiskTimeReadLast(); - } - - @Test - public void testSetDiskTimeReadLast() throws Exception { - DiskUsageArray testSubject; - Double diskTimeReadLast = null; - - // default test - testSubject = createTestSubject(); - testSubject.setDiskTimeReadLast(diskTimeReadLast); - } - - @Test - public void testGetDiskTimeReadMax() throws Exception { - DiskUsageArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getDiskTimeReadMax(); - } - - @Test - public void testSetDiskTimeReadMax() throws Exception { - DiskUsageArray testSubject; - Double diskTimeReadMax = null; - - // default test - testSubject = createTestSubject(); - testSubject.setDiskTimeReadMax(diskTimeReadMax); - } - - @Test - public void testGetDiskTimeReadMin() throws Exception { - DiskUsageArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getDiskTimeReadMin(); - } - - @Test - public void testSetDiskTimeReadMin() throws Exception { - DiskUsageArray testSubject; - Double diskTimeReadMin = null; - - // default test - testSubject = createTestSubject(); - testSubject.setDiskTimeReadMin(diskTimeReadMin); - } - - @Test - public void testGetDiskTimeWriteAvg() throws Exception { - DiskUsageArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getDiskTimeWriteAvg(); - } - - @Test - public void testSetDiskTimeWriteAvg() throws Exception { - DiskUsageArray testSubject; - Double diskTimeWriteAvg = null; - - // default test - testSubject = createTestSubject(); - testSubject.setDiskTimeWriteAvg(diskTimeWriteAvg); - } - - @Test - public void testGetDiskTimeWriteLast() throws Exception { - DiskUsageArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getDiskTimeWriteLast(); - } - - @Test - public void testSetDiskTimeWriteLast() throws Exception { - DiskUsageArray testSubject; - Double diskTimeWriteLast = null; - - // default test - testSubject = createTestSubject(); - testSubject.setDiskTimeWriteLast(diskTimeWriteLast); - } - - @Test - public void testGetDiskTimeWriteMax() throws Exception { - DiskUsageArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getDiskTimeWriteMax(); - } - - @Test - public void testSetDiskTimeWriteMax() throws Exception { - DiskUsageArray testSubject; - Double diskTimeWriteMax = null; - - // default test - testSubject = createTestSubject(); - testSubject.setDiskTimeWriteMax(diskTimeWriteMax); - } - - @Test - public void testGetDiskTimeWriteMin() throws Exception { - DiskUsageArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getDiskTimeWriteMin(); - } - - @Test - public void testSetDiskTimeWriteMin() throws Exception { - DiskUsageArray testSubject; - Double diskTimeWriteMin = null; - - // default test - testSubject = createTestSubject(); - testSubject.setDiskTimeWriteMin(diskTimeWriteMin); - } - - @Test - public void testGetDiskTotalReadLatencyAvg() throws Exception { - DiskUsageArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getDiskTotalReadLatencyAvg(); - } - - @Test - public void testSetDiskTotalReadLatencyAvg() throws Exception { - DiskUsageArray testSubject; - Double diskTotalReadLatencyAvg = null; - - // default test - testSubject = createTestSubject(); - testSubject.setDiskTotalReadLatencyAvg(diskTotalReadLatencyAvg); - } - - @Test - public void testGetDiskTotalWriteLatencyAvg() throws Exception { - DiskUsageArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getDiskTotalWriteLatencyAvg(); - } - - @Test - public void testSetDiskTotalWriteLatencyAvg() throws Exception { - DiskUsageArray testSubject; - Double diskTotalWriteLatencyAvg = null; - - // default test - testSubject = createTestSubject(); - testSubject.setDiskTotalWriteLatencyAvg(diskTotalWriteLatencyAvg); - } - - @Test - public void testGetDiskWeightedIoTimeAvg() throws Exception { - DiskUsageArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getDiskWeightedIoTimeAvg(); - } - - @Test - public void testSetDiskWeightedIoTimeAvg() throws Exception { - DiskUsageArray testSubject; - Double diskWeightedIoTimeAvg = null; - - // default test - testSubject = createTestSubject(); - testSubject.setDiskWeightedIoTimeAvg(diskWeightedIoTimeAvg); - } - - @Test - public void testGetDiskWeightedIoTimeLast() throws Exception { - DiskUsageArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getDiskWeightedIoTimeLast(); - } - - @Test - public void testSetDiskWeightedIoTimeLast() throws Exception { - DiskUsageArray testSubject; - Double diskWeightedIoTimeLast = null; - - // default test - testSubject = createTestSubject(); - testSubject.setDiskWeightedIoTimeLast(diskWeightedIoTimeLast); - } - - @Test - public void testGetDiskWeightedIoTimeMax() throws Exception { - DiskUsageArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getDiskWeightedIoTimeMax(); - } - - @Test - public void testSetDiskWeightedIoTimeMax() throws Exception { - DiskUsageArray testSubject; - Double diskWeightedIoTimeMax = null; - - // default test - testSubject = createTestSubject(); - testSubject.setDiskWeightedIoTimeMax(diskWeightedIoTimeMax); - } - - @Test - public void testGetDiskWeightedIoTimeMin() throws Exception { - DiskUsageArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getDiskWeightedIoTimeMin(); - } - - @Test - public void testSetDiskWeightedIoTimeMin() throws Exception { - DiskUsageArray testSubject; - Double diskWeightedIoTimeMin = null; - - // default test - testSubject = createTestSubject(); - testSubject.setDiskWeightedIoTimeMin(diskWeightedIoTimeMin); - } - - @Test - public void testGetDiskWriteCommandsAvg() throws Exception { - DiskUsageArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getDiskWriteCommandsAvg(); - } - - @Test - public void testSetDiskWriteCommandsAvg() throws Exception { - DiskUsageArray testSubject; - Double diskWriteCommandsAvg = null; - - // default test - testSubject = createTestSubject(); - testSubject.setDiskWriteCommandsAvg(diskWriteCommandsAvg); - } - - @Test - public void testToString() throws Exception { - DiskUsageArray testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.toString(); - } - - @Test - public void testHashCode() throws Exception { - DiskUsageArray testSubject; - int result; - - // default test - testSubject = createTestSubject(); - result = testSubject.hashCode(); - } - - @Test - public void testEquals() throws Exception { - DiskUsageArray testSubject; - DiskUsageArray testSubject2; - Object other = null; - boolean result; - - // default test - testSubject = createTestSubject(); - testSubject2 = createTestSubject(); - result = testSubject.equals(other); - result = testSubject.equals(testSubject); - result = testSubject.equals(testSubject2); - assertNotNull(result); - } -} diff --git a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/EndOfCallVqmSummariesTest.java b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/EndOfCallVqmSummariesTest.java deleted file mode 100644 index 91e18e5..0000000 --- a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/EndOfCallVqmSummariesTest.java +++ /dev/null @@ -1,648 +0,0 @@ -/* -* ============LICENSE_START======================================================= -* ONAP : DCAE -* ================================================================================ -* Copyright 2018 TechMahindra -*================================================================================= -* 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========================================================= -*/ -package org.onap.dcaegen2.ves.domain.ves7_0; - -import static org.junit.Assert.assertNotNull; -import org.junit.Test; -import org.onap.dcaegen2.ves.domain.ves7_0.EndOfCallVqmSummaries.EndpointDescription; - - -public class EndOfCallVqmSummariesTest { - - private EndOfCallVqmSummaries createTestSubject() { - return new EndOfCallVqmSummaries(); - } - - @Test - public void testGetAdjacencyName() throws Exception { - EndOfCallVqmSummaries testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getAdjacencyName(); - } - - @Test - public void testSetAdjacencyName() throws Exception { - EndOfCallVqmSummaries testSubject; - String adjacencyName = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setAdjacencyName(adjacencyName); - } - - @Test - public void testGetEndpointAverageJitter() throws Exception { - EndOfCallVqmSummaries testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getEndpointAverageJitter(); - } - - @Test - public void testSetEndpointAverageJitter() throws Exception { - EndOfCallVqmSummaries testSubject; - Double endpointAverageJitter = null; - - // default test - testSubject = createTestSubject(); - testSubject.setEndpointAverageJitter(endpointAverageJitter); - } - - @Test - public void testGetEndpointDescription() throws Exception { - EndOfCallVqmSummaries testSubject; - EndpointDescription result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getEndpointDescription(); - } - - @Test - public void testSetEndpointDescription() throws Exception { - EndOfCallVqmSummaries testSubject; - EndpointDescription endpointDescription = EndpointDescription.CALLEE; - - // default test - testSubject = createTestSubject(); - testSubject.setEndpointDescription(endpointDescription); - } - - @Test - public void testGetEndpointMaxJitter() throws Exception { - EndOfCallVqmSummaries testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getEndpointMaxJitter(); - } - - @Test - public void testSetEndpointMaxJitter() throws Exception { - EndOfCallVqmSummaries testSubject; - Double endpointMaxJitter = null; - - // default test - testSubject = createTestSubject(); - testSubject.setEndpointMaxJitter(endpointMaxJitter); - } - - @Test - public void testGetEndpointRtpOctetsDiscarded() throws Exception { - EndOfCallVqmSummaries testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getEndpointRtpOctetsDiscarded(); - } - - @Test - public void testSetEndpointRtpOctetsDiscarded() throws Exception { - EndOfCallVqmSummaries testSubject; - Double endpointRtpOctetsDiscarded = null; - - // default test - testSubject = createTestSubject(); - testSubject.setEndpointRtpOctetsDiscarded(endpointRtpOctetsDiscarded); - } - - @Test - public void testGetEndpointRtpOctetsLost() throws Exception { - EndOfCallVqmSummaries testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getEndpointRtpOctetsLost(); - } - - @Test - public void testSetEndpointRtpOctetsLost() throws Exception { - EndOfCallVqmSummaries testSubject; - Double endpointRtpOctetsLost = null; - - // default test - testSubject = createTestSubject(); - testSubject.setEndpointRtpOctetsLost(endpointRtpOctetsLost); - } - - @Test - public void testGetEndpointRtpOctetsReceived() throws Exception { - EndOfCallVqmSummaries testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getEndpointRtpOctetsReceived(); - } - - @Test - public void testSetEndpointRtpOctetsReceived() throws Exception { - EndOfCallVqmSummaries testSubject; - Double endpointRtpOctetsReceived = null; - - // default test - testSubject = createTestSubject(); - testSubject.setEndpointRtpOctetsReceived(endpointRtpOctetsReceived); - } - - @Test - public void testGetEndpointRtpOctetsSent() throws Exception { - EndOfCallVqmSummaries testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getEndpointRtpOctetsSent(); - } - - @Test - public void testSetEndpointRtpOctetsSent() throws Exception { - EndOfCallVqmSummaries testSubject; - Double endpointRtpOctetsSent = null; - - // default test - testSubject = createTestSubject(); - testSubject.setEndpointRtpOctetsSent(endpointRtpOctetsSent); - } - - @Test - public void testGetEndpointRtpPacketsDiscarded() throws Exception { - EndOfCallVqmSummaries testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getEndpointRtpPacketsDiscarded(); - } - - @Test - public void testSetEndpointRtpPacketsDiscarded() throws Exception { - EndOfCallVqmSummaries testSubject; - Double endpointRtpPacketsDiscarded = null; - - // default test - testSubject = createTestSubject(); - testSubject.setEndpointRtpPacketsDiscarded(endpointRtpPacketsDiscarded); - } - - @Test - public void testGetEndpointRtpPacketsLost() throws Exception { - EndOfCallVqmSummaries testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getEndpointRtpPacketsLost(); - } - - @Test - public void testSetEndpointRtpPacketsLost() throws Exception { - EndOfCallVqmSummaries testSubject; - Double endpointRtpPacketsLost = null; - - // default test - testSubject = createTestSubject(); - testSubject.setEndpointRtpPacketsLost(endpointRtpPacketsLost); - } - - @Test - public void testGetEndpointRtpPacketsReceived() throws Exception { - EndOfCallVqmSummaries testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getEndpointRtpPacketsReceived(); - } - - @Test - public void testSetEndpointRtpPacketsReceived() throws Exception { - EndOfCallVqmSummaries testSubject; - Double endpointRtpPacketsReceived = null; - - // default test - testSubject = createTestSubject(); - testSubject.setEndpointRtpPacketsReceived(endpointRtpPacketsReceived); - } - - @Test - public void testGetEndpointRtpPacketsSent() throws Exception { - EndOfCallVqmSummaries testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getEndpointRtpPacketsSent(); - } - - @Test - public void testSetEndpointRtpPacketsSent() throws Exception { - EndOfCallVqmSummaries testSubject; - Double endpointRtpPacketsSent = null; - - // default test - testSubject = createTestSubject(); - testSubject.setEndpointRtpPacketsSent(endpointRtpPacketsSent); - } - - @Test - public void testGetLocalAverageJitter() throws Exception { - EndOfCallVqmSummaries testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getLocalAverageJitter(); - } - - @Test - public void testSetLocalAverageJitter() throws Exception { - EndOfCallVqmSummaries testSubject; - Double localAverageJitter = null; - - // default test - testSubject = createTestSubject(); - testSubject.setLocalAverageJitter(localAverageJitter); - } - - @Test - public void testGetLocalAverageJitterBufferDelay() throws Exception { - EndOfCallVqmSummaries testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getLocalAverageJitterBufferDelay(); - } - - @Test - public void testSetLocalAverageJitterBufferDelay() throws Exception { - EndOfCallVqmSummaries testSubject; - Double localAverageJitterBufferDelay = null; - - // default test - testSubject = createTestSubject(); - testSubject.setLocalAverageJitterBufferDelay(localAverageJitterBufferDelay); - } - - @Test - public void testGetLocalMaxJitter() throws Exception { - EndOfCallVqmSummaries testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getLocalMaxJitter(); - } - - @Test - public void testSetLocalMaxJitter() throws Exception { - EndOfCallVqmSummaries testSubject; - Double localMaxJitter = null; - - // default test - testSubject = createTestSubject(); - testSubject.setLocalMaxJitter(localMaxJitter); - } - - @Test - public void testGetLocalMaxJitterBufferDelay() throws Exception { - EndOfCallVqmSummaries testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getLocalMaxJitterBufferDelay(); - } - - @Test - public void testSetLocalMaxJitterBufferDelay() throws Exception { - EndOfCallVqmSummaries testSubject; - Double localMaxJitterBufferDelay = null; - - // default test - testSubject = createTestSubject(); - testSubject.setLocalMaxJitterBufferDelay(localMaxJitterBufferDelay); - } - - @Test - public void testGetLocalRtpOctetsDiscarded() throws Exception { - EndOfCallVqmSummaries testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getLocalRtpOctetsDiscarded(); - } - - @Test - public void testSetLocalRtpOctetsDiscarded() throws Exception { - EndOfCallVqmSummaries testSubject; - Double localRtpOctetsDiscarded = null; - - // default test - testSubject = createTestSubject(); - testSubject.setLocalRtpOctetsDiscarded(localRtpOctetsDiscarded); - } - - @Test - public void testGetLocalRtpOctetsLost() throws Exception { - EndOfCallVqmSummaries testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getLocalRtpOctetsLost(); - } - - @Test - public void testSetLocalRtpOctetsLost() throws Exception { - EndOfCallVqmSummaries testSubject; - Double localRtpOctetsLost = null; - - // default test - testSubject = createTestSubject(); - testSubject.setLocalRtpOctetsLost(localRtpOctetsLost); - } - - @Test - public void testGetLocalRtpOctetsReceived() throws Exception { - EndOfCallVqmSummaries testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getLocalRtpOctetsReceived(); - } - - @Test - public void testSetLocalRtpOctetsReceived() throws Exception { - EndOfCallVqmSummaries testSubject; - Double localRtpOctetsReceived = null; - - // default test - testSubject = createTestSubject(); - testSubject.setLocalRtpOctetsReceived(localRtpOctetsReceived); - } - - @Test - public void testGetLocalRtpOctetsSent() throws Exception { - EndOfCallVqmSummaries testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getLocalRtpOctetsSent(); - } - - @Test - public void testSetLocalRtpOctetsSent() throws Exception { - EndOfCallVqmSummaries testSubject; - Double localRtpOctetsSent = null; - - // default test - testSubject = createTestSubject(); - testSubject.setLocalRtpOctetsSent(localRtpOctetsSent); - } - - @Test - public void testGetLocalRtpPacketsDiscarded() throws Exception { - EndOfCallVqmSummaries testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getLocalRtpPacketsDiscarded(); - } - - @Test - public void testSetLocalRtpPacketsDiscarded() throws Exception { - EndOfCallVqmSummaries testSubject; - Double localRtpPacketsDiscarded = null; - - // default test - testSubject = createTestSubject(); - testSubject.setLocalRtpPacketsDiscarded(localRtpPacketsDiscarded); - } - - @Test - public void testGetLocalRtpPacketsLost() throws Exception { - EndOfCallVqmSummaries testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getLocalRtpPacketsLost(); - } - - @Test - public void testSetLocalRtpPacketsLost() throws Exception { - EndOfCallVqmSummaries testSubject; - Double localRtpPacketsLost = null; - - // default test - testSubject = createTestSubject(); - testSubject.setLocalRtpPacketsLost(localRtpPacketsLost); - } - - @Test - public void testGetLocalRtpPacketsReceived() throws Exception { - EndOfCallVqmSummaries testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getLocalRtpPacketsReceived(); - } - - @Test - public void testSetLocalRtpPacketsReceived() throws Exception { - EndOfCallVqmSummaries testSubject; - Double localRtpPacketsReceived = null; - - // default test - testSubject = createTestSubject(); - testSubject.setLocalRtpPacketsReceived(localRtpPacketsReceived); - } - - @Test - public void testGetLocalRtpPacketsSent() throws Exception { - EndOfCallVqmSummaries testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getLocalRtpPacketsSent(); - } - - @Test - public void testSetLocalRtpPacketsSent() throws Exception { - EndOfCallVqmSummaries testSubject; - Double localRtpPacketsSent = null; - - // default test - testSubject = createTestSubject(); - testSubject.setLocalRtpPacketsSent(localRtpPacketsSent); - } - - @Test - public void testGetMosCqe() throws Exception { - EndOfCallVqmSummaries testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getMosCqe(); - } - - @Test - public void testSetMosCqe() throws Exception { - EndOfCallVqmSummaries testSubject; - Double mosCqe = null; - - // default test - testSubject = createTestSubject(); - testSubject.setMosCqe(mosCqe); - } - - @Test - public void testGetOneWayDelay() throws Exception { - EndOfCallVqmSummaries testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getOneWayDelay(); - } - - @Test - public void testSetOneWayDelay() throws Exception { - EndOfCallVqmSummaries testSubject; - Double oneWayDelay = null; - - // default test - testSubject = createTestSubject(); - testSubject.setOneWayDelay(oneWayDelay); - } - - @Test - public void testGetPacketLossPercent() throws Exception { - EndOfCallVqmSummaries testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getPacketLossPercent(); - } - - @Test - public void testSetPacketLossPercent() throws Exception { - EndOfCallVqmSummaries testSubject; - Double packetLossPercent = null; - - // default test - testSubject = createTestSubject(); - testSubject.setPacketLossPercent(packetLossPercent); - } - - @Test - public void testGetRFactor() throws Exception { - EndOfCallVqmSummaries testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getRFactor(); - } - - @Test - public void testSetRFactor() throws Exception { - EndOfCallVqmSummaries testSubject; - Double rFactor = null; - - // default test - testSubject = createTestSubject(); - testSubject.setRFactor(rFactor); - } - - @Test - public void testGetRoundTripDelay() throws Exception { - EndOfCallVqmSummaries testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getRoundTripDelay(); - } - - @Test - public void testSetRoundTripDelay() throws Exception { - EndOfCallVqmSummaries testSubject; - Double roundTripDelay = null; - - // default test - testSubject = createTestSubject(); - testSubject.setRoundTripDelay(roundTripDelay); - } - - @Test - public void testToString() throws Exception { - EndOfCallVqmSummaries testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.toString(); - } - - @Test - public void testHashCode() throws Exception { - EndOfCallVqmSummaries testSubject; - int result; - - // default test - testSubject = createTestSubject(); - result = testSubject.hashCode(); - } - - @Test - public void testEquals() throws Exception { - EndOfCallVqmSummaries testSubject; - EndOfCallVqmSummaries testSubject2; - Object other = null; - boolean result; - - // default test - testSubject = createTestSubject(); - testSubject2 = createTestSubject(); - result = testSubject.equals(other); - result = testSubject.equals(testSubject); - result = testSubject.equals(testSubject2); - assertNotNull(result); - } -} diff --git a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/EventTest.java b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/EventTest.java deleted file mode 100644 index eb7e472..0000000 --- a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/EventTest.java +++ /dev/null @@ -1,327 +0,0 @@ -/* -* ============LICENSE_START======================================================= -* ONAP : DCAE -* ================================================================================ -* Copyright 2018 TechMahindra -*================================================================================= -* 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========================================================= -*/ -package org.onap.dcaegen2.ves.domain.ves7_0; - -import static org.junit.Assert.assertNotNull; -import org.junit.Test; - - -public class EventTest { - - private Event createTestSubject() { - return new Event(); - } - - @Test - public void testGetCommonEventHeader() throws Exception { - Event testSubject; - CommonEventHeader result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getCommonEventHeader(); - } - - @Test - public void testSetCommonEventHeader() throws Exception { - Event testSubject; - CommonEventHeader commonEventHeader = null; - - // default test - testSubject = createTestSubject(); - testSubject.setCommonEventHeader(commonEventHeader); - } - - @Test - public void testGetFaultFields() throws Exception { - Event testSubject; - FaultFields result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getFaultFields(); - } - - @Test - public void testSetFaultFields() throws Exception { - Event testSubject; - FaultFields faultFields = null; - - // default test - testSubject = createTestSubject(); - testSubject.setFaultFields(faultFields); - } - - @Test - public void testGetHeartbeatFields() throws Exception { - Event testSubject; - HeartbeatFields result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getHeartbeatFields(); - } - - @Test - public void testSetHeartbeatFields() throws Exception { - Event testSubject; - HeartbeatFields heartbeatFields = null; - - // default test - testSubject = createTestSubject(); - testSubject.setHeartbeatFields(heartbeatFields); - } - - @Test - public void testGetMeasurementFields() throws Exception { - Event testSubject; - MeasurementFields result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getMeasurementFields(); - } - - @Test - public void testSetMeasurementFields() throws Exception { - Event testSubject; - MeasurementFields measurementFields = null; - - // default test - testSubject = createTestSubject(); - testSubject.setMeasurementFields(measurementFields); - } - - @Test - public void testGetMobileFlowFields() throws Exception { - Event testSubject; - MobileFlowFields result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getMobileFlowFields(); - } - - @Test - public void testSetMobileFlowFields() throws Exception { - Event testSubject; - MobileFlowFields mobileFlowFields = null; - - // default test - testSubject = createTestSubject(); - testSubject.setMobileFlowFields(mobileFlowFields); - } - - @Test - public void testGetNotificationFields() throws Exception { - Event testSubject; - NotificationFields result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getNotificationFields(); - } - - @Test - public void testSetNotificationFields() throws Exception { - Event testSubject; - NotificationFields notificationFields = null; - - // default test - testSubject = createTestSubject(); - testSubject.setNotificationFields(notificationFields); - } - - @Test - public void testGetOtherFields() throws Exception { - Event testSubject; - OtherFields result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getOtherFields(); - } - - @Test - public void testSetOtherFields() throws Exception { - Event testSubject; - OtherFields otherFields = null; - - // default test - testSubject = createTestSubject(); - testSubject.setOtherFields(otherFields); - } - - @Test - public void testGetPnfRegistrationFields() throws Exception { - Event testSubject; - PnfRegistrationFields result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getPnfRegistrationFields(); - } - - @Test - public void testSetPnfRegistrationFields() throws Exception { - Event testSubject; - PnfRegistrationFields pnfRegistrationFields = null; - - // default test - testSubject = createTestSubject(); - testSubject.setPnfRegistrationFields(pnfRegistrationFields); - } - - @Test - public void testGetSipSignalingFields() throws Exception { - Event testSubject; - SipSignalingFields result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getSipSignalingFields(); - } - - @Test - public void testSetSipSignalingFields() throws Exception { - Event testSubject; - SipSignalingFields sipSignalingFields = null; - - // default test - testSubject = createTestSubject(); - testSubject.setSipSignalingFields(sipSignalingFields); - } - - @Test - public void testGetStateChangeFields() throws Exception { - Event testSubject; - StateChangeFields result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getStateChangeFields(); - } - - @Test - public void testSetStateChangeFields() throws Exception { - Event testSubject; - StateChangeFields stateChangeFields = null; - - // default test - testSubject = createTestSubject(); - testSubject.setStateChangeFields(stateChangeFields); - } - - @Test - public void testGetSyslogFields() throws Exception { - Event testSubject; - SyslogFields result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getSyslogFields(); - } - - @Test - public void testSetSyslogFields() throws Exception { - Event testSubject; - SyslogFields syslogFields = null; - - // default test - testSubject = createTestSubject(); - testSubject.setSyslogFields(syslogFields); - } - - @Test - public void testGetThresholdCrossingAlertFields() throws Exception { - Event testSubject; - ThresholdCrossingAlertFields result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getThresholdCrossingAlertFields(); - } - - @Test - public void testSetThresholdCrossingAlertFields() throws Exception { - Event testSubject; - ThresholdCrossingAlertFields thresholdCrossingAlertFields = null; - - // default test - testSubject = createTestSubject(); - testSubject.setThresholdCrossingAlertFields(thresholdCrossingAlertFields); - } - - @Test - public void testGetVoiceQualityFields() throws Exception { - Event testSubject; - VoiceQualityFields result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getVoiceQualityFields(); - } - - @Test - public void testSetVoiceQualityFields() throws Exception { - Event testSubject; - VoiceQualityFields voiceQualityFields = null; - - // default test - testSubject = createTestSubject(); - testSubject.setVoiceQualityFields(voiceQualityFields); - } - - @Test - public void testToString() throws Exception { - Event testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.toString(); - } - - @Test - public void testHashCode() throws Exception { - Event testSubject; - int result; - - // default test - testSubject = createTestSubject(); - result = testSubject.hashCode(); - } - - @Test - public void testEquals() throws Exception { - Event testSubject; - Event testSubject2; - Object other = null; - boolean result; - - // default test - testSubject = createTestSubject(); - testSubject2 = createTestSubject(); - result = testSubject.equals(other); - result = testSubject.equals(testSubject); - result = testSubject.equals(testSubject2); - assertNotNull(result); - } -} diff --git a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/FaultFieldsTest.java b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/FaultFieldsTest.java deleted file mode 100644 index c26cd03..0000000 --- a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/FaultFieldsTest.java +++ /dev/null @@ -1,250 +0,0 @@ -/* -* ============LICENSE_START======================================================= -* ONAP : DCAE -* ================================================================================ -* Copyright 2018 TechMahindra -*================================================================================= -* 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========================================================= -*/ - -package org.onap.dcaegen2.ves.domain.ves7_0; - -import static org.junit.Assert.assertNotNull; -import org.junit.Test; -import org.onap.dcaegen2.ves.domain.ves7_0.FaultFields.FaultFieldsVersion; -import org.onap.dcaegen2.ves.domain.ves7_0.FaultFields.VfStatus; - - -public class FaultFieldsTest { - - private FaultFields createTestSubject() { - return new FaultFields(); - } - - @Test - public void testGetAlarmAdditionalInformation() throws Exception { - FaultFields testSubject; - AlarmAdditionalInformation result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getAlarmAdditionalInformation(); - } - - @Test - public void testSetAlarmAdditionalInformation() throws Exception { - FaultFields testSubject; - AlarmAdditionalInformation alarmAdditionalInformation = null; - - // default test - testSubject = createTestSubject(); - testSubject.setAlarmAdditionalInformation(alarmAdditionalInformation); - } - - @Test - public void testGetAlarmCondition() throws Exception { - FaultFields testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getAlarmCondition(); - } - - @Test - public void testSetAlarmCondition() throws Exception { - FaultFields testSubject; - String alarmCondition = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setAlarmCondition(alarmCondition); - } - - @Test - public void testGetAlarmInterfaceA() throws Exception { - FaultFields testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getAlarmInterfaceA(); - } - - @Test - public void testSetAlarmInterfaceA() throws Exception { - FaultFields testSubject; - String alarmInterfaceA = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setAlarmInterfaceA(alarmInterfaceA); - } - - @Test - public void testGetEventCategory() throws Exception { - FaultFields testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getEventCategory(); - } - - @Test - public void testSetEventCategory() throws Exception { - FaultFields testSubject; - String eventCategory = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setEventCategory(eventCategory); - } - - @Test - public void testGetEventSeverity() throws Exception { - FaultFields testSubject; - FaultFields.EventSeverity result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getEventSeverity(); - } - - @Test - public void testSetEventSeverity() throws Exception { - FaultFields testSubject; - FaultFields.EventSeverity eventSeverity = FaultFields.EventSeverity.CRITICAL; - - // default test - testSubject = createTestSubject(); - testSubject.setEventSeverity(eventSeverity); - } - - @Test - public void testGetEventSourceType() throws Exception { - FaultFields testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getEventSourceType(); - } - - @Test - public void testSetEventSourceType() throws Exception { - FaultFields testSubject; - String eventSourceType = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setEventSourceType(eventSourceType); - } - - @Test - public void testGetFaultFieldsVersion() throws Exception { - FaultFields testSubject; - FaultFieldsVersion result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getFaultFieldsVersion(); - } - - @Test - public void testSetFaultFieldsVersion() throws Exception { - FaultFields testSubject; - FaultFieldsVersion faultFieldsVersion = FaultFieldsVersion._4_0; - - // default test - testSubject = createTestSubject(); - testSubject.setFaultFieldsVersion(faultFieldsVersion); - } - - @Test - public void testGetSpecificProblem() throws Exception { - FaultFields testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getSpecificProblem(); - } - - @Test - public void testSetSpecificProblem() throws Exception { - FaultFields testSubject; - String specificProblem = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setSpecificProblem(specificProblem); - } - - @Test - public void testGetVfStatus() throws Exception { - FaultFields testSubject; - VfStatus result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getVfStatus(); - } - - @Test - public void testSetVfStatus() throws Exception { - FaultFields testSubject; - VfStatus vfStatus = VfStatus.ACTIVE; - - // default test - testSubject = createTestSubject(); - testSubject.setVfStatus(vfStatus); - } - - @Test - public void testToString() throws Exception { - FaultFields testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.toString(); - } - - @Test - public void testHashCode() throws Exception { - FaultFields testSubject; - int result; - - // default test - testSubject = createTestSubject(); - result = testSubject.hashCode(); - } - - @Test - public void testEquals() throws Exception { - FaultFields testSubject; - FaultFields testSubject2; - Object other = null; - boolean result; - - // default test - testSubject = createTestSubject(); - testSubject2 = createTestSubject(); - result = testSubject.equals(other); - result = testSubject.equals(testSubject); - result = testSubject.equals(testSubject2); - assertNotNull(result); - } -} diff --git a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/FilesystemUsageArrayTest.java b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/FilesystemUsageArrayTest.java deleted file mode 100644 index 24ea16d..0000000 --- a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/FilesystemUsageArrayTest.java +++ /dev/null @@ -1,208 +0,0 @@ -/* -* ============LICENSE_START======================================================= -* ONAP : DCAE -* ================================================================================ -* Copyright 2018 TechMahindra -*================================================================================= -* 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========================================================= -*/ - -package org.onap.dcaegen2.ves.domain.ves7_0; - -import static org.junit.Assert.assertNotNull; -import org.junit.Test; - - -public class FilesystemUsageArrayTest { - - private FilesystemUsageArray createTestSubject() { - return new FilesystemUsageArray(); - } - - @Test - public void testGetBlockConfigured() throws Exception { - FilesystemUsageArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getBlockConfigured(); - } - - @Test - public void testSetBlockConfigured() throws Exception { - FilesystemUsageArray testSubject; - Double blockConfigured = null; - - // default test - testSubject = createTestSubject(); - testSubject.setBlockConfigured(blockConfigured); - } - - @Test - public void testGetBlockIops() throws Exception { - FilesystemUsageArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getBlockIops(); - } - - @Test - public void testSetBlockIops() throws Exception { - FilesystemUsageArray testSubject; - Double blockIops = null; - - // default test - testSubject = createTestSubject(); - testSubject.setBlockIops(blockIops); - } - - @Test - public void testGetBlockUsed() throws Exception { - FilesystemUsageArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getBlockUsed(); - } - - @Test - public void testSetBlockUsed() throws Exception { - FilesystemUsageArray testSubject; - Double blockUsed = null; - - // default test - testSubject = createTestSubject(); - testSubject.setBlockUsed(blockUsed); - } - - @Test - public void testGetEphemeralConfigured() throws Exception { - FilesystemUsageArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getEphemeralConfigured(); - } - - @Test - public void testSetEphemeralConfigured() throws Exception { - FilesystemUsageArray testSubject; - Double ephemeralConfigured = null; - - // default test - testSubject = createTestSubject(); - testSubject.setEphemeralConfigured(ephemeralConfigured); - } - - @Test - public void testGetEphemeralIops() throws Exception { - FilesystemUsageArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getEphemeralIops(); - } - - @Test - public void testSetEphemeralIops() throws Exception { - FilesystemUsageArray testSubject; - Double ephemeralIops = null; - - // default test - testSubject = createTestSubject(); - testSubject.setEphemeralIops(ephemeralIops); - } - - @Test - public void testGetEphemeralUsed() throws Exception { - FilesystemUsageArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getEphemeralUsed(); - } - - @Test - public void testSetEphemeralUsed() throws Exception { - FilesystemUsageArray testSubject; - Double ephemeralUsed = null; - - // default test - testSubject = createTestSubject(); - testSubject.setEphemeralUsed(ephemeralUsed); - } - - @Test - public void testGetFilesystemName() throws Exception { - FilesystemUsageArray testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getFilesystemName(); - } - - @Test - public void testSetFilesystemName() throws Exception { - FilesystemUsageArray testSubject; - String filesystemName = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setFilesystemName(filesystemName); - } - - @Test - public void testToString() throws Exception { - FilesystemUsageArray testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.toString(); - } - - @Test - public void testHashCode() throws Exception { - FilesystemUsageArray testSubject; - int result; - - // default test - testSubject = createTestSubject(); - result = testSubject.hashCode(); - } - - @Test - public void testEquals() throws Exception { - FilesystemUsageArray testSubject; - FilesystemUsageArray testSubject2; - Object other = null; - boolean result; - - // default test - testSubject = createTestSubject(); - testSubject2 = createTestSubject(); - result = testSubject.equals(other); - result = testSubject.equals(testSubject); - result = testSubject.equals(testSubject2); - assertNotNull(result); - } -} diff --git a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/GtpPerFlowMetricsTest.java b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/GtpPerFlowMetricsTest.java deleted file mode 100644 index 6738fad..0000000 --- a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/GtpPerFlowMetricsTest.java +++ /dev/null @@ -1,1069 +0,0 @@ -/* -* ============LICENSE_START======================================================= -* ONAP : DCAE -* ================================================================================ -* Copyright 2018 TechMahindra -*================================================================================= -* 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========================================================= -*/ - -package org.onap.dcaegen2.ves.domain.ves7_0; - -import static org.junit.Assert.assertNotNull; -import java.util.List; -import org.junit.Test; - - -public class GtpPerFlowMetricsTest { - - private GtpPerFlowMetrics createTestSubject() { - return new GtpPerFlowMetrics(); - } - - @Test - public void testGetAvgBitErrorRate() throws Exception { - GtpPerFlowMetrics testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getAvgBitErrorRate(); - } - - @Test - public void testSetAvgBitErrorRate() throws Exception { - GtpPerFlowMetrics testSubject; - Double avgBitErrorRate = null; - - // default test - testSubject = createTestSubject(); - testSubject.setAvgBitErrorRate(avgBitErrorRate); - } - - @Test - public void testGetAvgPacketDelayVariation() throws Exception { - GtpPerFlowMetrics testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getAvgPacketDelayVariation(); - } - - @Test - public void testSetAvgPacketDelayVariation() throws Exception { - GtpPerFlowMetrics testSubject; - Double avgPacketDelayVariation = null; - - // default test - testSubject = createTestSubject(); - testSubject.setAvgPacketDelayVariation(avgPacketDelayVariation); - } - - @Test - public void testGetAvgPacketLatency() throws Exception { - GtpPerFlowMetrics testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getAvgPacketLatency(); - } - - @Test - public void testSetAvgPacketLatency() throws Exception { - GtpPerFlowMetrics testSubject; - Double avgPacketLatency = null; - - // default test - testSubject = createTestSubject(); - testSubject.setAvgPacketLatency(avgPacketLatency); - } - - @Test - public void testGetAvgReceiveThroughput() throws Exception { - GtpPerFlowMetrics testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getAvgReceiveThroughput(); - } - - @Test - public void testSetAvgReceiveThroughput() throws Exception { - GtpPerFlowMetrics testSubject; - Double avgReceiveThroughput = null; - - // default test - testSubject = createTestSubject(); - testSubject.setAvgReceiveThroughput(avgReceiveThroughput); - } - - @Test - public void testGetAvgTransmitThroughput() throws Exception { - GtpPerFlowMetrics testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getAvgTransmitThroughput(); - } - - @Test - public void testSetAvgTransmitThroughput() throws Exception { - GtpPerFlowMetrics testSubject; - Double avgTransmitThroughput = null; - - // default test - testSubject = createTestSubject(); - testSubject.setAvgTransmitThroughput(avgTransmitThroughput); - } - - @Test - public void testGetDurConnectionFailedStatus() throws Exception { - GtpPerFlowMetrics testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getDurConnectionFailedStatus(); - } - - @Test - public void testSetDurConnectionFailedStatus() throws Exception { - GtpPerFlowMetrics testSubject; - Double durConnectionFailedStatus = null; - - // default test - testSubject = createTestSubject(); - testSubject.setDurConnectionFailedStatus(durConnectionFailedStatus); - } - - @Test - public void testGetDurTunnelFailedStatus() throws Exception { - GtpPerFlowMetrics testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getDurTunnelFailedStatus(); - } - - @Test - public void testSetDurTunnelFailedStatus() throws Exception { - GtpPerFlowMetrics testSubject; - Double durTunnelFailedStatus = null; - - // default test - testSubject = createTestSubject(); - testSubject.setDurTunnelFailedStatus(durTunnelFailedStatus); - } - - @Test - public void testGetFlowActivatedBy() throws Exception { - GtpPerFlowMetrics testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getFlowActivatedBy(); - } - - @Test - public void testSetFlowActivatedBy() throws Exception { - GtpPerFlowMetrics testSubject; - String flowActivatedBy = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setFlowActivatedBy(flowActivatedBy); - } - - @Test - public void testGetFlowActivationEpoch() throws Exception { - GtpPerFlowMetrics testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getFlowActivationEpoch(); - } - - @Test - public void testSetFlowActivationEpoch() throws Exception { - GtpPerFlowMetrics testSubject; - Double flowActivationEpoch = null; - - // default test - testSubject = createTestSubject(); - testSubject.setFlowActivationEpoch(flowActivationEpoch); - } - - @Test - public void testGetFlowActivationMicrosec() throws Exception { - GtpPerFlowMetrics testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getFlowActivationMicrosec(); - } - - @Test - public void testSetFlowActivationMicrosec() throws Exception { - GtpPerFlowMetrics testSubject; - Double flowActivationMicrosec = null; - - // default test - testSubject = createTestSubject(); - testSubject.setFlowActivationMicrosec(flowActivationMicrosec); - } - - @Test - public void testGetFlowActivationTime() throws Exception { - GtpPerFlowMetrics testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getFlowActivationTime(); - } - - @Test - public void testSetFlowActivationTime() throws Exception { - GtpPerFlowMetrics testSubject; - String flowActivationTime = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setFlowActivationTime(flowActivationTime); - } - - @Test - public void testGetFlowDeactivatedBy() throws Exception { - GtpPerFlowMetrics testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getFlowDeactivatedBy(); - } - - @Test - public void testSetFlowDeactivatedBy() throws Exception { - GtpPerFlowMetrics testSubject; - String flowDeactivatedBy = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setFlowDeactivatedBy(flowDeactivatedBy); - } - - @Test - public void testGetFlowDeactivationEpoch() throws Exception { - GtpPerFlowMetrics testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getFlowDeactivationEpoch(); - } - - @Test - public void testSetFlowDeactivationEpoch() throws Exception { - GtpPerFlowMetrics testSubject; - Double flowDeactivationEpoch = null; - - // default test - testSubject = createTestSubject(); - testSubject.setFlowDeactivationEpoch(flowDeactivationEpoch); - } - - @Test - public void testGetFlowDeactivationMicrosec() throws Exception { - GtpPerFlowMetrics testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getFlowDeactivationMicrosec(); - } - - @Test - public void testSetFlowDeactivationMicrosec() throws Exception { - GtpPerFlowMetrics testSubject; - Double flowDeactivationMicrosec = null; - - // default test - testSubject = createTestSubject(); - testSubject.setFlowDeactivationMicrosec(flowDeactivationMicrosec); - } - - @Test - public void testGetFlowDeactivationTime() throws Exception { - GtpPerFlowMetrics testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getFlowDeactivationTime(); - } - - @Test - public void testSetFlowDeactivationTime() throws Exception { - GtpPerFlowMetrics testSubject; - String flowDeactivationTime = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setFlowDeactivationTime(flowDeactivationTime); - } - - @Test - public void testGetFlowStatus() throws Exception { - GtpPerFlowMetrics testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getFlowStatus(); - } - - @Test - public void testSetFlowStatus() throws Exception { - GtpPerFlowMetrics testSubject; - String flowStatus = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setFlowStatus(flowStatus); - } - - @Test - public void testGetGtpConnectionStatus() throws Exception { - GtpPerFlowMetrics testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getGtpConnectionStatus(); - } - - @Test - public void testSetGtpConnectionStatus() throws Exception { - GtpPerFlowMetrics testSubject; - String gtpConnectionStatus = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setGtpConnectionStatus(gtpConnectionStatus); - } - - @Test - public void testGetGtpTunnelStatus() throws Exception { - GtpPerFlowMetrics testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getGtpTunnelStatus(); - } - - @Test - public void testSetGtpTunnelStatus() throws Exception { - GtpPerFlowMetrics testSubject; - String gtpTunnelStatus = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setGtpTunnelStatus(gtpTunnelStatus); - } - - @Test - public void testGetIpTosCountList() throws Exception { - GtpPerFlowMetrics testSubject; - AlarmAdditionalInformation result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getIpTosCountList(); - } - - @Test - public void testSetIpTosCountList() throws Exception { - GtpPerFlowMetrics testSubject; - AlarmAdditionalInformation ipTosCountList = null; - - // default test - testSubject = createTestSubject(); - testSubject.setIpTosCountList(ipTosCountList); - } - - @Test - public void testGetIpTosList() throws Exception { - GtpPerFlowMetrics testSubject; - List result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getIpTosList(); - } - - @Test - public void testSetIpTosList() throws Exception { - GtpPerFlowMetrics testSubject; - List ipTosList = null; - - // default test - testSubject = createTestSubject(); - testSubject.setIpTosList(ipTosList); - } - - @Test - public void testGetLargePacketRtt() throws Exception { - GtpPerFlowMetrics testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getLargePacketRtt(); - } - - @Test - public void testSetLargePacketRtt() throws Exception { - GtpPerFlowMetrics testSubject; - Double largePacketRtt = null; - - // default test - testSubject = createTestSubject(); - testSubject.setLargePacketRtt(largePacketRtt); - } - - @Test - public void testGetLargePacketThreshold() throws Exception { - GtpPerFlowMetrics testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getLargePacketThreshold(); - } - - @Test - public void testSetLargePacketThreshold() throws Exception { - GtpPerFlowMetrics testSubject; - Double largePacketThreshold = null; - - // default test - testSubject = createTestSubject(); - testSubject.setLargePacketThreshold(largePacketThreshold); - } - - @Test - public void testGetMaxPacketDelayVariation() throws Exception { - GtpPerFlowMetrics testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getMaxPacketDelayVariation(); - } - - @Test - public void testSetMaxPacketDelayVariation() throws Exception { - GtpPerFlowMetrics testSubject; - Double maxPacketDelayVariation = null; - - // default test - testSubject = createTestSubject(); - testSubject.setMaxPacketDelayVariation(maxPacketDelayVariation); - } - - @Test - public void testGetMaxReceiveBitRate() throws Exception { - GtpPerFlowMetrics testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getMaxReceiveBitRate(); - } - - @Test - public void testSetMaxReceiveBitRate() throws Exception { - GtpPerFlowMetrics testSubject; - Double maxReceiveBitRate = null; - - // default test - testSubject = createTestSubject(); - testSubject.setMaxReceiveBitRate(maxReceiveBitRate); - } - - @Test - public void testGetMaxTransmitBitRate() throws Exception { - GtpPerFlowMetrics testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getMaxTransmitBitRate(); - } - - @Test - public void testSetMaxTransmitBitRate() throws Exception { - GtpPerFlowMetrics testSubject; - Double maxTransmitBitRate = null; - - // default test - testSubject = createTestSubject(); - testSubject.setMaxTransmitBitRate(maxTransmitBitRate); - } - - @Test - public void testGetMobileQciCosCountList() throws Exception { - GtpPerFlowMetrics testSubject; - AlarmAdditionalInformation result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getMobileQciCosCountList(); - } - - @Test - public void testSetMobileQciCosCountList() throws Exception { - GtpPerFlowMetrics testSubject; - AlarmAdditionalInformation mobileQciCosCountList = null; - - // default test - testSubject = createTestSubject(); - testSubject.setMobileQciCosCountList(mobileQciCosCountList); - } - - @Test - public void testGetMobileQciCosList() throws Exception { - GtpPerFlowMetrics testSubject; - List result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getMobileQciCosList(); - } - - @Test - public void testSetMobileQciCosList() throws Exception { - GtpPerFlowMetrics testSubject; - List mobileQciCosList = null; - - // default test - testSubject = createTestSubject(); - testSubject.setMobileQciCosList(mobileQciCosList); - } - - @Test - public void testGetNumActivationFailures() throws Exception { - GtpPerFlowMetrics testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getNumActivationFailures(); - } - - @Test - public void testSetNumActivationFailures() throws Exception { - GtpPerFlowMetrics testSubject; - Double numActivationFailures = null; - - // default test - testSubject = createTestSubject(); - testSubject.setNumActivationFailures(numActivationFailures); - } - - @Test - public void testGetNumBitErrors() throws Exception { - GtpPerFlowMetrics testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getNumBitErrors(); - } - - @Test - public void testSetNumBitErrors() throws Exception { - GtpPerFlowMetrics testSubject; - Double numBitErrors = null; - - // default test - testSubject = createTestSubject(); - testSubject.setNumBitErrors(numBitErrors); - } - - @Test - public void testGetNumBytesReceived() throws Exception { - GtpPerFlowMetrics testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getNumBytesReceived(); - } - - @Test - public void testSetNumBytesReceived() throws Exception { - GtpPerFlowMetrics testSubject; - Double numBytesReceived = null; - - // default test - testSubject = createTestSubject(); - testSubject.setNumBytesReceived(numBytesReceived); - } - - @Test - public void testGetNumBytesTransmitted() throws Exception { - GtpPerFlowMetrics testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getNumBytesTransmitted(); - } - - @Test - public void testSetNumBytesTransmitted() throws Exception { - GtpPerFlowMetrics testSubject; - Double numBytesTransmitted = null; - - // default test - testSubject = createTestSubject(); - testSubject.setNumBytesTransmitted(numBytesTransmitted); - } - - @Test - public void testGetNumDroppedPackets() throws Exception { - GtpPerFlowMetrics testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getNumDroppedPackets(); - } - - @Test - public void testSetNumDroppedPackets() throws Exception { - GtpPerFlowMetrics testSubject; - Double numDroppedPackets = null; - - // default test - testSubject = createTestSubject(); - testSubject.setNumDroppedPackets(numDroppedPackets); - } - - @Test - public void testGetNumGtpEchoFailures() throws Exception { - GtpPerFlowMetrics testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getNumGtpEchoFailures(); - } - - @Test - public void testSetNumGtpEchoFailures() throws Exception { - GtpPerFlowMetrics testSubject; - Double numGtpEchoFailures = null; - - // default test - testSubject = createTestSubject(); - testSubject.setNumGtpEchoFailures(numGtpEchoFailures); - } - - @Test - public void testGetNumGtpTunnelErrors() throws Exception { - GtpPerFlowMetrics testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getNumGtpTunnelErrors(); - } - - @Test - public void testSetNumGtpTunnelErrors() throws Exception { - GtpPerFlowMetrics testSubject; - Double numGtpTunnelErrors = null; - - // default test - testSubject = createTestSubject(); - testSubject.setNumGtpTunnelErrors(numGtpTunnelErrors); - } - - @Test - public void testGetNumHttpErrors() throws Exception { - GtpPerFlowMetrics testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getNumHttpErrors(); - } - - @Test - public void testSetNumHttpErrors() throws Exception { - GtpPerFlowMetrics testSubject; - Double numHttpErrors = null; - - // default test - testSubject = createTestSubject(); - testSubject.setNumHttpErrors(numHttpErrors); - } - - @Test - public void testGetNumL7BytesReceived() throws Exception { - GtpPerFlowMetrics testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getNumL7BytesReceived(); - } - - @Test - public void testSetNumL7BytesReceived() throws Exception { - GtpPerFlowMetrics testSubject; - Double numL7BytesReceived = null; - - // default test - testSubject = createTestSubject(); - testSubject.setNumL7BytesReceived(numL7BytesReceived); - } - - @Test - public void testGetNumL7BytesTransmitted() throws Exception { - GtpPerFlowMetrics testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getNumL7BytesTransmitted(); - } - - @Test - public void testSetNumL7BytesTransmitted() throws Exception { - GtpPerFlowMetrics testSubject; - Double numL7BytesTransmitted = null; - - // default test - testSubject = createTestSubject(); - testSubject.setNumL7BytesTransmitted(numL7BytesTransmitted); - } - - @Test - public void testGetNumLostPackets() throws Exception { - GtpPerFlowMetrics testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getNumLostPackets(); - } - - @Test - public void testSetNumLostPackets() throws Exception { - GtpPerFlowMetrics testSubject; - Double numLostPackets = null; - - // default test - testSubject = createTestSubject(); - testSubject.setNumLostPackets(numLostPackets); - } - - @Test - public void testGetNumOutOfOrderPackets() throws Exception { - GtpPerFlowMetrics testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getNumOutOfOrderPackets(); - } - - @Test - public void testSetNumOutOfOrderPackets() throws Exception { - GtpPerFlowMetrics testSubject; - Double numOutOfOrderPackets = null; - - // default test - testSubject = createTestSubject(); - testSubject.setNumOutOfOrderPackets(numOutOfOrderPackets); - } - - @Test - public void testGetNumPacketErrors() throws Exception { - GtpPerFlowMetrics testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getNumPacketErrors(); - } - - @Test - public void testSetNumPacketErrors() throws Exception { - GtpPerFlowMetrics testSubject; - Double numPacketErrors = null; - - // default test - testSubject = createTestSubject(); - testSubject.setNumPacketErrors(numPacketErrors); - } - - @Test - public void testGetNumPacketsReceivedExclRetrans() throws Exception { - GtpPerFlowMetrics testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getNumPacketsReceivedExclRetrans(); - } - - @Test - public void testSetNumPacketsReceivedExclRetrans() throws Exception { - GtpPerFlowMetrics testSubject; - Double numPacketsReceivedExclRetrans = null; - - // default test - testSubject = createTestSubject(); - testSubject.setNumPacketsReceivedExclRetrans(numPacketsReceivedExclRetrans); - } - - @Test - public void testGetNumPacketsReceivedInclRetrans() throws Exception { - GtpPerFlowMetrics testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getNumPacketsReceivedInclRetrans(); - } - - @Test - public void testSetNumPacketsReceivedInclRetrans() throws Exception { - GtpPerFlowMetrics testSubject; - Double numPacketsReceivedInclRetrans = null; - - // default test - testSubject = createTestSubject(); - testSubject.setNumPacketsReceivedInclRetrans(numPacketsReceivedInclRetrans); - } - - @Test - public void testGetNumPacketsTransmittedInclRetrans() throws Exception { - GtpPerFlowMetrics testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getNumPacketsTransmittedInclRetrans(); - } - - @Test - public void testSetNumPacketsTransmittedInclRetrans() throws Exception { - GtpPerFlowMetrics testSubject; - Double numPacketsTransmittedInclRetrans = null; - - // default test - testSubject = createTestSubject(); - testSubject.setNumPacketsTransmittedInclRetrans(numPacketsTransmittedInclRetrans); - } - - @Test - public void testGetNumRetries() throws Exception { - GtpPerFlowMetrics testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getNumRetries(); - } - - @Test - public void testSetNumRetries() throws Exception { - GtpPerFlowMetrics testSubject; - Double numRetries = null; - - // default test - testSubject = createTestSubject(); - testSubject.setNumRetries(numRetries); - } - - @Test - public void testGetNumTimeouts() throws Exception { - GtpPerFlowMetrics testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getNumTimeouts(); - } - - @Test - public void testSetNumTimeouts() throws Exception { - GtpPerFlowMetrics testSubject; - Double numTimeouts = null; - - // default test - testSubject = createTestSubject(); - testSubject.setNumTimeouts(numTimeouts); - } - - @Test - public void testGetNumTunneledL7BytesReceived() throws Exception { - GtpPerFlowMetrics testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getNumTunneledL7BytesReceived(); - } - - @Test - public void testSetNumTunneledL7BytesReceived() throws Exception { - GtpPerFlowMetrics testSubject; - Double numTunneledL7BytesReceived = null; - - // default test - testSubject = createTestSubject(); - testSubject.setNumTunneledL7BytesReceived(numTunneledL7BytesReceived); - } - - @Test - public void testGetRoundTripTime() throws Exception { - GtpPerFlowMetrics testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getRoundTripTime(); - } - - @Test - public void testSetRoundTripTime() throws Exception { - GtpPerFlowMetrics testSubject; - Double roundTripTime = null; - - // default test - testSubject = createTestSubject(); - testSubject.setRoundTripTime(roundTripTime); - } - - @Test - public void testGetTcpFlagCountList() throws Exception { - GtpPerFlowMetrics testSubject; - AlarmAdditionalInformation result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getTcpFlagCountList(); - } - - @Test - public void testSetTcpFlagCountList() throws Exception { - GtpPerFlowMetrics testSubject; - AlarmAdditionalInformation tcpFlagCountList = null; - - // default test - testSubject = createTestSubject(); - testSubject.setTcpFlagCountList(tcpFlagCountList); - } - - @Test - public void testGetTcpFlagList() throws Exception { - GtpPerFlowMetrics testSubject; - List result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getTcpFlagList(); - } - - @Test - public void testSetTcpFlagList() throws Exception { - GtpPerFlowMetrics testSubject; - List tcpFlagList = null; - - // default test - testSubject = createTestSubject(); - testSubject.setTcpFlagList(tcpFlagList); - } - - @Test - public void testGetTimeToFirstByte() throws Exception { - GtpPerFlowMetrics testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getTimeToFirstByte(); - } - - @Test - public void testSetTimeToFirstByte() throws Exception { - GtpPerFlowMetrics testSubject; - Double timeToFirstByte = null; - - // default test - testSubject = createTestSubject(); - testSubject.setTimeToFirstByte(timeToFirstByte); - } - - @Test - public void testToString() throws Exception { - GtpPerFlowMetrics testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.toString(); - } - - @Test - public void testHashCode() throws Exception { - GtpPerFlowMetrics testSubject; - int result; - - // default test - testSubject = createTestSubject(); - result = testSubject.hashCode(); - } - - @Test - public void testEquals() throws Exception { - GtpPerFlowMetrics testSubject; - GtpPerFlowMetrics testSubject2; - Object other = null; - boolean result; - - // default test - testSubject = createTestSubject(); - testSubject2 = createTestSubject(); - result = testSubject.equals(other); - result = testSubject.equals(testSubject); - result = testSubject.equals(testSubject2); - assertNotNull(result); - } -} diff --git a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/HeartbeatFieldsTest.java b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/HeartbeatFieldsTest.java deleted file mode 100644 index 8983785..0000000 --- a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/HeartbeatFieldsTest.java +++ /dev/null @@ -1,129 +0,0 @@ -/* -* ============LICENSE_START======================================================= -* ONAP : DCAE -* ================================================================================ -* Copyright 2018 TechMahindra -*================================================================================= -* 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========================================================= -*/ - -package org.onap.dcaegen2.ves.domain.ves7_0; - -import static org.junit.Assert.assertNotNull; -import org.junit.Test; -import org.onap.dcaegen2.ves.domain.ves7_0.HeartbeatFields.HeartbeatFieldsVersion; - - -public class HeartbeatFieldsTest { - - private HeartbeatFields createTestSubject() { - return new HeartbeatFields(); - } - - @Test - public void testGetAdditionalFields() throws Exception { - HeartbeatFields testSubject; - AlarmAdditionalInformation result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getAdditionalFields(); - } - - @Test - public void testSetAdditionalFields() throws Exception { - HeartbeatFields testSubject; - AlarmAdditionalInformation additionalFields = null; - - // default test - testSubject = createTestSubject(); - testSubject.setAdditionalFields(additionalFields); - } - - @Test - public void testGetHeartbeatFieldsVersion() throws Exception { - HeartbeatFields testSubject; - HeartbeatFieldsVersion result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getHeartbeatFieldsVersion(); - } - - @Test - public void testSetHeartbeatFieldsVersion() throws Exception { - HeartbeatFields testSubject; - HeartbeatFieldsVersion heartbeatFieldsVersion = HeartbeatFieldsVersion._3_0; - - // default test - testSubject = createTestSubject(); - testSubject.setHeartbeatFieldsVersion(heartbeatFieldsVersion); - } - - @Test - public void testGetHeartbeatInterval() throws Exception { - HeartbeatFields testSubject; - Integer result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getHeartbeatInterval(); - } - - @Test - public void testSetHeartbeatInterval() throws Exception { - HeartbeatFields testSubject; - Integer heartbeatInterval = 0; - - // default test - testSubject = createTestSubject(); - testSubject.setHeartbeatInterval(heartbeatInterval); - } - - @Test - public void testToString() throws Exception { - HeartbeatFields testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.toString(); - } - - @Test - public void testHashCode() throws Exception { - HeartbeatFields testSubject; - int result; - - // default test - testSubject = createTestSubject(); - result = testSubject.hashCode(); - } - - @Test - public void testEquals() throws Exception { - HeartbeatFields testSubject; - HeartbeatFields testSubject2; - Object other = null; - boolean result; - - // default test - testSubject = createTestSubject(); - testSubject2 = createTestSubject(); - result = testSubject.equals(other); - result = testSubject.equals(testSubject); - result = testSubject.equals(testSubject2); - assertNotNull(result); - } -} diff --git a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/HugePagesArrayTest.java b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/HugePagesArrayTest.java deleted file mode 100644 index 83aa2b3..0000000 --- a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/HugePagesArrayTest.java +++ /dev/null @@ -1,209 +0,0 @@ -/* -* ============LICENSE_START======================================================= -* ONAP : DCAE -* ================================================================================ -* Copyright 2018 TechMahindra -*================================================================================= -* 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========================================================= -*/ - -package org.onap.dcaegen2.ves.domain.ves7_0; - -import static org.junit.Assert.assertNotNull; -import org.junit.Test; - - -public class HugePagesArrayTest { - - private HugePagesArray createTestSubject() { - return new HugePagesArray(); - } - - @Test - public void testGetBytesFree() throws Exception { - HugePagesArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getBytesFree(); - } - - @Test - public void testSetBytesFree() throws Exception { - HugePagesArray testSubject; - Double bytesFree = null; - - // default test - testSubject = createTestSubject(); - testSubject.setBytesFree(bytesFree); - } - - @Test - public void testGetBytesUsed() throws Exception { - HugePagesArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getBytesUsed(); - } - - @Test - public void testSetBytesUsed() throws Exception { - HugePagesArray testSubject; - Double bytesUsed = null; - - // default test - testSubject = createTestSubject(); - testSubject.setBytesUsed(bytesUsed); - } - - @Test - public void testGetHugePagesIdentifier() throws Exception { - HugePagesArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getHugePagesIdentifier(); - } - - @Test - public void testSetHugePagesIdentifier() throws Exception { - HugePagesArray testSubject; - Double hugePagesIdentifier = null; - - // default test - testSubject = createTestSubject(); - testSubject.setHugePagesIdentifier(hugePagesIdentifier); - } - - @Test - public void testGetPercentFree() throws Exception { - HugePagesArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getPercentFree(); - } - - @Test - public void testSetPercentFree() throws Exception { - HugePagesArray testSubject; - Double percentFree = null; - - // default test - testSubject = createTestSubject(); - testSubject.setPercentFree(percentFree); - } - - @Test - public void testGetPercentUsed() throws Exception { - HugePagesArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getPercentUsed(); - } - - @Test - public void testSetPercentUsed() throws Exception { - HugePagesArray testSubject; - Double percentUsed = null; - - // default test - testSubject = createTestSubject(); - testSubject.setPercentUsed(percentUsed); - } - - @Test - public void testGetVmPageNumberFree() throws Exception { - HugePagesArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getVmPageNumberFree(); - } - - @Test - public void testSetVmPageNumberFree() throws Exception { - HugePagesArray testSubject; - Double vmPageNumberFree = null; - - // default test - testSubject = createTestSubject(); - testSubject.setVmPageNumberFree(vmPageNumberFree); - } - - @Test - public void testGetVmPageNumberUsed() throws Exception { - HugePagesArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getVmPageNumberUsed(); - } - - @Test - public void testSetVmPageNumberUsed() throws Exception { - HugePagesArray testSubject; - Double vmPageNumberUsed = null; - - // default test - testSubject = createTestSubject(); - testSubject.setVmPageNumberUsed(vmPageNumberUsed); - } - - @Test - public void testToString() throws Exception { - HugePagesArray testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.toString(); - } - - @Test - public void testHashCode() throws Exception { - HugePagesArray testSubject; - int result; - - // default test - testSubject = createTestSubject(); - result = testSubject.hashCode(); - } - - @Test - public void testEquals() throws Exception { - - HugePagesArray testSubject; - HugePagesArray testSubject2; - Object other = null; - boolean result; - - // default test - testSubject = createTestSubject(); - testSubject2 = createTestSubject(); - result = testSubject.equals(other); - result = testSubject.equals(testSubject); - result = testSubject.equals(testSubject2); - assertNotNull(result); - } -} diff --git a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/InternalHeaderFieldsTest.java b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/InternalHeaderFieldsTest.java deleted file mode 100644 index 2f223b8..0000000 --- a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/InternalHeaderFieldsTest.java +++ /dev/null @@ -1,90 +0,0 @@ -/* -* ============LICENSE_START======================================================= -* ONAP : DCAE -* ================================================================================ -* Copyright 2018 TechMahindra -*================================================================================= -* 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========================================================= -*/ - -package org.onap.dcaegen2.ves.domain.ves7_0; - -import static org.junit.Assert.assertNotNull; -import java.util.Map; -import org.junit.Test; - - -public class InternalHeaderFieldsTest { - - private InternalHeaderFields createTestSubject() { - return new InternalHeaderFields(); - } - - @Test - public void testToString() throws Exception { - InternalHeaderFields testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.toString(); - } - - @Test - public void testGetAdditionalProperties() throws Exception { - InternalHeaderFields testSubject; - Map result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getAdditionalProperties(); - } - - @Test - public void testSetAdditionalProperty() throws Exception { - InternalHeaderFields testSubject; - String name = ""; - Object value = null; - - // default test - testSubject = createTestSubject(); - testSubject.setAdditionalProperty(name, value); - } - - @Test - public void testHashCode() throws Exception { - InternalHeaderFields testSubject; - int result; - - // default test - testSubject = createTestSubject(); - result = testSubject.hashCode(); - } - - @Test - public void testEquals() throws Exception { - InternalHeaderFields testSubject; - InternalHeaderFields testSubject2; - Object other = null; - boolean result; - - // default test - testSubject = createTestSubject(); - testSubject2 = createTestSubject(); - result = testSubject.equals(other); - result = testSubject.equals(testSubject); - result = testSubject.equals(testSubject2); - assertNotNull(result); - } -} diff --git a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/IpmiBaseboardTemperatureArrayTest.java b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/IpmiBaseboardTemperatureArrayTest.java deleted file mode 100644 index a2d74fd..0000000 --- a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/IpmiBaseboardTemperatureArrayTest.java +++ /dev/null @@ -1,108 +0,0 @@ -/* -* ============LICENSE_START======================================================= -* ONAP : DCAE -* ================================================================================ -* Copyright 2018 TechMahindra -*================================================================================= -* 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========================================================= -*/ - -package org.onap.dcaegen2.ves.domain.ves7_0; - -import static org.junit.Assert.assertNotNull; -import org.junit.Test; - - -public class IpmiBaseboardTemperatureArrayTest { - - private IpmiBaseboardTemperatureArray createTestSubject() { - return new IpmiBaseboardTemperatureArray(); - } - - @Test - public void testGetBaseboardTemperatureIdentifier() throws Exception { - IpmiBaseboardTemperatureArray testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getBaseboardTemperatureIdentifier(); - } - - @Test - public void testSetBaseboardTemperatureIdentifier() throws Exception { - IpmiBaseboardTemperatureArray testSubject; - String baseboardTemperatureIdentifier = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setBaseboardTemperatureIdentifier(baseboardTemperatureIdentifier); - } - - @Test - public void testGetBaseboardTemperature() throws Exception { - IpmiBaseboardTemperatureArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getBaseboardTemperature(); - } - - @Test - public void testSetBaseboardTemperature() throws Exception { - IpmiBaseboardTemperatureArray testSubject; - Double baseboardTemperature = null; - - // default test - testSubject = createTestSubject(); - testSubject.setBaseboardTemperature(baseboardTemperature); - } - - @Test - public void testToString() throws Exception { - IpmiBaseboardTemperatureArray testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.toString(); - } - - @Test - public void testHashCode() throws Exception { - IpmiBaseboardTemperatureArray testSubject; - int result; - - // default test - testSubject = createTestSubject(); - result = testSubject.hashCode(); - } - - @Test - public void testEquals() throws Exception { - IpmiBaseboardTemperatureArray testSubject; - IpmiBaseboardTemperatureArray testSubject2; - Object other = null; - boolean result; - - // default test - testSubject = createTestSubject(); - testSubject2 = createTestSubject(); - result = testSubject.equals(other); - result = testSubject.equals(testSubject); - result = testSubject.equals(testSubject2); - assertNotNull(result); - } -} diff --git a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/IpmiBaseboardVoltageRegulatorArrayTest.java b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/IpmiBaseboardVoltageRegulatorArrayTest.java deleted file mode 100644 index e1e015d..0000000 --- a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/IpmiBaseboardVoltageRegulatorArrayTest.java +++ /dev/null @@ -1,108 +0,0 @@ -/* -* ============LICENSE_START======================================================= -* ONAP : DCAE -* ================================================================================ -* Copyright 2018 TechMahindra -*================================================================================= -* 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========================================================= -*/ - -package org.onap.dcaegen2.ves.domain.ves7_0; - -import static org.junit.Assert.assertNotNull; -import org.junit.Test; - - -public class IpmiBaseboardVoltageRegulatorArrayTest { - - private IpmiBaseboardVoltageRegulatorArray createTestSubject() { - return new IpmiBaseboardVoltageRegulatorArray(); - } - - @Test - public void testGetBaseboardVoltageRegulatorIdentifier() throws Exception { - IpmiBaseboardVoltageRegulatorArray testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getBaseboardVoltageRegulatorIdentifier(); - } - - @Test - public void testSetBaseboardVoltageRegulatorIdentifier() throws Exception { - IpmiBaseboardVoltageRegulatorArray testSubject; - String baseboardVoltageRegulatorIdentifier = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setBaseboardVoltageRegulatorIdentifier(baseboardVoltageRegulatorIdentifier); - } - - @Test - public void testGetVoltageRegulatorTemperature() throws Exception { - IpmiBaseboardVoltageRegulatorArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getVoltageRegulatorTemperature(); - } - - @Test - public void testSetVoltageRegulatorTemperature() throws Exception { - IpmiBaseboardVoltageRegulatorArray testSubject; - Double voltageRegulatorTemperature = null; - - // default test - testSubject = createTestSubject(); - testSubject.setVoltageRegulatorTemperature(voltageRegulatorTemperature); - } - - @Test - public void testToString() throws Exception { - IpmiBaseboardVoltageRegulatorArray testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.toString(); - } - - @Test - public void testHashCode() throws Exception { - IpmiBaseboardVoltageRegulatorArray testSubject; - int result; - - // default test - testSubject = createTestSubject(); - result = testSubject.hashCode(); - } - - @Test - public void testEquals() throws Exception { - IpmiBaseboardVoltageRegulatorArray testSubject; - IpmiBaseboardVoltageRegulatorArray testSubject2; - Object other = null; - boolean result; - - // default test - testSubject = createTestSubject(); - testSubject2 = createTestSubject(); - result = testSubject.equals(other); - result = testSubject.equals(testSubject); - result = testSubject.equals(testSubject2); - assertNotNull(result); - } -} diff --git a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/IpmiBatteryArrayTest.java b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/IpmiBatteryArrayTest.java deleted file mode 100644 index a97169e..0000000 --- a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/IpmiBatteryArrayTest.java +++ /dev/null @@ -1,128 +0,0 @@ -/* -* ============LICENSE_START======================================================= -* ONAP : DCAE -* ================================================================================ -* Copyright 2018 TechMahindra -*================================================================================= -* 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========================================================= -*/ - -package org.onap.dcaegen2.ves.domain.ves7_0; - -import static org.junit.Assert.assertNotNull; -import org.junit.Test; - - -public class IpmiBatteryArrayTest { - - private IpmiBatteryArray createTestSubject() { - return new IpmiBatteryArray(); - } - - @Test - public void testGetBatteryIdentifier() throws Exception { - IpmiBatteryArray testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getBatteryIdentifier(); - } - - @Test - public void testSetBatteryIdentifier() throws Exception { - IpmiBatteryArray testSubject; - String batteryIdentifier = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setBatteryIdentifier(batteryIdentifier); - } - - @Test - public void testGetBatteryType() throws Exception { - IpmiBatteryArray testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getBatteryType(); - } - - @Test - public void testSetBatteryType() throws Exception { - IpmiBatteryArray testSubject; - String batteryType = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setBatteryType(batteryType); - } - - @Test - public void testGetBatteryVoltageLevel() throws Exception { - IpmiBatteryArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getBatteryVoltageLevel(); - } - - @Test - public void testSetBatteryVoltageLevel() throws Exception { - IpmiBatteryArray testSubject; - Double batteryVoltageLevel = null; - - // default test - testSubject = createTestSubject(); - testSubject.setBatteryVoltageLevel(batteryVoltageLevel); - } - - @Test - public void testToString() throws Exception { - IpmiBatteryArray testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.toString(); - } - - @Test - public void testHashCode() throws Exception { - IpmiBatteryArray testSubject; - int result; - - // default test - testSubject = createTestSubject(); - result = testSubject.hashCode(); - } - - @Test - public void testEquals() throws Exception { - IpmiBatteryArray testSubject; - IpmiBatteryArray testSubject2; - Object other = null; - boolean result; - - // default test - testSubject = createTestSubject(); - testSubject2 = createTestSubject(); - result = testSubject.equals(other); - result = testSubject.equals(testSubject); - result = testSubject.equals(testSubject2); - assertNotNull(result); - } -} diff --git a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/IpmiFanArrayTest.java b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/IpmiFanArrayTest.java deleted file mode 100644 index c782aaf..0000000 --- a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/IpmiFanArrayTest.java +++ /dev/null @@ -1,108 +0,0 @@ -/* -* ============LICENSE_START======================================================= -* ONAP : DCAE -* ================================================================================ -* Copyright 2018 TechMahindra -*================================================================================= -* 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========================================================= -*/ - -package org.onap.dcaegen2.ves.domain.ves7_0; - -import static org.junit.Assert.assertNotNull; -import org.junit.Test; - - -public class IpmiFanArrayTest { - - private IpmiFanArray createTestSubject() { - return new IpmiFanArray(); - } - - @Test - public void testGetFanIdentifier() throws Exception { - IpmiFanArray testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getFanIdentifier(); - } - - @Test - public void testSetFanIdentifier() throws Exception { - IpmiFanArray testSubject; - String fanIdentifier = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setFanIdentifier(fanIdentifier); - } - - @Test - public void testGetFanSpeed() throws Exception { - IpmiFanArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getFanSpeed(); - } - - @Test - public void testSetFanSpeed() throws Exception { - IpmiFanArray testSubject; - Double fanSpeed = null; - - // default test - testSubject = createTestSubject(); - testSubject.setFanSpeed(fanSpeed); - } - - @Test - public void testToString() throws Exception { - IpmiFanArray testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.toString(); - } - - @Test - public void testHashCode() throws Exception { - IpmiFanArray testSubject; - int result; - - // default test - testSubject = createTestSubject(); - result = testSubject.hashCode(); - } - - @Test - public void testEquals() throws Exception { - IpmiFanArray testSubject; - IpmiFanArray testSubject2; - Object other = null; - boolean result; - - // default test - testSubject = createTestSubject(); - testSubject2 = createTestSubject(); - result = testSubject.equals(other); - result = testSubject.equals(testSubject); - result = testSubject.equals(testSubject2); - assertNotNull(result); - } -} diff --git a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/IpmiGlobalAggregateTemperatureMarginArrayTest.java b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/IpmiGlobalAggregateTemperatureMarginArrayTest.java deleted file mode 100644 index 120d054..0000000 --- a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/IpmiGlobalAggregateTemperatureMarginArrayTest.java +++ /dev/null @@ -1,108 +0,0 @@ -/* -* ============LICENSE_START======================================================= -* ONAP : DCAE -* ================================================================================ -* Copyright 2018 TechMahindra -*================================================================================= -* 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========================================================= -*/ -package org.onap.dcaegen2.ves.domain.ves7_0; - -import static org.junit.Assert.assertNotNull; -import org.junit.Test; - - -public class IpmiGlobalAggregateTemperatureMarginArrayTest { - - private IpmiGlobalAggregateTemperatureMarginArray createTestSubject() { - return new IpmiGlobalAggregateTemperatureMarginArray(); - } - - @Test - public void testGetIpmiGlobalAggregateTemperatureMarginIdentifier() throws Exception { - IpmiGlobalAggregateTemperatureMarginArray testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getIpmiGlobalAggregateTemperatureMarginIdentifier(); - } - - @Test - public void testSetIpmiGlobalAggregateTemperatureMarginIdentifier() throws Exception { - IpmiGlobalAggregateTemperatureMarginArray testSubject; - String ipmiGlobalAggregateTemperatureMarginIdentifier = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setIpmiGlobalAggregateTemperatureMarginIdentifier( - ipmiGlobalAggregateTemperatureMarginIdentifier); - } - - @Test - public void testGetGlobalAggregateTemperatureMargin() throws Exception { - IpmiGlobalAggregateTemperatureMarginArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getGlobalAggregateTemperatureMargin(); - } - - @Test - public void testSetGlobalAggregateTemperatureMargin() throws Exception { - IpmiGlobalAggregateTemperatureMarginArray testSubject; - Double globalAggregateTemperatureMargin = null; - - // default test - testSubject = createTestSubject(); - testSubject.setGlobalAggregateTemperatureMargin(globalAggregateTemperatureMargin); - } - - @Test - public void testToString() throws Exception { - IpmiGlobalAggregateTemperatureMarginArray testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.toString(); - } - - @Test - public void testHashCode() throws Exception { - IpmiGlobalAggregateTemperatureMarginArray testSubject; - int result; - - // default test - testSubject = createTestSubject(); - result = testSubject.hashCode(); - } - - @Test - public void testEquals() throws Exception { - IpmiGlobalAggregateTemperatureMarginArray testSubject; - IpmiGlobalAggregateTemperatureMarginArray testSubject2; - Object other = null; - boolean result; - - // default test - testSubject = createTestSubject(); - testSubject2 = createTestSubject(); - result = testSubject.equals(other); - result = testSubject.equals(testSubject); - result = testSubject.equals(testSubject2); - assertNotNull(result); - } -} diff --git a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/IpmiHsbpArrayTest.java b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/IpmiHsbpArrayTest.java deleted file mode 100644 index deaf91f..0000000 --- a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/IpmiHsbpArrayTest.java +++ /dev/null @@ -1,108 +0,0 @@ -/* -* ============LICENSE_START======================================================= -* ONAP : DCAE -* ================================================================================ -* Copyright 2018 TechMahindra -*================================================================================= -* 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========================================================= -*/ - -package org.onap.dcaegen2.ves.domain.ves7_0; - -import static org.junit.Assert.assertNotNull; -import org.junit.Test; - - -public class IpmiHsbpArrayTest { - - private IpmiHsbpArray createTestSubject() { - return new IpmiHsbpArray(); - } - - @Test - public void testGetHsbpIdentifier() throws Exception { - IpmiHsbpArray testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getHsbpIdentifier(); - } - - @Test - public void testSetHsbpIdentifier() throws Exception { - IpmiHsbpArray testSubject; - String hsbpIdentifier = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setHsbpIdentifier(hsbpIdentifier); - } - - @Test - public void testGetHsbpTemperature() throws Exception { - IpmiHsbpArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getHsbpTemperature(); - } - - @Test - public void testSetHsbpTemperature() throws Exception { - IpmiHsbpArray testSubject; - Double hsbpTemperature = null; - - // default test - testSubject = createTestSubject(); - testSubject.setHsbpTemperature(hsbpTemperature); - } - - @Test - public void testToString() throws Exception { - IpmiHsbpArray testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.toString(); - } - - @Test - public void testHashCode() throws Exception { - IpmiHsbpArray testSubject; - int result; - - // default test - testSubject = createTestSubject(); - result = testSubject.hashCode(); - } - - @Test - public void testEquals() throws Exception { - IpmiHsbpArray testSubject; - IpmiHsbpArray testSubject2; - Object other = null; - boolean result; - - // default test - testSubject = createTestSubject(); - testSubject2 = createTestSubject(); - result = testSubject.equals(other); - result = testSubject.equals(testSubject); - result = testSubject.equals(testSubject2); - assertNotNull(result); - } -} diff --git a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/IpmiNicArrayTest.java b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/IpmiNicArrayTest.java deleted file mode 100644 index 0a3e33f..0000000 --- a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/IpmiNicArrayTest.java +++ /dev/null @@ -1,108 +0,0 @@ -/* -* ============LICENSE_START======================================================= -* ONAP : DCAE -* ================================================================================ -* Copyright 2018 TechMahindra -*================================================================================= -* 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========================================================= -*/ - -package org.onap.dcaegen2.ves.domain.ves7_0; - -import static org.junit.Assert.assertNotNull; -import org.junit.Test; - - -public class IpmiNicArrayTest { - - private IpmiNicArray createTestSubject() { - return new IpmiNicArray(); - } - - @Test - public void testGetNicIdentifier() throws Exception { - IpmiNicArray testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getNicIdentifier(); - } - - @Test - public void testSetNicIdentifier() throws Exception { - IpmiNicArray testSubject; - String nicIdentifier = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setNicIdentifier(nicIdentifier); - } - - @Test - public void testGetNicTemperature() throws Exception { - IpmiNicArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getNicTemperature(); - } - - @Test - public void testSetNicTemperature() throws Exception { - IpmiNicArray testSubject; - Double nicTemperature = null; - - // default test - testSubject = createTestSubject(); - testSubject.setNicTemperature(nicTemperature); - } - - @Test - public void testToString() throws Exception { - IpmiNicArray testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.toString(); - } - - @Test - public void testHashCode() throws Exception { - IpmiNicArray testSubject; - int result; - - // default test - testSubject = createTestSubject(); - result = testSubject.hashCode(); - } - - @Test - public void testEquals() throws Exception { - IpmiNicArray testSubject; - IpmiNicArray testSubject2; - Object other = null; - boolean result; - - // default test - testSubject = createTestSubject(); - testSubject2 = createTestSubject(); - result = testSubject.equals(other); - result = testSubject.equals(testSubject); - result = testSubject.equals(testSubject2); - assertNotNull(result); - } -} diff --git a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/IpmiPowerSupplyArrayTest.java b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/IpmiPowerSupplyArrayTest.java deleted file mode 100644 index 8c96746..0000000 --- a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/IpmiPowerSupplyArrayTest.java +++ /dev/null @@ -1,148 +0,0 @@ -/* -* ============LICENSE_START======================================================= -* ONAP : DCAE -* ================================================================================ -* Copyright 2018 TechMahindra -*================================================================================= -* 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========================================================= -*/ - -package org.onap.dcaegen2.ves.domain.ves7_0; - -import static org.junit.Assert.assertNotNull; -import org.junit.Test; - - -public class IpmiPowerSupplyArrayTest { - - private IpmiPowerSupplyArray createTestSubject() { - return new IpmiPowerSupplyArray(); - } - - @Test - public void testGetPowerSupplyIdentifier() throws Exception { - IpmiPowerSupplyArray testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getPowerSupplyIdentifier(); - } - - @Test - public void testSetPowerSupplyIdentifier() throws Exception { - IpmiPowerSupplyArray testSubject; - String powerSupplyIdentifier = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setPowerSupplyIdentifier(powerSupplyIdentifier); - } - - @Test - public void testGetPowerSupplyInputPower() throws Exception { - IpmiPowerSupplyArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getPowerSupplyInputPower(); - } - - @Test - public void testSetPowerSupplyInputPower() throws Exception { - IpmiPowerSupplyArray testSubject; - Double powerSupplyInputPower = null; - - // default test - testSubject = createTestSubject(); - testSubject.setPowerSupplyInputPower(powerSupplyInputPower); - } - - @Test - public void testGetPowerSupplyCurrentOutputPercent() throws Exception { - IpmiPowerSupplyArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getPowerSupplyCurrentOutputPercent(); - } - - @Test - public void testSetPowerSupplyCurrentOutputPercent() throws Exception { - IpmiPowerSupplyArray testSubject; - Double powerSupplyCurrentOutputPercent = null; - - // default test - testSubject = createTestSubject(); - testSubject.setPowerSupplyCurrentOutputPercent(powerSupplyCurrentOutputPercent); - } - - @Test - public void testGetPowerSupplyTemperature() throws Exception { - IpmiPowerSupplyArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getPowerSupplyTemperature(); - } - - @Test - public void testSetPowerSupplyTemperature() throws Exception { - IpmiPowerSupplyArray testSubject; - Double powerSupplyTemperature = null; - - // default test - testSubject = createTestSubject(); - testSubject.setPowerSupplyTemperature(powerSupplyTemperature); - } - - @Test - public void testToString() throws Exception { - IpmiPowerSupplyArray testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.toString(); - } - - @Test - public void testHashCode() throws Exception { - IpmiPowerSupplyArray testSubject; - int result; - - // default test - testSubject = createTestSubject(); - result = testSubject.hashCode(); - } - - @Test - public void testEquals() throws Exception { - IpmiPowerSupplyArray testSubject; - IpmiPowerSupplyArray testSubject2; - Object other = null; - boolean result; - - // default test - testSubject = createTestSubject(); - testSubject2 = createTestSubject(); - result = testSubject.equals(other); - result = testSubject.equals(testSubject); - result = testSubject.equals(testSubject2); - assertNotNull(result); - } -} diff --git a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/IpmiProcessorArrayTest.java b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/IpmiProcessorArrayTest.java deleted file mode 100644 index 23c51d2..0000000 --- a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/IpmiProcessorArrayTest.java +++ /dev/null @@ -1,150 +0,0 @@ -/* -* ============LICENSE_START======================================================= -* ONAP : DCAE -* ================================================================================ -* Copyright 2018 TechMahindra -*================================================================================= -* 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========================================================= -*/ - -package org.onap.dcaegen2.ves.domain.ves7_0; - -import static org.junit.Assert.assertNotNull; -import java.util.List; -import org.junit.Test; - - -public class IpmiProcessorArrayTest { - - private IpmiProcessorArray createTestSubject() { - return new IpmiProcessorArray(); - } - - @Test - public void testGetProcessorIdentifier() throws Exception { - IpmiProcessorArray testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getProcessorIdentifier(); - } - - @Test - public void testSetProcessorIdentifier() throws Exception { - IpmiProcessorArray testSubject; - String processorIdentifier = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setProcessorIdentifier(processorIdentifier); - } - - @Test - public void testGetProcessorThermalControlPercent() throws Exception { - IpmiProcessorArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getProcessorThermalControlPercent(); - } - - @Test - public void testSetProcessorThermalControlPercent() throws Exception { - IpmiProcessorArray testSubject; - Double processorThermalControlPercent = null; - - // default test - testSubject = createTestSubject(); - testSubject.setProcessorThermalControlPercent(processorThermalControlPercent); - } - - @Test - public void testGetProcessorDtsThermalMargin() throws Exception { - IpmiProcessorArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getProcessorDtsThermalMargin(); - } - - @Test - public void testSetProcessorDtsThermalMargin() throws Exception { - IpmiProcessorArray testSubject; - Double processorDtsThermalMargin = null; - - // default test - testSubject = createTestSubject(); - testSubject.setProcessorDtsThermalMargin(processorDtsThermalMargin); - } - - @Test - public void testGetProcessorDimmAggregateThermalMarginArray() throws Exception { - IpmiProcessorArray testSubject; - List result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getProcessorDimmAggregateThermalMarginArray(); - } - - @Test - public void testSetProcessorDimmAggregateThermalMarginArray() throws Exception { - IpmiProcessorArray testSubject; - List processorDimmAggregateThermalMarginArray = null; - - // default test - testSubject = createTestSubject(); - testSubject - .setProcessorDimmAggregateThermalMarginArray(processorDimmAggregateThermalMarginArray); - } - - @Test - public void testToString() throws Exception { - IpmiProcessorArray testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.toString(); - } - - @Test - public void testHashCode() throws Exception { - IpmiProcessorArray testSubject; - int result; - - // default test - testSubject = createTestSubject(); - result = testSubject.hashCode(); - } - - @Test - public void testEquals() throws Exception { - IpmiProcessorArray testSubject; - IpmiProcessorArray testSubject2; - Object other = null; - boolean result; - - // default test - testSubject = createTestSubject(); - testSubject2 = createTestSubject(); - result = testSubject.equals(other); - result = testSubject.equals(testSubject); - result = testSubject.equals(testSubject2); - assertNotNull(result); - } -} diff --git a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/IpmiTest.java b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/IpmiTest.java deleted file mode 100644 index 4cb0224..0000000 --- a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/IpmiTest.java +++ /dev/null @@ -1,331 +0,0 @@ -/* -* ============LICENSE_START======================================================= -* ONAP : DCAE -* ================================================================================ -* Copyright 2018 TechMahindra -*================================================================================= -* 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========================================================= -*/ - -package org.onap.dcaegen2.ves.domain.ves7_0; - -import static org.junit.Assert.assertNotNull; -import java.util.List; -import org.junit.Test; - - -public class IpmiTest { - - private Ipmi createTestSubject() { - return new Ipmi(); - } - - @Test - public void testGetExitAirTemperature() throws Exception { - Ipmi testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getExitAirTemperature(); - } - - @Test - public void testSetExitAirTemperature() throws Exception { - Ipmi testSubject; - Double exitAirTemperature = null; - - // default test - testSubject = createTestSubject(); - testSubject.setExitAirTemperature(exitAirTemperature); - } - - @Test - public void testGetFrontPanelTemperature() throws Exception { - Ipmi testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getFrontPanelTemperature(); - } - - @Test - public void testSetFrontPanelTemperature() throws Exception { - Ipmi testSubject; - Double frontPanelTemperature = null; - - // default test - testSubject = createTestSubject(); - testSubject.setFrontPanelTemperature(frontPanelTemperature); - } - - @Test - public void testGetIoModuleTemperature() throws Exception { - Ipmi testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getIoModuleTemperature(); - } - - @Test - public void testSetIoModuleTemperature() throws Exception { - Ipmi testSubject; - Double ioModuleTemperature = null; - - // default test - testSubject = createTestSubject(); - testSubject.setIoModuleTemperature(ioModuleTemperature); - } - - @Test - public void testGetIpmiBaseboardTemperatureArray() throws Exception { - Ipmi testSubject; - List result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getIpmiBaseboardTemperatureArray(); - } - - @Test - public void testSetIpmiBaseboardTemperatureArray() throws Exception { - Ipmi testSubject; - List ipmiBaseboardTemperatureArray = null; - - // default test - testSubject = createTestSubject(); - testSubject.setIpmiBaseboardTemperatureArray(ipmiBaseboardTemperatureArray); - } - - @Test - public void testGetIpmiBaseboardVoltageRegulatorArray() throws Exception { - Ipmi testSubject; - List result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getIpmiBaseboardVoltageRegulatorArray(); - } - - @Test - public void testSetIpmiBaseboardVoltageRegulatorArray() throws Exception { - Ipmi testSubject; - List ipmiBaseboardVoltageRegulatorArray = null; - - // default test - testSubject = createTestSubject(); - testSubject.setIpmiBaseboardVoltageRegulatorArray(ipmiBaseboardVoltageRegulatorArray); - } - - @Test - public void testGetIpmiBatteryArray() throws Exception { - Ipmi testSubject; - List result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getIpmiBatteryArray(); - } - - @Test - public void testSetIpmiBatteryArray() throws Exception { - Ipmi testSubject; - List ipmiBatteryArray = null; - - // default test - testSubject = createTestSubject(); - testSubject.setIpmiBatteryArray(ipmiBatteryArray); - } - - @Test - public void testGetIpmiFanArray() throws Exception { - Ipmi testSubject; - List result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getIpmiFanArray(); - } - - @Test - public void testSetIpmiFanArray() throws Exception { - Ipmi testSubject; - List ipmiFanArray = null; - - // default test - testSubject = createTestSubject(); - testSubject.setIpmiFanArray(ipmiFanArray); - } - - @Test - public void testGetIpmiHsbpArray() throws Exception { - Ipmi testSubject; - List result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getIpmiHsbpArray(); - } - - @Test - public void testSetIpmiHsbpArray() throws Exception { - Ipmi testSubject; - List ipmiHsbpArray = null; - - // default test - testSubject = createTestSubject(); - testSubject.setIpmiHsbpArray(ipmiHsbpArray); - } - - @Test - public void testGetIpmiGlobalAggregateTemperatureMarginArray() throws Exception { - Ipmi testSubject; - List result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getIpmiGlobalAggregateTemperatureMarginArray(); - } - - @Test - public void testSetIpmiGlobalAggregateTemperatureMarginArray() throws Exception { - Ipmi testSubject; - List ipmiGlobalAggregateTemperatureMarginArray = - null; - - // default test - testSubject = createTestSubject(); - testSubject - .setIpmiGlobalAggregateTemperatureMarginArray(ipmiGlobalAggregateTemperatureMarginArray); - } - - @Test - public void testGetIpmiNicArray() throws Exception { - Ipmi testSubject; - List result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getIpmiNicArray(); - } - - @Test - public void testSetIpmiNicArray() throws Exception { - Ipmi testSubject; - List ipmiNicArray = null; - - // default test - testSubject = createTestSubject(); - testSubject.setIpmiNicArray(ipmiNicArray); - } - - @Test - public void testGetIpmiPowerSupplyArray() throws Exception { - Ipmi testSubject; - List result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getIpmiPowerSupplyArray(); - } - - @Test - public void testSetIpmiPowerSupplyArray() throws Exception { - Ipmi testSubject; - List ipmiPowerSupplyArray = null; - - // default test - testSubject = createTestSubject(); - testSubject.setIpmiPowerSupplyArray(ipmiPowerSupplyArray); - } - - @Test - public void testGetIpmiProcessorArray() throws Exception { - Ipmi testSubject; - List result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getIpmiProcessorArray(); - } - - @Test - public void testSetIpmiProcessorArray() throws Exception { - Ipmi testSubject; - List ipmiProcessorArray = null; - - // default test - testSubject = createTestSubject(); - testSubject.setIpmiProcessorArray(ipmiProcessorArray); - } - - @Test - public void testGetSystemAirflow() throws Exception { - Ipmi testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getSystemAirflow(); - } - - @Test - public void testSetSystemAirflow() throws Exception { - Ipmi testSubject; - Double systemAirflow = null; - - // default test - testSubject = createTestSubject(); - testSubject.setSystemAirflow(systemAirflow); - } - - @Test - public void testToString() throws Exception { - Ipmi testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.toString(); - } - - @Test - public void testHashCode() throws Exception { - Ipmi testSubject; - int result; - - // default test - testSubject = createTestSubject(); - result = testSubject.hashCode(); - } - - @Test - public void testEquals() throws Exception { - Ipmi testSubject; - Ipmi testSubject2; - Object other = null; - boolean result; - - // default test - testSubject = createTestSubject(); - testSubject2 = createTestSubject(); - result = testSubject.equals(other); - result = testSubject.equals(testSubject); - result = testSubject.equals(testSubject2); - assertNotNull(result); - } -} diff --git a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/LatencyDistributionTest.java b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/LatencyDistributionTest.java deleted file mode 100644 index e1b74d9..0000000 --- a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/LatencyDistributionTest.java +++ /dev/null @@ -1,128 +0,0 @@ -/* -* ============LICENSE_START======================================================= -* ONAP : DCAE -* ================================================================================ -* Copyright 2018 TechMahindra -*================================================================================= -* 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========================================================= -*/ - -package org.onap.dcaegen2.ves.domain.ves7_0; - -import static org.junit.Assert.assertNotNull; -import org.junit.Test; - - -public class LatencyDistributionTest { - - private LatencyDistribution createTestSubject() { - return new LatencyDistribution(); - } - - @Test - public void testGetCountsInTheBucket() throws Exception { - LatencyDistribution testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getCountsInTheBucket(); - } - - @Test - public void testSetCountsInTheBucket() throws Exception { - LatencyDistribution testSubject; - Double countsInTheBucket = null; - - // default test - testSubject = createTestSubject(); - testSubject.setCountsInTheBucket(countsInTheBucket); - } - - @Test - public void testGetHighEndOfLatencyBucket() throws Exception { - LatencyDistribution testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getHighEndOfLatencyBucket(); - } - - @Test - public void testSetHighEndOfLatencyBucket() throws Exception { - LatencyDistribution testSubject; - Double highEndOfLatencyBucket = null; - - // default test - testSubject = createTestSubject(); - testSubject.setHighEndOfLatencyBucket(highEndOfLatencyBucket); - } - - @Test - public void testGetLowEndOfLatencyBucket() throws Exception { - LatencyDistribution testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getLowEndOfLatencyBucket(); - } - - @Test - public void testSetLowEndOfLatencyBucket() throws Exception { - LatencyDistribution testSubject; - Double lowEndOfLatencyBucket = null; - - // default test - testSubject = createTestSubject(); - testSubject.setLowEndOfLatencyBucket(lowEndOfLatencyBucket); - } - - @Test - public void testToString() throws Exception { - LatencyDistribution testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.toString(); - } - - @Test - public void testHashCode() throws Exception { - LatencyDistribution testSubject; - int result; - - // default test - testSubject = createTestSubject(); - result = testSubject.hashCode(); - } - - @Test - public void testEquals() throws Exception { - LatencyDistribution testSubject; - LatencyDistribution testSubject2; - Object other = null; - boolean result; - - // default test - testSubject = createTestSubject(); - testSubject2 = createTestSubject(); - result = testSubject.equals(other); - result = testSubject.equals(testSubject); - result = testSubject.equals(testSubject2); - assertNotNull(result); - } -} diff --git a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/LoadArrayTest.java b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/LoadArrayTest.java deleted file mode 100644 index 515c9e1..0000000 --- a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/LoadArrayTest.java +++ /dev/null @@ -1,128 +0,0 @@ -/* -* ============LICENSE_START======================================================= -* ONAP : DCAE -* ================================================================================ -* Copyright 2018 TechMahindra -*================================================================================= -* 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========================================================= -*/ - -package org.onap.dcaegen2.ves.domain.ves7_0; - -import static org.junit.Assert.assertNotNull; -import org.junit.Test; - - -public class LoadArrayTest { - - private LoadArray createTestSubject() { - return new LoadArray(); - } - - @Test - public void testGetLongTerm() throws Exception { - LoadArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getLongTerm(); - } - - @Test - public void testSetLongTerm() throws Exception { - LoadArray testSubject; - Double longTerm = null; - - // default test - testSubject = createTestSubject(); - testSubject.setLongTerm(longTerm); - } - - @Test - public void testGetMidTerm() throws Exception { - LoadArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getMidTerm(); - } - - @Test - public void testSetMidTerm() throws Exception { - LoadArray testSubject; - Double midTerm = null; - - // default test - testSubject = createTestSubject(); - testSubject.setMidTerm(midTerm); - } - - @Test - public void testGetShortTerm() throws Exception { - LoadArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getShortTerm(); - } - - @Test - public void testSetShortTerm() throws Exception { - LoadArray testSubject; - Double shortTerm = null; - - // default test - testSubject = createTestSubject(); - testSubject.setShortTerm(shortTerm); - } - - @Test - public void testToString() throws Exception { - LoadArray testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.toString(); - } - - @Test - public void testHashCode() throws Exception { - LoadArray testSubject; - int result; - - // default test - testSubject = createTestSubject(); - result = testSubject.hashCode(); - } - - @Test - public void testEquals() throws Exception { - LoadArray testSubject; - LoadArray testSubject2; - Object other = null; - boolean result; - - // default test - testSubject = createTestSubject(); - testSubject2 = createTestSubject(); - result = testSubject.equals(other); - result = testSubject.equals(testSubject); - result = testSubject.equals(testSubject2); - assertNotNull(result); - } -} diff --git a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/MachineCheckExceptionArrayTest.java b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/MachineCheckExceptionArrayTest.java deleted file mode 100644 index 247c680..0000000 --- a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/MachineCheckExceptionArrayTest.java +++ /dev/null @@ -1,168 +0,0 @@ -/* -* ============LICENSE_START======================================================= -* ONAP : DCAE -* ================================================================================ -* Copyright 2018 TechMahindra -*================================================================================= -* 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========================================================= -*/ - -package org.onap.dcaegen2.ves.domain.ves7_0; - -import static org.junit.Assert.assertNotNull; -import org.junit.Test; - - -public class MachineCheckExceptionArrayTest { - - private MachineCheckExceptionArray createTestSubject() { - return new MachineCheckExceptionArray(); - } - - @Test - public void testGetCorrectedMemoryErrors() throws Exception { - MachineCheckExceptionArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getCorrectedMemoryErrors(); - } - - @Test - public void testSetCorrectedMemoryErrors() throws Exception { - MachineCheckExceptionArray testSubject; - Double correctedMemoryErrors = null; - - // default test - testSubject = createTestSubject(); - testSubject.setCorrectedMemoryErrors(correctedMemoryErrors); - } - - @Test - public void testGetCorrectedMemoryErrorsIn1Hr() throws Exception { - MachineCheckExceptionArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getCorrectedMemoryErrorsIn1Hr(); - } - - @Test - public void testSetCorrectedMemoryErrorsIn1Hr() throws Exception { - MachineCheckExceptionArray testSubject; - Double correctedMemoryErrorsIn1Hr = null; - - // default test - testSubject = createTestSubject(); - testSubject.setCorrectedMemoryErrorsIn1Hr(correctedMemoryErrorsIn1Hr); - } - - @Test - public void testGetUncorrectedMemoryErrors() throws Exception { - MachineCheckExceptionArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getUncorrectedMemoryErrors(); - } - - @Test - public void testSetUncorrectedMemoryErrors() throws Exception { - MachineCheckExceptionArray testSubject; - Double uncorrectedMemoryErrors = null; - - // default test - testSubject = createTestSubject(); - testSubject.setUncorrectedMemoryErrors(uncorrectedMemoryErrors); - } - - @Test - public void testGetUncorrectedMemoryErrorsIn1Hr() throws Exception { - MachineCheckExceptionArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getUncorrectedMemoryErrorsIn1Hr(); - } - - @Test - public void testSetUncorrectedMemoryErrorsIn1Hr() throws Exception { - MachineCheckExceptionArray testSubject; - Double uncorrectedMemoryErrorsIn1Hr = null; - - // default test - testSubject = createTestSubject(); - testSubject.setUncorrectedMemoryErrorsIn1Hr(uncorrectedMemoryErrorsIn1Hr); - } - - @Test - public void testGetVmIdentifier() throws Exception { - MachineCheckExceptionArray testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getVmIdentifier(); - } - - @Test - public void testSetVmIdentifier() throws Exception { - MachineCheckExceptionArray testSubject; - String vmIdentifier = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setVmIdentifier(vmIdentifier); - } - - @Test - public void testToString() throws Exception { - MachineCheckExceptionArray testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.toString(); - } - - @Test - public void testHashCode() throws Exception { - MachineCheckExceptionArray testSubject; - int result; - - // default test - testSubject = createTestSubject(); - result = testSubject.hashCode(); - } - - @Test - public void testEquals() throws Exception { - MachineCheckExceptionArray testSubject; - MachineCheckExceptionArray testSubject2; - Object other = null; - boolean result; - - // default test - testSubject = createTestSubject(); - testSubject2 = createTestSubject(); - result = testSubject.equals(other); - result = testSubject.equals(testSubject); - result = testSubject.equals(testSubject2); - assertNotNull(result); - } -} diff --git a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/MeasurementFieldsTest.java b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/MeasurementFieldsTest.java deleted file mode 100644 index df24c3f..0000000 --- a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/MeasurementFieldsTest.java +++ /dev/null @@ -1,550 +0,0 @@ -/* -* ============LICENSE_START======================================================= -* ONAP : DCAE -* ================================================================================ -* Copyright 2018 TechMahindra -*================================================================================= -* 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========================================================= -*/ - -package org.onap.dcaegen2.ves.domain.ves7_0; - -import static org.junit.Assert.assertNotNull; -import java.util.List; -import org.junit.Test; -import org.onap.dcaegen2.ves.domain.ves7_0.MeasurementFields.MeasurementFieldsVersion; - - -public class MeasurementFieldsTest { - - private MeasurementFields createTestSubject() { - return new MeasurementFields(); - } - - @Test - public void testGetAdditionalFields() throws Exception { - MeasurementFields testSubject; - AlarmAdditionalInformation result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getAdditionalFields(); - } - - @Test - public void testSetAdditionalFields() throws Exception { - MeasurementFields testSubject; - AlarmAdditionalInformation additionalFields = null; - - // default test - testSubject = createTestSubject(); - testSubject.setAdditionalFields(additionalFields); - } - - @Test - public void testGetAdditionalMeasurements() throws Exception { - MeasurementFields testSubject; - List result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getAdditionalMeasurements(); - } - - @Test - public void testSetAdditionalMeasurements() throws Exception { - MeasurementFields testSubject; - List additionalMeasurements = null; - - // default test - testSubject = createTestSubject(); - testSubject.setAdditionalMeasurements(additionalMeasurements); - } - - @Test - public void testGetAdditionalObjects() throws Exception { - MeasurementFields testSubject; - List result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getAdditionalObjects(); - } - - @Test - public void testSetAdditionalObjects() throws Exception { - MeasurementFields testSubject; - List additionalObjects = null; - - // default test - testSubject = createTestSubject(); - testSubject.setAdditionalObjects(additionalObjects); - } - - @Test - public void testGetCodecUsageArray() throws Exception { - MeasurementFields testSubject; - List result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getCodecUsageArray(); - } - - @Test - public void testSetCodecUsageArray() throws Exception { - MeasurementFields testSubject; - List codecUsageArray = null; - - // default test - testSubject = createTestSubject(); - testSubject.setCodecUsageArray(codecUsageArray); - } - - @Test - public void testGetConcurrentSessions() throws Exception { - MeasurementFields testSubject; - Integer result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getConcurrentSessions(); - } - - @Test - public void testSetConcurrentSessions() throws Exception { - MeasurementFields testSubject; - Integer concurrentSessions = 0; - - // default test - testSubject = createTestSubject(); - testSubject.setConcurrentSessions(concurrentSessions); - } - - @Test - public void testGetConfiguredEntities() throws Exception { - MeasurementFields testSubject; - Integer result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getConfiguredEntities(); - } - - @Test - public void testSetConfiguredEntities() throws Exception { - MeasurementFields testSubject; - Integer configuredEntities = 0; - - // default test - testSubject = createTestSubject(); - testSubject.setConfiguredEntities(configuredEntities); - } - - @Test - public void testGetCpuUsageArray() throws Exception { - MeasurementFields testSubject; - List result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getCpuUsageArray(); - } - - @Test - public void testSetCpuUsageArray() throws Exception { - MeasurementFields testSubject; - List cpuUsageArray = null; - - // default test - testSubject = createTestSubject(); - testSubject.setCpuUsageArray(cpuUsageArray); - } - - @Test - public void testGetDiskUsageArray() throws Exception { - MeasurementFields testSubject; - List result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getDiskUsageArray(); - } - - @Test - public void testSetDiskUsageArray() throws Exception { - MeasurementFields testSubject; - List diskUsageArray = null; - - // default test - testSubject = createTestSubject(); - testSubject.setDiskUsageArray(diskUsageArray); - } - - @Test - public void testGetFeatureUsageArray() throws Exception { - MeasurementFields testSubject; - AlarmAdditionalInformation result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getFeatureUsageArray(); - } - - @Test - public void testSetFeatureUsageArray() throws Exception { - MeasurementFields testSubject; - AlarmAdditionalInformation featureUsageArray = null; - - // default test - testSubject = createTestSubject(); - testSubject.setFeatureUsageArray(featureUsageArray); - } - - @Test - public void testGetFilesystemUsageArray() throws Exception { - MeasurementFields testSubject; - List result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getFilesystemUsageArray(); - } - - @Test - public void testSetFilesystemUsageArray() throws Exception { - MeasurementFields testSubject; - List filesystemUsageArray = null; - - // default test - testSubject = createTestSubject(); - testSubject.setFilesystemUsageArray(filesystemUsageArray); - } - - @Test - public void testGetHugePagesArray() throws Exception { - MeasurementFields testSubject; - List result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getHugePagesArray(); - } - - @Test - public void testSetHugePagesArray() throws Exception { - MeasurementFields testSubject; - List hugePagesArray = null; - - // default test - testSubject = createTestSubject(); - testSubject.setHugePagesArray(hugePagesArray); - } - - @Test - public void testGetIpmi() throws Exception { - MeasurementFields testSubject; - Ipmi result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getIpmi(); - } - - @Test - public void testSetIpmi() throws Exception { - MeasurementFields testSubject; - Ipmi ipmi = null; - - // default test - testSubject = createTestSubject(); - testSubject.setIpmi(ipmi); - } - - @Test - public void testGetLatencyDistribution() throws Exception { - MeasurementFields testSubject; - List result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getLatencyDistribution(); - } - - @Test - public void testSetLatencyDistribution() throws Exception { - MeasurementFields testSubject; - List latencyDistribution = null; - - // default test - testSubject = createTestSubject(); - testSubject.setLatencyDistribution(latencyDistribution); - } - - @Test - public void testGetLoadArray() throws Exception { - MeasurementFields testSubject; - List result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getLoadArray(); - } - - @Test - public void testSetLoadArray() throws Exception { - MeasurementFields testSubject; - List loadArray = null; - - // default test - testSubject = createTestSubject(); - testSubject.setLoadArray(loadArray); - } - - @Test - public void testGetMachineCheckExceptionArray() throws Exception { - MeasurementFields testSubject; - List result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getMachineCheckExceptionArray(); - } - - @Test - public void testSetMachineCheckExceptionArray() throws Exception { - MeasurementFields testSubject; - List machineCheckExceptionArray = null; - - // default test - testSubject = createTestSubject(); - testSubject.setMachineCheckExceptionArray(machineCheckExceptionArray); - } - - @Test - public void testGetMeanRequestLatency() throws Exception { - MeasurementFields testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getMeanRequestLatency(); - } - - @Test - public void testSetMeanRequestLatency() throws Exception { - MeasurementFields testSubject; - Double meanRequestLatency = null; - - // default test - testSubject = createTestSubject(); - testSubject.setMeanRequestLatency(meanRequestLatency); - } - - @Test - public void testGetMeasurementInterval() throws Exception { - MeasurementFields testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getMeasurementInterval(); - } - - @Test - public void testSetMeasurementInterval() throws Exception { - MeasurementFields testSubject; - Double measurementInterval = null; - - // default test - testSubject = createTestSubject(); - testSubject.setMeasurementInterval(measurementInterval); - } - - @Test - public void testGetMeasurementFieldsVersion() throws Exception { - MeasurementFields testSubject; - MeasurementFieldsVersion result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getMeasurementFieldsVersion(); - } - - @Test - public void testSetMeasurementFieldsVersion() throws Exception { - MeasurementFields testSubject; - MeasurementFieldsVersion measurementFieldsVersion = MeasurementFieldsVersion._4_0; - - // default test - testSubject = createTestSubject(); - testSubject.setMeasurementFieldsVersion(measurementFieldsVersion); - } - - @Test - public void testGetMemoryUsageArray() throws Exception { - MeasurementFields testSubject; - List result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getMemoryUsageArray(); - } - - @Test - public void testSetMemoryUsageArray() throws Exception { - MeasurementFields testSubject; - List memoryUsageArray = null; - - // default test - testSubject = createTestSubject(); - testSubject.setMemoryUsageArray(memoryUsageArray); - } - - @Test - public void testGetNumberOfMediaPortsInUse() throws Exception { - MeasurementFields testSubject; - Integer result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getNumberOfMediaPortsInUse(); - } - - @Test - public void testSetNumberOfMediaPortsInUse() throws Exception { - MeasurementFields testSubject; - Integer numberOfMediaPortsInUse = 0; - - // default test - testSubject = createTestSubject(); - testSubject.setNumberOfMediaPortsInUse(numberOfMediaPortsInUse); - } - - @Test - public void testGetRequestRate() throws Exception { - MeasurementFields testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getRequestRate(); - } - - @Test - public void testSetRequestRate() throws Exception { - MeasurementFields testSubject; - Double requestRate = null; - - // default test - testSubject = createTestSubject(); - testSubject.setRequestRate(requestRate); - } - - @Test - public void testGetNfcScalingMetric() throws Exception { - MeasurementFields testSubject; - Integer result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getNfcScalingMetric(); - } - - @Test - public void testSetNfcScalingMetric() throws Exception { - MeasurementFields testSubject; - Integer nfcScalingMetric = 0; - - // default test - testSubject = createTestSubject(); - testSubject.setNfcScalingMetric(nfcScalingMetric); - } - - @Test - public void testGetNicPerformanceArray() throws Exception { - MeasurementFields testSubject; - List result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getNicPerformanceArray(); - } - - @Test - public void testSetNicPerformanceArray() throws Exception { - MeasurementFields testSubject; - List nicPerformanceArray = null; - - // default test - testSubject = createTestSubject(); - testSubject.setNicPerformanceArray(nicPerformanceArray); - } - - @Test - public void testGetProcessStatsArray() throws Exception { - MeasurementFields testSubject; - List result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getProcessStatsArray(); - } - - @Test - public void testSetProcessStatsArray() throws Exception { - MeasurementFields testSubject; - List processStatsArray = null; - - // default test - testSubject = createTestSubject(); - testSubject.setProcessStatsArray(processStatsArray); - } - - @Test - public void testToString() throws Exception { - MeasurementFields testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.toString(); - } - - @Test - public void testHashCode() throws Exception { - MeasurementFields testSubject; - int result; - - // default test - testSubject = createTestSubject(); - result = testSubject.hashCode(); - } - - @Test - public void testEquals() throws Exception { - MeasurementFields testSubject; - MeasurementFields testSubject2; - Object other = null; - boolean result; - - // default test - testSubject = createTestSubject(); - testSubject2 = createTestSubject(); - result = testSubject.equals(other); - result = testSubject.equals(testSubject); - result = testSubject.equals(testSubject2); - assertNotNull(result); - } -} diff --git a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/MemoryUsageArrayTest.java b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/MemoryUsageArrayTest.java deleted file mode 100644 index 533864a..0000000 --- a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/MemoryUsageArrayTest.java +++ /dev/null @@ -1,408 +0,0 @@ -/* -* ============LICENSE_START======================================================= -* ONAP : DCAE -* ================================================================================ -* Copyright 2018 TechMahindra -*================================================================================= -* 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========================================================= -*/ - -package org.onap.dcaegen2.ves.domain.ves7_0; - -import static org.junit.Assert.assertNotNull; -import org.junit.Test; - - -public class MemoryUsageArrayTest { - - private MemoryUsageArray createTestSubject() { - return new MemoryUsageArray(); - } - - @Test - public void testGetMemoryBuffered() throws Exception { - MemoryUsageArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getMemoryBuffered(); - } - - @Test - public void testSetMemoryBuffered() throws Exception { - MemoryUsageArray testSubject; - Double memoryBuffered = null; - - // default test - testSubject = createTestSubject(); - testSubject.setMemoryBuffered(memoryBuffered); - } - - @Test - public void testGetMemoryCached() throws Exception { - MemoryUsageArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getMemoryCached(); - } - - @Test - public void testSetMemoryCached() throws Exception { - MemoryUsageArray testSubject; - Double memoryCached = null; - - // default test - testSubject = createTestSubject(); - testSubject.setMemoryCached(memoryCached); - } - - @Test - public void testGetMemoryConfigured() throws Exception { - MemoryUsageArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getMemoryConfigured(); - } - - @Test - public void testSetMemoryConfigured() throws Exception { - MemoryUsageArray testSubject; - Double memoryConfigured = null; - - // default test - testSubject = createTestSubject(); - testSubject.setMemoryConfigured(memoryConfigured); - } - - @Test - public void testGetMemoryDemand() throws Exception { - MemoryUsageArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getMemoryDemand(); - } - - @Test - public void testSetMemoryDemand() throws Exception { - MemoryUsageArray testSubject; - Double memoryDemand = null; - - // default test - testSubject = createTestSubject(); - testSubject.setMemoryDemand(memoryDemand); - } - - @Test - public void testGetMemoryFree() throws Exception { - MemoryUsageArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getMemoryFree(); - } - - @Test - public void testSetMemoryFree() throws Exception { - MemoryUsageArray testSubject; - Double memoryFree = null; - - // default test - testSubject = createTestSubject(); - testSubject.setMemoryFree(memoryFree); - } - - @Test - public void testGetMemoryLatencyAvg() throws Exception { - MemoryUsageArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getMemoryLatencyAvg(); - } - - @Test - public void testSetMemoryLatencyAvg() throws Exception { - MemoryUsageArray testSubject; - Double memoryLatencyAvg = null; - - // default test - testSubject = createTestSubject(); - testSubject.setMemoryLatencyAvg(memoryLatencyAvg); - } - - @Test - public void testGetMemorySharedAvg() throws Exception { - MemoryUsageArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getMemorySharedAvg(); - } - - @Test - public void testSetMemorySharedAvg() throws Exception { - MemoryUsageArray testSubject; - Double memorySharedAvg = null; - - // default test - testSubject = createTestSubject(); - testSubject.setMemorySharedAvg(memorySharedAvg); - } - - @Test - public void testGetMemorySlabRecl() throws Exception { - MemoryUsageArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getMemorySlabRecl(); - } - - @Test - public void testSetMemorySlabRecl() throws Exception { - MemoryUsageArray testSubject; - Double memorySlabRecl = null; - - // default test - testSubject = createTestSubject(); - testSubject.setMemorySlabRecl(memorySlabRecl); - } - - @Test - public void testGetMemorySlabUnrecl() throws Exception { - MemoryUsageArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getMemorySlabUnrecl(); - } - - @Test - public void testSetMemorySlabUnrecl() throws Exception { - MemoryUsageArray testSubject; - Double memorySlabUnrecl = null; - - // default test - testSubject = createTestSubject(); - testSubject.setMemorySlabUnrecl(memorySlabUnrecl); - } - - @Test - public void testGetMemorySwapInAvg() throws Exception { - MemoryUsageArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getMemorySwapInAvg(); - } - - @Test - public void testSetMemorySwapInAvg() throws Exception { - MemoryUsageArray testSubject; - Double memorySwapInAvg = null; - - // default test - testSubject = createTestSubject(); - testSubject.setMemorySwapInAvg(memorySwapInAvg); - } - - @Test - public void testGetMemorySwapInRateAvg() throws Exception { - MemoryUsageArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getMemorySwapInRateAvg(); - } - - @Test - public void testSetMemorySwapInRateAvg() throws Exception { - MemoryUsageArray testSubject; - Double memorySwapInRateAvg = null; - - // default test - testSubject = createTestSubject(); - testSubject.setMemorySwapInRateAvg(memorySwapInRateAvg); - } - - @Test - public void testGetMemorySwapOutAvg() throws Exception { - MemoryUsageArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getMemorySwapOutAvg(); - } - - @Test - public void testSetMemorySwapOutAvg() throws Exception { - MemoryUsageArray testSubject; - Double memorySwapOutAvg = null; - - // default test - testSubject = createTestSubject(); - testSubject.setMemorySwapOutAvg(memorySwapOutAvg); - } - - @Test - public void testGetMemorySwapOutRateAvg() throws Exception { - MemoryUsageArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getMemorySwapOutRateAvg(); - } - - @Test - public void testSetMemorySwapOutRateAvg() throws Exception { - MemoryUsageArray testSubject; - Double memorySwapOutRateAvg = null; - - // default test - testSubject = createTestSubject(); - testSubject.setMemorySwapOutRateAvg(memorySwapOutRateAvg); - } - - @Test - public void testGetMemorySwapUsedAvg() throws Exception { - MemoryUsageArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getMemorySwapUsedAvg(); - } - - @Test - public void testSetMemorySwapUsedAvg() throws Exception { - MemoryUsageArray testSubject; - Double memorySwapUsedAvg = null; - - // default test - testSubject = createTestSubject(); - testSubject.setMemorySwapUsedAvg(memorySwapUsedAvg); - } - - @Test - public void testGetMemoryUsed() throws Exception { - MemoryUsageArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getMemoryUsed(); - } - - @Test - public void testSetMemoryUsed() throws Exception { - MemoryUsageArray testSubject; - Double memoryUsed = null; - - // default test - testSubject = createTestSubject(); - testSubject.setMemoryUsed(memoryUsed); - } - - @Test - public void testGetPercentMemoryUsage() throws Exception { - MemoryUsageArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getPercentMemoryUsage(); - } - - @Test - public void testSetPercentMemoryUsage() throws Exception { - MemoryUsageArray testSubject; - Double percentMemoryUsage = null; - - // default test - testSubject = createTestSubject(); - testSubject.setPercentMemoryUsage(percentMemoryUsage); - } - - @Test - public void testGetVmIdentifier() throws Exception { - MemoryUsageArray testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getVmIdentifier(); - } - - @Test - public void testSetVmIdentifier() throws Exception { - MemoryUsageArray testSubject; - String vmIdentifier = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setVmIdentifier(vmIdentifier); - } - - @Test - public void testToString() throws Exception { - MemoryUsageArray testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.toString(); - } - - @Test - public void testHashCode() throws Exception { - MemoryUsageArray testSubject; - int result; - - // default test - testSubject = createTestSubject(); - result = testSubject.hashCode(); - } - - @Test - public void testEquals() throws Exception { - MemoryUsageArray testSubject; - MemoryUsageArray testSubject2; - Object other = null; - boolean result; - - // default test - testSubject = createTestSubject(); - testSubject2 = createTestSubject(); - result = testSubject.equals(other); - result = testSubject.equals(testSubject); - result = testSubject.equals(testSubject2); - assertNotNull(result); - } -} diff --git a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/MobileFlowFieldsTest.java b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/MobileFlowFieldsTest.java deleted file mode 100644 index 966666f..0000000 --- a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/MobileFlowFieldsTest.java +++ /dev/null @@ -1,729 +0,0 @@ -/* -* ============LICENSE_START======================================================= -* ONAP : DCAE -* ================================================================================ -* Copyright 2018 TechMahindra -*================================================================================= -* 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========================================================= -*/ - -package org.onap.dcaegen2.ves.domain.ves7_0; - -import static org.junit.Assert.assertNotNull; -import org.junit.Test; -import org.onap.dcaegen2.ves.domain.ves7_0.MobileFlowFields.MobileFlowFieldsVersion; - - -public class MobileFlowFieldsTest { - - private MobileFlowFields createTestSubject() { - return new MobileFlowFields(); - } - - @Test - public void testGetAdditionalFields() throws Exception { - MobileFlowFields testSubject; - AlarmAdditionalInformation result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getAdditionalFields(); - } - - @Test - public void testSetAdditionalFields() throws Exception { - MobileFlowFields testSubject; - AlarmAdditionalInformation additionalFields = null; - - // default test - testSubject = createTestSubject(); - testSubject.setAdditionalFields(additionalFields); - } - - @Test - public void testGetApplicationType() throws Exception { - MobileFlowFields testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getApplicationType(); - } - - @Test - public void testSetApplicationType() throws Exception { - MobileFlowFields testSubject; - String applicationType = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setApplicationType(applicationType); - } - - @Test - public void testGetAppProtocolType() throws Exception { - MobileFlowFields testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getAppProtocolType(); - } - - @Test - public void testSetAppProtocolType() throws Exception { - MobileFlowFields testSubject; - String appProtocolType = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setAppProtocolType(appProtocolType); - } - - @Test - public void testGetAppProtocolVersion() throws Exception { - MobileFlowFields testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getAppProtocolVersion(); - } - - @Test - public void testSetAppProtocolVersion() throws Exception { - MobileFlowFields testSubject; - String appProtocolVersion = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setAppProtocolVersion(appProtocolVersion); - } - - @Test - public void testGetCid() throws Exception { - MobileFlowFields testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getCid(); - } - - @Test - public void testSetCid() throws Exception { - MobileFlowFields testSubject; - String cid = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setCid(cid); - } - - @Test - public void testGetConnectionType() throws Exception { - MobileFlowFields testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getConnectionType(); - } - - @Test - public void testSetConnectionType() throws Exception { - MobileFlowFields testSubject; - String connectionType = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setConnectionType(connectionType); - } - - @Test - public void testGetEcgi() throws Exception { - MobileFlowFields testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getEcgi(); - } - - @Test - public void testSetEcgi() throws Exception { - MobileFlowFields testSubject; - String ecgi = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setEcgi(ecgi); - } - - @Test - public void testGetFlowDirection() throws Exception { - MobileFlowFields testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getFlowDirection(); - } - - @Test - public void testSetFlowDirection() throws Exception { - MobileFlowFields testSubject; - String flowDirection = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setFlowDirection(flowDirection); - } - - @Test - public void testGetGtpPerFlowMetrics() throws Exception { - MobileFlowFields testSubject; - GtpPerFlowMetrics result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getGtpPerFlowMetrics(); - } - - @Test - public void testSetGtpPerFlowMetrics() throws Exception { - MobileFlowFields testSubject; - GtpPerFlowMetrics gtpPerFlowMetrics = null; - - // default test - testSubject = createTestSubject(); - testSubject.setGtpPerFlowMetrics(gtpPerFlowMetrics); - } - - @Test - public void testGetGtpProtocolType() throws Exception { - MobileFlowFields testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getGtpProtocolType(); - } - - @Test - public void testSetGtpProtocolType() throws Exception { - MobileFlowFields testSubject; - String gtpProtocolType = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setGtpProtocolType(gtpProtocolType); - } - - @Test - public void testGetGtpVersion() throws Exception { - MobileFlowFields testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getGtpVersion(); - } - - @Test - public void testSetGtpVersion() throws Exception { - MobileFlowFields testSubject; - String gtpVersion = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setGtpVersion(gtpVersion); - } - - @Test - public void testGetHttpHeader() throws Exception { - MobileFlowFields testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getHttpHeader(); - } - - @Test - public void testSetHttpHeader() throws Exception { - MobileFlowFields testSubject; - String httpHeader = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setHttpHeader(httpHeader); - } - - @Test - public void testGetImei() throws Exception { - MobileFlowFields testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getImei(); - } - - @Test - public void testSetImei() throws Exception { - MobileFlowFields testSubject; - String imei = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setImei(imei); - } - - @Test - public void testGetImsi() throws Exception { - MobileFlowFields testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getImsi(); - } - - @Test - public void testSetImsi() throws Exception { - MobileFlowFields testSubject; - String imsi = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setImsi(imsi); - } - - @Test - public void testGetIpProtocolType() throws Exception { - MobileFlowFields testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getIpProtocolType(); - } - - @Test - public void testSetIpProtocolType() throws Exception { - MobileFlowFields testSubject; - String ipProtocolType = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setIpProtocolType(ipProtocolType); - } - - @Test - public void testGetIpVersion() throws Exception { - MobileFlowFields testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getIpVersion(); - } - - @Test - public void testSetIpVersion() throws Exception { - MobileFlowFields testSubject; - String ipVersion = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setIpVersion(ipVersion); - } - - @Test - public void testGetLac() throws Exception { - MobileFlowFields testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getLac(); - } - - @Test - public void testSetLac() throws Exception { - MobileFlowFields testSubject; - String lac = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setLac(lac); - } - - @Test - public void testGetMcc() throws Exception { - MobileFlowFields testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getMcc(); - } - - @Test - public void testSetMcc() throws Exception { - MobileFlowFields testSubject; - String mcc = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setMcc(mcc); - } - - @Test - public void testGetMnc() throws Exception { - MobileFlowFields testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getMnc(); - } - - @Test - public void testSetMnc() throws Exception { - MobileFlowFields testSubject; - String mnc = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setMnc(mnc); - } - - @Test - public void testGetMobileFlowFieldsVersion() throws Exception { - MobileFlowFields testSubject; - MobileFlowFieldsVersion result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getMobileFlowFieldsVersion(); - } - - @Test - public void testSetMobileFlowFieldsVersion() throws Exception { - MobileFlowFields testSubject; - MobileFlowFieldsVersion mobileFlowFieldsVersion = MobileFlowFieldsVersion._4_0; - - // default test - testSubject = createTestSubject(); - testSubject.setMobileFlowFieldsVersion(mobileFlowFieldsVersion); - } - - @Test - public void testGetMsisdn() throws Exception { - MobileFlowFields testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getMsisdn(); - } - - @Test - public void testSetMsisdn() throws Exception { - MobileFlowFields testSubject; - String msisdn = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setMsisdn(msisdn); - } - - @Test - public void testGetOtherEndpointIpAddress() throws Exception { - MobileFlowFields testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getOtherEndpointIpAddress(); - } - - @Test - public void testSetOtherEndpointIpAddress() throws Exception { - MobileFlowFields testSubject; - String otherEndpointIpAddress = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setOtherEndpointIpAddress(otherEndpointIpAddress); - } - - @Test - public void testGetOtherEndpointPort() throws Exception { - MobileFlowFields testSubject; - Integer result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getOtherEndpointPort(); - } - - @Test - public void testSetOtherEndpointPort() throws Exception { - MobileFlowFields testSubject; - Integer otherEndpointPort = 0; - - // default test - testSubject = createTestSubject(); - testSubject.setOtherEndpointPort(otherEndpointPort); - } - - @Test - public void testGetOtherFunctionalRole() throws Exception { - MobileFlowFields testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getOtherFunctionalRole(); - } - - @Test - public void testSetOtherFunctionalRole() throws Exception { - MobileFlowFields testSubject; - String otherFunctionalRole = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setOtherFunctionalRole(otherFunctionalRole); - } - - @Test - public void testGetRac() throws Exception { - MobileFlowFields testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getRac(); - } - - @Test - public void testSetRac() throws Exception { - MobileFlowFields testSubject; - String rac = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setRac(rac); - } - - @Test - public void testGetRadioAccessTechnology() throws Exception { - MobileFlowFields testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getRadioAccessTechnology(); - } - - @Test - public void testSetRadioAccessTechnology() throws Exception { - MobileFlowFields testSubject; - String radioAccessTechnology = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setRadioAccessTechnology(radioAccessTechnology); - } - - @Test - public void testGetReportingEndpointIpAddr() throws Exception { - MobileFlowFields testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getReportingEndpointIpAddr(); - } - - @Test - public void testSetReportingEndpointIpAddr() throws Exception { - MobileFlowFields testSubject; - String reportingEndpointIpAddr = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setReportingEndpointIpAddr(reportingEndpointIpAddr); - } - - @Test - public void testGetReportingEndpointPort() throws Exception { - MobileFlowFields testSubject; - Integer result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getReportingEndpointPort(); - } - - @Test - public void testSetReportingEndpointPort() throws Exception { - MobileFlowFields testSubject; - Integer reportingEndpointPort = 0; - - // default test - testSubject = createTestSubject(); - testSubject.setReportingEndpointPort(reportingEndpointPort); - } - - @Test - public void testGetSac() throws Exception { - MobileFlowFields testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getSac(); - } - - @Test - public void testSetSac() throws Exception { - MobileFlowFields testSubject; - String sac = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setSac(sac); - } - - @Test - public void testGetSamplingAlgorithm() throws Exception { - MobileFlowFields testSubject; - Integer result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getSamplingAlgorithm(); - } - - @Test - public void testSetSamplingAlgorithm() throws Exception { - MobileFlowFields testSubject; - Integer samplingAlgorithm = 0; - - // default test - testSubject = createTestSubject(); - testSubject.setSamplingAlgorithm(samplingAlgorithm); - } - - @Test - public void testGetTac() throws Exception { - MobileFlowFields testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getTac(); - } - - @Test - public void testSetTac() throws Exception { - MobileFlowFields testSubject; - String tac = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setTac(tac); - } - - @Test - public void testGetTunnelId() throws Exception { - MobileFlowFields testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getTunnelId(); - } - - @Test - public void testSetTunnelId() throws Exception { - MobileFlowFields testSubject; - String tunnelId = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setTunnelId(tunnelId); - } - - @Test - public void testGetVlanId() throws Exception { - MobileFlowFields testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getVlanId(); - } - - @Test - public void testSetVlanId() throws Exception { - MobileFlowFields testSubject; - String vlanId = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setVlanId(vlanId); - } - - @Test - public void testToString() throws Exception { - MobileFlowFields testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.toString(); - } - - @Test - public void testHashCode() throws Exception { - MobileFlowFields testSubject; - int result; - - // default test - testSubject = createTestSubject(); - result = testSubject.hashCode(); - } - - @Test - public void testEquals() throws Exception { - MobileFlowFields testSubject; - MobileFlowFields testSubject2; - Object other = null; - boolean result; - - // default test - testSubject = createTestSubject(); - testSubject2 = createTestSubject(); - result = testSubject.equals(other); - result = testSubject.equals(testSubject); - result = testSubject.equals(testSubject2); - assertNotNull(result); - } -} diff --git a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/NicPerformanceArrayTest.java b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/NicPerformanceArrayTest.java deleted file mode 100644 index cc6781d..0000000 --- a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/NicPerformanceArrayTest.java +++ /dev/null @@ -1,851 +0,0 @@ -/* -* ============LICENSE_START======================================================= -* ONAP : DCAE -* ================================================================================ -* Copyright 2018 TechMahindra -*================================================================================= -* 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========================================================= -*/ - -package org.onap.dcaegen2.ves.domain.ves7_0; - -import static org.junit.Assert.assertNotNull; -import org.junit.Test; -import org.onap.dcaegen2.ves.domain.ves7_0.NicPerformanceArray.AdministrativeState; -import org.onap.dcaegen2.ves.domain.ves7_0.NicPerformanceArray.OperationalState; -import org.onap.dcaegen2.ves.domain.ves7_0.NicPerformanceArray.ValuesAreSuspect; - - -public class NicPerformanceArrayTest { - - private NicPerformanceArray createTestSubject() { - return new NicPerformanceArray(); - } - - @Test - public void testGetAdministrativeState() throws Exception { - NicPerformanceArray testSubject; - AdministrativeState result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getAdministrativeState(); - } - - @Test - public void testSetAdministrativeState() throws Exception { - NicPerformanceArray testSubject; - AdministrativeState administrativeState = AdministrativeState.IN_SERVICE; - - // default test - testSubject = createTestSubject(); - testSubject.setAdministrativeState(administrativeState); - } - - @Test - public void testGetNicIdentifier() throws Exception { - NicPerformanceArray testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getNicIdentifier(); - } - - @Test - public void testSetNicIdentifier() throws Exception { - NicPerformanceArray testSubject; - String nicIdentifier = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setNicIdentifier(nicIdentifier); - } - - @Test - public void testGetOperationalState() throws Exception { - NicPerformanceArray testSubject; - OperationalState result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getOperationalState(); - } - - @Test - public void testSetOperationalState() throws Exception { - NicPerformanceArray testSubject; - OperationalState operationalState = OperationalState.IN_SERVICE; - - // default test - testSubject = createTestSubject(); - testSubject.setOperationalState(operationalState); - } - - @Test - public void testGetReceivedBroadcastPacketsAccumulated() throws Exception { - NicPerformanceArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getReceivedBroadcastPacketsAccumulated(); - } - - @Test - public void testSetReceivedBroadcastPacketsAccumulated() throws Exception { - NicPerformanceArray testSubject; - Double receivedBroadcastPacketsAccumulated = null; - - // default test - testSubject = createTestSubject(); - testSubject.setReceivedBroadcastPacketsAccumulated(receivedBroadcastPacketsAccumulated); - } - - @Test - public void testGetReceivedBroadcastPacketsDelta() throws Exception { - NicPerformanceArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getReceivedBroadcastPacketsDelta(); - } - - @Test - public void testSetReceivedBroadcastPacketsDelta() throws Exception { - NicPerformanceArray testSubject; - Double receivedBroadcastPacketsDelta = null; - - // default test - testSubject = createTestSubject(); - testSubject.setReceivedBroadcastPacketsDelta(receivedBroadcastPacketsDelta); - } - - @Test - public void testGetReceivedDiscardedPacketsAccumulated() throws Exception { - NicPerformanceArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getReceivedDiscardedPacketsAccumulated(); - } - - @Test - public void testSetReceivedDiscardedPacketsAccumulated() throws Exception { - NicPerformanceArray testSubject; - Double receivedDiscardedPacketsAccumulated = null; - - // default test - testSubject = createTestSubject(); - testSubject.setReceivedDiscardedPacketsAccumulated(receivedDiscardedPacketsAccumulated); - } - - @Test - public void testGetReceivedDiscardedPacketsDelta() throws Exception { - NicPerformanceArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getReceivedDiscardedPacketsDelta(); - } - - @Test - public void testSetReceivedDiscardedPacketsDelta() throws Exception { - NicPerformanceArray testSubject; - Double receivedDiscardedPacketsDelta = null; - - // default test - testSubject = createTestSubject(); - testSubject.setReceivedDiscardedPacketsDelta(receivedDiscardedPacketsDelta); - } - - @Test - public void testGetReceivedErrorPacketsAccumulated() throws Exception { - NicPerformanceArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getReceivedErrorPacketsAccumulated(); - } - - @Test - public void testSetReceivedErrorPacketsAccumulated() throws Exception { - NicPerformanceArray testSubject; - Double receivedErrorPacketsAccumulated = null; - - // default test - testSubject = createTestSubject(); - testSubject.setReceivedErrorPacketsAccumulated(receivedErrorPacketsAccumulated); - } - - @Test - public void testGetReceivedErrorPacketsDelta() throws Exception { - NicPerformanceArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getReceivedErrorPacketsDelta(); - } - - @Test - public void testSetReceivedErrorPacketsDelta() throws Exception { - NicPerformanceArray testSubject; - Double receivedErrorPacketsDelta = null; - - // default test - testSubject = createTestSubject(); - testSubject.setReceivedErrorPacketsDelta(receivedErrorPacketsDelta); - } - - @Test - public void testGetReceivedMulticastPacketsAccumulated() throws Exception { - NicPerformanceArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getReceivedMulticastPacketsAccumulated(); - } - - @Test - public void testSetReceivedMulticastPacketsAccumulated() throws Exception { - NicPerformanceArray testSubject; - Double receivedMulticastPacketsAccumulated = null; - - // default test - testSubject = createTestSubject(); - testSubject.setReceivedMulticastPacketsAccumulated(receivedMulticastPacketsAccumulated); - } - - @Test - public void testGetReceivedMulticastPacketsDelta() throws Exception { - NicPerformanceArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getReceivedMulticastPacketsDelta(); - } - - @Test - public void testSetReceivedMulticastPacketsDelta() throws Exception { - NicPerformanceArray testSubject; - Double receivedMulticastPacketsDelta = null; - - // default test - testSubject = createTestSubject(); - testSubject.setReceivedMulticastPacketsDelta(receivedMulticastPacketsDelta); - } - - @Test - public void testGetReceivedOctetsAccumulated() throws Exception { - NicPerformanceArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getReceivedOctetsAccumulated(); - } - - @Test - public void testSetReceivedOctetsAccumulated() throws Exception { - NicPerformanceArray testSubject; - Double receivedOctetsAccumulated = null; - - // default test - testSubject = createTestSubject(); - testSubject.setReceivedOctetsAccumulated(receivedOctetsAccumulated); - } - - @Test - public void testGetReceivedOctetsDelta() throws Exception { - NicPerformanceArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getReceivedOctetsDelta(); - } - - @Test - public void testSetReceivedOctetsDelta() throws Exception { - NicPerformanceArray testSubject; - Double receivedOctetsDelta = null; - - // default test - testSubject = createTestSubject(); - testSubject.setReceivedOctetsDelta(receivedOctetsDelta); - } - - @Test - public void testGetReceivedTotalPacketsAccumulated() throws Exception { - NicPerformanceArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getReceivedTotalPacketsAccumulated(); - } - - @Test - public void testSetReceivedTotalPacketsAccumulated() throws Exception { - NicPerformanceArray testSubject; - Double receivedTotalPacketsAccumulated = null; - - // default test - testSubject = createTestSubject(); - testSubject.setReceivedTotalPacketsAccumulated(receivedTotalPacketsAccumulated); - } - - @Test - public void testGetReceivedPercentDiscard() throws Exception { - NicPerformanceArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getReceivedPercentDiscard(); - } - - @Test - public void testSetReceivedPercentDiscard() throws Exception { - NicPerformanceArray testSubject; - Double receivedPercentDiscard = null; - - // default test - testSubject = createTestSubject(); - testSubject.setReceivedPercentDiscard(receivedPercentDiscard); - } - - @Test - public void testGetReceivedPercentError() throws Exception { - NicPerformanceArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getReceivedPercentError(); - } - - @Test - public void testSetReceivedPercentError() throws Exception { - NicPerformanceArray testSubject; - Double receivedPercentError = null; - - // default test - testSubject = createTestSubject(); - testSubject.setReceivedPercentError(receivedPercentError); - } - - @Test - public void testGetReceivedTotalPacketsDelta() throws Exception { - NicPerformanceArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getReceivedTotalPacketsDelta(); - } - - @Test - public void testSetReceivedTotalPacketsDelta() throws Exception { - NicPerformanceArray testSubject; - Double receivedTotalPacketsDelta = null; - - // default test - testSubject = createTestSubject(); - testSubject.setReceivedTotalPacketsDelta(receivedTotalPacketsDelta); - } - - @Test - public void testGetReceivedUnicastPacketsAccumulated() throws Exception { - NicPerformanceArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getReceivedUnicastPacketsAccumulated(); - } - - @Test - public void testSetReceivedUnicastPacketsAccumulated() throws Exception { - NicPerformanceArray testSubject; - Double receivedUnicastPacketsAccumulated = null; - - // default test - testSubject = createTestSubject(); - testSubject.setReceivedUnicastPacketsAccumulated(receivedUnicastPacketsAccumulated); - } - - @Test - public void testGetReceivedUnicastPacketsDelta() throws Exception { - NicPerformanceArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getReceivedUnicastPacketsDelta(); - } - - @Test - public void testSetReceivedUnicastPacketsDelta() throws Exception { - NicPerformanceArray testSubject; - Double receivedUnicastPacketsDelta = null; - - // default test - testSubject = createTestSubject(); - testSubject.setReceivedUnicastPacketsDelta(receivedUnicastPacketsDelta); - } - - @Test - public void testGetReceivedUtilization() throws Exception { - NicPerformanceArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getReceivedUtilization(); - } - - @Test - public void testSetReceivedUtilization() throws Exception { - NicPerformanceArray testSubject; - Double receivedUtilization = null; - - // default test - testSubject = createTestSubject(); - testSubject.setReceivedUtilization(receivedUtilization); - } - - @Test - public void testGetSpeed() throws Exception { - NicPerformanceArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getSpeed(); - } - - @Test - public void testSetSpeed() throws Exception { - NicPerformanceArray testSubject; - Double speed = null; - - // default test - testSubject = createTestSubject(); - testSubject.setSpeed(speed); - } - - @Test - public void testGetTransmittedBroadcastPacketsAccumulated() throws Exception { - NicPerformanceArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getTransmittedBroadcastPacketsAccumulated(); - } - - @Test - public void testSetTransmittedBroadcastPacketsAccumulated() throws Exception { - NicPerformanceArray testSubject; - Double transmittedBroadcastPacketsAccumulated = null; - - // default test - testSubject = createTestSubject(); - testSubject.setTransmittedBroadcastPacketsAccumulated(transmittedBroadcastPacketsAccumulated); - } - - @Test - public void testGetTransmittedBroadcastPacketsDelta() throws Exception { - NicPerformanceArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getTransmittedBroadcastPacketsDelta(); - } - - @Test - public void testSetTransmittedBroadcastPacketsDelta() throws Exception { - NicPerformanceArray testSubject; - Double transmittedBroadcastPacketsDelta = null; - - // default test - testSubject = createTestSubject(); - testSubject.setTransmittedBroadcastPacketsDelta(transmittedBroadcastPacketsDelta); - } - - @Test - public void testGetTransmittedDiscardedPacketsAccumulated() throws Exception { - NicPerformanceArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getTransmittedDiscardedPacketsAccumulated(); - } - - @Test - public void testSetTransmittedDiscardedPacketsAccumulated() throws Exception { - NicPerformanceArray testSubject; - Double transmittedDiscardedPacketsAccumulated = null; - - // default test - testSubject = createTestSubject(); - testSubject.setTransmittedDiscardedPacketsAccumulated(transmittedDiscardedPacketsAccumulated); - } - - @Test - public void testGetTransmittedDiscardedPacketsDelta() throws Exception { - NicPerformanceArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getTransmittedDiscardedPacketsDelta(); - } - - @Test - public void testSetTransmittedDiscardedPacketsDelta() throws Exception { - NicPerformanceArray testSubject; - Double transmittedDiscardedPacketsDelta = null; - - // default test - testSubject = createTestSubject(); - testSubject.setTransmittedDiscardedPacketsDelta(transmittedDiscardedPacketsDelta); - } - - @Test - public void testGetTransmittedErrorPacketsAccumulated() throws Exception { - NicPerformanceArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getTransmittedErrorPacketsAccumulated(); - } - - @Test - public void testSetTransmittedErrorPacketsAccumulated() throws Exception { - NicPerformanceArray testSubject; - Double transmittedErrorPacketsAccumulated = null; - - // default test - testSubject = createTestSubject(); - testSubject.setTransmittedErrorPacketsAccumulated(transmittedErrorPacketsAccumulated); - } - - @Test - public void testGetTransmittedErrorPacketsDelta() throws Exception { - NicPerformanceArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getTransmittedErrorPacketsDelta(); - } - - @Test - public void testSetTransmittedErrorPacketsDelta() throws Exception { - NicPerformanceArray testSubject; - Double transmittedErrorPacketsDelta = null; - - // default test - testSubject = createTestSubject(); - testSubject.setTransmittedErrorPacketsDelta(transmittedErrorPacketsDelta); - } - - @Test - public void testGetTransmittedMulticastPacketsAccumulated() throws Exception { - NicPerformanceArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getTransmittedMulticastPacketsAccumulated(); - } - - @Test - public void testSetTransmittedMulticastPacketsAccumulated() throws Exception { - NicPerformanceArray testSubject; - Double transmittedMulticastPacketsAccumulated = null; - - // default test - testSubject = createTestSubject(); - testSubject.setTransmittedMulticastPacketsAccumulated(transmittedMulticastPacketsAccumulated); - } - - @Test - public void testGetTransmittedMulticastPacketsDelta() throws Exception { - NicPerformanceArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getTransmittedMulticastPacketsDelta(); - } - - @Test - public void testSetTransmittedMulticastPacketsDelta() throws Exception { - NicPerformanceArray testSubject; - Double transmittedMulticastPacketsDelta = null; - - // default test - testSubject = createTestSubject(); - testSubject.setTransmittedMulticastPacketsDelta(transmittedMulticastPacketsDelta); - } - - @Test - public void testGetTransmittedOctetsAccumulated() throws Exception { - NicPerformanceArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getTransmittedOctetsAccumulated(); - } - - @Test - public void testSetTransmittedOctetsAccumulated() throws Exception { - NicPerformanceArray testSubject; - Double transmittedOctetsAccumulated = null; - - // default test - testSubject = createTestSubject(); - testSubject.setTransmittedOctetsAccumulated(transmittedOctetsAccumulated); - } - - @Test - public void testGetTransmittedOctetsDelta() throws Exception { - NicPerformanceArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getTransmittedOctetsDelta(); - } - - @Test - public void testSetTransmittedOctetsDelta() throws Exception { - NicPerformanceArray testSubject; - Double transmittedOctetsDelta = null; - - // default test - testSubject = createTestSubject(); - testSubject.setTransmittedOctetsDelta(transmittedOctetsDelta); - } - - @Test - public void testGetTransmittedTotalPacketsAccumulated() throws Exception { - NicPerformanceArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getTransmittedTotalPacketsAccumulated(); - } - - @Test - public void testSetTransmittedTotalPacketsAccumulated() throws Exception { - NicPerformanceArray testSubject; - Double transmittedTotalPacketsAccumulated = null; - - // default test - testSubject = createTestSubject(); - testSubject.setTransmittedTotalPacketsAccumulated(transmittedTotalPacketsAccumulated); - } - - @Test - public void testGetTransmittedTotalPacketsDelta() throws Exception { - NicPerformanceArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getTransmittedTotalPacketsDelta(); - } - - @Test - public void testSetTransmittedTotalPacketsDelta() throws Exception { - NicPerformanceArray testSubject; - Double transmittedTotalPacketsDelta = null; - - // default test - testSubject = createTestSubject(); - testSubject.setTransmittedTotalPacketsDelta(transmittedTotalPacketsDelta); - } - - @Test - public void testGetTransmittedUnicastPacketsAccumulated() throws Exception { - NicPerformanceArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getTransmittedUnicastPacketsAccumulated(); - } - - @Test - public void testSetTransmittedUnicastPacketsAccumulated() throws Exception { - NicPerformanceArray testSubject; - Double transmittedUnicastPacketsAccumulated = null; - - // default test - testSubject = createTestSubject(); - testSubject.setTransmittedUnicastPacketsAccumulated(transmittedUnicastPacketsAccumulated); - } - - @Test - public void testGetTransmittedUnicastPacketsDelta() throws Exception { - NicPerformanceArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getTransmittedUnicastPacketsDelta(); - } - - @Test - public void testSetTransmittedUnicastPacketsDelta() throws Exception { - NicPerformanceArray testSubject; - Double transmittedUnicastPacketsDelta = null; - - // default test - testSubject = createTestSubject(); - testSubject.setTransmittedUnicastPacketsDelta(transmittedUnicastPacketsDelta); - } - - @Test - public void testGetTransmittedPercentDiscard() throws Exception { - NicPerformanceArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getTransmittedPercentDiscard(); - } - - @Test - public void testSetTransmittedPercentDiscard() throws Exception { - NicPerformanceArray testSubject; - Double transmittedPercentDiscard = null; - - // default test - testSubject = createTestSubject(); - testSubject.setTransmittedPercentDiscard(transmittedPercentDiscard); - } - - @Test - public void testGetTransmittedPercentError() throws Exception { - NicPerformanceArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getTransmittedPercentError(); - } - - @Test - public void testSetTransmittedPercentError() throws Exception { - NicPerformanceArray testSubject; - Double transmittedPercentError = null; - - // default test - testSubject = createTestSubject(); - testSubject.setTransmittedPercentError(transmittedPercentError); - } - - @Test - public void testGetTransmittedUtilization() throws Exception { - NicPerformanceArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getTransmittedUtilization(); - } - - @Test - public void testSetTransmittedUtilization() throws Exception { - NicPerformanceArray testSubject; - Double transmittedUtilization = null; - - // default test - testSubject = createTestSubject(); - testSubject.setTransmittedUtilization(transmittedUtilization); - } - - @Test - public void testGetValuesAreSuspect() throws Exception { - NicPerformanceArray testSubject; - ValuesAreSuspect result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getValuesAreSuspect(); - } - - @Test - public void testSetValuesAreSuspect() throws Exception { - NicPerformanceArray testSubject; - ValuesAreSuspect valuesAreSuspect = ValuesAreSuspect.FALSE; - - // default test - testSubject = createTestSubject(); - testSubject.setValuesAreSuspect(valuesAreSuspect); - } - - @Test - public void testToString() throws Exception { - NicPerformanceArray testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.toString(); - } - - @Test - public void testHashCode() throws Exception { - NicPerformanceArray testSubject; - int result; - - // default test - testSubject = createTestSubject(); - result = testSubject.hashCode(); - } - - @Test - public void testEquals() throws Exception { - NicPerformanceArray testSubject; - NicPerformanceArray testSubject2; - Object other = null; - boolean result; - - // default test - testSubject = createTestSubject(); - testSubject2 = createTestSubject(); - result = testSubject.equals(other); - result = testSubject.equals(testSubject); - result = testSubject.equals(testSubject2); - assertNotNull(result); - } -} diff --git a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/NotificationFieldsTest.java b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/NotificationFieldsTest.java deleted file mode 100644 index ddce424..0000000 --- a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/NotificationFieldsTest.java +++ /dev/null @@ -1,250 +0,0 @@ -/* -* ============LICENSE_START======================================================= -* ONAP : DCAE -* ================================================================================ -* Copyright 2018 TechMahindra -*================================================================================= -* 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========================================================= -*/ - -package org.onap.dcaegen2.ves.domain.ves7_0; - -import static org.junit.Assert.assertNotNull; -import java.util.List; -import org.junit.Test; -import org.onap.dcaegen2.ves.domain.ves7_0.NotificationFields.NotificationFieldsVersion; - - -public class NotificationFieldsTest { - - private NotificationFields createTestSubject() { - return new NotificationFields(); - } - - @Test - public void testGetAdditionalFields() throws Exception { - NotificationFields testSubject; - AlarmAdditionalInformation result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getAdditionalFields(); - } - - @Test - public void testSetAdditionalFields() throws Exception { - NotificationFields testSubject; - AlarmAdditionalInformation additionalFields = null; - - // default test - testSubject = createTestSubject(); - testSubject.setAdditionalFields(additionalFields); - } - - @Test - public void testGetArrayOfNamedHashMap() throws Exception { - NotificationFields testSubject; - List result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getArrayOfNamedHashMap(); - } - - @Test - public void testSetArrayOfNamedHashMap() throws Exception { - NotificationFields testSubject; - List arrayOfNamedHashMap = null; - - // default test - testSubject = createTestSubject(); - testSubject.setArrayOfNamedHashMap(arrayOfNamedHashMap); - } - - @Test - public void testGetChangeContact() throws Exception { - NotificationFields testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getChangeContact(); - } - - @Test - public void testSetChangeContact() throws Exception { - NotificationFields testSubject; - String changeContact = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setChangeContact(changeContact); - } - - @Test - public void testGetChangeIdentifier() throws Exception { - NotificationFields testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getChangeIdentifier(); - } - - @Test - public void testSetChangeIdentifier() throws Exception { - NotificationFields testSubject; - String changeIdentifier = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setChangeIdentifier(changeIdentifier); - } - - @Test - public void testGetChangeType() throws Exception { - NotificationFields testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getChangeType(); - } - - @Test - public void testSetChangeType() throws Exception { - NotificationFields testSubject; - String changeType = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setChangeType(changeType); - } - - @Test - public void testGetNewState() throws Exception { - NotificationFields testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getNewState(); - } - - @Test - public void testSetNewState() throws Exception { - NotificationFields testSubject; - String newState = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setNewState(newState); - } - - @Test - public void testGetOldState() throws Exception { - NotificationFields testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getOldState(); - } - - @Test - public void testSetOldState() throws Exception { - NotificationFields testSubject; - String oldState = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setOldState(oldState); - } - - @Test - public void testGetNotificationFieldsVersion() throws Exception { - NotificationFields testSubject; - NotificationFieldsVersion result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getNotificationFieldsVersion(); - } - - @Test - public void testSetNotificationFieldsVersion() throws Exception { - NotificationFields testSubject; - NotificationFieldsVersion notificationFieldsVersion = NotificationFieldsVersion._2_0; - - // default test - testSubject = createTestSubject(); - testSubject.setNotificationFieldsVersion(notificationFieldsVersion); - } - - @Test - public void testGetStateInterface() throws Exception { - NotificationFields testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getStateInterface(); - } - - @Test - public void testSetStateInterface() throws Exception { - NotificationFields testSubject; - String stateInterface = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setStateInterface(stateInterface); - } - - @Test - public void testToString() throws Exception { - NotificationFields testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.toString(); - } - - @Test - public void testHashCode() throws Exception { - NotificationFields testSubject; - int result; - - // default test - testSubject = createTestSubject(); - result = testSubject.hashCode(); - } - - @Test - public void testEquals() throws Exception { - NotificationFields testSubject; - NotificationFields testSubject2; - Object other = null; - boolean result; - - // default test - testSubject = createTestSubject(); - testSubject2 = createTestSubject(); - result = testSubject.equals(other); - result = testSubject.equals(testSubject); - result = testSubject.equals(testSubject2); - assertNotNull(result); - } -} diff --git a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/ObjectInstanceTest.java b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/ObjectInstanceTest.java deleted file mode 100644 index 9895561..0000000 --- a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/ObjectInstanceTest.java +++ /dev/null @@ -1,149 +0,0 @@ -/* -* ============LICENSE_START======================================================= -* ONAP : DCAE -* ================================================================================ -* Copyright 2018 TechMahindra -*================================================================================= -* 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========================================================= -*/ - -package org.onap.dcaegen2.ves.domain.ves7_0; - -import static org.junit.Assert.assertNotNull; -import java.util.List; -import org.junit.Test; - - -public class ObjectInstanceTest { - - private ObjectInstance createTestSubject() { - return new ObjectInstance(); - } - - @Test - public void testGetJsonObject() throws Exception { - ObjectInstance testSubject; - AdditionalObject result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getJsonObject(); - } - - @Test - public void testSetJsonObject() throws Exception { - ObjectInstance testSubject; - AdditionalObject jsonObject = null; - - // default test - testSubject = createTestSubject(); - testSubject.setJsonObject(jsonObject); - } - - @Test - public void testGetObjectInstance() throws Exception { - ObjectInstance testSubject; - ObjectInstance result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getObjectInstance(); - } - - @Test - public void testSetObjectInstance() throws Exception { - ObjectInstance testSubject; - ObjectInstance objectInstance = null; - - // default test - testSubject = createTestSubject(); - testSubject.setObjectInstance(objectInstance); - } - - @Test - public void testGetObjectInstanceEpochMicrosec() throws Exception { - ObjectInstance testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getObjectInstanceEpochMicrosec(); - } - - @Test - public void testSetObjectInstanceEpochMicrosec() throws Exception { - ObjectInstance testSubject; - Double objectInstanceEpochMicrosec = null; - - // default test - testSubject = createTestSubject(); - testSubject.setObjectInstanceEpochMicrosec(objectInstanceEpochMicrosec); - } - - @Test - public void testGetObjectKeys() throws Exception { - ObjectInstance testSubject; - List result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getObjectKeys(); - } - - @Test - public void testSetObjectKeys() throws Exception { - ObjectInstance testSubject; - List objectKeys = null; - - // default test - testSubject = createTestSubject(); - testSubject.setObjectKeys(objectKeys); - } - - @Test - public void testToString() throws Exception { - ObjectInstance testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.toString(); - } - - @Test - public void testHashCode() throws Exception { - ObjectInstance testSubject; - int result; - - // default test - testSubject = createTestSubject(); - result = testSubject.hashCode(); - } - - @Test - public void testEquals() throws Exception { - ObjectInstance testSubject; - ObjectInstance testSubject2; - Object other = null; - boolean result; - - // default test - testSubject = createTestSubject(); - testSubject2 = createTestSubject(); - result = testSubject.equals(other); - result = testSubject.equals(testSubject); - result = testSubject.equals(testSubject2); - assertNotNull(result); - } -} diff --git a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/ObjectKeyTest.java b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/ObjectKeyTest.java deleted file mode 100644 index 09e67d6..0000000 --- a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/ObjectKeyTest.java +++ /dev/null @@ -1,128 +0,0 @@ -/* -* ============LICENSE_START======================================================= -* ONAP : DCAE -* ================================================================================ -* Copyright 2018 TechMahindra -*================================================================================= -* 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========================================================= -*/ - -package org.onap.dcaegen2.ves.domain.ves7_0; - -import static org.junit.Assert.assertNotNull; -import org.junit.Test; - - -public class ObjectKeyTest { - - private ObjectKey createTestSubject() { - return new ObjectKey(); - } - - @Test - public void testGetKeyName() throws Exception { - ObjectKey testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getKeyName(); - } - - @Test - public void testSetKeyName() throws Exception { - ObjectKey testSubject; - String keyName = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setKeyName(keyName); - } - - @Test - public void testGetKeyOrder() throws Exception { - ObjectKey testSubject; - Integer result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getKeyOrder(); - } - - @Test - public void testSetKeyOrder() throws Exception { - ObjectKey testSubject; - Integer keyOrder = 0; - - // default test - testSubject = createTestSubject(); - testSubject.setKeyOrder(keyOrder); - } - - @Test - public void testGetKeyValue() throws Exception { - ObjectKey testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getKeyValue(); - } - - @Test - public void testSetKeyValue() throws Exception { - ObjectKey testSubject; - String keyValue = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setKeyValue(keyValue); - } - - @Test - public void testToString() throws Exception { - ObjectKey testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.toString(); - } - - @Test - public void testHashCode() throws Exception { - ObjectKey testSubject; - int result; - - // default test - testSubject = createTestSubject(); - result = testSubject.hashCode(); - } - - @Test - public void testEquals() throws Exception { - ObjectKey testSubject; - ObjectKey testSubject2; - Object other = null; - boolean result; - - // default test - testSubject = createTestSubject(); - testSubject2 = createTestSubject(); - result = testSubject.equals(other); - result = testSubject.equals(testSubject); - result = testSubject.equals(testSubject2); - assertNotNull(result); - } -} diff --git a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/OtherFieldsTest.java b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/OtherFieldsTest.java deleted file mode 100644 index 8096fc8..0000000 --- a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/OtherFieldsTest.java +++ /dev/null @@ -1,150 +0,0 @@ -/* -* ============LICENSE_START======================================================= -* ONAP : DCAE -* ================================================================================ -* Copyright 2018 TechMahindra -*================================================================================= -* 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========================================================= -*/ - -package org.onap.dcaegen2.ves.domain.ves7_0; - -import static org.junit.Assert.assertNotNull; -import java.util.List; -import org.junit.Test; -import org.onap.dcaegen2.ves.domain.ves7_0.OtherFields.OtherFieldsVersion; - - -public class OtherFieldsTest { - - private OtherFields createTestSubject() { - return new OtherFields(); - } - - @Test - public void testGetArrayOfNamedHashMap() throws Exception { - OtherFields testSubject; - List result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getArrayOfNamedHashMap(); - } - - @Test - public void testSetArrayOfNamedHashMap() throws Exception { - OtherFields testSubject; - List arrayOfNamedHashMap = null; - - // default test - testSubject = createTestSubject(); - testSubject.setArrayOfNamedHashMap(arrayOfNamedHashMap); - } - - @Test - public void testGetHashMap() throws Exception { - OtherFields testSubject; - AlarmAdditionalInformation result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getHashMap(); - } - - @Test - public void testSetHashMap() throws Exception { - OtherFields testSubject; - AlarmAdditionalInformation hashMap = null; - - // default test - testSubject = createTestSubject(); - testSubject.setHashMap(hashMap); - } - - @Test - public void testGetJsonObjects() throws Exception { - OtherFields testSubject; - List result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getJsonObjects(); - } - - @Test - public void testSetJsonObjects() throws Exception { - OtherFields testSubject; - List jsonObjects = null; - - // default test - testSubject = createTestSubject(); - testSubject.setJsonObjects(jsonObjects); - } - - @Test - public void testGetOtherFieldsVersion() throws Exception { - OtherFields testSubject; - OtherFieldsVersion result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getOtherFieldsVersion(); - } - - @Test - public void testSetOtherFieldsVersion() throws Exception { - OtherFields testSubject; - OtherFieldsVersion otherFieldsVersion = OtherFieldsVersion._3_0; - - // default test - testSubject = createTestSubject(); - testSubject.setOtherFieldsVersion(otherFieldsVersion); - } - - @Test - public void testToString() throws Exception { - OtherFields testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.toString(); - } - - @Test - public void testHashCode() throws Exception { - OtherFields testSubject; - int result; - - // default test - testSubject = createTestSubject(); - result = testSubject.hashCode(); - } - - @Test - public void testEquals() throws Exception { - OtherFields testSubject; - OtherFields testSubject2; - Object other = null; - boolean result; - - // default test - testSubject = createTestSubject(); - testSubject2 = createTestSubject(); - result = testSubject.equals(other); - result = testSubject.equals(testSubject); - result = testSubject.equals(testSubject2); - assertNotNull(result); - } -} diff --git a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/PnfRegistrationFieldsTest.java b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/PnfRegistrationFieldsTest.java deleted file mode 100644 index f3ca56f..0000000 --- a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/PnfRegistrationFieldsTest.java +++ /dev/null @@ -1,329 +0,0 @@ -/* -* ============LICENSE_START======================================================= -* ONAP : DCAE -* ================================================================================ -* Copyright 2018 TechMahindra -*================================================================================= -* 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========================================================= -*/ - -package org.onap.dcaegen2.ves.domain.ves7_0; - -import static org.junit.Assert.assertNotNull; -import org.junit.Test; -import org.onap.dcaegen2.ves.domain.ves7_0.PnfRegistrationFields.PnfRegistrationFieldsVersion; - - -public class PnfRegistrationFieldsTest { - - private PnfRegistrationFields createTestSubject() { - return new PnfRegistrationFields(); - } - - @Test - public void testGetAdditionalFields() throws Exception { - PnfRegistrationFields testSubject; - AlarmAdditionalInformation result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getAdditionalFields(); - } - - @Test - public void testSetAdditionalFields() throws Exception { - PnfRegistrationFields testSubject; - AlarmAdditionalInformation additionalFields = null; - - // default test - testSubject = createTestSubject(); - testSubject.setAdditionalFields(additionalFields); - } - - @Test - public void testGetLastServiceDate() throws Exception { - PnfRegistrationFields testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getLastServiceDate(); - } - - @Test - public void testSetLastServiceDate() throws Exception { - PnfRegistrationFields testSubject; - String lastServiceDate = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setLastServiceDate(lastServiceDate); - } - - @Test - public void testGetMacAddress() throws Exception { - PnfRegistrationFields testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getMacAddress(); - } - - @Test - public void testSetMacAddress() throws Exception { - PnfRegistrationFields testSubject; - String macAddress = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setMacAddress(macAddress); - } - - @Test - public void testGetManufactureDate() throws Exception { - PnfRegistrationFields testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getManufactureDate(); - } - - @Test - public void testSetManufactureDate() throws Exception { - PnfRegistrationFields testSubject; - String manufactureDate = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setManufactureDate(manufactureDate); - } - - @Test - public void testGetModelNumber() throws Exception { - PnfRegistrationFields testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getModelNumber(); - } - - @Test - public void testSetModelNumber() throws Exception { - PnfRegistrationFields testSubject; - String modelNumber = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setModelNumber(modelNumber); - } - - @Test - public void testGetOamV4IpAddress() throws Exception { - PnfRegistrationFields testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getOamV4IpAddress(); - } - - @Test - public void testSetOamV4IpAddress() throws Exception { - PnfRegistrationFields testSubject; - String oamV4IpAddress = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setOamV4IpAddress(oamV4IpAddress); - } - - @Test - public void testGetOamV6IpAddress() throws Exception { - PnfRegistrationFields testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getOamV6IpAddress(); - } - - @Test - public void testSetOamV6IpAddress() throws Exception { - PnfRegistrationFields testSubject; - String oamV6IpAddress = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setOamV6IpAddress(oamV6IpAddress); - } - - @Test - public void testGetPnfRegistrationFieldsVersion() throws Exception { - PnfRegistrationFields testSubject; - PnfRegistrationFieldsVersion result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getPnfRegistrationFieldsVersion(); - } - - @Test - public void testSetPnfRegistrationFieldsVersion() throws Exception { - PnfRegistrationFields testSubject; - PnfRegistrationFieldsVersion pnfRegistrationFieldsVersion = PnfRegistrationFieldsVersion._2_0; - - // default test - testSubject = createTestSubject(); - testSubject.setPnfRegistrationFieldsVersion(pnfRegistrationFieldsVersion); - } - - @Test - public void testGetSerialNumber() throws Exception { - PnfRegistrationFields testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getSerialNumber(); - } - - @Test - public void testSetSerialNumber() throws Exception { - PnfRegistrationFields testSubject; - String serialNumber = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setSerialNumber(serialNumber); - } - - @Test - public void testGetSoftwareVersion() throws Exception { - PnfRegistrationFields testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getSoftwareVersion(); - } - - @Test - public void testSetSoftwareVersion() throws Exception { - PnfRegistrationFields testSubject; - String softwareVersion = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setSoftwareVersion(softwareVersion); - } - - @Test - public void testGetUnitFamily() throws Exception { - PnfRegistrationFields testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getUnitFamily(); - } - - @Test - public void testSetUnitFamily() throws Exception { - PnfRegistrationFields testSubject; - String unitFamily = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setUnitFamily(unitFamily); - } - - @Test - public void testGetUnitType() throws Exception { - PnfRegistrationFields testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getUnitType(); - } - - @Test - public void testSetUnitType() throws Exception { - PnfRegistrationFields testSubject; - String unitType = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setUnitType(unitType); - } - - @Test - public void testGetVendorName() throws Exception { - PnfRegistrationFields testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getVendorName(); - } - - @Test - public void testSetVendorName() throws Exception { - PnfRegistrationFields testSubject; - String vendorName = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setVendorName(vendorName); - } - - @Test - public void testToString() throws Exception { - PnfRegistrationFields testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.toString(); - } - - @Test - public void testHashCode() throws Exception { - PnfRegistrationFields testSubject; - int result; - - // default test - testSubject = createTestSubject(); - result = testSubject.hashCode(); - } - - @Test - public void testEquals() throws Exception { - PnfRegistrationFields testSubject; - PnfRegistrationFields testSubject2; - Object other = null; - boolean result; - - // default test - testSubject = createTestSubject(); - testSubject2 = createTestSubject(); - result = testSubject.equals(other); - result = testSubject.equals(testSubject); - result = testSubject.equals(testSubject2); - assertNotNull(result); - } -} diff --git a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/ProcessStatsArrayTest.java b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/ProcessStatsArrayTest.java deleted file mode 100644 index a3cb152..0000000 --- a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/ProcessStatsArrayTest.java +++ /dev/null @@ -1,228 +0,0 @@ -/* -* ============LICENSE_START======================================================= -* ONAP : DCAE -* ================================================================================ -* Copyright 2018 TechMahindra -*================================================================================= -* 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========================================================= -*/ - -package org.onap.dcaegen2.ves.domain.ves7_0; - -import static org.junit.Assert.assertNotNull; -import org.junit.Test; - - -public class ProcessStatsArrayTest { - - private ProcessStatsArray createTestSubject() { - return new ProcessStatsArray(); - } - - @Test - public void testGetForkRate() throws Exception { - ProcessStatsArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getForkRate(); - } - - @Test - public void testSetForkRate() throws Exception { - ProcessStatsArray testSubject; - Double forkRate = null; - - // default test - testSubject = createTestSubject(); - testSubject.setForkRate(forkRate); - } - - @Test - public void testGetProcessIdentifier() throws Exception { - ProcessStatsArray testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getProcessIdentifier(); - } - - @Test - public void testSetProcessIdentifier() throws Exception { - ProcessStatsArray testSubject; - String processIdentifier = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setProcessIdentifier(processIdentifier); - } - - @Test - public void testGetPsStateBlocked() throws Exception { - ProcessStatsArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getPsStateBlocked(); - } - - @Test - public void testSetPsStateBlocked() throws Exception { - ProcessStatsArray testSubject; - Double psStateBlocked = null; - - // default test - testSubject = createTestSubject(); - testSubject.setPsStateBlocked(psStateBlocked); - } - - @Test - public void testGetPsStatePaging() throws Exception { - ProcessStatsArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getPsStatePaging(); - } - - @Test - public void testSetPsStatePaging() throws Exception { - ProcessStatsArray testSubject; - Double psStatePaging = null; - - // default test - testSubject = createTestSubject(); - testSubject.setPsStatePaging(psStatePaging); - } - - @Test - public void testGetPsStateRunning() throws Exception { - ProcessStatsArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getPsStateRunning(); - } - - @Test - public void testSetPsStateRunning() throws Exception { - ProcessStatsArray testSubject; - Double psStateRunning = null; - - // default test - testSubject = createTestSubject(); - testSubject.setPsStateRunning(psStateRunning); - } - - @Test - public void testGetPsStateSleeping() throws Exception { - ProcessStatsArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getPsStateSleeping(); - } - - @Test - public void testSetPsStateSleeping() throws Exception { - ProcessStatsArray testSubject; - Double psStateSleeping = null; - - // default test - testSubject = createTestSubject(); - testSubject.setPsStateSleeping(psStateSleeping); - } - - @Test - public void testGetPsStateStopped() throws Exception { - ProcessStatsArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getPsStateStopped(); - } - - @Test - public void testSetPsStateStopped() throws Exception { - ProcessStatsArray testSubject; - Double psStateStopped = null; - - // default test - testSubject = createTestSubject(); - testSubject.setPsStateStopped(psStateStopped); - } - - @Test - public void testGetPsStateZombie() throws Exception { - ProcessStatsArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getPsStateZombie(); - } - - @Test - public void testSetPsStateZombie() throws Exception { - ProcessStatsArray testSubject; - Double psStateZombie = null; - - // default test - testSubject = createTestSubject(); - testSubject.setPsStateZombie(psStateZombie); - } - - @Test - public void testToString() throws Exception { - ProcessStatsArray testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.toString(); - } - - @Test - public void testHashCode() throws Exception { - ProcessStatsArray testSubject; - int result; - - // default test - testSubject = createTestSubject(); - result = testSubject.hashCode(); - } - - @Test - public void testEquals() throws Exception { - ProcessStatsArray testSubject; - ProcessStatsArray testSubject2; - Object other = null; - boolean result; - - // default test - testSubject = createTestSubject(); - testSubject2 = createTestSubject(); - result = testSubject.equals(other); - result = testSubject.equals(testSubject); - result = testSubject.equals(testSubject2); - assertNotNull(result); - } -} diff --git a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/ProcessorDimmAggregateThermalMarginArrayTest.java b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/ProcessorDimmAggregateThermalMarginArrayTest.java deleted file mode 100644 index e08487c..0000000 --- a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/ProcessorDimmAggregateThermalMarginArrayTest.java +++ /dev/null @@ -1,109 +0,0 @@ -/* -* ============LICENSE_START======================================================= -* ONAP : DCAE -* ================================================================================ -* Copyright 2018 TechMahindra -*================================================================================= -* 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========================================================= -*/ - -package org.onap.dcaegen2.ves.domain.ves7_0; - -import static org.junit.Assert.assertNotNull; -import org.junit.Test; - - -public class ProcessorDimmAggregateThermalMarginArrayTest { - - private ProcessorDimmAggregateThermalMarginArray createTestSubject() { - return new ProcessorDimmAggregateThermalMarginArray(); - } - - @Test - public void testGetProcessorDimmAggregateThermalMarginIdentifier() throws Exception { - ProcessorDimmAggregateThermalMarginArray testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getProcessorDimmAggregateThermalMarginIdentifier(); - } - - @Test - public void testSetProcessorDimmAggregateThermalMarginIdentifier() throws Exception { - ProcessorDimmAggregateThermalMarginArray testSubject; - String processorDimmAggregateThermalMarginIdentifier = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setProcessorDimmAggregateThermalMarginIdentifier( - processorDimmAggregateThermalMarginIdentifier); - } - - @Test - public void testGetThermalMargin() throws Exception { - ProcessorDimmAggregateThermalMarginArray testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getThermalMargin(); - } - - @Test - public void testSetThermalMargin() throws Exception { - ProcessorDimmAggregateThermalMarginArray testSubject; - Double thermalMargin = null; - - // default test - testSubject = createTestSubject(); - testSubject.setThermalMargin(thermalMargin); - } - - @Test - public void testToString() throws Exception { - ProcessorDimmAggregateThermalMarginArray testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.toString(); - } - - @Test - public void testHashCode() throws Exception { - ProcessorDimmAggregateThermalMarginArray testSubject; - int result; - - // default test - testSubject = createTestSubject(); - result = testSubject.hashCode(); - } - - @Test - public void testEquals() throws Exception { - ProcessorDimmAggregateThermalMarginArray testSubject; - ProcessorDimmAggregateThermalMarginArray testSubject2; - Object other = null; - boolean result; - - // default test - testSubject = createTestSubject(); - testSubject2 = createTestSubject(); - result = testSubject.equals(other); - result = testSubject.equals(testSubject); - result = testSubject.equals(testSubject2); - assertNotNull(result); - } -} diff --git a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/SipSignalingFieldsTest.java b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/SipSignalingFieldsTest.java deleted file mode 100644 index 1168d05..0000000 --- a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/SipSignalingFieldsTest.java +++ /dev/null @@ -1,269 +0,0 @@ -/* -* ============LICENSE_START======================================================= -* ONAP : DCAE -* ================================================================================ -* Copyright 2018 TechMahindra -*================================================================================= -* 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========================================================= -*/ - -package org.onap.dcaegen2.ves.domain.ves7_0; - -import static org.junit.Assert.assertNotNull; -import org.junit.Test; -import org.onap.dcaegen2.ves.domain.ves7_0.SipSignalingFields.SipSignalingFieldsVersion; - - -public class SipSignalingFieldsTest { - - private SipSignalingFields createTestSubject() { - return new SipSignalingFields(); - } - - @Test - public void testGetAdditionalInformation() throws Exception { - SipSignalingFields testSubject; - AlarmAdditionalInformation result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getAdditionalInformation(); - } - - @Test - public void testSetAdditionalInformation() throws Exception { - SipSignalingFields testSubject; - AlarmAdditionalInformation additionalInformation = null; - - // default test - testSubject = createTestSubject(); - testSubject.setAdditionalInformation(additionalInformation); - } - - @Test - public void testGetCompressedSip() throws Exception { - SipSignalingFields testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getCompressedSip(); - } - - @Test - public void testSetCompressedSip() throws Exception { - SipSignalingFields testSubject; - String compressedSip = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setCompressedSip(compressedSip); - } - - @Test - public void testGetCorrelator() throws Exception { - SipSignalingFields testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getCorrelator(); - } - - @Test - public void testSetCorrelator() throws Exception { - SipSignalingFields testSubject; - String correlator = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setCorrelator(correlator); - } - - @Test - public void testGetLocalIpAddress() throws Exception { - SipSignalingFields testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getLocalIpAddress(); - } - - @Test - public void testSetLocalIpAddress() throws Exception { - SipSignalingFields testSubject; - String localIpAddress = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setLocalIpAddress(localIpAddress); - } - - @Test - public void testGetLocalPort() throws Exception { - SipSignalingFields testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getLocalPort(); - } - - @Test - public void testSetLocalPort() throws Exception { - SipSignalingFields testSubject; - String localPort = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setLocalPort(localPort); - } - - @Test - public void testGetRemoteIpAddress() throws Exception { - SipSignalingFields testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getRemoteIpAddress(); - } - - @Test - public void testSetRemoteIpAddress() throws Exception { - SipSignalingFields testSubject; - String remoteIpAddress = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setRemoteIpAddress(remoteIpAddress); - } - - @Test - public void testGetRemotePort() throws Exception { - SipSignalingFields testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getRemotePort(); - } - - @Test - public void testSetRemotePort() throws Exception { - SipSignalingFields testSubject; - String remotePort = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setRemotePort(remotePort); - } - - @Test - public void testGetSipSignalingFieldsVersion() throws Exception { - SipSignalingFields testSubject; - SipSignalingFieldsVersion result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getSipSignalingFieldsVersion(); - } - - @Test - public void testSetSipSignalingFieldsVersion() throws Exception { - SipSignalingFields testSubject; - SipSignalingFieldsVersion sipSignalingFieldsVersion = SipSignalingFieldsVersion._3_0; - - // default test - testSubject = createTestSubject(); - testSubject.setSipSignalingFieldsVersion(sipSignalingFieldsVersion); - } - - @Test - public void testGetSummarySip() throws Exception { - SipSignalingFields testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getSummarySip(); - } - - @Test - public void testSetSummarySip() throws Exception { - SipSignalingFields testSubject; - String summarySip = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setSummarySip(summarySip); - } - - @Test - public void testGetVendorNfNameFields() throws Exception { - SipSignalingFields testSubject; - VendorNfNameFields result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getVendorNfNameFields(); - } - - @Test - public void testSetVendorNfNameFields() throws Exception { - SipSignalingFields testSubject; - VendorNfNameFields vendorNfNameFields = null; - - // default test - testSubject = createTestSubject(); - testSubject.setVendorNfNameFields(vendorNfNameFields); - } - - @Test - public void testToString() throws Exception { - SipSignalingFields testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.toString(); - } - - @Test - public void testHashCode() throws Exception { - SipSignalingFields testSubject; - int result; - - // default test - testSubject = createTestSubject(); - result = testSubject.hashCode(); - } - - @Test - public void testEquals() throws Exception { - SipSignalingFields testSubject; - SipSignalingFields testSubject2; - Object other = null; - boolean result; - - // default test - testSubject = createTestSubject(); - testSubject2 = createTestSubject(); - result = testSubject.equals(other); - result = testSubject.equals(testSubject); - result = testSubject.equals(testSubject2); - assertNotNull(result); - } -} diff --git a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/StateChangeFieldsTest.java b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/StateChangeFieldsTest.java deleted file mode 100644 index 45fe2e1..0000000 --- a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/StateChangeFieldsTest.java +++ /dev/null @@ -1,171 +0,0 @@ -/* -* ============LICENSE_START======================================================= -* ONAP : DCAE -* ================================================================================ -* Copyright 2018 TechMahindra -*================================================================================= -* 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========================================================= -*/ - -package org.onap.dcaegen2.ves.domain.ves7_0; - -import static org.junit.Assert.assertNotNull; -import org.junit.Test; -import org.onap.dcaegen2.ves.domain.ves7_0.StateChangeFields.NewState; -import org.onap.dcaegen2.ves.domain.ves7_0.StateChangeFields.OldState; -import org.onap.dcaegen2.ves.domain.ves7_0.StateChangeFields.StateChangeFieldsVersion; - - -public class StateChangeFieldsTest { - - private StateChangeFields createTestSubject() { - return new StateChangeFields(); - } - - @Test - public void testGetAdditionalFields() throws Exception { - StateChangeFields testSubject; - AlarmAdditionalInformation result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getAdditionalFields(); - } - - @Test - public void testSetAdditionalFields() throws Exception { - StateChangeFields testSubject; - AlarmAdditionalInformation additionalFields = null; - - // default test - testSubject = createTestSubject(); - testSubject.setAdditionalFields(additionalFields); - } - - @Test - public void testGetNewState() throws Exception { - StateChangeFields testSubject; - NewState result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getNewState(); - } - - @Test - public void testSetNewState() throws Exception { - StateChangeFields testSubject; - NewState newState = NewState.IN_SERVICE; - - // default test - testSubject = createTestSubject(); - testSubject.setNewState(newState); - } - - @Test - public void testGetOldState() throws Exception { - StateChangeFields testSubject; - OldState result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getOldState(); - } - - @Test - public void testSetOldState() throws Exception { - StateChangeFields testSubject; - OldState oldState = OldState.IN_SERVICE; - - // default test - testSubject = createTestSubject(); - testSubject.setOldState(oldState); - } - - @Test - public void testGetStateChangeFieldsVersion() throws Exception { - StateChangeFields testSubject; - StateChangeFieldsVersion result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getStateChangeFieldsVersion(); - } - - @Test - public void testSetStateChangeFieldsVersion() throws Exception { - StateChangeFields testSubject; - StateChangeFieldsVersion stateChangeFieldsVersion = StateChangeFieldsVersion._4_0; - - // default test - testSubject = createTestSubject(); - testSubject.setStateChangeFieldsVersion(stateChangeFieldsVersion); - } - - @Test - public void testGetStateInterface() throws Exception { - StateChangeFields testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getStateInterface(); - } - - @Test - public void testSetStateInterface() throws Exception { - StateChangeFields testSubject; - String stateInterface = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setStateInterface(stateInterface); - } - - @Test - public void testToString() throws Exception { - StateChangeFields testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.toString(); - } - - @Test - public void testHashCode() throws Exception { - StateChangeFields testSubject; - int result; - - // default test - testSubject = createTestSubject(); - result = testSubject.hashCode(); - } - - @Test - public void testEquals() throws Exception { - StateChangeFields testSubject; - StateChangeFields testSubject2; - Object other = null; - boolean result; - - // default test - testSubject = createTestSubject(); - testSubject2 = createTestSubject(); - result = testSubject.equals(other); - result = testSubject.equals(testSubject); - result = testSubject.equals(testSubject2); - assertNotNull(result); - } -} diff --git a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/SyslogFieldsTest.java b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/SyslogFieldsTest.java deleted file mode 100644 index ac6663e..0000000 --- a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/SyslogFieldsTest.java +++ /dev/null @@ -1,390 +0,0 @@ -/* -* ============LICENSE_START======================================================= -* ONAP : DCAE -* ================================================================================ -* Copyright 2018 TechMahindra -*================================================================================= -* 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========================================================= -*/ - -package org.onap.dcaegen2.ves.domain.ves7_0; - -import static org.junit.Assert.assertNotNull; -import org.junit.Test; -import org.onap.dcaegen2.ves.domain.ves7_0.SyslogFields.SyslogFieldsVersion; -import org.onap.dcaegen2.ves.domain.ves7_0.SyslogFields.SyslogSev; - - -public class SyslogFieldsTest { - - private SyslogFields createTestSubject() { - return new SyslogFields(); - } - - @Test - public void testGetAdditionalFields() throws Exception { - SyslogFields testSubject; - AlarmAdditionalInformation result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getAdditionalFields(); - } - - @Test - public void testSetAdditionalFields() throws Exception { - SyslogFields testSubject; - AlarmAdditionalInformation additionalFields = null; - - // default test - testSubject = createTestSubject(); - testSubject.setAdditionalFields(additionalFields); - } - - @Test - public void testGetEventSourceHost() throws Exception { - SyslogFields testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getEventSourceHost(); - } - - @Test - public void testSetEventSourceHost() throws Exception { - SyslogFields testSubject; - String eventSourceHost = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setEventSourceHost(eventSourceHost); - } - - @Test - public void testGetEventSourceType() throws Exception { - SyslogFields testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getEventSourceType(); - } - - @Test - public void testSetEventSourceType() throws Exception { - SyslogFields testSubject; - String eventSourceType = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setEventSourceType(eventSourceType); - } - - @Test - public void testGetSyslogFacility() throws Exception { - SyslogFields testSubject; - Integer result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getSyslogFacility(); - } - - @Test - public void testSetSyslogFacility() throws Exception { - SyslogFields testSubject; - Integer syslogFacility = 0; - - // default test - testSubject = createTestSubject(); - testSubject.setSyslogFacility(syslogFacility); - } - - @Test - public void testGetSyslogFieldsVersion() throws Exception { - SyslogFields testSubject; - SyslogFieldsVersion result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getSyslogFieldsVersion(); - } - - @Test - public void testSetSyslogFieldsVersion() throws Exception { - SyslogFields testSubject; - SyslogFieldsVersion syslogFieldsVersion = SyslogFieldsVersion._4_0; - - // default test - testSubject = createTestSubject(); - testSubject.setSyslogFieldsVersion(syslogFieldsVersion); - } - - @Test - public void testGetSyslogMsg() throws Exception { - SyslogFields testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getSyslogMsg(); - } - - @Test - public void testSetSyslogMsg() throws Exception { - SyslogFields testSubject; - String syslogMsg = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setSyslogMsg(syslogMsg); - } - - @Test - public void testGetSyslogMsgHost() throws Exception { - SyslogFields testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getSyslogMsgHost(); - } - - @Test - public void testSetSyslogMsgHost() throws Exception { - SyslogFields testSubject; - String syslogMsgHost = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setSyslogMsgHost(syslogMsgHost); - } - - @Test - public void testGetSyslogPri() throws Exception { - SyslogFields testSubject; - Integer result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getSyslogPri(); - } - - @Test - public void testSetSyslogPri() throws Exception { - SyslogFields testSubject; - Integer syslogPri = 0; - - // default test - testSubject = createTestSubject(); - testSubject.setSyslogPri(syslogPri); - } - - @Test - public void testGetSyslogProc() throws Exception { - SyslogFields testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getSyslogProc(); - } - - @Test - public void testSetSyslogProc() throws Exception { - SyslogFields testSubject; - String syslogProc = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setSyslogProc(syslogProc); - } - - @Test - public void testGetSyslogProcId() throws Exception { - SyslogFields testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getSyslogProcId(); - } - - @Test - public void testSetSyslogProcId() throws Exception { - SyslogFields testSubject; - Double syslogProcId = null; - - // default test - testSubject = createTestSubject(); - testSubject.setSyslogProcId(syslogProcId); - } - - @Test - public void testGetSyslogSData() throws Exception { - SyslogFields testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getSyslogSData(); - } - - @Test - public void testSetSyslogSData() throws Exception { - SyslogFields testSubject; - String syslogSData = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setSyslogSData(syslogSData); - } - - @Test - public void testGetSyslogSdId() throws Exception { - SyslogFields testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getSyslogSdId(); - } - - @Test - public void testSetSyslogSdId() throws Exception { - SyslogFields testSubject; - String syslogSdId = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setSyslogSdId(syslogSdId); - } - - @Test - public void testGetSyslogSev() throws Exception { - SyslogFields testSubject; - SyslogSev result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getSyslogSev(); - } - - @Test - public void testSetSyslogSev() throws Exception { - SyslogFields testSubject; - SyslogSev syslogSev = SyslogSev.ALERT; - - // default test - testSubject = createTestSubject(); - testSubject.setSyslogSev(syslogSev); - } - - @Test - public void testGetSyslogTag() throws Exception { - SyslogFields testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getSyslogTag(); - } - - @Test - public void testSetSyslogTag() throws Exception { - SyslogFields testSubject; - String syslogTag = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setSyslogTag(syslogTag); - } - - @Test - public void testGetSyslogTs() throws Exception { - SyslogFields testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getSyslogTs(); - } - - @Test - public void testSetSyslogTs() throws Exception { - SyslogFields testSubject; - String syslogTs = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setSyslogTs(syslogTs); - } - - @Test - public void testGetSyslogVer() throws Exception { - SyslogFields testSubject; - Double result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getSyslogVer(); - } - - @Test - public void testSetSyslogVer() throws Exception { - SyslogFields testSubject; - Double syslogVer = null; - - // default test - testSubject = createTestSubject(); - testSubject.setSyslogVer(syslogVer); - } - - @Test - public void testToString() throws Exception { - SyslogFields testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.toString(); - } - - @Test - public void testHashCode() throws Exception { - SyslogFields testSubject; - int result; - - // default test - testSubject = createTestSubject(); - result = testSubject.hashCode(); - } - - @Test - public void testEquals() throws Exception { - SyslogFields testSubject; - SyslogFields testSubject2; - Object other = null; - boolean result; - - // default test - testSubject = createTestSubject(); - testSubject2 = createTestSubject(); - result = testSubject.equals(other); - result = testSubject.equals(testSubject); - result = testSubject.equals(testSubject2); - assertNotNull(result); - } -} diff --git a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/ThresholdCrossingAlertFieldsTest.java b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/ThresholdCrossingAlertFieldsTest.java deleted file mode 100644 index 3502fb0..0000000 --- a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/ThresholdCrossingAlertFieldsTest.java +++ /dev/null @@ -1,398 +0,0 @@ -/* -* ============LICENSE_START======================================================= -* ONAP : DCAE -* ================================================================================ -* Copyright 2018 TechMahindra -*================================================================================= -* 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========================================================= -*/ - -package org.onap.dcaegen2.ves.domain.ves7_0; - -import static org.junit.Assert.assertEquals; -import static org.junit.Assert.assertNotNull; -import java.util.List; -import org.junit.Test; -import org.onap.dcaegen2.ves.domain.ves7_0.ThresholdCrossingAlertFields.AlertAction; -import org.onap.dcaegen2.ves.domain.ves7_0.ThresholdCrossingAlertFields.AlertType; -import org.onap.dcaegen2.ves.domain.ves7_0.ThresholdCrossingAlertFields.ThresholdCrossingFieldsVersion; - - -public class ThresholdCrossingAlertFieldsTest { - - private ThresholdCrossingAlertFields createTestSubject() { - return new ThresholdCrossingAlertFields(); - } - - @Test - public void testGetAdditionalFields() throws Exception { - ThresholdCrossingAlertFields testSubject; - AlarmAdditionalInformation result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getAdditionalFields(); - } - - @Test - public void testSetAdditionalFields() throws Exception { - ThresholdCrossingAlertFields testSubject; - AlarmAdditionalInformation additionalFields = null; - - // default test - testSubject = createTestSubject(); - testSubject.setAdditionalFields(additionalFields); - } - - @Test - public void testGetAdditionalParameters() throws Exception { - ThresholdCrossingAlertFields testSubject; - List result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getAdditionalParameters(); - } - - @Test - public void testSetAdditionalParameters() throws Exception { - ThresholdCrossingAlertFields testSubject; - List additionalParameters = null; - - // default test - testSubject = createTestSubject(); - testSubject.setAdditionalParameters(additionalParameters); - } - - @Test - public void testGetAlertAction() throws Exception { - ThresholdCrossingAlertFields testSubject; - - AlertAction result; - - // default test - testSubject = createTestSubject(); - AlertAction alertAction = AlertAction.CLEAR; - testSubject.setAlertAction(alertAction); - result = testSubject.getAlertAction(); - assertEquals(alertAction, result); - } - - @Test - public void testSetAlertAction() throws Exception { - ThresholdCrossingAlertFields testSubject; - AlertAction alertAction = AlertAction.CLEAR; - - // default test - testSubject = createTestSubject(); - testSubject.setAlertAction(alertAction); - } - - @Test - public void testGetAlertDescription() throws Exception { - ThresholdCrossingAlertFields testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getAlertDescription(); - } - - @Test - public void testSetAlertDescription() throws Exception { - ThresholdCrossingAlertFields testSubject; - String alertDescription = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setAlertDescription(alertDescription); - } - - @Test - public void testGetAlertType() throws Exception { - ThresholdCrossingAlertFields testSubject; - AlertType result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getAlertType(); - } - - @Test - public void testSetAlertType() throws Exception { - ThresholdCrossingAlertFields testSubject; - AlertType alertType = AlertType.CARD_ANOMALY; - - // default test - testSubject = createTestSubject(); - testSubject.setAlertType(alertType); - } - - @Test - public void testGetAlertValue() throws Exception { - ThresholdCrossingAlertFields testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getAlertValue(); - } - - @Test - public void testSetAlertValue() throws Exception { - ThresholdCrossingAlertFields testSubject; - String alertValue = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setAlertValue(alertValue); - } - - @Test - public void testGetAssociatedAlertIdList() throws Exception { - ThresholdCrossingAlertFields testSubject; - List result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getAssociatedAlertIdList(); - } - - @Test - public void testSetAssociatedAlertIdList() throws Exception { - ThresholdCrossingAlertFields testSubject; - List associatedAlertIdList = null; - - // default test - testSubject = createTestSubject(); - testSubject.setAssociatedAlertIdList(associatedAlertIdList); - } - - @Test - public void testGetCollectionTimestamp() throws Exception { - ThresholdCrossingAlertFields testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getCollectionTimestamp(); - } - - @Test - public void testSetCollectionTimestamp() throws Exception { - ThresholdCrossingAlertFields testSubject; - String collectionTimestamp = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setCollectionTimestamp(collectionTimestamp); - } - - @Test - public void testGetDataCollector() throws Exception { - ThresholdCrossingAlertFields testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getDataCollector(); - } - - @Test - public void testSetDataCollector() throws Exception { - ThresholdCrossingAlertFields testSubject; - String dataCollector = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setDataCollector(dataCollector); - } - - @Test - public void testGetElementType() throws Exception { - ThresholdCrossingAlertFields testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getElementType(); - } - - @Test - public void testSetElementType() throws Exception { - ThresholdCrossingAlertFields testSubject; - String elementType = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setElementType(elementType); - } - - @Test - public void testGetEventSeverity() throws Exception { - ThresholdCrossingAlertFields testSubject; - - // default test - testSubject = createTestSubject(); - testSubject.setEventSeverity(ThresholdCrossingAlertFields.EventSeverity.MINOR); - ThresholdCrossingAlertFields.EventSeverity result = testSubject.getEventSeverity(); - assertEquals(ThresholdCrossingAlertFields.EventSeverity.MINOR, result); - } - - @Test - public void testSetEventSeverity() throws Exception { - ThresholdCrossingAlertFields testSubject; - ThresholdCrossingAlertFields.EventSeverity eventSeverity = - ThresholdCrossingAlertFields.EventSeverity.MINOR; - - // default test - testSubject = createTestSubject(); - testSubject.setEventSeverity(eventSeverity); - } - - @Test - public void testGetEventStartTimestamp() throws Exception { - ThresholdCrossingAlertFields testSubject; - - - // default test - testSubject = createTestSubject(); - testSubject.getEventStartTimestamp(); - } - - @Test - public void testSetEventStartTimestamp() throws Exception { - ThresholdCrossingAlertFields testSubject; - String eventStartTimestamp = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setEventStartTimestamp(eventStartTimestamp); - } - - @Test - public void testGetInterfaceName() throws Exception { - ThresholdCrossingAlertFields testSubject; - - // default test - testSubject = createTestSubject(); - testSubject.getInterfaceName(); - } - - @Test - public void testSetInterfaceName() throws Exception { - ThresholdCrossingAlertFields testSubject; - String interfaceName = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setInterfaceName(interfaceName); - } - - @Test - public void testGetNetworkService() throws Exception { - ThresholdCrossingAlertFields testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getNetworkService(); - } - - @Test - public void testSetNetworkService() throws Exception { - ThresholdCrossingAlertFields testSubject; - String networkService = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setNetworkService(networkService); - } - - @Test - public void testGetPossibleRootCause() throws Exception { - ThresholdCrossingAlertFields testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getPossibleRootCause(); - } - - @Test - public void testSetPossibleRootCause() throws Exception { - ThresholdCrossingAlertFields testSubject; - String possibleRootCause = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setPossibleRootCause(possibleRootCause); - } - - @Test - public void testGetThresholdCrossingFieldsVersion() throws Exception { - ThresholdCrossingAlertFields testSubject; - ThresholdCrossingFieldsVersion result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getThresholdCrossingFieldsVersion(); - } - - @Test - public void testSetThresholdCrossingFieldsVersion() throws Exception { - ThresholdCrossingAlertFields testSubject; - ThresholdCrossingFieldsVersion thresholdCrossingFieldsVersion = null; - - // default test - testSubject = createTestSubject(); - testSubject.setThresholdCrossingFieldsVersion(thresholdCrossingFieldsVersion); - } - - @Test - public void testToString() throws Exception { - ThresholdCrossingAlertFields testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.toString(); - } - - @Test - public void testHashCode() throws Exception { - ThresholdCrossingAlertFields testSubject; - int result; - - // default test - testSubject = createTestSubject(); - result = testSubject.hashCode(); - } - - @Test - public void testEquals() throws Exception { - ThresholdCrossingAlertFields testSubject; - ThresholdCrossingAlertFields testSubject2; - Object other = null; - boolean result; - - // default test - testSubject = createTestSubject(); - testSubject2 = createTestSubject(); - result = testSubject.equals(other); - result = testSubject.equals(testSubject); - result = testSubject.equals(testSubject2); - assertNotNull(result); - } -} diff --git a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/VendorNfNameFieldsTest.java b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/VendorNfNameFieldsTest.java deleted file mode 100644 index 8bab095..0000000 --- a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/VendorNfNameFieldsTest.java +++ /dev/null @@ -1,128 +0,0 @@ -/* -* ============LICENSE_START======================================================= -* ONAP : DCAE -* ================================================================================ -* Copyright 2018 TechMahindra -*================================================================================= -* 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========================================================= -*/ - -package org.onap.dcaegen2.ves.domain.ves7_0; - -import static org.junit.Assert.assertNotNull; -import org.junit.Test; - - -public class VendorNfNameFieldsTest { - - private VendorNfNameFields createTestSubject() { - return new VendorNfNameFields(); - } - - @Test - public void testGetVendorName() throws Exception { - VendorNfNameFields testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getVendorName(); - } - - @Test - public void testSetVendorName() throws Exception { - VendorNfNameFields testSubject; - String vendorName = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setVendorName(vendorName); - } - - @Test - public void testGetNfModuleName() throws Exception { - VendorNfNameFields testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getNfModuleName(); - } - - @Test - public void testSetNfModuleName() throws Exception { - VendorNfNameFields testSubject; - String nfModuleName = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setNfModuleName(nfModuleName); - } - - @Test - public void testGetNfName() throws Exception { - VendorNfNameFields testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getNfName(); - } - - @Test - public void testSetNfName() throws Exception { - VendorNfNameFields testSubject; - String nfName = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setNfName(nfName); - } - - @Test - public void testToString() throws Exception { - VendorNfNameFields testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.toString(); - } - - @Test - public void testHashCode() throws Exception { - VendorNfNameFields testSubject; - int result; - - // default test - testSubject = createTestSubject(); - result = testSubject.hashCode(); - } - - @Test - public void testEquals() throws Exception { - VendorNfNameFields testSubject; - VendorNfNameFields testSubject2; - Object other = null; - boolean result; - - // default test - testSubject = createTestSubject(); - testSubject2 = createTestSubject(); - result = testSubject.equals(other); - result = testSubject.equals(testSubject); - result = testSubject.equals(testSubject2); - assertNotNull(result); - } -} diff --git a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/VesEventTest.java b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/VesEventTest.java deleted file mode 100644 index 732c416..0000000 --- a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/VesEventTest.java +++ /dev/null @@ -1,110 +0,0 @@ -/* -* ============LICENSE_START======================================================= -* ONAP : DCAE -* ================================================================================ -* Copyright 2018 TechMahindra -*================================================================================= -* 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========================================================= -*/ - -package org.onap.dcaegen2.ves.domain.ves7_0; - -import static org.junit.Assert.assertNotNull; -import java.util.Map; -import org.junit.Test; - - -public class VesEventTest { - - private VesEvent createTestSubject() { - return new VesEvent(); - } - - @Test - public void testGetEvent() throws Exception { - VesEvent testSubject; - Event result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getEvent(); - } - - @Test - public void testSetEvent() throws Exception { - VesEvent testSubject; - Event event = null; - - // default test - testSubject = createTestSubject(); - testSubject.setEvent(event); - } - - @Test - public void testToString() throws Exception { - VesEvent testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.toString(); - } - - @Test - public void testGetAdditionalProperties() throws Exception { - VesEvent testSubject; - Map result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getAdditionalProperties(); - } - - @Test - public void testSetAdditionalProperty() throws Exception { - VesEvent testSubject; - String name = ""; - Object value = null; - - // default test - testSubject = createTestSubject(); - testSubject.setAdditionalProperty(name, value); - } - - @Test - public void testHashCode() throws Exception { - VesEvent testSubject; - int result; - - // default test - testSubject = createTestSubject(); - result = testSubject.hashCode(); - } - - @Test - public void testEquals() throws Exception { - VesEvent testSubject; - VesEvent testSubject2; - Object other = null; - boolean result; - - // default test - testSubject = createTestSubject(); - testSubject2 = createTestSubject(); - result = testSubject.equals(other); - result = testSubject.equals(testSubject); - result = testSubject.equals(testSubject2); - assertNotNull(result); - } -} diff --git a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/VoiceQualityFieldsTest.java b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/VoiceQualityFieldsTest.java deleted file mode 100644 index 8c51ae4..0000000 --- a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves7_0/VoiceQualityFieldsTest.java +++ /dev/null @@ -1,249 +0,0 @@ -/* -* ============LICENSE_START======================================================= -* ONAP : DCAE -* ================================================================================ -* Copyright 2018 TechMahindra -*================================================================================= -* 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========================================================= -*/ - -package org.onap.dcaegen2.ves.domain.ves7_0; - -import static org.junit.Assert.assertNotNull; -import org.junit.Test; -import org.onap.dcaegen2.ves.domain.ves7_0.VoiceQualityFields.VoiceQualityFieldsVersion; - - -public class VoiceQualityFieldsTest { - - private VoiceQualityFields createTestSubject() { - return new VoiceQualityFields(); - } - - @Test - public void testGetAdditionalInformation() throws Exception { - VoiceQualityFields testSubject; - AlarmAdditionalInformation result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getAdditionalInformation(); - } - - @Test - public void testSetAdditionalInformation() throws Exception { - VoiceQualityFields testSubject; - AlarmAdditionalInformation additionalInformation = null; - - // default test - testSubject = createTestSubject(); - testSubject.setAdditionalInformation(additionalInformation); - } - - @Test - public void testGetCalleeSideCodec() throws Exception { - VoiceQualityFields testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getCalleeSideCodec(); - } - - @Test - public void testSetCalleeSideCodec() throws Exception { - VoiceQualityFields testSubject; - String calleeSideCodec = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setCalleeSideCodec(calleeSideCodec); - } - - @Test - public void testGetCallerSideCodec() throws Exception { - VoiceQualityFields testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getCallerSideCodec(); - } - - @Test - public void testSetCallerSideCodec() throws Exception { - VoiceQualityFields testSubject; - String callerSideCodec = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setCallerSideCodec(callerSideCodec); - } - - @Test - public void testGetCorrelator() throws Exception { - VoiceQualityFields testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getCorrelator(); - } - - @Test - public void testSetCorrelator() throws Exception { - VoiceQualityFields testSubject; - String correlator = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setCorrelator(correlator); - } - - @Test - public void testGetEndOfCallVqmSummaries() throws Exception { - VoiceQualityFields testSubject; - EndOfCallVqmSummaries result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getEndOfCallVqmSummaries(); - } - - @Test - public void testSetEndOfCallVqmSummaries() throws Exception { - VoiceQualityFields testSubject; - EndOfCallVqmSummaries endOfCallVqmSummaries = null; - - // default test - testSubject = createTestSubject(); - testSubject.setEndOfCallVqmSummaries(endOfCallVqmSummaries); - } - - @Test - public void testGetPhoneNumber() throws Exception { - VoiceQualityFields testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getPhoneNumber(); - } - - @Test - public void testSetPhoneNumber() throws Exception { - VoiceQualityFields testSubject; - String phoneNumber = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setPhoneNumber(phoneNumber); - } - - @Test - public void testGetMidCallRtcp() throws Exception { - VoiceQualityFields testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getMidCallRtcp(); - } - - @Test - public void testSetMidCallRtcp() throws Exception { - VoiceQualityFields testSubject; - String midCallRtcp = ""; - - // default test - testSubject = createTestSubject(); - testSubject.setMidCallRtcp(midCallRtcp); - } - - @Test - public void testGetVendorNfNameFields() throws Exception { - VoiceQualityFields testSubject; - VendorNfNameFields result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getVendorNfNameFields(); - } - - @Test - public void testSetVendorNfNameFields() throws Exception { - VoiceQualityFields testSubject; - VendorNfNameFields vendorNfNameFields = null; - - // default test - testSubject = createTestSubject(); - testSubject.setVendorNfNameFields(vendorNfNameFields); - } - - @Test - public void testGetVoiceQualityFieldsVersion() throws Exception { - VoiceQualityFields testSubject; - VoiceQualityFieldsVersion result; - - // default test - testSubject = createTestSubject(); - result = testSubject.getVoiceQualityFieldsVersion(); - } - - @Test - public void testSetVoiceQualityFieldsVersion() throws Exception { - VoiceQualityFields testSubject; - VoiceQualityFieldsVersion voiceQualityFieldsVersion = VoiceQualityFieldsVersion._4_0; - - // default test - testSubject = createTestSubject(); - testSubject.setVoiceQualityFieldsVersion(voiceQualityFieldsVersion); - } - - @Test - public void testToString() throws Exception { - VoiceQualityFields testSubject; - String result; - - // default test - testSubject = createTestSubject(); - result = testSubject.toString(); - } - - @Test - public void testHashCode() throws Exception { - VoiceQualityFields testSubject; - int result; - - // default test - testSubject = createTestSubject(); - result = testSubject.hashCode(); - } - - @Test - public void testEquals() throws Exception { - VoiceQualityFields testSubject; - VoiceQualityFields testSubject2; - Object other = null; - boolean result; - - // default test - testSubject = createTestSubject(); - testSubject2 = createTestSubject(); - result = testSubject.equals(other); - result = testSubject.equals(testSubject); - result = testSubject.equals(testSubject2); - assertNotNull(result); - } -} diff --git a/UniversalVesAdapter/src/test/java/org/onap/universalvesadapter/adapter/UniversalEventAdapterTest.java b/UniversalVesAdapter/src/test/java/org/onap/universalvesadapter/adapter/UniversalEventAdapterTest.java index c866235..b016cc7 100644 --- a/UniversalVesAdapter/src/test/java/org/onap/universalvesadapter/adapter/UniversalEventAdapterTest.java +++ b/UniversalVesAdapter/src/test/java/org/onap/universalvesadapter/adapter/UniversalEventAdapterTest.java @@ -1,22 +1,22 @@ -/* -* ============LICENSE_START======================================================= -* ONAP : DCAE -* ================================================================================ -* Copyright 2018 TechMahindra -*================================================================================= -* 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========================================================= -*/ +/*- + * ============LICENSE_START======================================================= + * ONAP : DCAE + * ================================================================================ + * Copyright 2018-2019 TechMahindra + * ================================================================================ + * 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========================================================= + */ package org.onap.universalvesadapter.adapter; @@ -25,6 +25,7 @@ import static org.junit.Assert.assertNotNull; import java.util.HashMap; import java.util.Map; + import org.junit.Before; import org.junit.Test; import org.junit.runner.RunWith; @@ -45,97 +46,108 @@ import org.springframework.boot.test.context.SpringBootTest; @RunWith(PowerMockRunner.class) @SpringBootTest(classes = Application.class) public class UniversalEventAdapterTest { - - private static final Logger errorLogger = LoggerFactory.getLogger("errorLogger"); - - @Mock - private VESAdapterInitializer vesAdapterInitializer; - - @InjectMocks - private UniversalEventAdapter universalVesAdapter; - - @Before - public void init() { - MockitoAnnotations.initMocks(this); - } - - @PrepareForTest({ CollectorConfigPropertyRetrival.class }) - @Test - public void testtransform() { - - StringBuffer incomingJsonString = new StringBuffer("{\n" + " \"rule-id\": \"12121\",\n" - + " \"notification\": {\n" + " \"event-time\": \"2018-03-15T08:15:32.000Z\",\n" - + " \"notification-id\": \"2541256\",\n" + " \"message\": {\n" - + " \"topic\":\"resource\",\n" + " \"object-type\":\"onu\", \n" - + " \"version\": \"v1\", \n" + " \"operation\": \"create\", \n" - + " \"target\": \"ont/ont=23hk1231231232\", \n" + " \"content\": {\n" - + " \"onu\": {\n" + " \"sn\": \"48575443FA637D1A\",\n" - + " \"refParentNE\": \"550e8400-e29b-41d4-a716-446655440000\",\n" - + " \"refParentNeNativeId\": \"FDN\",\n" - + " \"refParentLTP\": \"8c0db89e-218c-4e18-b0de-7a6788b3dda4\",\n" - + " \"refParentLTPNativeId\": \"FDN\",\n" - + " \"onuId\": \"213\",\n" + " \"accessID\": \"HG65875420001\"\n" - + " }\n" + " }\n" + " }\n" + " }\n" + "}"); - Map testMap = new HashMap(); - testMap.put("defaultMappingFile-" + Thread.currentThread().getName(), - "\n" - + "\n" - + " \n" - + " \n" - + " \n" - + " \n" + " \n" - + " \n" - + " \n" + " \n" - + " \n" - + " \n" - + " \n" - + " \n" - + " \n" - + "" - + "org.onap.dcaegen2.ves.domain.ves7_0.CommonEventHeader.Version._4_0_1 \n" - + "\"pnfRegistration\"\n" - + "" - + "org.onap.dcaegen2.ves.domain.ves7_0.CommonEventHeader.VesEventListenerVersion._7_0_1\n" - + " " - + "\"registration_\"+commonEventHeader.ts1\n" - + "\"VESMapper\"\n" - + " " - + "org.onap.dcaegen2.ves.domain.ves7_0.CommonEventHeader.Domain.PNF_REGISTRATION\n" - + " " - + "commonEventHeader.domain\n" - + "\n" - + "" - + "commonEventHeader.ts1\n" - + " " - + "commonEventHeader.ts1\n" + " " - + "org.onap.dcaegen2.ves.domain.ves7_0.CommonEventHeader.Priority.NORMAL\n" - + " \n" - + " \n" - + " \n" + " \n" - + " " - + "org.onap.dcaegen2.ves.domain.ves7_0.PnfRegistrationFields.PnfRegistrationFieldsVersion._2_0" - + "\n" - + " \n" - + " \n" + " \n" + ""); - - try { - vesAdapterInitializer.setMappingFiles(testMap); - - String identifiertest[] = CollectorConfigPropertyRetrival.getProperyArray("identifier", "kvTest.json"); - PowerMockito.mockStatic(CollectorConfigPropertyRetrival.class); - PowerMockito.when(CollectorConfigPropertyRetrival.getProperyArray("identifier", null)) - .thenReturn(identifiertest); - - String actualResult = universalVesAdapter.transform(incomingJsonString.toString()); - assertNotNull(actualResult); - assertNotEquals("", actualResult); - } catch (VesException exception) { - errorLogger.error("Error occurred : {}", exception); - } - } - + + private static final Logger errorLogger = LoggerFactory.getLogger("errorLogger"); + + @Mock + private VESAdapterInitializer vesAdapterInitializer; + + @InjectMocks + private UniversalEventAdapter universalVesAdapter; + + @Before + public void init() { + MockitoAnnotations.initMocks(this); + } + + @PrepareForTest({CollectorConfigPropertyRetrival.class}) + @Test + public void testtransform() { + + StringBuffer incomingJsonString = new StringBuffer("{\n" + " \"rule-id\": \"12121\",\n" + + " \"notification\": {\n" + + " \"event-time\": \"2018-03-15T08:15:32.000Z\",\n" + + " \"notification-id\": \"2541256\",\n" + " \"message\": {\n" + + " \"topic\":\"resource\",\n" + + " \"object-type\":\"onu\", \n" + + " \"version\": \"v1\", \n" + + " \"operation\": \"create\", \n" + + " \"target\": \"ont/ont=23hk1231231232\", \n" + + " \"content\": {\n" + " \"onu\": {\n" + + " \"sn\": \"48575443FA637D1A\",\n" + + " \"refParentNE\": \"550e8400-e29b-41d4-a716-446655440000\",\n" + + " \"refParentNeNativeId\": \"FDN\",\n" + + " \"refParentLTP\": \"8c0db89e-218c-4e18-b0de-7a6788b3dda4\",\n" + + " \"refParentLTPNativeId\": \"FDN\",\n" + + " \"onuId\": \"213\",\n" + + " \"accessID\": \"HG65875420001\"\n" + " }\n" + + " }\n" + " }\n" + " }\n" + "}"); + Map testMap = new HashMap(); + testMap.put("defaultMappingFile-" + Thread.currentThread().getName(), + "\n" + + "\n" + + " \n" + + " \n" + + " \n" + + " \n" + " \n" + + " \n" + + " \n" + + " \n" + + " \n" + + " \n" + + " \n" + + " \n" + + " \n" + + "" + + "org.onap.dcaegen2.ves.domain.ves70.CommonEventHeader.Version._4_0_1 \n" + + "\"pnfRegistration\"\n" + + "" + + "org.onap.dcaegen2.ves.domain.ves70.CommonEventHeader.VesEventListenerVersion._7_0_1" + + "\n" + + " " + + "\"registration_\"+commonEventHeader.ts1\n" + + "\"VESMapper\"\n" + + " " + + "org.onap.dcaegen2.ves.domain.ves70.CommonEventHeader.Domain.PNF_REGISTRATION" + + "\n" + + " " + + "commonEventHeader.domain\n" + + "\n" + + "" + + "commonEventHeader.ts1\n" + + " " + + "commonEventHeader.ts1\n" + + " " + + "org.onap.dcaegen2.ves.domain.ves70.CommonEventHeader.Priority.NORMAL\n" + + " \n" + + " \n" + + " \n" + + " \n" + + " " + + "org.onap.dcaegen2.ves.domain.ves70.PnfRegistrationFields.PnfRegistrationFieldsVersion._2_0" + + "\n" + + " \n" + + " \n" + " \n" + ""); + + try { + vesAdapterInitializer.setMappingFiles(testMap); + + String [] identifiertest = + CollectorConfigPropertyRetrival.getProperyArray("identifier", "kvTest.json"); + PowerMockito.mockStatic(CollectorConfigPropertyRetrival.class); + PowerMockito.when(CollectorConfigPropertyRetrival.getProperyArray("identifier", null)) + .thenReturn(identifiertest); + + String actualResult = universalVesAdapter.transform(incomingJsonString.toString()); + assertNotNull(actualResult); + assertNotEquals("", actualResult); + } catch (VesException exception) { + errorLogger.error("Error occurred : {}", exception); + } + } + } diff --git a/UniversalVesAdapter/src/test/java/org/onap/universalvesadapter/configs/DMaaPMRBaseConfigTest.java b/UniversalVesAdapter/src/test/java/org/onap/universalvesadapter/configs/DMaaPMRBaseConfigTest.java deleted file mode 100644 index 0ec9557..0000000 --- a/UniversalVesAdapter/src/test/java/org/onap/universalvesadapter/configs/DMaaPMRBaseConfigTest.java +++ /dev/null @@ -1,75 +0,0 @@ -/*- - * ============LICENSE_START======================================================= - * Copyright (C) 2019 Samsung. 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========================================================= - */ -package org.onap.universalvesadapter.configs; - -import static org.junit.Assert.assertEquals; -import static org.junit.Assert.assertNotNull; -import static org.junit.Assert.assertNull; -import org.junit.Before; -import org.junit.Test; -import org.mockito.Mockito; -import org.onap.universalvesadapter.exception.DMaapException; - -public class DMaaPMRBaseConfigTest { - DMaaPMRBaseConfig dmaapMRBaseConfig = null; - public static final String JSON_APPLICATION_TYPE = "application/json"; - - @Before - public void setUp() throws Exception { - dmaapMRBaseConfig = Mockito.mock(DMaaPMRBaseConfig.class, Mockito.CALLS_REAL_METHODS); - } - - @Test - public void testDMaaPMRBaseConfigGetMethods() { - assertNotNull(dmaapMRBaseConfig); - assertNull(dmaapMRBaseConfig.getHostName()); - assertNull(dmaapMRBaseConfig.getPortNumber()); - assertNull(dmaapMRBaseConfig.getTopicName()); - assertNull(dmaapMRBaseConfig.getProtocol()); - assertNull(dmaapMRBaseConfig.getContentType()); - assertNull(dmaapMRBaseConfig.getUserName()); - assertNull(dmaapMRBaseConfig.getUserPassword()); - } - - @Test(expected = DMaapException.class) - public void testNormalizeValidateProtocol() { - DMaaPMRBaseConfig.normalizeValidateProtocol(""); - } - - @Test(expected = DMaapException.class) - public void testNormalizeValidateProtocolWithDifferentProtocol() { - DMaaPMRBaseConfig.normalizeValidateProtocol("FTP"); - } - - @Test - public void testNormalizeValidateProtocolWithProperValue() { - assertEquals("https", DMaaPMRBaseConfig.normalizeValidateProtocol("HTTPS")); - assertEquals("http", DMaaPMRBaseConfig.normalizeValidateProtocol("HTTP")); - } - - @Test(expected = DMaapException.class) - public void testNormalizeValidateContentType() { - DMaaPMRBaseConfig.normalizeValidateContentType(""); - } - - @Test - public void testNormalizeValidateContentTypeWithProperValue() { - assertEquals(JSON_APPLICATION_TYPE, DMaaPMRBaseConfig.normalizeValidateContentType("application/json")); - } -} diff --git a/UniversalVesAdapter/src/test/java/org/onap/universalvesadapter/configs/DmaapMrBaseConfigTest.java b/UniversalVesAdapter/src/test/java/org/onap/universalvesadapter/configs/DmaapMrBaseConfigTest.java new file mode 100644 index 0000000..495722f --- /dev/null +++ b/UniversalVesAdapter/src/test/java/org/onap/universalvesadapter/configs/DmaapMrBaseConfigTest.java @@ -0,0 +1,78 @@ +/*- + * ============LICENSE_START======================================================= + * Copyright (C) 2019 Samsung. 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========================================================= + */ + +package org.onap.universalvesadapter.configs; + +import static org.junit.Assert.assertEquals; +import static org.junit.Assert.assertNotNull; +import static org.junit.Assert.assertNull; + +import org.junit.Before; +import org.junit.Test; +import org.mockito.Mockito; +import org.onap.universalvesadapter.exception.DMaapException; + +public class DmaapMrBaseConfigTest { + DMaaPMRBaseConfig dmaapMrBaseConfig = null; + public static final String JSON_APPLICATION_TYPE = "application/json"; + + @Before + public void setUp() throws Exception { + dmaapMrBaseConfig = Mockito.mock(DMaaPMRBaseConfig.class, Mockito.CALLS_REAL_METHODS); + } + + @Test + public void testDmaapMrBaseConfigGetMethods() { + assertNotNull(dmaapMrBaseConfig); + assertNull(dmaapMrBaseConfig.getHostName()); + assertNull(dmaapMrBaseConfig.getPortNumber()); + assertNull(dmaapMrBaseConfig.getTopicName()); + assertNull(dmaapMrBaseConfig.getProtocol()); + assertNull(dmaapMrBaseConfig.getContentType()); + assertNull(dmaapMrBaseConfig.getUserName()); + assertNull(dmaapMrBaseConfig.getUserPassword()); + } + + @Test(expected = DMaapException.class) + public void testNormalizeValidateProtocol() { + DMaaPMRBaseConfig.normalizeValidateProtocol(""); + } + + @Test(expected = DMaapException.class) + public void testNormalizeValidateProtocolWithDifferentProtocol() { + DMaaPMRBaseConfig.normalizeValidateProtocol("FTP"); + } + + @Test + public void testNormalizeValidateProtocolWithProperValue() { + assertEquals("https", DMaaPMRBaseConfig.normalizeValidateProtocol("HTTPS")); + assertEquals("http", DMaaPMRBaseConfig.normalizeValidateProtocol("HTTP")); + } + + @Test(expected = DMaapException.class) + public void testNormalizeValidateContentType() { + DMaaPMRBaseConfig.normalizeValidateContentType(""); + } + + @Test + public void testNormalizeValidateContentTypeWithProperValue() { + assertEquals(JSON_APPLICATION_TYPE, + DMaaPMRBaseConfig.normalizeValidateContentType("application/json")); + } +} diff --git a/UniversalVesAdapter/src/test/java/org/onap/universalvesadapter/controller/VesControllerTest.java b/UniversalVesAdapter/src/test/java/org/onap/universalvesadapter/controller/VesControllerTest.java index cbacc61..829ae0d 100644 --- a/UniversalVesAdapter/src/test/java/org/onap/universalvesadapter/controller/VesControllerTest.java +++ b/UniversalVesAdapter/src/test/java/org/onap/universalvesadapter/controller/VesControllerTest.java @@ -1,65 +1,69 @@ -/* -* ============LICENSE_START======================================================= -* ONAP : DCAE -* ================================================================================ -* Copyright 2018 TechMahindra -*================================================================================= -* 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========================================================= -*/ -package org.onap.universalvesadapter.controller; - -import static org.junit.Assert.assertEquals; -import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.get; -import static org.springframework.test.web.servlet.result.MockMvcResultHandlers.print; -import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.status; - -import org.junit.Ignore; -import org.junit.Test; -import org.junit.runner.RunWith; -import org.onap.universalvesadapter.Application; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.boot.test.autoconfigure.web.servlet.AutoConfigureMockMvc; -import org.springframework.boot.test.context.SpringBootTest; -import org.springframework.test.context.junit4.SpringRunner; -import org.springframework.test.web.servlet.MockMvc; -import org.springframework.test.web.servlet.MvcResult; - -@RunWith(SpringRunner.class) -@SpringBootTest(classes=Application.class) -@AutoConfigureMockMvc -@Ignore -public class VesControllerTest { - - @Autowired - private MockMvc mockMvc; - - @Test - public void startShouldReturnApplicationStartedMessage() throws Exception { - - MvcResult mvcResult = this.mockMvc.perform(get("/start")).andDo(print()).andExpect(status().isOk()) - .andReturn();//Expect(jsonPath("$.content").value("Application started")); - assertEquals("Application started", mvcResult.getResponse().getContentAsString()); - } - - @Test - public void stopShouldReturnApplicationStoppingMessage() throws Exception { - - MvcResult mvcResult = this.mockMvc.perform(get("/stop")).andDo(print()).andExpect(status().isOk()) - .andReturn();//.andExpect(jsonPath("$.content").value("Application will be stopped soon")); - assertEquals("Application will be stopped soon", mvcResult.getResponse().getContentAsString()); - } - - - -} +/*- + * ============LICENSE_START======================================================= + * ONAP : DCAE + * ================================================================================ + * Copyright 2018-2019 TechMahindra + * ================================================================================ + * 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========================================================= + */ + +package org.onap.universalvesadapter.controller; + +import static org.junit.Assert.assertEquals; +import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.get; +import static org.springframework.test.web.servlet.result.MockMvcResultHandlers.print; +import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.status; + +import org.junit.Ignore; +import org.junit.Test; +import org.junit.runner.RunWith; +import org.onap.universalvesadapter.Application; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.boot.test.autoconfigure.web.servlet.AutoConfigureMockMvc; +import org.springframework.boot.test.context.SpringBootTest; +import org.springframework.test.context.junit4.SpringRunner; +import org.springframework.test.web.servlet.MockMvc; +import org.springframework.test.web.servlet.MvcResult; + +@RunWith(SpringRunner.class) +@SpringBootTest(classes = Application.class) +@AutoConfigureMockMvc +@Ignore +public class VesControllerTest { + + @Autowired + private MockMvc mockMvc; + + @Test + public void startShouldReturnApplicationStartedMessage() throws Exception { + + MvcResult mvcResult = this.mockMvc.perform(get("/start")).andDo(print()) + .andExpect(status().isOk()).andReturn(); + // Expect(jsonPath("$.content").value("Application started")); + assertEquals("Application started", mvcResult.getResponse().getContentAsString()); + } + + @Test + public void stopShouldReturnApplicationStoppingMessage() throws Exception { + + MvcResult mvcResult = this.mockMvc.perform(get("/stop")).andDo(print()) + .andExpect(status().isOk()).andReturn(); + // .andExpect(jsonPath("$.content").value("Application will be stopped soon")); + assertEquals("Application will be stopped soon", + mvcResult.getResponse().getContentAsString()); + } + + + +} diff --git a/UniversalVesAdapter/src/test/java/org/onap/universalvesadapter/exception/ConfigFileSmooksConversionExceptionTest.java b/UniversalVesAdapter/src/test/java/org/onap/universalvesadapter/exception/ConfigFileSmooksConversionExceptionTest.java index ac60be1..ff30305 100644 --- a/UniversalVesAdapter/src/test/java/org/onap/universalvesadapter/exception/ConfigFileSmooksConversionExceptionTest.java +++ b/UniversalVesAdapter/src/test/java/org/onap/universalvesadapter/exception/ConfigFileSmooksConversionExceptionTest.java @@ -1,35 +1,37 @@ -/* -* ============LICENSE_START======================================================= -* ONAP : DCAE -* ================================================================================ -* Copyright 2018 TechMahindra -*================================================================================= -* 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========================================================= -*/ -package org.onap.universalvesadapter.exception; - -import org.junit.Test; - -public class ConfigFileSmooksConversionExceptionTest { - - - @Test - public void test() { - ConfigFileSmooksConversionException se = new ConfigFileSmooksConversionException("message"); - ConfigFileSmooksConversionException se1 = new ConfigFileSmooksConversionException("message", se); - - - } - -} +/*- + * ============LICENSE_START======================================================= + * ONAP : DCAE + * ================================================================================ + * Copyright 2018-2019 TechMahindra + * ================================================================================ + * 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========================================================= + */ + +package org.onap.universalvesadapter.exception; + +import org.junit.Test; + +public class ConfigFileSmooksConversionExceptionTest { + + + @Test + public void test() { + ConfigFileSmooksConversionException se = new ConfigFileSmooksConversionException("message"); + ConfigFileSmooksConversionException se1 = + new ConfigFileSmooksConversionException("message", se); + + + } + +} diff --git a/UniversalVesAdapter/src/test/java/org/onap/universalvesadapter/exception/DMaapExceptionTest.java b/UniversalVesAdapter/src/test/java/org/onap/universalvesadapter/exception/DMaapExceptionTest.java index 4da29de..0f24229 100644 --- a/UniversalVesAdapter/src/test/java/org/onap/universalvesadapter/exception/DMaapExceptionTest.java +++ b/UniversalVesAdapter/src/test/java/org/onap/universalvesadapter/exception/DMaapExceptionTest.java @@ -1,41 +1,43 @@ -/* -* ============LICENSE_START======================================================= -* ONAP : DCAE -* ================================================================================ -* Copyright 2018 TechMahindra -*================================================================================= -* 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========================================================= -*/ -package org.onap.universalvesadapter.exception; - -import static org.junit.Assert.assertNotNull; -import org.junit.Test; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; - -public class DMaapExceptionTest { - private static final Logger debugLogger = LoggerFactory.getLogger("debugLogger"); - - @Test - public void test() { - DMaapException se = new DMaapException("message"); - assertNotNull(se); - DMaapException se1 = new DMaapException("message", se); - assertNotNull(se1); - DMaapException se2 = new DMaapException("message", se.getCause()); - assertNotNull(se2); - DMaapException se3 = new DMaapException("message", debugLogger, se); - assertNotNull(se3); - } -} +/*- + * ============LICENSE_START======================================================= + * ONAP : DCAE + * ================================================================================ + * Copyright 2018-2019 TechMahindra + * ================================================================================ + * 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========================================================= + */ + +package org.onap.universalvesadapter.exception; + +import static org.junit.Assert.assertNotNull; + +import org.junit.Test; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; + +public class DMaapExceptionTest { + private static final Logger debugLogger = LoggerFactory.getLogger("debugLogger"); + + @Test + public void test() { + DMaapException se = new DMaapException("message"); + assertNotNull(se); + DMaapException se1 = new DMaapException("message", se); + assertNotNull(se1); + DMaapException se2 = new DMaapException("message", se.getCause()); + assertNotNull(se2); + DMaapException se3 = new DMaapException("message", debugLogger, se); + assertNotNull(se3); + } +} diff --git a/UniversalVesAdapter/src/test/java/org/onap/universalvesadapter/exception/MapperConfigExceptionTest.java b/UniversalVesAdapter/src/test/java/org/onap/universalvesadapter/exception/MapperConfigExceptionTest.java index 19dfd87..966bf4a 100644 --- a/UniversalVesAdapter/src/test/java/org/onap/universalvesadapter/exception/MapperConfigExceptionTest.java +++ b/UniversalVesAdapter/src/test/java/org/onap/universalvesadapter/exception/MapperConfigExceptionTest.java @@ -1,32 +1,33 @@ -/* -* ============LICENSE_START======================================================= -* ONAP : DCAE -* ================================================================================ -* Copyright 2018 TechMahindra -*================================================================================= -* 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========================================================= -*/ -package org.onap.universalvesadapter.exception; - -import org.junit.Test; - -public class MapperConfigExceptionTest { - - @Test - public void test() { - MapperConfigException se = new MapperConfigException("message"); - MapperConfigException se1 = new MapperConfigException("message", se); - } - -} +/*- + * ============LICENSE_START======================================================= + * ONAP : DCAE + * ================================================================================ + * Copyright 2018-2019 TechMahindra + * ================================================================================ + * 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========================================================= + */ + +package org.onap.universalvesadapter.exception; + +import org.junit.Test; + +public class MapperConfigExceptionTest { + + @Test + public void test() { + MapperConfigException se = new MapperConfigException("message"); + MapperConfigException se1 = new MapperConfigException("message", se); + } + +} diff --git a/UniversalVesAdapter/src/test/java/org/onap/universalvesadapter/mappingconfig/EntryTest.java b/UniversalVesAdapter/src/test/java/org/onap/universalvesadapter/mappingconfig/EntryTest.java index d72892b..0097658 100644 --- a/UniversalVesAdapter/src/test/java/org/onap/universalvesadapter/mappingconfig/EntryTest.java +++ b/UniversalVesAdapter/src/test/java/org/onap/universalvesadapter/mappingconfig/EntryTest.java @@ -1,59 +1,60 @@ -/* -* ============LICENSE_START======================================================= -* ONAP : DCAE -* ================================================================================ -* Copyright 2018 TechMahindra -*================================================================================= -* 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========================================================= -*/ -package org.onap.universalvesadapter.mappingconfig; - -import static org.junit.Assert.*; - -import java.util.HashMap; -import java.util.Map; - -import org.junit.Test; -import org.mockito.Mock; -import org.springframework.beans.factory.annotation.Autowired; - -public class EntryTest { - - @Autowired - Entry entry = new Entry(); - @Mock - Evaluation evaluation = new Evaluation(); - Object value = new Object(); - Map additionalProperties = new HashMap(); - - @Test - public void test() { - entry.setPriority(1); - entry.setEvaluation(evaluation); - entry.setResult("result"); - entry.setAdditionalProperty("name", value); - - additionalProperties.put("name", value); - assertEquals(entry.getEvaluation(), evaluation); - assertEquals(entry.getPriority(), new Integer(1)); - assertEquals(entry.getResult(),"result"); - assertEquals(entry.getAdditionalProperties(), additionalProperties); - assert (entry.toString() != null); - assert (entry.hashCode() != 0); - - assert (entry.equals(entry)); - - } - -} +/*- + * ============LICENSE_START======================================================= + * ONAP : DCAE + * ================================================================================ + * Copyright 2018-2019 TechMahindra + * ================================================================================ + * 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========================================================= + */ + +package org.onap.universalvesadapter.mappingconfig; + +import static org.junit.Assert.assertEquals; + +import java.util.HashMap; +import java.util.Map; + +import org.junit.Test; +import org.mockito.Mock; +import org.springframework.beans.factory.annotation.Autowired; + +public class EntryTest { + + @Autowired + Entry entry = new Entry(); + @Mock + Evaluation evaluation = new Evaluation(); + Object value = new Object(); + Map additionalProperties = new HashMap(); + + @Test + public void test() { + entry.setPriority(1); + entry.setEvaluation(evaluation); + entry.setResult("result"); + entry.setAdditionalProperty("name", value); + + additionalProperties.put("name", value); + assertEquals(entry.getEvaluation(), evaluation); + assertEquals(entry.getPriority(), new Integer(1)); + assertEquals(entry.getResult(), "result"); + assertEquals(entry.getAdditionalProperties(), additionalProperties); + assert (entry.toString() != null); + assert (entry.hashCode() != 0); + + assert (entry.equals(entry)); + + } + +} diff --git a/UniversalVesAdapter/src/test/java/org/onap/universalvesadapter/mappingconfig/EvaluationTest.java b/UniversalVesAdapter/src/test/java/org/onap/universalvesadapter/mappingconfig/EvaluationTest.java index a3b9db6..5799d01 100644 --- a/UniversalVesAdapter/src/test/java/org/onap/universalvesadapter/mappingconfig/EvaluationTest.java +++ b/UniversalVesAdapter/src/test/java/org/onap/universalvesadapter/mappingconfig/EvaluationTest.java @@ -1,70 +1,70 @@ -/* -* ============LICENSE_START======================================================= -* ONAP : DCAE -* ================================================================================ -* Copyright 2018 TechMahindra -*================================================================================= -* 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========================================================= -*/ -package org.onap.universalvesadapter.mappingconfig; - -import static org.junit.Assert.*; - -import java.util.HashMap; -import java.util.Map; - -import org.junit.Test; -import org.springframework.beans.factory.annotation.Autowired; - -public class EvaluationTest { - - @Autowired - Evaluation evaluation =new Evaluation(); - Evaluation lhs =new Evaluation(); - Evaluation rhs =new Evaluation(); - Object value = new Object(); - Map additionalProperties = new HashMap(); - - @Test - public void test() { - evaluation.setAdditionalProperty("name", value); - evaluation.setDatatype("datatype"); - evaluation.setField("field"); - evaluation.setLhs(lhs); - evaluation.setOperand("operand"); - evaluation.setRhs(rhs); - evaluation.setValue("value"); - additionalProperties.put("name", value); - - assertEquals(evaluation.getAdditionalProperties(), additionalProperties); - assertEquals(evaluation.getDatatype(),"datatype"); - assertEquals(evaluation.getField(),"field"); - assertEquals(evaluation.getLhs(),lhs); - assertEquals(evaluation.getOperand(),"operand"); - assertEquals(evaluation.getRhs(),rhs); - assertEquals(evaluation.getValue(),"value"); - - assert (evaluation.toString() != null); - assert (evaluation.hashCode() != 0); - - assert (evaluation.equals(evaluation)); - assertEquals(evaluation.equals(value),false); - assertEquals(evaluation.equals(null),false); - - - - - } - -} +/*- + * ============LICENSE_START======================================================= + * ONAP : DCAE + * ================================================================================ + * Copyright 2018-2019 TechMahindra + * ================================================================================ + * 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========================================================= + */ + +package org.onap.universalvesadapter.mappingconfig; + +import static org.junit.Assert.assertEquals; + +import java.util.HashMap; +import java.util.Map; + +import org.junit.Test; +import org.springframework.beans.factory.annotation.Autowired; + +public class EvaluationTest { + + @Autowired + Evaluation evaluation = new Evaluation(); + Evaluation lhs = new Evaluation(); + Evaluation rhs = new Evaluation(); + Object value = new Object(); + Map additionalProperties = new HashMap(); + + @Test + public void test() { + evaluation.setAdditionalProperty("name", value); + evaluation.setDatatype("datatype"); + evaluation.setField("field"); + evaluation.setLhs(lhs); + evaluation.setOperand("operand"); + evaluation.setRhs(rhs); + evaluation.setValue("value"); + additionalProperties.put("name", value); + + assertEquals(evaluation.getAdditionalProperties(), additionalProperties); + assertEquals(evaluation.getDatatype(), "datatype"); + assertEquals(evaluation.getField(), "field"); + assertEquals(evaluation.getLhs(), lhs); + assertEquals(evaluation.getOperand(), "operand"); + assertEquals(evaluation.getRhs(), rhs); + assertEquals(evaluation.getValue(), "value"); + + assert (evaluation.toString() != null); + assert (evaluation.hashCode() != 0); + + assert (evaluation.equals(evaluation)); + assertEquals(evaluation.equals(value), false); + assertEquals(evaluation.equals(null), false); + + + + } + +} diff --git a/UniversalVesAdapter/src/test/java/org/onap/universalvesadapter/mappingconfig/MapperConfigTest.java b/UniversalVesAdapter/src/test/java/org/onap/universalvesadapter/mappingconfig/MapperConfigTest.java index 474ba05..a9cf2b0 100644 --- a/UniversalVesAdapter/src/test/java/org/onap/universalvesadapter/mappingconfig/MapperConfigTest.java +++ b/UniversalVesAdapter/src/test/java/org/onap/universalvesadapter/mappingconfig/MapperConfigTest.java @@ -1,54 +1,55 @@ -/* -* ============LICENSE_START======================================================= -* ONAP : DCAE -* ================================================================================ -* Copyright 2018 TechMahindra -*================================================================================= -* 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========================================================= -*/ -package org.onap.universalvesadapter.mappingconfig; - -import static org.junit.Assert.*; - -import java.util.HashMap; -import java.util.Map; -import java.util.Set; - -import org.junit.Test; -import org.springframework.beans.factory.annotation.Autowired; - -public class MapperConfigTest { - - @Autowired - MapperConfig mapperConfig = new MapperConfig(); - Map additionalProperties = new HashMap(); - Object value = new Object(); - Set entries = null; - - @Test - public void test() { - mapperConfig.setAdditionalProperty("name", value); - mapperConfig.setEntries(entries); - additionalProperties.put("name", value); - - assertEquals(mapperConfig.getAdditionalProperties(),additionalProperties); - assertEquals(mapperConfig.getEntries(),entries); - assert (mapperConfig.toString() != null); - assert (mapperConfig.hashCode() != 0); - - assert (mapperConfig.equals(mapperConfig)); - - } - -} +/*- + * ============LICENSE_START======================================================= + * ONAP : DCAE + * ================================================================================ + * Copyright 2018-2019 TechMahindra + * ================================================================================ + * 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========================================================= + */ + +package org.onap.universalvesadapter.mappingconfig; + +import static org.junit.Assert.assertEquals; + +import java.util.HashMap; +import java.util.Map; +import java.util.Set; + +import org.junit.Test; +import org.springframework.beans.factory.annotation.Autowired; + +public class MapperConfigTest { + + @Autowired + MapperConfig mapperConfig = new MapperConfig(); + Map additionalProperties = new HashMap(); + Object value = new Object(); + Set entries = null; + + @Test + public void test() { + mapperConfig.setAdditionalProperty("name", value); + mapperConfig.setEntries(entries); + additionalProperties.put("name", value); + + assertEquals(mapperConfig.getAdditionalProperties(), additionalProperties); + assertEquals(mapperConfig.getEntries(), entries); + assert (mapperConfig.toString() != null); + assert (mapperConfig.hashCode() != 0); + + assert (mapperConfig.equals(mapperConfig)); + + } + +} diff --git a/UniversalVesAdapter/src/test/java/org/onap/universalvesadapter/service/VesServiceTest.java b/UniversalVesAdapter/src/test/java/org/onap/universalvesadapter/service/VesServiceTest.java index 3ad47f0..2e6ed56 100644 --- a/UniversalVesAdapter/src/test/java/org/onap/universalvesadapter/service/VesServiceTest.java +++ b/UniversalVesAdapter/src/test/java/org/onap/universalvesadapter/service/VesServiceTest.java @@ -1,144 +1,100 @@ -/* -* ============LICENSE_START======================================================= -* ONAP : DCAE -* ================================================================================ -* Copyright 2018 TechMahindra -*================================================================================= -* 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========================================================= - -package org.onap.universalvesadapter.service; - -import static org.junit.Assert.*; -import static org.mockito.Mockito.doNothing; -import static org.mockito.Mockito.doReturn; - -import java.io.IOException; -import java.util.Arrays; -import java.util.Collections; - -import org.junit.Before; -import org.junit.Ignore; -import org.junit.Test; -import org.junit.runner.RunWith; -import org.mockito.ArgumentCaptor; -import org.mockito.InjectMocks; -import org.mockito.Mock; -import org.mockito.Mockito; -import org.mockito.MockitoAnnotations; -import org.onap.universalvesadapter.Application; -import org.onap.universalvesadapter.exception.DMaapException; -import org.onap.universalvesadapter.service.DMaapService; -import org.onap.universalvesadapter.service.VesService; -import org.onap.universalvesadapter.utils.ParallelTasks; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.boot.test.context.SpringBootTest; -import org.springframework.test.context.junit4.SpringRunner; - -import com.att.nsa.mr.client.MRConsumer; -@Ignore -@RunWith(SpringRunner.class) -@SpringBootTest(classes = Application.class) -public class VesServiceTest { - - @InjectMocks - @Autowired - private VesService vesService; - - @Mock - private DMaapService dmaapService; - - private final Logger eLOGGER = LoggerFactory.getLogger(this.getClass()); - - @Before - public void init() { - MockitoAnnotations.initMocks(this); - } - - - @Test - public void testStart() throws IOException { - - String[] incomingMessages = {"{ " - + " \"protocol version \": \"v2c \", " - + " \"notify OID \": \".1.3.6.1.4.1.74.2.46.12.1.1AAA \", " - + " \"cambria.partition \": \"dcae-snmp.client.research.att.com \", " - + " \"trap category \": \"UCSNMP-HEARTBEAT \", " - + " \"epoch_serno \": 15161177410000, " - + " \"community \": \"public \", " - + " \"time received \": 1516117741, " - + " \"agent name \": \"localhost \", " - + " \"agent address \": \"127.0.0.1 \", " - + " \"community len \": 6, " - + " \"notify OID len \": 12, " - + " \"varbinds \": [{ " - + " \"varbind_type \": \"octet \", " - + " \"varbind_oid \": \".1.3.6.1.4.1.74.2.46.12.1.1.1 \", " - + " \"varbind_value \": \"ucsnmp heartbeat - ignore \" " - + " }, { " - + " \"varbind_type \": \"octet \", " - + " \"varbind_oid \": \".1.3.6.1.4.1.74.2.46.12.1.1.2 \", " - + " \"varbind_value \": \"Tue Jan 16 10:49:01 EST 2018 \" " - + " }] " - + "}"}; - try { - // Mockito.when(dmaapService.fetchAndPublishInDMaaP(null,null)).thenReturn(Arrays.asList(incomingMessages)).thenReturn(() -> Collections.emptyIterator()); - } catch (Exception e) { - eLOGGER.error("Error occurred : " + e.getMessage()); - } - - ArgumentCaptor valueCapture = ArgumentCaptor.forClass(String.class); - try { - //doNothing().when(dmaapService).fetchAndPublishInDMaaP((String) valueCapture.capture()); - } catch (DMaapException e) { - eLOGGER.error("Error occurred : " + e.getMessage()); - } - - - new Thread(new Runnable() { - - @Override - public void run() { - // TODO Auto-generated method stub - vesService.start(); - - } - }).start(); - try { - Thread.sleep(5000); - } catch (InterruptedException e) { - // TODO Auto-generated catch block - e.printStackTrace(); - } - new Thread(new Runnable() { - - @Override - public void run() { - // TODO Auto-generated method stub - vesService.stop(); - - } - }).start(); - String result = "{\"event\":{\"commonEventHeader\":{},\"faultFields\":{},\"measurementsForVfScalingFields\":{\"additionalMeasurements\":[]}}}"; - assertEquals(result, valueCapture.getValue()); - } - - @Test - public void testStop() { - fail("Not yet implemented"); - } - -} -*/ \ No newline at end of file +/*- + * ============LICENSE_START======================================================= + * ONAP : DCAE + * ================================================================================ + * Copyright 2018-2019 TechMahindra + * ================================================================================ + * 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========================================================= + * + * + * package org.onap.universalvesadapter.service; + * + * import static org.junit.Assert.*; import static org.mockito.Mockito.doNothing; import static + * org.mockito.Mockito.doReturn; + * + * import java.io.IOException; import java.util.Arrays; import java.util.Collections; + * + * import org.junit.Before; import org.junit.Ignore; import org.junit.Test; import + * org.junit.runner.RunWith; import org.mockito.ArgumentCaptor; import org.mockito.InjectMocks; + * import org.mockito.Mock; import org.mockito.Mockito; import org.mockito.MockitoAnnotations; + * import org.onap.universalvesadapter.Application; import + * org.onap.universalvesadapter.exception.DMaapException; import + * org.onap.universalvesadapter.service.DMaapService; import + * org.onap.universalvesadapter.service.VesService; import + * org.onap.universalvesadapter.utils.ParallelTasks; import org.slf4j.Logger; import + * org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; import + * org.springframework.boot.test.context.SpringBootTest; import + * org.springframework.test.context.junit4.SpringRunner; + * + * import com.att.nsa.mr.client.MRConsumer; + * + * @Ignore + * + * @RunWith(SpringRunner.class) + * + * @SpringBootTest(classes = Application.class) public class VesServiceTest { + * + * @InjectMocks + * + * @Autowired private VesService vesService; + * + * @Mock private DMaapService dmaapService; + * + * private final Logger eLOGGER = LoggerFactory.getLogger(this.getClass()); + * + * @Before public void init() { MockitoAnnotations.initMocks(this); } + * + * + * @Test public void testStart() throws IOException { + * + * String[] incomingMessages = {"{ " + " \"protocol version \": \"v2c \", " + + * " \"notify OID \": \".1.3.6.1.4.1.74.2.46.12.1.1AAA \", " + + * " \"cambria.partition \": \"dcae-snmp.client.research.att.com \", " + + * " \"trap category \": \"UCSNMP-HEARTBEAT \", " + " \"epoch_serno \": 15161177410000, " + + * " \"community \": \"public \", " + " \"time received \": 1516117741, " + + * " \"agent name \": \"localhost \", " + " \"agent address \": \"127.0.0.1 \", " + + * " \"community len \": 6, " + " \"notify OID len \": 12, " + " \"varbinds \": [{ " + + * " \"varbind_type \": \"octet \", " + + * " \"varbind_oid \": \".1.3.6.1.4.1.74.2.46.12.1.1.1 \", " + + * " \"varbind_value \": \"ucsnmp heartbeat - ignore \" " + " }, { " + + * " \"varbind_type \": \"octet \", " + + * " \"varbind_oid \": \".1.3.6.1.4.1.74.2.46.12.1.1.2 \", " + + * " \"varbind_value \": \"Tue Jan 16 10:49:01 EST 2018 \" " + " }] " + "}"}; try { // + * Mockito.when(dmaapService.fetchAndPublishInDMaaP(null,null)). + * thenReturn(Arrays.asList(incomingMessages)).thenReturn(() -> Collections.emptyIterator()); + * + * } catch (Exception e) { eLOGGER.error("Error occurred : " + e.getMessage()); } + * + * ArgumentCaptor valueCapture = ArgumentCaptor.forClass(String.class); try { + * //doNothing().when(dmaapService).fetchAndPublishInDMaaP((String) valueCapture.capture()); } catch + * (DMaapException e) { eLOGGER.error("Error occurred : " + e.getMessage()); } + * + * + * new Thread(new Runnable() { + * + * @Override public void run() { // TODO Auto-generated method stub vesService.start(); + * + * } }).start(); try { Thread.sleep(5000); } catch (InterruptedException e) { // TODO Auto-generated + * catch block e.printStackTrace(); } new Thread(new Runnable() { + * + * @Override public void run() { // TODO Auto-generated method stub vesService.stop(); + * + * } }).start(); String result = "{\"event\":{\"commonEventHeader\":{},\"faultFields\":{}, + * \"measurementsForVfScalingFields\":{\"additionalMeasurements\":[]}}}"; assertEquals(result, + * valueCapture.getValue()); } + * + * @Test public void testStop() { fail("Not yet implemented"); } + * + * } + */ diff --git a/UniversalVesAdapter/src/test/java/org/onap/universalvesadapter/utils/SmooksUtilsTest.java b/UniversalVesAdapter/src/test/java/org/onap/universalvesadapter/utils/SmooksUtilsTest.java index 13a5e78..19fcaa2 100644 --- a/UniversalVesAdapter/src/test/java/org/onap/universalvesadapter/utils/SmooksUtilsTest.java +++ b/UniversalVesAdapter/src/test/java/org/onap/universalvesadapter/utils/SmooksUtilsTest.java @@ -1,121 +1,128 @@ -/* -* ============LICENSE_START======================================================= -* ONAP : DCAE -* ================================================================================ -* Copyright 2018 TechMahindra -*================================================================================= -* 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========================================================= -*/ - +/*- + * ============LICENSE_START======================================================= + * ONAP : DCAE + * ================================================================================ + * Copyright 2018-2019 TechMahindra + * ================================================================================ + * 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========================================================= + */ package org.onap.universalvesadapter.utils; import java.io.ByteArrayInputStream; import java.io.IOException; import java.nio.charset.StandardCharsets; + import org.junit.Test; import org.milyn.Smooks; -import org.onap.dcaegen2.ves.domain.ves7_0.VesEvent; +import org.onap.dcaegen2.ves.domain.ves70.VesEvent; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.xml.sax.SAXException; public class SmooksUtilsTest { - - - VesEvent vesEvent; - private static final Logger errorLogger = LoggerFactory.getLogger("errorLogger"); - - @Test - public void testGetTransformedObjectForInput() { - StringBuffer incomingJsonString = new StringBuffer("{\n" + " \"rule-id\": \"12121\",\n" - + " \"notification\": {\n" + " \"event-time\": \"2018-03-15T08:15:32.000Z\",\n" - + " \"notification-id\": \"2541256\",\n" + " \"message\": {\n" - + " \"topic\":\"resource\",\n" - + " \"object-type\":\"onu\", \n" - + " \"version\": \"v1\", \n" - + " \"operation\": \"create\", \n" - + " \"target\": \"ont/ont=23hk1231231232\", \n" - + " \"content\": {\n" + " \"onu\": {\n" - + " \"sn\": \"48575443FA637D1A\",\n" - + " \"refParentNE\": \"550e8400-e29b-41d4-a716-446655440000\",\n" - + " \"refParentNeNativeId\": \"FDN\",\n" - + " \"refParentLTP\": \"8c0db89e-218c-4e18-b0de-7a6788b3dda4\",\n" - + " \"refParentLTPNativeId\": \"FDN\",\n" - + " \"onuId\": \"213\",\n" - + " \"accessID\": \"HG65875420001\"\n" + " }\n" - + " }\n" + " }\n" + " }\n" + "}"); - StringBuffer configFileData = new StringBuffer("\n" - + "\n" - + " \n" - + " \n" - + " \n" - + " \n" + " \n" - + " \n" - + " \n" + " \n" - + " \n" - + " \n" - + " \n" - + " \n" - + " \n" - + "" - + "org.onap.dcaegen2.ves.domain.ves7_0.CommonEventHeader.Version._4_0_1 \n" - + "\"pnfRegistration\"\n" - + "" - + "org.onap.dcaegen2.ves.domain.ves7_0.CommonEventHeader.VesEventListenerVersion._7_0_1\n" - + " " - + "\"registration_\"+commonEventHeader.ts1\n" - + "\"VESMapper\"\n" - + " " - + "org.onap.dcaegen2.ves.domain.ves7_0.CommonEventHeader.Domain.PNF_REGISTRATION\n" - + " " - + "commonEventHeader.domain\n" - + "\n" - + "" - + "commonEventHeader.ts1\n" - + " " - + "commonEventHeader.ts1\n" + " " - + "org.onap.dcaegen2.ves.domain.ves7_0.CommonEventHeader.Priority.NORMAL\n" - + " \n" - + " \n" - + " \n" + " \n" - + " " - + "org.onap.dcaegen2.ves.domain.ves7_0.PnfRegistrationFields.PnfRegistrationFieldsVersion._2_0" - + "\n" - + " \n" - + " \n" + " \n" + ""); - - Smooks smooks = null; - - try { - // reading config file.. for now, looking at it as just one time operation - if (null == smooks) { - - smooks = new Smooks( - new ByteArrayInputStream(configFileData.toString().getBytes(StandardCharsets.UTF_8))); - } - - vesEvent = SmooksUtils.getTransformedObjectForInput(smooks, incomingJsonString.toString()); - } catch (IOException | SAXException exception) { - errorLogger.error("Error occurred : ", exception); + + + VesEvent vesEvent; + private static final Logger errorLogger = LoggerFactory.getLogger("errorLogger"); + + @Test + public void testGetTransformedObjectForInput() { + StringBuffer incomingJsonString = new StringBuffer("{\n" + " \"rule-id\": \"12121\",\n" + + " \"notification\": {\n" + + " \"event-time\": \"2018-03-15T08:15:32.000Z\",\n" + + " \"notification-id\": \"2541256\",\n" + " \"message\": {\n" + + " \"topic\":\"resource\",\n" + + " \"object-type\":\"onu\", \n" + + " \"version\": \"v1\", \n" + + " \"operation\": \"create\", \n" + + " \"target\": \"ont/ont=23hk1231231232\", \n" + + " \"content\": {\n" + " \"onu\": {\n" + + " \"sn\": \"48575443FA637D1A\",\n" + + " \"refParentNE\": \"550e8400-e29b-41d4-a716-446655440000\",\n" + + " \"refParentNeNativeId\": \"FDN\",\n" + + " \"refParentLTP\": \"8c0db89e-218c-4e18-b0de-7a6788b3dda4\",\n" + + " \"refParentLTPNativeId\": \"FDN\",\n" + + " \"onuId\": \"213\",\n" + + " \"accessID\": \"HG65875420001\"\n" + " }\n" + + " }\n" + " }\n" + " }\n" + "}"); + StringBuffer configFileData = + new StringBuffer("\n" + + "\n" + + " \n" + + " \n" + + " \n" + + " \n" + " \n" + + " \n" + + " \n" + + " \n" + + " \n" + + " \n" + + " \n" + + " \n" + + " \n" + + "" + + "org.onap.dcaegen2.ves.domain.ves70.CommonEventHeader.Version._4_0_1 \n" + + "\"pnfRegistration\"\n" + + "" + + "org.onap.dcaegen2.ves.domain.ves70.CommonEventHeader.VesEventListenerVersion._7_0_1" + + "\n" + + " " + + "\"registration_\"+commonEventHeader.ts1\n" + + "\"VESMapper\"\n" + + " " + + "org.onap.dcaegen2.ves.domain.ves70.CommonEventHeader.Domain.PNF_REGISTRATION" + + "\n" + + " " + + "commonEventHeader.domain\n" + + "\n" + + "" + + "commonEventHeader.ts1\n" + + " " + + "commonEventHeader.ts1\n" + + " " + + "org.onap.dcaegen2.ves.domain.ves70.CommonEventHeader.Priority.NORMAL\n" + + " \n" + + " \n" + + " \n" + + " \n" + + " " + + "org.onap.dcaegen2.ves.domain.ves70.PnfRegistrationFields.PnfRegistrationFieldsVersion._2_0" + + "\n" + + " \n" + + " \n" + " \n" + ""); + + Smooks smooks = null; + + try { + // reading config file.. for now, looking at it as just one time operation + if (null == smooks) { + + smooks = new Smooks(new ByteArrayInputStream( + configFileData.toString().getBytes(StandardCharsets.UTF_8))); + } + + vesEvent = + SmooksUtils.getTransformedObjectForInput(smooks, incomingJsonString.toString()); + } catch (IOException | SAXException exception) { + errorLogger.error("Error occurred : ", exception); + } } - } } - - \ No newline at end of file + -- cgit 1.2.3-korg