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 
32 public interface DataService extends JaggerService {
33 
42  SessionEntity getSession(String sessionId);
43 
53  Set<SessionEntity> getSessions(Collection<String> sessionIds);
54 
60  DecisionPerSessionDto getSessionDecisions(String sessionId);
61 
70  Set<TestEntity> getTests(SessionEntity session);
71 
80  Set<TestEntity> getTests(String sessionId);
81 
90  Map<String, Set<TestEntity>> getTests(Collection<String> sessionIds);
91 
101  TestEntity getTestByName(String sessionId, String testName);
102 
112  TestEntity getTestByName(SessionEntity session, String testName);
113 
123  Map<String, TestEntity> getTestsByName(Collection<String> sessionIds, String testName);
124 
133  Set<MetricEntity> getMetrics(Long testId);
134 
143  Set<MetricEntity> getMetrics(TestEntity test);
144 
153  Map<TestEntity, Set<MetricEntity>> getMetricsByTests(Collection<TestEntity> tests);
154 
163  Map<Long, Set<MetricEntity>> getMetricsByTestIds(Collection<Long> testIds);
164 
176 
187  Map<MetricEntity, MetricSummaryValueEntity> getMetricSummary(Collection<MetricEntity> metrics);
188 
199  List<MetricPlotPointEntity> getMetricPlotData(MetricEntity metric);
200 
211  Map<MetricEntity, List<MetricPlotPointEntity>> getMetricPlotData(Collection<MetricEntity> metrics);
212 }