public class UsageService extends AbstractComponent
deprecationLogger, logger, settings| Constructor | Description |
|---|---|
UsageService(Settings settings) |
| Modifier and Type | Method | Description |
|---|---|---|
void |
addRestHandler(BaseRestHandler handler) |
Add a REST handler to this service.
|
NodeUsage |
getUsageStats(DiscoveryNode localNode,
boolean restActions) |
Get the current usage statistics for this node.
|
logDeprecatedSetting, logRemovedSetting, nodeNamepublic void addRestHandler(BaseRestHandler handler)
handler - the BaseRestHandler to add to the usage service.public NodeUsage getUsageStats(DiscoveryNode localNode, boolean restActions)
localNode - the DiscoveryNode for this noderestActions - whether to include rest action usage in the returned
statisticsNodeUsage representing the usage statistics for this
node