public class Stats extends Object
Modifier and Type | Class and Description |
---|---|
static class |
Stats.FailedOp |
static class |
Stats.Stat |
Constructor and Description |
---|
Stats() |
Modifier and Type | Method and Description |
---|---|
void |
clear() |
void |
error(String operation) |
int |
getErrorCount(String operation) |
List<Stats.FailedOp> |
getFailureDetails(String operation) |
int |
getQueueLength() |
Map<String,Stats.Stat> |
getStats() |
int |
getSuccessCount(String operation) |
void |
setQueueLength(int queueLength) |
void |
storeFailureDetails(String operation,
ZkNodeProps request,
SolrResponse resp) |
void |
success(String operation) |
com.codahale.metrics.Timer.Context |
time(String operation) |
public Map<String,Stats.Stat> getStats()
public int getSuccessCount(String operation)
public int getErrorCount(String operation)
public void success(String operation)
public void error(String operation)
public com.codahale.metrics.Timer.Context time(String operation)
public void storeFailureDetails(String operation, ZkNodeProps request, SolrResponse resp)
public List<Stats.FailedOp> getFailureDetails(String operation)
public int getQueueLength()
public void setQueueLength(int queueLength)
public void clear()
Copyright © 2000-2019 Apache Software Foundation. All Rights Reserved.