Class StatisticsCSVInterceptor
java.lang.Object
com.predic8.membrane.core.interceptor.AbstractInterceptor
com.predic8.membrane.core.interceptor.statistics.StatisticsCSVInterceptor
- All Implemented Interfaces:
Interceptor
- Description
- Writes statistics (time, status code, hostname, URI, etc.) about exchanges passing through into a CSV file (one line per exchange).
- Explanation
- Note that the CSV file is UTF-8 encoded.
- Topic
- 5. Monitoring, Logging and Statistics
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.predic8.membrane.core.interceptor.Interceptor
Interceptor.Flow -
Field Summary
Fields inherited from class com.predic8.membrane.core.interceptor.AbstractInterceptor
name, router -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class com.predic8.membrane.core.interceptor.AbstractInterceptor
getDisplayName, getFlow, getHelpId, getLongDescription, getMessage, getRouter, getRule, handleAbort, handleRequest, init, init, setDisplayName, setFlow
-
Constructor Details
-
StatisticsCSVInterceptor
public StatisticsCSVInterceptor()
-
-
Method Details
-
handleResponse
- Specified by:
handleResponsein interfaceInterceptor- Overrides:
handleResponsein classAbstractInterceptor- Throws:
Exception
-
setFileName
- Throws:
Exception- Description
- Locations of csv file to write out logs.
- Example
- stat.csv
-
getFileName
-
getShortDescription
- Specified by:
getShortDescriptionin interfaceInterceptor- Overrides:
getShortDescriptionin classAbstractInterceptor
-