Class AMStatisticsCollector
java.lang.Object
com.predic8.membrane.core.interceptor.apimanagement.statistics.AMStatisticsCollector
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidprotected com.fasterxml.jackson.core.JsonGeneratorintgetHost()protected StringhandleRequest(Exchange exc, Outcome outcome) Inits listener and puts exchange in a queue for later processinghandleResponse(Exchange exc, Outcome outcome) voidsetClientId(String clientId) voidsetClientSecret(String clientSecret) voidsetCollectTimeInSeconds(int collectTimeInSeconds) voidvoidshutdown()
-
Field Details
-
API_STATISTICS_PATH
- See Also:
-
API_EXCHANGES_PATH
- See Also:
-
-
Constructor Details
-
AMStatisticsCollector
public AMStatisticsCollector()
-
-
Method Details
-
handleRequest
Inits listener and puts exchange in a queue for later processing- Parameters:
exc-outcome-- Returns:
- always returns the outcome unmodified
-
addExchangeToQueue
-
handleResponse
-
getCollectTimeInSeconds
public int getCollectTimeInSeconds() -
setCollectTimeInSeconds
public void setCollectTimeInSeconds(int collectTimeInSeconds) -
shutdown
public void shutdown() -
getAndResetJsonGenerator
protected com.fasterxml.jackson.core.JsonGenerator getAndResetJsonGenerator() -
getStringFromJsonGenerator
- Throws:
IOException
-
getHost
-
setHost
-
getClientId
-
setClientId
-
getClientSecret
-
setClientSecret
-