You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-dev@james.apache.org by no...@apache.org on 2010/11/27 13:53:21 UTC
svn commit: r1039666 - in /james/server/trunk:
lmtpserver/src/main/java/org/apache/james/lmtpserver/jmx/
smtpserver/src/main/java/org/apache/james/smtpserver/jmx/
Author: norman
Date: Sat Nov 27 12:53:21 2010
New Revision: 1039666
URL: http://svn.apache.org/viewvc?rev=1039666&view=rev
Log:
Expose handler stats for LMTP. See JAMES-1057
Added:
james/server/trunk/lmtpserver/src/main/java/org/apache/james/lmtpserver/jmx/
james/server/trunk/lmtpserver/src/main/java/org/apache/james/lmtpserver/jmx/CommandHandlerResultJMXMonitor.java
james/server/trunk/lmtpserver/src/main/java/org/apache/james/lmtpserver/jmx/ConnectHandlerResultJMXMonitor.java
james/server/trunk/lmtpserver/src/main/java/org/apache/james/lmtpserver/jmx/LineHandlerResultJMXMonitor.java
Modified:
james/server/trunk/smtpserver/src/main/java/org/apache/james/smtpserver/jmx/CommandHandlerResultJMXMonitor.java
Added: james/server/trunk/lmtpserver/src/main/java/org/apache/james/lmtpserver/jmx/CommandHandlerResultJMXMonitor.java
URL: http://svn.apache.org/viewvc/james/server/trunk/lmtpserver/src/main/java/org/apache/james/lmtpserver/jmx/CommandHandlerResultJMXMonitor.java?rev=1039666&view=auto
==============================================================================
--- james/server/trunk/lmtpserver/src/main/java/org/apache/james/lmtpserver/jmx/CommandHandlerResultJMXMonitor.java (added)
+++ james/server/trunk/lmtpserver/src/main/java/org/apache/james/lmtpserver/jmx/CommandHandlerResultJMXMonitor.java Sat Nov 27 12:53:21 2010
@@ -0,0 +1,29 @@
+/****************************************************************
+ * Licensed to the Apache Software Foundation (ASF) under one *
+ * or more contributor license agreements. See the NOTICE file *
+ * distributed with this work for additional information *
+ * regarding copyright ownership. The ASF licenses this file *
+ * to you under the Apache License, Version 2.0 (the *
+ * "License"); you may not use this file except in compliance *
+ * with the License. You may obtain a copy of the License at *
+ * *
+ * http://www.apache.org/licenses/LICENSE-2.0 *
+ * *
+ * Unless required by applicable law or agreed to in writing, *
+ * software distributed under the License is distributed on an *
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY *
+ * KIND, either express or implied. See the License for the *
+ * specific language governing permissions and limitations *
+ * under the License. *
+ ****************************************************************/
+
+package org.apache.james.lmtpserver.jmx;
+
+public class CommandHandlerResultJMXMonitor extends org.apache.james.smtpserver.jmx.CommandHandlerResultJMXMonitor{
+
+ @Override
+ protected String getDefaultJMXPath() {
+ return "org.apache.james:type=server,name=lmtpserver";
+ }
+
+}
Added: james/server/trunk/lmtpserver/src/main/java/org/apache/james/lmtpserver/jmx/ConnectHandlerResultJMXMonitor.java
URL: http://svn.apache.org/viewvc/james/server/trunk/lmtpserver/src/main/java/org/apache/james/lmtpserver/jmx/ConnectHandlerResultJMXMonitor.java?rev=1039666&view=auto
==============================================================================
--- james/server/trunk/lmtpserver/src/main/java/org/apache/james/lmtpserver/jmx/ConnectHandlerResultJMXMonitor.java (added)
+++ james/server/trunk/lmtpserver/src/main/java/org/apache/james/lmtpserver/jmx/ConnectHandlerResultJMXMonitor.java Sat Nov 27 12:53:21 2010
@@ -0,0 +1,29 @@
+/****************************************************************
+ * Licensed to the Apache Software Foundation (ASF) under one *
+ * or more contributor license agreements. See the NOTICE file *
+ * distributed with this work for additional information *
+ * regarding copyright ownership. The ASF licenses this file *
+ * to you under the Apache License, Version 2.0 (the *
+ * "License"); you may not use this file except in compliance *
+ * with the License. You may obtain a copy of the License at *
+ * *
+ * http://www.apache.org/licenses/LICENSE-2.0 *
+ * *
+ * Unless required by applicable law or agreed to in writing, *
+ * software distributed under the License is distributed on an *
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY *
+ * KIND, either express or implied. See the License for the *
+ * specific language governing permissions and limitations *
+ * under the License. *
+ ****************************************************************/
+
+package org.apache.james.lmtpserver.jmx;
+
+public class ConnectHandlerResultJMXMonitor extends org.apache.james.smtpserver.jmx.ConnectHandlerResultJMXMonitor{
+
+ @Override
+ protected String getDefaultJMXPath() {
+ return "org.apache.james:type=server,name=lmtpserver";
+ }
+
+}
Added: james/server/trunk/lmtpserver/src/main/java/org/apache/james/lmtpserver/jmx/LineHandlerResultJMXMonitor.java
URL: http://svn.apache.org/viewvc/james/server/trunk/lmtpserver/src/main/java/org/apache/james/lmtpserver/jmx/LineHandlerResultJMXMonitor.java?rev=1039666&view=auto
==============================================================================
--- james/server/trunk/lmtpserver/src/main/java/org/apache/james/lmtpserver/jmx/LineHandlerResultJMXMonitor.java (added)
+++ james/server/trunk/lmtpserver/src/main/java/org/apache/james/lmtpserver/jmx/LineHandlerResultJMXMonitor.java Sat Nov 27 12:53:21 2010
@@ -0,0 +1,29 @@
+/****************************************************************
+ * Licensed to the Apache Software Foundation (ASF) under one *
+ * or more contributor license agreements. See the NOTICE file *
+ * distributed with this work for additional information *
+ * regarding copyright ownership. The ASF licenses this file *
+ * to you under the Apache License, Version 2.0 (the *
+ * "License"); you may not use this file except in compliance *
+ * with the License. You may obtain a copy of the License at *
+ * *
+ * http://www.apache.org/licenses/LICENSE-2.0 *
+ * *
+ * Unless required by applicable law or agreed to in writing, *
+ * software distributed under the License is distributed on an *
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY *
+ * KIND, either express or implied. See the License for the *
+ * specific language governing permissions and limitations *
+ * under the License. *
+ ****************************************************************/
+
+package org.apache.james.lmtpserver.jmx;
+
+public class LineHandlerResultJMXMonitor extends org.apache.james.smtpserver.jmx.LineHandlerResultJMXMonitor{
+
+ @Override
+ protected String getDefaultJMXPath() {
+ return "org.apache.james:type=server,name=lmtpserver";
+ }
+
+}
Modified: james/server/trunk/smtpserver/src/main/java/org/apache/james/smtpserver/jmx/CommandHandlerResultJMXMonitor.java
URL: http://svn.apache.org/viewvc/james/server/trunk/smtpserver/src/main/java/org/apache/james/smtpserver/jmx/CommandHandlerResultJMXMonitor.java?rev=1039666&r1=1039665&r2=1039666&view=diff
==============================================================================
--- james/server/trunk/smtpserver/src/main/java/org/apache/james/smtpserver/jmx/CommandHandlerResultJMXMonitor.java (original)
+++ james/server/trunk/smtpserver/src/main/java/org/apache/james/smtpserver/jmx/CommandHandlerResultJMXMonitor.java Sat Nov 27 12:53:21 2010
@@ -56,7 +56,11 @@ public class CommandHandlerResultJMXMoni
* @see org.apache.james.lifecycle.Configurable#configure(org.apache.commons.configuration.HierarchicalConfiguration)
*/
public void configure(HierarchicalConfiguration config) throws ConfigurationException {
- this.jmxPath = config.getString("jmxPath", "org.apache.james:type=server,name=smtpserver");
+ this.jmxPath = config.getString("jmxPath", getDefaultJMXPath());
+ }
+
+ protected String getDefaultJMXPath() {
+ return "org.apache.james:type=server,name=smtpserver";
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org