mirror of
https://gitee.com/justlive1/earth-frost.git
synced 2024-11-29 18:48:16 +08:00
增加client注释
This commit is contained in:
parent
f20a401ffd
commit
5be0d82124
@ -4,6 +4,7 @@ import justlive.earth.breeze.snow.common.base.annotation.Value;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* client配置
|
||||
*
|
||||
* @author wubo
|
||||
*
|
||||
@ -11,12 +12,21 @@ import lombok.Data;
|
||||
@Data
|
||||
public class ClientProperties {
|
||||
|
||||
/**
|
||||
* 调度中心地址
|
||||
*/
|
||||
@Value("${frost.client.baseUrl}")
|
||||
private String baseUrl;
|
||||
|
||||
/**
|
||||
* 用户名
|
||||
*/
|
||||
@Value("${frost.client.username}")
|
||||
private String username;
|
||||
|
||||
/**
|
||||
* 密码
|
||||
*/
|
||||
@Value("${frost.client.password}")
|
||||
private String password;
|
||||
}
|
||||
|
@ -4,6 +4,12 @@ import justlive.earth.breeze.frost.api.facade.JobApiFacade;
|
||||
import justlive.earth.breeze.snow.common.base.support.ConfigFactory;
|
||||
import lombok.Getter;
|
||||
|
||||
/**
|
||||
* 代理类
|
||||
*
|
||||
* @author wubo
|
||||
*
|
||||
*/
|
||||
@Getter
|
||||
public class FacadeProxy {
|
||||
|
||||
@ -15,6 +21,12 @@ public class FacadeProxy {
|
||||
this.jobApiFacade = new JobApiFacadeImpl(clientProps);
|
||||
}
|
||||
|
||||
/**
|
||||
* 创建代理
|
||||
*
|
||||
* @param location 配置文件路径
|
||||
* @return
|
||||
*/
|
||||
public static FacadeProxy newProxy(String location) {
|
||||
return new FacadeProxy(location);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user