You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by ma...@apache.org on 2010/11/22 12:46:47 UTC
svn commit: r1037682 - in /tomcat/trunk:
java/org/apache/catalina/ant/jmx/JMXAccessorInvokeTask.java
java/org/apache/catalina/ant/jmx/JMXAccessorSetTask.java
webapps/docs/cluster-howto.xml webapps/docs/funcspecs/mbean-names.xml
webapps/docs/monitoring.xml
Author: markt
Date: Mon Nov 22 11:46:46 2010
New Revision: 1037682
URL: http://svn.apache.org/viewvc?rev=1037682&view=rev
Log:
Update docs to new MBean names
Modified:
tomcat/trunk/java/org/apache/catalina/ant/jmx/JMXAccessorInvokeTask.java
tomcat/trunk/java/org/apache/catalina/ant/jmx/JMXAccessorSetTask.java
tomcat/trunk/webapps/docs/cluster-howto.xml
tomcat/trunk/webapps/docs/funcspecs/mbean-names.xml
tomcat/trunk/webapps/docs/monitoring.xml
Modified: tomcat/trunk/java/org/apache/catalina/ant/jmx/JMXAccessorInvokeTask.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/catalina/ant/jmx/JMXAccessorInvokeTask.java?rev=1037682&r1=1037681&r2=1037682&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/catalina/ant/jmx/JMXAccessorInvokeTask.java (original)
+++ tomcat/trunk/java/org/apache/catalina/ant/jmx/JMXAccessorInvokeTask.java Mon Nov 22 11:46:46 2010
@@ -44,10 +44,10 @@ import org.apache.tools.ant.BuildExcepti
* <ul>
* <li>
* Get a session attribute hello from session with ref <em>${sessionid.0}</em> form
- * app <em>Catalina:type=Manager,path=/ClusterTest,host=localhost</em>
+ * app <em>Catalina:type=Manager,context=/ClusterTest,host=localhost</em>
* <pre>
* <jmx:invoke
- * name="Catalina:type=Manager,path=/ClusterTest,host=localhost"
+ * name="Catalina:type=Manager,context=/ClusterTest,host=localhost"
* operation="getSessionAttribute"
* resultproperty="hello">
* <arg value="${sessionid.0}"/>
Modified: tomcat/trunk/java/org/apache/catalina/ant/jmx/JMXAccessorSetTask.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/catalina/ant/jmx/JMXAccessorSetTask.java?rev=1037682&r1=1037681&r2=1037682&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/catalina/ant/jmx/JMXAccessorSetTask.java (original)
+++ tomcat/trunk/java/org/apache/catalina/ant/jmx/JMXAccessorSetTask.java Mon Nov 22 11:46:46 2010
@@ -44,7 +44,7 @@ import org.apache.tools.ant.BuildExcepti
* host="127.0.0.1"
* port="9014"
* ref=""
- * name="Catalina:type=Manager,path="/ClusterTest",host=localhost"
+ * name="Catalina:type=Manager,context="/ClusterTest",host=localhost"
* attribute="maxActiveSessions"
* value="100"
* type="int"
Modified: tomcat/trunk/webapps/docs/cluster-howto.xml
URL: http://svn.apache.org/viewvc/tomcat/trunk/webapps/docs/cluster-howto.xml?rev=1037682&r1=1037681&r2=1037682&view=diff
==============================================================================
--- tomcat/trunk/webapps/docs/cluster-howto.xml (original)
+++ tomcat/trunk/webapps/docs/cluster-howto.xml Mon Nov 22 11:46:46 2010
@@ -666,8 +666,8 @@ List of Cluster Mbeans<br/>
<tr>
<td>DeltaManager</td>
<td>This manager control the sessions and handle session replication </td>
- <td><code>type=Manager,path=${APP.CONTEXT.PATH}, host=${HOST}</code></td>
- <td><code>type=Manager,path=${APP.CONTEXT.PATH}, host=${HOST}</code></td>
+ <td><code>type=Manager,context=${APP.CONTEXT.PATH}, host=${HOST}</code></td>
+ <td><code>type=Manager,context=${APP.CONTEXT.PATH}, host=${HOST}</code></td>
</tr>
<tr>
@@ -681,9 +681,9 @@ List of Cluster Mbeans<br/>
<td>JvmRouteBinderValve</td>
<td>This is a cluster fallback valve to change the Session ID to the current tomcat jvmroute.</td>
<td><code>type=Valve,name=JvmRouteBinderValve,
- path=${APP.CONTEXT.PATH}</code></td>
+ context=${APP.CONTEXT.PATH}</code></td>
<td><code>type=Valve,name=JvmRouteBinderValve,host=${HOST},
- path=${APP.CONTEXT.PATH}</code></td>
+ context=${APP.CONTEXT.PATH}</code></td>
</tr>
</table>
Modified: tomcat/trunk/webapps/docs/funcspecs/mbean-names.xml
URL: http://svn.apache.org/viewvc/tomcat/trunk/webapps/docs/funcspecs/mbean-names.xml?rev=1037682&r1=1037681&r2=1037682&view=diff
==============================================================================
--- tomcat/trunk/webapps/docs/funcspecs/mbean-names.xml (original)
+++ tomcat/trunk/webapps/docs/funcspecs/mbean-names.xml Mon Nov 22 11:46:46 2010
@@ -169,7 +169,7 @@ corresponding values:</p>
<td>Server / Service / Engine / Host / Context</td>
<td align="center">1..n</td>
<td align="center"><code>path</code></td>
- <td><code>type=${CONTEXT}, path=${path}, host=${host.name},
+ <td><code>type=${CONTEXT}, context=${name}, host=${host.name},
service=${service.name}</code></td>
</tr>
@@ -177,15 +177,16 @@ corresponding values:</p>
<td>Server / Service / Engine / Host / Context / InstanceListener</td>
<td align="center">0..n</td>
<td align="center">(none)</td>
- <td><code>type=${INSTANCE-LISTENER}, sequence=${###}, path=${context.path},
- host=${host.name}, service=${service.name}</code></td>
+ <td><code>type=${INSTANCE-LISTENER}, sequence=${###},
+ context=${context.name}, host=${host.name},
+ service=${service.name}</code></td>
</tr>
<tr>
<td>Server / Service / Engine / Host / Context / Listener</td>
<td align="center">0..n</td>
<td align="center">(none)</td>
- <td><code>type=${LISTENER}, sequence=${###}, path=${context.path},
+ <td><code>type=${LISTENER}, sequence=${###}, context=${context.name},
host=${host.name}, service=${service.name}</code></td>
</tr>
@@ -193,7 +194,7 @@ corresponding values:</p>
<td>Server / Service / Engine / Host / Context / Loader</td>
<td align="center">0..1</td>
<td align="center">(none)</td>
- <td><code>type=${LOADER}, path=${context.path}, host=${host.name},
+ <td><code>type=${LOADER}, context=${context.name}, host=${host.name},
service=${service.name}</code></td>
</tr>
@@ -201,7 +202,7 @@ corresponding values:</p>
<td>Server / Service / Engine / Host / Context / Manager</td>
<td align="center">0..1</td>
<td align="center">(none)</td>
- <td><code>type=${MANAGER}, path=${context.path}, host=${host.name},
+ <td><code>type=${MANAGER}, context=${context.name}, host=${host.name},
service=${service.name}</code></td>
</tr>
@@ -209,7 +210,7 @@ corresponding values:</p>
<td>Server / Service / Engine / Host / Context / Realm</td>
<td align="center">0..1</td>
<td align="center">(none)</td>
- <td><code>type=${REALM}, path=${context.path}, host=${host.name},
+ <td><code>type=${REALM}, context=${context.name}, host=${host.name},
service=${service.name}</code></td>
</tr>
@@ -217,7 +218,7 @@ corresponding values:</p>
<td>Server / Service / Engine / Host / Context / Resources</td>
<td align="center">0..1</td>
<td align="center">(none)</td>
- <td><code>type=${RESOURCES}, path=${context.path}, host=${host.name},
+ <td><code>type=${RESOURCES}, context=${context.name}, host=${host.name},
service=${service.name}</code></td>
</tr>
@@ -225,7 +226,7 @@ corresponding values:</p>
<td>Server / Service / Engine / Host / Context / Valve</td>
<td align="center">0..n</td>
<td align="center">(none)</td>
- <td><code>type=${VALVE}, sequence=${###}, path=${context.path},
+ <td><code>type=${VALVE}, sequence=${###}, context=${context.name},
host=${host.name}, service=${service.name}</code></td>
</tr>
@@ -243,16 +244,18 @@ corresponding values:</p>
<td>Server / Service / Engine / Host / Context / WrapperLifecycle</td>
<td align="center">0..n</td>
<td align="center">(none)</td>
- <td><code>type=${WRAPPER-LIFECYCLE}, sequence=${###}, path=${context.path},
- host=${host.name}, service=${service.name}</code></td>
+ <td><code>type=${WRAPPER-LIFECYCLE}, sequence=${###},
+ context=${context.name}, host=${host.name},
+ service=${service.name}</code></td>
</tr>
<tr>
<td>Server / Service / Engine / Host / Context / WrapperListener</td>
<td align="center">0..n</td>
<td align="center">(none)</td>
- <td><code>type=${WRAPPER-LISTENER}, sequence=${###}, path=${context.path},
- host=${host.name}, service=${service.name}</code></td>
+ <td><code>type=${WRAPPER-LISTENER}, sequence=${###},
+ context=${context.name}, host=${host.name},
+ service=${service.name}</code></td>
</tr>
<tr>
Modified: tomcat/trunk/webapps/docs/monitoring.xml
URL: http://svn.apache.org/viewvc/tomcat/trunk/webapps/docs/monitoring.xml?rev=1037682&r1=1037681&r2=1037682&view=diff
==============================================================================
--- tomcat/trunk/webapps/docs/monitoring.xml (original)
+++ tomcat/trunk/webapps/docs/monitoring.xml Mon Nov 22 11:46:46 2010
@@ -126,7 +126,7 @@ controlRole tomcat
property <em>clustertest.maxActiveSessions.orginal</em>
-->
<jmx:get
- name="Catalina:type=Manager,path=/ClusterTest,host=localhost"
+ name="Catalina:type=Manager,context=/ClusterTest,host=localhost"
attribute="maxActiveSessions"
resultproperty="clustertest.maxActiveSessions.orginal"
echo="true"
@@ -134,7 +134,7 @@ controlRole tomcat
<!-- set maxActiveSession to 100
-->
<jmx:set
- name="Catalina:type=Manager,path=/ClusterTest,host=localhost"
+ name="Catalina:type=Manager,context=/ClusterTest,host=localhost"
attribute="maxActiveSessions"
value="100"
type="int"
@@ -143,7 +143,7 @@ controlRole tomcat
access all session ids directly with Ant property sessions.[0..n].
-->
<jmx:invoke
- name="Catalina:type=Manager,path=/ClusterTest,host=localhost"
+ name="Catalina:type=Manager,context=/ClusterTest,host=localhost"
operation="listSessionIds"
resultproperty="sessions"
echo="false"
@@ -152,7 +152,7 @@ controlRole tomcat
<!-- Access session attribute <em>Hello</em> from first session.
-->
<jmx:invoke
- name="Catalina:type=Manager,path=/ClusterTest,host=localhost"
+ name="Catalina:type=Manager,context=/ClusterTest,host=localhost"
operation="getSessionAttribute"
resultproperty="Hello"
echo="false"
@@ -391,7 +391,7 @@ List of Attributes<br/>
Example to get remote MBean attribute from default JMX connection <br/>
<source>
<jmx:get
- name="Catalina:type=Manager,path=/servlets-examples,host=localhost"
+ name="Catalina:type=Manager,context=/servlets-examples,host=localhost"
attribute="maxActiveSessions"
resultproperty="servlets-examples.maxActiveSessions"
/>
@@ -493,7 +493,7 @@ List of Attributes<br/>
Example to set remote MBean attribute value<br/>
<source>
<jmx:set
- name="Catalina:type=Manager,path=/servlets-examples,host=localhost"
+ name="Catalina:type=Manager,context=/servlets-examples,host=localhost"
attribute="maxActiveSessions"
value="500"
type="int"
@@ -575,7 +575,7 @@ List of Attributes<br/>
stop an application <br/>
<source>
<jmx:invoke
- name="Catalina:type=Manager,path=/servlets-examples,host=localhost"
+ name="Catalina:type=Manager,context=/servlets-examples,host=localhost"
operation="stop"/>
</source>
Now you can find the sessionid at <em>${sessions.[0..N}</em> properties and access the count
@@ -585,7 +585,7 @@ with ${sessions.length} property.
Example to get all sessionids <br/>
<source>
<jmx:invoke
- name="Catalina:type=Manager,path=/servlets-examples,host=localhost"
+ name="Catalina:type=Manager,context=/servlets-examples,host=localhost"
operation="listSessionIds"
resultproperty="sessions"
delimiter=" "
@@ -598,7 +598,7 @@ with ${sessions.length} property.
Example to get remote MBean session attribute from session ${sessionid.0}<br/>
<source>
<jmx:invoke
- name="Catalina:type=Manager,path=/ClusterTest,host=localhost"
+ name="Catalina:type=Manager,context=/ClusterTest,host=localhost"
operation="getSessionAttribute"
resultproperty="hello">
<arg value="${sessionid.0}"/>
@@ -704,7 +704,7 @@ properties and access the result object
Example to get the Manager from <em>servlet-examples</em> application an bind all MBean properties<br/>
<source>
<jmx:query
- name="Catalina:type=Manager,path=/servlet-examples,host=localhost*"
+ name="Catalina:type=Manager,context=/servlet-examples,host=localhost*"
attributebinding="true"
resultproperty="manager.servletExamples" />
</source>
@@ -786,7 +786,7 @@ List of Attributes<br/>
<td>classLoader</td>
<td>ObjectName of server or web application classloader <br/>
( <em>Catalina:type=ServerClassLoader,name=[server,common,shared]</em> or<br/>
- <em>Catalina:type=WebappClassLoader,path=/myapps,host=localhost</em>)
+ <em>Catalina:type=WebappClassLoader,context=/myapps,host=localhost</em>)
</td>
<td></td>
</tr>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org