forked from dromara/disjob
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ConsulRegistryProperties.java
43 lines (36 loc) · 1.39 KB
/
ConsulRegistryProperties.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
/* __________ _____ *\
** \______ \____ _____/ ____\____ ____ Copyright (c) 2017-2023 Ponfee **
** | ___/ _ \ / \ __\/ __ \_/ __ \ http://www.ponfee.cn **
** | | ( <_> ) | \ | \ ___/\ ___/ Apache License Version 2.0 **
** |____| \____/|___| /__| \___ >\___ > http://www.apache.org/licenses/ **
** \/ \/ \/ **
\* */
package cn.ponfee.scheduler.registry.consul.configuration;
import cn.ponfee.scheduler.core.base.JobConstants;
import cn.ponfee.scheduler.registry.AbstractRegistryProperties;
import lombok.Getter;
import lombok.Setter;
import org.springframework.boot.context.properties.ConfigurationProperties;
/**
* Consul registry configuration properties.
*
* @author Ponfee
*/
@Getter
@Setter
@ConfigurationProperties(prefix = JobConstants.SCHEDULER_REGISTRY_KEY_PREFIX + ".consul")
public class ConsulRegistryProperties extends AbstractRegistryProperties {
private static final long serialVersionUID = -851364562631134942L;
/**
* Consul client host
*/
private String host = "localhost";
/**
* Consul client port
*/
private int port = 8500;
/**
* Consul token
*/
private String token;
}