2 * ============LICENSE_START=======================================================
\r
4 * ================================================================================
\r
5 * Copyright 2018 TechMahindra
\r
6 *=================================================================================
\r
7 * Licensed under the Apache License, Version 2.0 (the "License");
\r
8 * you may not use this file except in compliance with the License.
\r
9 * You may obtain a copy of the License at
\r
11 * http://www.apache.org/licenses/LICENSE-2.0
\r
13 * Unless required by applicable law or agreed to in writing, software
\r
14 * distributed under the License is distributed on an "AS IS" BASIS,
\r
15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
\r
16 * See the License for the specific language governing permissions and
\r
17 * limitations under the License.
\r
18 * ============LICENSE_END=========================================================
\r
20 package org.onap.dcaegen2.ves.domain.ves7_0;
\r
22 import com.fasterxml.jackson.annotation.JsonInclude;
\r
23 import com.fasterxml.jackson.annotation.JsonProperty;
\r
24 import com.fasterxml.jackson.annotation.JsonPropertyOrder;
\r
25 import org.apache.commons.lang.builder.EqualsBuilder;
\r
26 import org.apache.commons.lang.builder.HashCodeBuilder;
\r
27 import org.apache.commons.lang.builder.ToStringBuilder;
\r
31 * number of counts falling within a defined latency bucket
\r
34 @JsonInclude(JsonInclude.Include.NON_NULL)
\r
35 @JsonPropertyOrder({
\r
36 "countsInTheBucket",
\r
37 "highEndOfLatencyBucket",
\r
38 "lowEndOfLatencyBucket"
\r
40 public class LatencyDistribution {
\r
47 @JsonProperty("countsInTheBucket")
\r
48 private Double countsInTheBucket;
\r
49 @JsonProperty("highEndOfLatencyBucket")
\r
50 private Double highEndOfLatencyBucket;
\r
51 @JsonProperty("lowEndOfLatencyBucket")
\r
52 private Double lowEndOfLatencyBucket;
\r
59 @JsonProperty("countsInTheBucket")
\r
60 public Double getCountsInTheBucket() {
\r
61 return countsInTheBucket;
\r
69 @JsonProperty("countsInTheBucket")
\r
70 public void setCountsInTheBucket(Double countsInTheBucket) {
\r
71 this.countsInTheBucket = countsInTheBucket;
\r
74 @JsonProperty("highEndOfLatencyBucket")
\r
75 public Double getHighEndOfLatencyBucket() {
\r
76 return highEndOfLatencyBucket;
\r
79 @JsonProperty("highEndOfLatencyBucket")
\r
80 public void setHighEndOfLatencyBucket(Double highEndOfLatencyBucket) {
\r
81 this.highEndOfLatencyBucket = highEndOfLatencyBucket;
\r
84 @JsonProperty("lowEndOfLatencyBucket")
\r
85 public Double getLowEndOfLatencyBucket() {
\r
86 return lowEndOfLatencyBucket;
\r
89 @JsonProperty("lowEndOfLatencyBucket")
\r
90 public void setLowEndOfLatencyBucket(Double lowEndOfLatencyBucket) {
\r
91 this.lowEndOfLatencyBucket = lowEndOfLatencyBucket;
\r
95 public String toString() {
\r
96 return ToStringBuilder.reflectionToString(this);
\r
100 public int hashCode() {
\r
101 return new HashCodeBuilder().append(countsInTheBucket).append(highEndOfLatencyBucket).append(lowEndOfLatencyBucket).toHashCode();
\r
105 public boolean equals(Object other) {
\r
106 if (other == this) {
\r
109 if ((other instanceof LatencyDistribution) == false) {
\r
112 LatencyDistribution rhs = ((LatencyDistribution) other);
\r
113 return new EqualsBuilder().append(countsInTheBucket, rhs.countsInTheBucket).append(highEndOfLatencyBucket, rhs.highEndOfLatencyBucket).append(lowEndOfLatencyBucket, rhs.lowEndOfLatencyBucket).isEquals();
\r