java.lang.Object
com.predic8.membrane.core.interceptor.apimanagement.statistics.AMStatisticsCollector

public class AMStatisticsCollector extends Object
  • Field Details

  • Constructor Details

    • AMStatisticsCollector

      public AMStatisticsCollector()
  • Method Details

    • handleRequest

      public Outcome handleRequest(Exchange exc, Outcome outcome)
      Inits listener and puts exchange in a queue for later processing
      Parameters:
      exc -
      outcome -
      Returns:
      always returns the outcome unmodified
    • addExchangeToQueue

      public void addExchangeToQueue(Exchange exc)
    • handleResponse

      public Outcome handleResponse(Exchange exc, Outcome outcome)
    • getCollectTimeInSeconds

      public int getCollectTimeInSeconds()
    • setCollectTimeInSeconds

      public void setCollectTimeInSeconds(int collectTimeInSeconds)
    • shutdown

      public void shutdown()
    • getAndResetJsonGenerator

      protected com.fasterxml.jackson.core.JsonGenerator getAndResetJsonGenerator()
    • getStringFromJsonGenerator

      protected String getStringFromJsonGenerator() throws IOException
      Throws:
      IOException
    • getHost

      public String getHost()
    • setHost

      public void setHost(String host)
    • getClientId

      public String getClientId()
    • setClientId

      public void setClientId(String clientId)
    • getClientSecret

      public String getClientSecret()
    • setClientSecret

      public void setClientSecret(String clientSecret)