Class RedisMetricsDatastore
- java.lang.Object
-
- com.slack.api.methods.metrics.impl.RedisMetricsDatastore
-
- All Implemented Interfaces:
MetricsDatastore
public class RedisMetricsDatastore extends Object implements MetricsDatastore
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
RedisMetricsDatastore.MaintenanceJob
-
Constructor Summary
Constructors Constructor Description RedisMetricsDatastore(String appName, redis.clients.jedis.JedisPool jedisPool)
-
Method Summary
-
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.slack.api.methods.metrics.MetricsDatastore
getNumberOfNodes, getStats
-
-
-
-
Constructor Detail
-
RedisMetricsDatastore
public RedisMetricsDatastore(String appName, redis.clients.jedis.JedisPool jedisPool)
-
-
Method Detail
-
jedis
public redis.clients.jedis.Jedis jedis()
-
finalize
protected void finalize() throws Throwable
-
getThreadGroupName
public String getThreadGroupName()
-
getAllStats
public Map<String,Map<String,MethodsStats>> getAllStats()
- Specified by:
getAllStats
in interfaceMetricsDatastore
-
getStats
public MethodsStats getStats(String executorName, String teamId)
- Specified by:
getStats
in interfaceMetricsDatastore
-
incrementAllCompletedCalls
public void incrementAllCompletedCalls(String executorName, String teamId, String methodName)
- Specified by:
incrementAllCompletedCalls
in interfaceMetricsDatastore
-
incrementSuccessfulCalls
public void incrementSuccessfulCalls(String executorName, String teamId, String methodName)
- Specified by:
incrementSuccessfulCalls
in interfaceMetricsDatastore
-
incrementUnsuccessfulCalls
public void incrementUnsuccessfulCalls(String executorName, String teamId, String methodName)
- Specified by:
incrementUnsuccessfulCalls
in interfaceMetricsDatastore
-
incrementFailedCalls
public void incrementFailedCalls(String executorName, String teamId, String methodName)
- Specified by:
incrementFailedCalls
in interfaceMetricsDatastore
-
updateCurrentQueueSize
public void updateCurrentQueueSize(String executorName, String teamId, String methodName)
- Specified by:
updateCurrentQueueSize
in interfaceMetricsDatastore
-
setCurrentQueueSize
public void setCurrentQueueSize(String executorName, String teamId, String methodName, Integer value)
- Specified by:
setCurrentQueueSize
in interfaceMetricsDatastore
-
updateNumberOfLastMinuteRequests
public void updateNumberOfLastMinuteRequests(String executorName, String teamId, String methodName)
- Specified by:
updateNumberOfLastMinuteRequests
in interfaceMetricsDatastore
-
getNumberOfLastMinuteRequests
public Integer getNumberOfLastMinuteRequests(String executorName, String teamId, String methodName)
- Specified by:
getNumberOfLastMinuteRequests
in interfaceMetricsDatastore
-
setNumberOfLastMinuteRequests
public void setNumberOfLastMinuteRequests(String executorName, String teamId, String methodName, Integer value)
- Specified by:
setNumberOfLastMinuteRequests
in interfaceMetricsDatastore
-
getRateLimitedMethodRetryEpochMillis
public Long getRateLimitedMethodRetryEpochMillis(String executorName, String teamId, String methodName)
- Specified by:
getRateLimitedMethodRetryEpochMillis
in interfaceMetricsDatastore
-
setRateLimitedMethodRetryEpochMillis
public void setRateLimitedMethodRetryEpochMillis(String executorName, String teamId, String methodName, Long epochTimeMillis)
- Specified by:
setRateLimitedMethodRetryEpochMillis
in interfaceMetricsDatastore
-
addToLastMinuteRequests
public void addToLastMinuteRequests(String executorName, String teamId, String methodName, Long currentMillis)
- Specified by:
addToLastMinuteRequests
in interfaceMetricsDatastore
-
getLastMinuteRequests
public LastMinuteRequests getLastMinuteRequests(String executorName, String teamId, String methodName)
- Specified by:
getLastMinuteRequests
in interfaceMetricsDatastore
-
addToWaitingMessageIds
public void addToWaitingMessageIds(String executorName, String teamId, String methodName, String messageId)
- Specified by:
addToWaitingMessageIds
in interfaceMetricsDatastore
-
deleteFromWaitingMessageIds
public void deleteFromWaitingMessageIds(String executorName, String teamId, String methodName, String messageId)
- Specified by:
deleteFromWaitingMessageIds
in interfaceMetricsDatastore
-
-