Package org.apache.activemq.transport
Interface TransportLoggerViewMBean
- All Known Implementing Classes:
TransportLoggerView
public interface TransportLoggerViewMBean
MBean to manage a single Transport Logger.
It can inform if the logger is currently writing to a log file or not,
by setting the logging property or by using the operations
enableLogging() and disableLogging().
- Author:
- David Martin Clavo david(dot)martin(dot)clavo(at)gmail.com
-
Method Summary
Modifier and TypeMethodDescriptionvoidDisables logging for the managed TransportLogger.voidEnables logging for the managed TransportLogger.booleanReturns if the managed TransportLogger is currently active (writing to a log) or not.voidsetLogging(boolean logging) Enables or disables logging for the managed TransportLogger.
-
Method Details
-
isLogging
boolean isLogging()Returns if the managed TransportLogger is currently active (writing to a log) or not.- Returns:
- if the managed TransportLogger is currently active (writing to a log) or not.
-
setLogging
void setLogging(boolean logging) Enables or disables logging for the managed TransportLogger.- Parameters:
logging- Boolean value to enable or disable logging for the managed TransportLogger. true to enable logging, false to disable logging.
-
enableLogging
void enableLogging()Enables logging for the managed TransportLogger. -
disableLogging
void disableLogging()Disables logging for the managed TransportLogger.
-