Jagger
 All Classes Namespaces Files Functions Variables Enumerator Groups Pages
DataService.java
Go to the documentation of this file.
1 package com.griddynamics.jagger.engine.e1.services;
2 
3 import com.griddynamics.jagger.dbapi.dto.DecisionPerSessionDto;
4 import com.griddynamics.jagger.engine.e1.services.data.service.MetricEntity;
5 import com.griddynamics.jagger.engine.e1.services.data.service.MetricPlotPointEntity;
6 import com.griddynamics.jagger.engine.e1.services.data.service.MetricSummaryValueEntity;
7 import com.griddynamics.jagger.engine.e1.services.data.service.SessionEntity;
8 import com.griddynamics.jagger.engine.e1.services.data.service.TestEntity;
9 
10 import java.util.Collection;
11 import java.util.List;
12 import java.util.Map;
13 import java.util.Set;
14 
26 public interface DataService extends JaggerService {
27 
36  SessionEntity getSession(String sessionId);
37 
47  Set<SessionEntity> getSessions(Collection<String> sessionIds);
48 
54  DecisionPerSessionDto getSessionDecisions(String sessionId);
55 
64  Set<TestEntity> getTests(SessionEntity session);
65 
74  Set<TestEntity> getTests(String sessionId);
75 
84  Map<String, Set<TestEntity>> getTests(Collection<String> sessionIds);
85 
95  TestEntity getTestByName(String sessionId, String testName);
96 
106  TestEntity getTestByName(SessionEntity session, String testName);
107 
117  Map<String, TestEntity> getTestsByName(Collection<String> sessionIds, String testName);
118 
127  Set<MetricEntity> getMetrics(Long testId);
128 
137  Set<MetricEntity> getMetrics(TestEntity test);
138 
147  Map<TestEntity, Set<MetricEntity>> getMetricsByTests(Collection<TestEntity> tests);
148 
157  Map<Long, Set<MetricEntity>> getMetricsByTestIds(Collection<Long> testIds);
158 
170 
181  Map<MetricEntity, MetricSummaryValueEntity> getMetricSummary(Collection<MetricEntity> metrics);
182 
193  List<MetricPlotPointEntity> getMetricPlotData(MetricEntity metric);
194 
205  Map<MetricEntity, List<MetricPlotPointEntity>> getMetricPlotData(Collection<MetricEntity> metrics);
206 }