Package org.elasticsearch.usage
Class UsageService
java.lang.Object
org.elasticsearch.usage.UsageService
public class UsageService
extends java.lang.Object
A service to monitor usage of Elasticsearch features.
-
Constructor Summary
Constructors Constructor Description UsageService()
-
Method Summary
Modifier and Type Method Description void
addRestHandler(BaseRestHandler handler)
Add a REST handler to this service.java.util.Map<java.lang.String,java.lang.Long>
getRestUsageStats()
Get the current usage statistics for this node.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
UsageService
public UsageService()
-
-
Method Details
-
addRestHandler
Add a REST handler to this service.- Parameters:
handler
- theBaseRestHandler
to add to the usage service.
-
getRestUsageStats
public java.util.Map<java.lang.String,java.lang.Long> getRestUsageStats()Get the current usage statistics for this node.- Returns:
- the
NodeUsage
representing the usage statistics for this node
-