Package gov.nasa.arc.mct.api.feed

Examples of gov.nasa.arc.mct.api.feed.FeedAggregator


                            LOGGER.error("exception occurred while getting subscription id from "
                                            + provider, e);
                        }
                    }

                    FeedAggregator feedAggregator = PlatformAccess.getPlatform().getFeedAggregator();
                   
                    Map<String, List<Map<String, String>>> data = new HashMap<String, List<Map<String, String>>>();
                    if (feedAggregator != null) {
                        data = feedAggregator.getData(feedIds, TimeUnit.MILLISECONDS, r.getStartTime(), r.getEndTime());
                    }
                   
                    Map<String, List<Map<String,String>>> adjValues = adjustResponses(data, r.getStartTime());
                    values.putAll(adjValues);
                    requestCompleted(values, r.getStartTime(), r.getEndTime());
View Full Code Here


        TestDataCallback renderer = new TestDataCallback();
        final Map<String, List<Map<String, String>>> value = Collections.singletonMap("abc",
                        Collections.singletonList(Collections.singletonMap("time", "0")));
        Mockito.when(timeService.getCurrentTime()).thenReturn(System.currentTimeMillis());
        Mockito.when(provider.getSubscriptionId()).thenReturn("abc");
        FeedAggregator feedAggregator = new FeedAggregator() {
            @Override
            public Map<String, List<Map<String, String>>> getData(Set<String> feedIDs,
                            TimeUnit timeUnit, long startTime, long endTime) {
                return value;
            }
View Full Code Here

                        Collections.singletonList(Collections.singletonMap("time", "1")));
        final Map<String, List<Map<String, String>>> value2 = Collections.singletonMap("abc2",
                        Collections.singletonList(Collections.singletonMap("time", "1")));
        Mockito.when(provider.getSubscriptionId()).thenReturn("abc");
        Mockito.when(provider2.getSubscriptionId()).thenReturn("abc2");
        FeedAggregator feedAggregator = new FeedAggregator() {
            @Override
            public Map<String, List<Map<String, String>>> getData(Set<String> feedIDs,
                            TimeUnit timeUnit, long startTime, long endTime) {
                Map<String, List<Map<String, String>>> m = new HashMap<String, List<Map<String, String>>>();
                m.putAll(value);
View Full Code Here

       
        Mockito.when(numericProvider.getSubscriptionId()).thenReturn("numeric");
        Mockito.when(alphaProvider.getSubscriptionId()).thenReturn("alpha");
        Mockito.when(exceptionProvider.getSubscriptionId()).thenReturn("exception");

        Mockito.when(platform.getFeedAggregator()).thenReturn(new FeedAggregator() {
           
            @Override
            public Map<String, List<Map<String, String>>> getData(Set<String> feedIDs, TimeUnit timeUnit,
                            long startTime, long endTime) {
                return expectedValues;
View Full Code Here

TOP

Related Classes of gov.nasa.arc.mct.api.feed.FeedAggregator

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.