Class MetricsResourceImpl

  • All Implemented Interfaces:
    MetricsResource

    public class MetricsResourceImpl
    extends java.lang.Object
    implements MetricsResource
    Author:
    Daniel Meyer
    • Constructor Summary

      Constructors 
      Constructor Description
      MetricsResourceImpl​(java.lang.String metricsName, ProcessEngine processEngine, com.fasterxml.jackson.databind.ObjectMapper objectMapper)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void applyQueryParams​(javax.ws.rs.core.MultivaluedMap<java.lang.String,​java.lang.String> queryParameters, DateConverter dateConverter, MetricsQuery query)  
      protected java.util.Date extractEndDate​(javax.ws.rs.core.MultivaluedMap<java.lang.String,​java.lang.String> queryParameters, DateConverter dateConverter)  
      protected java.util.Date extractStartDate​(javax.ws.rs.core.MultivaluedMap<java.lang.String,​java.lang.String> queryParameters, DateConverter dateConverter)  
      MetricsResultDto sum​(javax.ws.rs.core.UriInfo uriInfo)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • metricsName

        protected java.lang.String metricsName
      • objectMapper

        protected com.fasterxml.jackson.databind.ObjectMapper objectMapper
    • Constructor Detail

      • MetricsResourceImpl

        public MetricsResourceImpl​(java.lang.String metricsName,
                                   ProcessEngine processEngine,
                                   com.fasterxml.jackson.databind.ObjectMapper objectMapper)
    • Method Detail

      • applyQueryParams

        protected void applyQueryParams​(javax.ws.rs.core.MultivaluedMap<java.lang.String,​java.lang.String> queryParameters,
                                        DateConverter dateConverter,
                                        MetricsQuery query)
      • extractEndDate

        protected java.util.Date extractEndDate​(javax.ws.rs.core.MultivaluedMap<java.lang.String,​java.lang.String> queryParameters,
                                                DateConverter dateConverter)
      • extractStartDate

        protected java.util.Date extractStartDate​(javax.ws.rs.core.MultivaluedMap<java.lang.String,​java.lang.String> queryParameters,
                                                  DateConverter dateConverter)