public class RedisTunnelClusterStore extends Object implements TunnelClusterStore
| Constructor and Description |
|---|
RedisTunnelClusterStore() |
| Modifier and Type | Method and Description |
|---|---|
void |
addAgent(String agentId,
AgentClusterInfo info,
long timeout,
TimeUnit timeUnit) |
Map<String,AgentClusterInfo> |
agentInfo(String appName) |
Collection<String> |
allAgentIds() |
AgentClusterInfo |
findAgent(String agentId) |
org.springframework.data.redis.core.StringRedisTemplate |
getRedisTemplate() |
void |
removeAgent(String agentId) |
void |
setRedisTemplate(org.springframework.data.redis.core.StringRedisTemplate redisTemplate) |
public AgentClusterInfo findAgent(String agentId)
findAgent in interface TunnelClusterStorepublic void removeAgent(String agentId)
removeAgent in interface TunnelClusterStorepublic void addAgent(String agentId, AgentClusterInfo info, long timeout, TimeUnit timeUnit)
addAgent in interface TunnelClusterStorepublic org.springframework.data.redis.core.StringRedisTemplate getRedisTemplate()
public void setRedisTemplate(org.springframework.data.redis.core.StringRedisTemplate redisTemplate)
public Collection<String> allAgentIds()
allAgentIds in interface TunnelClusterStorepublic Map<String,AgentClusterInfo> agentInfo(String appName)
agentInfo in interface TunnelClusterStoreCopyright © 2020. All rights reserved.