Interface IngressEntrance
-
- All Implemented Interfaces:
-
io.github.caijiang.common.orchestration.NodeDiscoverer
public interface IngressEntrance implements NodeDiscoverer
类似流量入口的概念
CJ
-
-
Method Summary
Modifier and Type Method Description abstract UnitsuspendNode(ServiceNode serviceNode, LoggingApi loggingApi)abstract UnitresumedNode(ServiceNode serviceNode, LoggingApi loggingApi)abstract BooleancheckWorkStatus(ServiceNode node, LoggingApi loggingApi)检查工作状态 abstract StringgetIngressName()流量名称 -
-
Method Detail
-
suspendNode
abstract Unit suspendNode(ServiceNode serviceNode, LoggingApi loggingApi)
- Parameters:
serviceNode- 只可接受自己NodeDiscoverer.discoverNodes获得的值 暂停将流量进入这个节点,这个动作很快就会完成
-
resumedNode
abstract Unit resumedNode(ServiceNode serviceNode, LoggingApi loggingApi)
- Parameters:
serviceNode- 只可接受自己NodeDiscoverer.discoverNodes获得的值 恢复流量
-
checkWorkStatus
abstract Boolean checkWorkStatus(ServiceNode node, LoggingApi loggingApi)
检查工作状态
- Parameters:
node- 只可接受自己NodeDiscoverer.discoverNodes获得的值- Returns:
流量是否可以正常进入
-
getIngressName
abstract String getIngressName()
流量名称
-
-
-
-