ASF Bugzilla – Attachment 33494 Details for
Bug 58351
Provide JMX access to server.built and server.number
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
patch to provide JMX access to server built and server number(against tomcat9 trunk)
patch_against_tomcat9_trunk.diff (text/plain), 1.66 KB, created by
Huxing Zhang
on 2016-01-27 02:14:31 UTC
(
hide
)
Description:
patch to provide JMX access to server built and server number(against tomcat9 trunk)
Filename:
MIME Type:
Creator:
Huxing Zhang
Created:
2016-01-27 02:14:31 UTC
Size:
1.66 KB
patch
obsolete
>Index: java/org/apache/catalina/core/StandardServer.java >=================================================================== >--- java/org/apache/catalina/core/StandardServer.java (revision 1726932) >+++ java/org/apache/catalina/core/StandardServer.java (working copy) >@@ -247,6 +247,24 @@ > } > > /** >+ * Return the current server built timestamp >+ * @return server built timestamp. >+ */ >+ public String getServerBuilt() { >+ >+ return ServerInfo.getServerBuilt(); >+ } >+ >+ /** >+ * Return the current server's version number. >+ * @return server's version number. >+ */ >+ public String getServerNumber() { >+ >+ return ServerInfo.getServerNumber(); >+ } >+ >+ /** > * Return the port number we listen to for shutdown commands. > */ > @Override >Index: java/org/apache/catalina/core/mbeans-descriptors.xml >=================================================================== >--- java/org/apache/catalina/core/mbeans-descriptors.xml (revision 1726932) >+++ java/org/apache/catalina/core/mbeans-descriptors.xml (working copy) >@@ -1329,6 +1329,16 @@ > type="java.lang.String" > writeable="false"/> > >+ <attribute name="serverBuilt" >+ description="Tomcat server built timestamp" >+ type="java.lang.String" >+ writeable="false"/> >+ >+ <attribute name="serverNumber" >+ description="Tomcat server's version number" >+ type="java.lang.String" >+ writeable="false"/> >+ > <attribute name="serviceNames" > description="Object names of all services we know about" > type="[Ljavax.management.ObjectName;"
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 58351
:
33087
| 33494