toggle menu
common-ext
2.0.0
jvm
switch theme
search in API
common-ext
/
io.github.caijiang.common.nacos
/
NacosService
Nacos
Service
class
NacosService
(
serviceName
:
String
,
locator
:
ResourceLocator
,
waitAfterSuspend
:
Duration
?
=
null
)
:
IngressEntrance
nacos 的一个服务
Author
CJ
Members
Constructors
Nacos
Service
Link copied to clipboard
constructor
(
serviceName
:
String
,
locator
:
ResourceLocator
,
waitAfterSuspend
:
Duration
?
=
null
)
Properties
ingress
Name
Link copied to clipboard
open
override
val
ingressName
:
String
流量名称
Functions
check
Work
Status
Link copied to clipboard
open
override
fun
checkWorkStatus
(
node
:
ServiceNode
)
:
Boolean
检查工作状态
discover
Nodes
Link copied to clipboard
open
override
fun
discoverNodes
(
service
:
Service
)
:
List
<
ServiceNode
>
resumed
Node
Link copied to clipboard
open
override
fun
resumedNode
(
serviceNode
:
ServiceNode
)
恢复流量
suspend
Node
Link copied to clipboard
open
override
fun
suspendNode
(
serviceNode
:
ServiceNode
)
暂停将流量进入这个节点
suspend
Node
By
IP
Link copied to clipboard
fun
suspendNodeByIP
(
ip
:
String
)