tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lu...@apache.org
Subject cvs commit: jakarta-tomcat-catalina/webapps/manager/WEB-INF/classes/org/apache/catalina/manager StatusTransformer.java
Date Wed, 29 Sep 2004 21:11:56 GMT
luehe       2004/09/29 14:11:56

  Modified:    webapps/manager/WEB-INF/classes/org/apache/catalina/manager
                        StatusTransformer.java
  Log:
  Expose context start time in status page
  
  Revision  Changes    Path
  1.23      +6 -1      jakarta-tomcat-catalina/webapps/manager/WEB-INF/classes/org/apache/catalina/manager/StatusTransformer.java
  
  Index: StatusTransformer.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-catalina/webapps/manager/WEB-INF/classes/org/apache/catalina/manager/StatusTransformer.java,v
  retrieving revision 1.22
  retrieving revision 1.23
  diff -u -r1.22 -r1.23
  --- StatusTransformer.java	20 Sep 2004 16:31:17 -0000	1.22
  +++ StatusTransformer.java	29 Sep 2004 21:11:56 -0000	1.23
  @@ -19,6 +19,7 @@
   
   import java.io.PrintWriter;
   import java.text.MessageFormat;
  +import java.util.Date;
   import java.util.Enumeration;
   import java.util.Iterator;
   import java.util.Set;
  @@ -607,6 +608,10 @@
               writer.print("</a>");
   
               writer.print("<p>");
  +            Object startTime = mBeanServer.getAttribute(objectName,
  +                                                        "startTime");
  +            writer.print(" Start time: " +
  +                         new Date(((Long) startTime).longValue()));
               writer.print(" Startup time: ");
               writer.print(formatTime(mBeanServer.getAttribute
                                       (objectName, "startupTime"), false));
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org


Mime
View raw message