Examples of PreCachingResult


Examples of com.infoclinika.web.dto.PreCachingResult

        when(translationService.preCacheChart(any(Long[].class), anyInt(), anyInt(), any(SpectrumType[].class), anyFloat(),
                anyFloat(), anyDouble(), anyDouble())).thenAnswer(new Answer<PreCachingResult>() {
            @Override
            public PreCachingResult answer(InvocationOnMock invocation) throws Throwable {
                return new PreCachingResult();
            }
        });
        return translationService;
    }
View Full Code Here

Examples of com.infoclinika.web.dto.PreCachingResult

        });
        when(translationService.preCacheChart(any(Long[].class), anyInt(), anyInt(), any(SpectrumType[].class), anyFloat(),
                anyFloat(), anyDouble(), anyDouble())).thenAnswer(new Answer<PreCachingResult>() {
            @Override
            public PreCachingResult answer(InvocationOnMock invocation) throws Throwable {
                return new PreCachingResult();
            }
        });
        return translationService;
    }
View Full Code Here

Examples of com.infoclinika.web.dto.PreCachingResult

    private void preCacheCharts(List<Long> translatedFileIds) {
        LOG.debug("Pre-caching charts for IDs " + translatedFileIds);
        try {
            final Long[] idsArray = translatedFileIds.toArray(new Long[translatedFileIds.size()]);
            final SpectrumType[] spectrumTypes = {SpectrumType.TIC_CHROMATOGRAM, SpectrumType.TIC_SPECTRUM, SpectrumType.BPI_SPECTRUM, SpectrumType.BPI_CHROMATOGRAM};
            final PreCachingResult preCachingResult = translationService.preCacheChart(idsArray, 100, 100, spectrumTypes, -1, -1, -1, -1);
            LOG.debug(" * Pre-caching result received. Errors = " + preCachingResult.getError());
        } catch (Exception e) {
            LOG.warn("Error pre-caching charts.", e);
        }
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.