类 NacosRepository
- java.lang.Object
-
- com.github.xiaoymin.knife4j.aggre.core.ext.PoolingConnectionManager
-
- com.github.xiaoymin.knife4j.aggre.repository.AbstractRepository
-
- com.github.xiaoymin.knife4j.aggre.repository.NacosRepository
-
- 所有已实现的接口:
RouteRepository
public class NacosRepository extends AbstractRepository
- 作者:
- xiaoymin@foxmail.com 2020/11/16 22:56
-
-
字段概要
字段 修饰符和类型 字段 说明 (专用程序包) org.slf4j.Loggerloggerprivate java.util.Map<java.lang.String,NacosInstance>nacosInstanceMapprivate NacosSettingnacosSettingprivate booleanstopprivate java.lang.Threadthread(专用程序包) java.util.concurrent.ThreadPoolExecutorthreadPoolExecutor-
从类继承的字段 com.github.xiaoymin.knife4j.aggre.repository.AbstractRepository
HEART_BEAT_DURATION, routeMap
-
-
构造器概要
构造器 构造器 说明 NacosRepository(NacosSetting nacosSetting)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 private voidapplyRoutes(NacosSetting nacosSetting)初始化voidclose()stop心跳监听乘车BasicAuthgetAuth(java.lang.String header)根据Header请求头获取Basic基础信息NacosSettinggetNacosSetting()voidinitNacos(NacosSetting nacosSetting)voidstart()start心跳监听程序-
从类继承的方法 com.github.xiaoymin.knife4j.aggre.repository.AbstractRepository
checkRoute, getRoute, getRoutes
-
从类继承的方法 com.github.xiaoymin.knife4j.aggre.core.ext.PoolingConnectionManager
getClient, getClient, getRequestConfig
-
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
从接口继承的方法 com.github.xiaoymin.knife4j.aggre.core.RouteRepository
getAuthByRoute
-
-
-
-
字段详细资料
-
stop
private volatile boolean stop
-
thread
private java.lang.Thread thread
-
logger
org.slf4j.Logger logger
-
nacosSetting
private NacosSetting nacosSetting
-
threadPoolExecutor
final java.util.concurrent.ThreadPoolExecutor threadPoolExecutor
-
nacosInstanceMap
private java.util.Map<java.lang.String,NacosInstance> nacosInstanceMap
-
-
构造器详细资料
-
NacosRepository
public NacosRepository(NacosSetting nacosSetting)
-
-
方法详细资料
-
applyRoutes
private void applyRoutes(NacosSetting nacosSetting)
初始化- 参数:
nacosSetting- Nacos配置属性
-
initNacos
public void initNacos(NacosSetting nacosSetting)
-
getNacosSetting
public NacosSetting getNacosSetting()
-
getAuth
public BasicAuth getAuth(java.lang.String header)
从接口复制的说明:RouteRepository根据Header请求头获取Basic基础信息- 参数:
header- 请求头- 返回:
- Basic基础信息
-
start
public void start()
从接口复制的说明:RouteRepositorystart心跳监听程序
-
close
public void close()
从接口复制的说明:RouteRepositorystop心跳监听乘车
-
-