@InterfaceAudience.Private public final class ClientModeStrategy extends Object implements ModeStrategy
ModeStrategy for client Mode.| Modifier and Type | Field and Description | 
|---|---|
| private List<FieldInfo> | fieldInfos | 
| private Map<String,RequestCountPerSecond> | requestCountPerSecondMap | 
| Constructor and Description | 
|---|
| ClientModeStrategy() | 
| Modifier and Type | Method and Description | 
|---|---|
| (package private) List<Record> | aggregateRecordsAndAddDistinct(List<Record> records,
                              Field groupBy,
                              Field distinctField,
                              Field uniqueCountAssignedTo)Aggregate the records and count the unique values for the given distinctField | 
| (package private) Record | createRecord(String user,
            UserMetrics.ClientMetrics clientMetrics,
            long lastReportTimestamp,
            String server) | 
| (package private) List<Record> | createRecords(ClusterMetrics clusterMetrics) | 
| DrillDownInfo | drillDown(Record selectedRecord) | 
| Field | getDefaultSortField() | 
| List<FieldInfo> | getFieldInfos() | 
| List<Record> | getRecords(ClusterMetrics clusterMetrics,
          List<RecordFilter> pushDownFilters) | 
private final List<FieldInfo> fieldInfos
private final Map<String,RequestCountPerSecond> requestCountPerSecondMap
ClientModeStrategy()
public List<FieldInfo> getFieldInfos()
getFieldInfos in interface ModeStrategypublic Field getDefaultSortField()
getDefaultSortField in interface ModeStrategypublic List<Record> getRecords(ClusterMetrics clusterMetrics, List<RecordFilter> pushDownFilters)
getRecords in interface ModeStrategyList<Record> createRecords(ClusterMetrics clusterMetrics)
List<Record> aggregateRecordsAndAddDistinct(List<Record> records, Field groupBy, Field distinctField, Field uniqueCountAssignedTo)
records - records to be processedgroupBy - Field on which group by needs to be donedistinctField - Field whose unique values needs to be counteduniqueCountAssignedTo - a target field to which the unique count is assigned toRecord createRecord(String user, UserMetrics.ClientMetrics clientMetrics, long lastReportTimestamp, String server)
public DrillDownInfo drillDown(Record selectedRecord)
drillDown in interface ModeStrategyCopyright © 2007–2021 The Apache Software Foundation. All rights reserved.