Package org.apache.solr.cloud
Class Stats
- java.lang.Object
-
- org.apache.solr.cloud.Stats
-
public class Stats extends Object
Used to hold statistics about some SolrCloud operations.This is experimental API and subject to change.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Stats.FailedOp
static class
Stats.Stat
-
Constructor Summary
Constructors Constructor Description Stats()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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)
-
-
-
Method Detail
-
getStats
public Map<String,Stats.Stat> getStats()
-
getSuccessCount
public int getSuccessCount(String operation)
-
getErrorCount
public int getErrorCount(String operation)
-
success
public void success(String operation)
-
error
public void error(String operation)
-
time
public com.codahale.metrics.Timer.Context time(String operation)
-
storeFailureDetails
public void storeFailureDetails(String operation, ZkNodeProps request, SolrResponse resp)
-
getFailureDetails
public List<Stats.FailedOp> getFailureDetails(String operation)
-
getQueueLength
public int getQueueLength()
-
setQueueLength
public void setQueueLength(int queueLength)
-
clear
public void clear()
-
-