public class MetricService extends Object
Modifier and Type | Class and Description |
---|---|
static class |
MetricService.Periodicity |
Constructor and Description |
---|
MetricService(ClusterStore clusterStore) |
Modifier and Type | Method and Description |
---|---|
TimeSeries |
getNodesUsage(ClusterTaskFilter filter)
Calculate statistics of nodes usage for given
ClusterTaskFilter . |
public MetricService(ClusterStore clusterStore)
public TimeSeries getNodesUsage(ClusterTaskFilter filter) throws IOException
ClusterTaskFilter
.
The start and end times are inclusive.
Loads all tasks with CREATE or DELETE ProvisionerAction
. Then, for each node, calculates node live time:
finished time of CREATE task to finished time of DELETE task or finished time of CREATE task to current time.
If required, then overlays filter
's start and end date.filter
- the filterTimeSeries
that presents node live time usageIOException
Copyright © 2013-2016 Cask Data, Inc. Licensed under the Apache License, Version 2.0.