From d560b5969490c6bd68cd3e376b8dfb6591f11f66 Mon Sep 17 00:00:00 2001 From: Robert Gemmell Date: Sun, 16 Aug 2009 20:35:30 +0000 Subject: QPID-2016: Add ability to reload the Log4J configuration file on request using the management console git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@804767 13f79535-47bb-0310-9956-ffa450edef68 --- .../qpid/management/common/mbeans/LoggingManagement.java | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'java/management/common/src') diff --git a/java/management/common/src/main/java/org/apache/qpid/management/common/mbeans/LoggingManagement.java b/java/management/common/src/main/java/org/apache/qpid/management/common/mbeans/LoggingManagement.java index d9c5f59bd0..98dba9fed1 100644 --- a/java/management/common/src/main/java/org/apache/qpid/management/common/mbeans/LoggingManagement.java +++ b/java/management/common/src/main/java/org/apache/qpid/management/common/mbeans/LoggingManagement.java @@ -36,7 +36,7 @@ import javax.management.openmbean.TabularData; public interface LoggingManagement { String TYPE = "LoggingManagement"; - int VERSION = 1; + int VERSION = 2; //TabularType and contained CompositeType key/description information //For compatibility reasons, DONT MODIFY the existing key values if expanding the set. @@ -106,6 +106,15 @@ public interface LoggingManagement //****** log4j XML configuration file operations ****** // + /** + * Reloads the log4j configuration file, applying any changes made. + * + * @throws IOException + * @since Qpid JMX API 1.3 + */ + @MBeanOperation(name = "reloadConfigFile", description = "Reload the log4j xml configuration file", impact = MBeanOperationInfo.ACTION) + void reloadConfigFile() throws IOException; + /** * Updates the level of an existing Log4J logger within the xml configuration file * @param logger The name of the logger -- cgit v1.2.1