Interface GzipInterceptorMBean
- All Known Implementing Classes:
GzipInterceptor
public interface GzipInterceptorMBean
MBean interface for managing a GzipInterceptor.
-
Method Summary
Modifier and TypeMethodDescriptionlongReturns the total compressed received data size in bytes.longReturns the total compressed transmitted data size in bytes.intReturns the minimum payload size for compression to be enabled.intgetCount()Returns the total message count.intReturns the count of compressed received messages.intReturns the count of compressed transmitted messages.intReturns the count of uncompressed received messages.intReturns the count of uncompressed transmitted messages.intReturns the number of messages between statistics reports being written to the log.intReturns the option flag used by this interceptor.longReturns the total received data size in bytes.longReturns the total transmitted data size in bytes.booleanReturns whether the interceptor is configured to collect statistics.longReturns the total uncompressed received data size in bytes.longReturns the total uncompressed transmitted data size in bytes.voidreport()Writes the current statistics report to the log.voidreset()Resets all statistics counters to zero.voidsetCompressionMinSize(int compressionMinSize) Set the minimum payload size for compression to be enabled.voidsetInterval(int interval) If statistics collection is enabled, set the number of messages between statistics reports being written to the log.voidsetOptionFlag(int optionFlag) Sets the option flag used by this interceptor.voidsetStatsEnabled(boolean statsEnabled) Configure whether the interceptor collects statistics.
-
Method Details
-
getOptionFlag
int getOptionFlag()Returns the option flag used by this interceptor.- Returns:
- The option flag value
-
setOptionFlag
void setOptionFlag(int optionFlag) Sets the option flag used by this interceptor.- Parameters:
optionFlag- The new option flag value
-
getCompressionMinSize
int getCompressionMinSize()Returns the minimum payload size for compression to be enabled.- Returns:
- The minimum payload size in bytes
-
setCompressionMinSize
void setCompressionMinSize(int compressionMinSize) Set the minimum payload size for compression to be enabled. A value of zero or less means compression will always be used. If not explicitly configured, a default of zero will be used.- Parameters:
compressionMinSize- The new minimum payload size
-
getStatsEnabled
boolean getStatsEnabled()Returns whether the interceptor is configured to collect statistics.- Returns:
trueif statistics collection is enabled, otherwisefalse
-
setStatsEnabled
void setStatsEnabled(boolean statsEnabled) Configure whether the interceptor collects statistics.- Parameters:
statsEnabled-trueto enable statistics collections, otherwisefalse
-
getInterval
int getInterval()Returns the number of messages between statistics reports being written to the log.- Returns:
- The interval between statistics reports
-
setInterval
void setInterval(int interval) If statistics collection is enabled, set the number of messages between statistics reports being written to the log. A value of zero or less means no statistics reports are written.- Parameters:
interval- The new interval between reports
-
getCount
int getCount()Returns the total message count.- Returns:
- Total number of messages processed
-
getCountCompressedTX
int getCountCompressedTX()Returns the count of compressed transmitted messages.- Returns:
- Number of compressed TX messages
-
getCountUncompressedTX
int getCountUncompressedTX()Returns the count of uncompressed transmitted messages.- Returns:
- Number of uncompressed TX messages
-
getCountCompressedRX
int getCountCompressedRX()Returns the count of compressed received messages.- Returns:
- Number of compressed RX messages
-
getCountUncompressedRX
int getCountUncompressedRX()Returns the count of uncompressed received messages.- Returns:
- Number of uncompressed RX messages
-
getSizeTX
long getSizeTX()Returns the total transmitted data size in bytes.- Returns:
- Total TX size in bytes
-
getCompressedSizeTX
long getCompressedSizeTX()Returns the total compressed transmitted data size in bytes.- Returns:
- Total compressed TX size in bytes
-
getUncompressedSizeTX
long getUncompressedSizeTX()Returns the total uncompressed transmitted data size in bytes.- Returns:
- Total uncompressed TX size in bytes
-
getSizeRX
long getSizeRX()Returns the total received data size in bytes.- Returns:
- Total RX size in bytes
-
getCompressedSizeRX
long getCompressedSizeRX()Returns the total compressed received data size in bytes.- Returns:
- Total compressed RX size in bytes
-
getUncompressedSizeRX
long getUncompressedSizeRX()Returns the total uncompressed received data size in bytes.- Returns:
- Total uncompressed RX size in bytes
-
reset
void reset()Resets all statistics counters to zero. -
report
void report()Writes the current statistics report to the log.
-