• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

HotelsDotCom / waggle-dance / #318

pending completion
#318

push

web-flow
Feature/upgrade springboot (#268)

* update springboot to 2.1.18

* update springboot to 2.2.13

* Upgrade to srping boot 2.7.11

* Update changelog

* Update changelog

* fix version

3 of 3 new or added lines in 2 files covered. (100.0%)

132 of 3058 relevant lines covered (4.32%)

0.04 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/waggle-dance-core/src/main/java/com/hotels/bdp/waggledance/conf/GraphiteConfiguration.java
1
/**
2
 * Copyright (C) 2016-2019 Expedia, Inc.
3
 *
4
 * Licensed under the Apache License, Version 2.0 (the "License");
5
 * you may not use this file except in compliance with the License.
6
 * You may obtain a copy of the License at
7
 *
8
 * http://www.apache.org/licenses/LICENSE-2.0
9
 *
10
 * Unless required by applicable law or agreed to in writing, software
11
 * distributed under the License is distributed on an "AS IS" BASIS,
12
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
 * See the License for the specific language governing permissions and
14
 * limitations under the License.
15
 */
16
package com.hotels.bdp.waggledance.conf;
17

18
import java.util.concurrent.TimeUnit;
19

20
import javax.annotation.PostConstruct;
21
import javax.validation.constraints.Min;
22
import javax.validation.constraints.NotNull;
23

24
import org.springframework.boot.context.properties.ConfigurationProperties;
25
import org.springframework.context.annotation.Configuration;
26

27
@Configuration
28
@ConfigurationProperties(prefix = "graphite")
29
public class GraphiteConfiguration {
×
30

31
  private boolean enabled = false;
×
32
  private @Min(1) int port = 2003;
×
33
  private String host;
34
  private String prefix;
35
  private @Min(1) long pollInterval = 5000;
×
36
  private @NotNull TimeUnit pollIntervalTimeUnit = TimeUnit.MILLISECONDS;
×
37

38
  @PostConstruct
39
  public void init() {
40
    if ((host != null) || (prefix != null)) {
×
41
      enabled = true;
×
42
    }
43
  }
×
44

45
  public boolean isEnabled() {
46
    return enabled;
×
47
  }
48

49
  public int getPort() {
50
    return port;
×
51
  }
52

53
  public void setPort(int port) {
54
    this.port = port;
×
55
  }
×
56

57
  public String getHost() {
58
    return host;
×
59
  }
60

61
  public void setHost(String host) {
62
    this.host = host;
×
63
  }
×
64

65
  public String getPrefix() {
66
    return prefix;
×
67
  }
68

69
  public void setPrefix(String prefix) {
70
    this.prefix = prefix;
×
71
  }
×
72

73
  public long getPollInterval() {
74
    return pollInterval;
×
75
  }
76

77
  public void setPollInterval(long pollInterval) {
78
    this.pollInterval = pollInterval;
×
79
  }
×
80

81
  public TimeUnit getPollIntervalTimeUnit() {
82
    return pollIntervalTimeUnit;
×
83
  }
84

85
  public void setPollIntervalTimeUnit(TimeUnit pollIntervalTimeUnit) {
86
    this.pollIntervalTimeUnit = pollIntervalTimeUnit;
×
87
  }
×
88

89
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc