@Override
    public List<Annotation> getAnnotations(String expression) {
        requireNotDisposed();
        requireArgument(AnnotationReader.isValid(expression), "Invalid annotation expression: " + expression);

        AnnotationReader<Annotation> reader = new AnnotationReader<Annotation>(_tsdbService);
        List<Annotation> annotations = new LinkedList<>();

        try {
            _logger.debug("Retrieving annotations using {}.", expression);
            annotations.addAll(reader.parse(expression, Annotation.class));
        } catch (ParseException ex) {
            throw new SystemException("Failed to parse the given expression", ex);
        }
        _monitorService.modifyCounter(Counter.ANNOTATION_READS, annotations.size(), null);
        return annotations;
    }
@ Override public List < Annotation > getAnnotations ( String expression ) { requireNotDisposed ( ) ; requireArgument ( AnnotationReader . isValid ( expression ) , "Invalid annotation expression: " + expression ) ; AnnotationReader < Annotation > reader = new AnnotationReader < Annotation > ( _tsdbService ) ; List < Annotation > annotations = new LinkedList < > ( ) ; try { _logger . debug ( "Retrieving annotations using {}." , expression ) ; annotations . addAll ( reader . parse ( expression , Annotation . class ) ) ; } catch ( ParseException ex ) { throw new SystemException ( "Failed to parse the given expression" , ex ) ; } _monitorService . modifyCounter ( Counter . ANNOTATION_READS , annotations . size ( ) , null ) ; return annotations ; }
~ Methods **************************************************************************************************************************************