A B C D G H I L M P R S T U
All Classes All Packages
All Classes All Packages
All Classes All Packages
A
- addHeartbeatServcieId(String) - Method in class com.networknt.consul.ConsulHeartbeatManager
-
Add consul serviceId,added serviceId will set passing status to keep sending heart beat.
B
- buildService(URL) - Static method in class com.networknt.consul.ConsulUtils
-
build consul service from url
- buildUrl(String, ConsulService) - Static method in class com.networknt.consul.ConsulUtils
-
build url from service
C
- checkFail(String, String) - Method in interface com.networknt.consul.client.ConsulClient
-
Set specific serviceId status as fail
- checkFail(String, String) - Method in class com.networknt.consul.client.ConsulClientImpl
- checkPass(String, String) - Method in interface com.networknt.consul.client.ConsulClient
-
Set specific serviceId status as pass
- checkPass(String, String) - Method in class com.networknt.consul.client.ConsulClientImpl
- close() - Method in class com.networknt.consul.ConsulHeartbeatManager
- com.networknt.consul - package com.networknt.consul
- com.networknt.consul.client - package com.networknt.consul.client
- CONFIG_NAME - Static variable in class com.networknt.consul.ConsulConstants
-
consul configuration file name
- CONSUL_BLOCK_TIME_MINUTES - Static variable in class com.networknt.consul.ConsulConstants
-
consul block, max block time in minute
- CONSUL_BLOCK_TIME_SECONDS - Static variable in class com.networknt.consul.ConsulConstants
-
consul block max block time in second
- CONSUL_LIGHT_COMMAND - Static variable in class com.networknt.consul.ConsulConstants
-
Light java command in consul
- CONSUL_PROCESS_HEARTBEAT_SWITCHER - Static variable in class com.networknt.consul.ConsulConstants
-
Deprecated.
- CONSUL_TAG_LIGHT_PROTOCOL - Static variable in class com.networknt.consul.ConsulConstants
-
Light java protocol prefix in consul tag
- CONSUL_TAG_LIGHT_URL - Static variable in class com.networknt.consul.ConsulConstants
-
Light java url prefix in consul tag
- ConsulClient - Interface in com.networknt.consul.client
- ConsulClientImpl - Class in com.networknt.consul.client
-
A client that talks to Consul agent with REST API.
- ConsulClientImpl() - Constructor for class com.networknt.consul.client.ConsulClientImpl
-
Construct ConsulClient with all parameters from consul.yml config file.
- ConsulConfig - Class in com.networknt.consul
- ConsulConfig() - Constructor for class com.networknt.consul.ConsulConfig
- ConsulConstants - Class in com.networknt.consul
- ConsulConstants() - Constructor for class com.networknt.consul.ConsulConstants
- ConsulHeartbeatManager - Class in com.networknt.consul
-
consul heart beat manager.
- ConsulHeartbeatManager(ConsulClient, String) - Constructor for class com.networknt.consul.ConsulHeartbeatManager
- ConsulRegistry - Class in com.networknt.consul
- ConsulRegistry(URL, ConsulClient) - Constructor for class com.networknt.consul.ConsulRegistry
- ConsulResponse<T> - Class in com.networknt.consul
- ConsulResponse() - Constructor for class com.networknt.consul.ConsulResponse
- ConsulService - Class in com.networknt.consul
- ConsulService() - Constructor for class com.networknt.consul.ConsulService
- ConsulUtils - Class in com.networknt.consul
- ConsulUtils() - Constructor for class com.networknt.consul.ConsulUtils
- convertConsulSerivceId(URL) - Static method in class com.networknt.consul.ConsulUtils
-
convert url to consul service id.
- convertGroupToServiceName(String) - Static method in class com.networknt.consul.ConsulUtils
-
convert group to service name
- convertServiceId(String, int, String) - Static method in class com.networknt.consul.ConsulUtils
D
- DEFAULT_LOOKUP_INTERVAL - Static variable in class com.networknt.consul.ConsulConstants
-
consul service lookup interval in millisecond
- DEFAULT_PORT - Static variable in class com.networknt.consul.ConsulConstants
-
Default consul agent port
- DEREGISTER_AFTER - Static variable in class com.networknt.consul.ConsulConstants
-
Service TCP Check Deregister After
- discoverService(URL) - Method in class com.networknt.consul.ConsulRegistry
- doAvailable(URL) - Method in class com.networknt.consul.ConsulRegistry
- doRegister(URL) - Method in class com.networknt.consul.ConsulRegistry
- doUnavailable(URL) - Method in class com.networknt.consul.ConsulRegistry
- doUnregister(URL) - Method in class com.networknt.consul.ConsulRegistry
G
- getAddress() - Method in class com.networknt.consul.ConsulService
- getCheckInterval() - Method in class com.networknt.consul.ConsulConfig
- getConsulIndex() - Method in class com.networknt.consul.ConsulResponse
- getConsulKnownLeader() - Method in class com.networknt.consul.ConsulResponse
- getConsulLastContact() - Method in class com.networknt.consul.ConsulResponse
- getConsulToken() - Method in class com.networknt.consul.ConsulConfig
- getConsulUrl() - Method in class com.networknt.consul.ConsulConfig
- getDeregisterAfter() - Method in class com.networknt.consul.ConsulConfig
- getGroupFromServiceName(String) - Static method in class com.networknt.consul.ConsulUtils
-
get group from consul service
- getId() - Method in class com.networknt.consul.ConsulService
- getMaxReqPerConn() - Method in class com.networknt.consul.ConsulConfig
- getName() - Method in class com.networknt.consul.ConsulService
- getPathFromServiceId(String) - Static method in class com.networknt.consul.ConsulUtils
-
get path of url from service id in consul
- getPort() - Method in class com.networknt.consul.ConsulService
- getProtocolFromTag(String) - Static method in class com.networknt.consul.ConsulUtils
-
get protocol from consul tag
- getServiceListeners() - Method in class com.networknt.consul.ConsulRegistry
- getTags() - Method in class com.networknt.consul.ConsulService
- getUrlClusterInfo(URL) - Static method in class com.networknt.consul.ConsulUtils
-
get cluster info from url, cluster info (protocol, path)
- getValue() - Method in class com.networknt.consul.ConsulResponse
- getWait() - Method in class com.networknt.consul.ConsulConfig
H
- HEARTBEAT_CIRCLE - Static variable in class com.networknt.consul.ConsulConstants
-
Heart beat circle,2/3 of ttl
I
- INTERVAL - Static variable in class com.networknt.consul.ConsulConstants
-
Service Check Interval
- isEnableHttp2() - Method in class com.networknt.consul.ConsulConfig
- isHttpCheck() - Method in class com.networknt.consul.ConsulConfig
- isSame(List<URL>, List<URL>) - Static method in class com.networknt.consul.ConsulUtils
-
Check if two lists have the same urls.
- isTcpCheck() - Method in class com.networknt.consul.ConsulConfig
- isTtlCheck() - Method in class com.networknt.consul.ConsulConfig
L
- lookupHealthService(String, String, long, String) - Method in interface com.networknt.consul.client.ConsulClient
-
get latest service list with a tag filter and a security token
- lookupHealthService(String, String, long, String) - Method in class com.networknt.consul.client.ConsulClientImpl
-
to lookup health services based on serviceName, if lastConsulIndex == 0, will get result right away.
M
- MAX_SWITCHER_CHECK_TIMES - Static variable in class com.networknt.consul.ConsulConstants
-
Maximum continuous switch checks, send heart beat is this number is exceeded.
P
- processHeartbeat(boolean) - Method in class com.networknt.consul.ConsulHeartbeatManager
R
- registerService(ConsulService, String) - Method in interface com.networknt.consul.client.ConsulClient
-
register a consul service
- registerService(ConsulService, String) - Method in class com.networknt.consul.client.ConsulClientImpl
- removeHeartbeatServiceId(String) - Method in class com.networknt.consul.ConsulHeartbeatManager
-
remove serviceId,corresponding serviceId won't send heart beat
S
- setAddress(String) - Method in class com.networknt.consul.ConsulService
- setCheckInterval(String) - Method in class com.networknt.consul.ConsulConfig
- setClient(ConsulClient) - Method in class com.networknt.consul.ConsulHeartbeatManager
- setConsulIndex(Long) - Method in class com.networknt.consul.ConsulResponse
- setConsulKnownLeader(Boolean) - Method in class com.networknt.consul.ConsulResponse
- setConsulLastContact(Long) - Method in class com.networknt.consul.ConsulResponse
- setConsulToken(String) - Method in class com.networknt.consul.ConsulConfig
- setConsulUrl(String) - Method in class com.networknt.consul.ConsulConfig
- setDeregisterAfter(String) - Method in class com.networknt.consul.ConsulConfig
- setEnableHttp2(boolean) - Method in class com.networknt.consul.ConsulConfig
- setHeartbeatOpen(boolean) - Method in class com.networknt.consul.ConsulHeartbeatManager
- setHttpCheck(boolean) - Method in class com.networknt.consul.ConsulConfig
- setId(String) - Method in class com.networknt.consul.ConsulService
- setMaxReqPerConn(int) - Method in class com.networknt.consul.ConsulConfig
- setName(String) - Method in class com.networknt.consul.ConsulService
- setPort(Integer) - Method in class com.networknt.consul.ConsulService
- setTags(List<String>) - Method in class com.networknt.consul.ConsulService
- setTcpCheck(boolean) - Method in class com.networknt.consul.ConsulConfig
- setTtlCheck(boolean) - Method in class com.networknt.consul.ConsulConfig
- setValue(T) - Method in class com.networknt.consul.ConsulResponse
- setWait(String) - Method in class com.networknt.consul.ConsulConfig
- start() - Method in class com.networknt.consul.ConsulHeartbeatManager
- subscribeService(URL, ServiceListener) - Method in class com.networknt.consul.ConsulRegistry
- SWITCHER_CHECK_CIRCLE - Static variable in class com.networknt.consul.ConsulConstants
-
Switcher change rate
T
- toString() - Method in class com.networknt.consul.ConsulService
-
Construct a register json payload.
- TTL - Static variable in class com.networknt.consul.ConsulConstants
-
Service Time To Live in second.
U
- unregisterService(String, String) - Method in interface com.networknt.consul.client.ConsulClient
-
unregister a consul service
- unregisterService(String, String) - Method in class com.networknt.consul.client.ConsulClientImpl
- unsubscribeService(URL, ServiceListener) - Method in class com.networknt.consul.ConsulRegistry
All Classes All Packages