增加client注释

This commit is contained in:
justlive1 2018-05-04 17:49:16 +08:00
parent f20a401ffd
commit 5be0d82124
3 changed files with 22 additions and 0 deletions

View File

@ -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;
}

View File

@ -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);
}