com.basecmp.core.util
Class UptimeServletContextListener

java.lang.Object
  extended bycom.basecmp.core.util.UptimeServletContextListener

public class UptimeServletContextListener
extends java.lang.Object

Simple ServletContextListener that delivers the starttime as Date or timemillis and the uptime as millis via static methods. Created on 25.05.2006

Author:
Wolfgang Schröder

Constructor Summary
UptimeServletContextListener()
           
 
Method Summary
 void contextDestroyed(ServletContextEvent arg0)
           
 void contextInitialized(ServletContextEvent scevent)
           
static java.util.Date getStartTime()
           
static long getStartTimeMillis()
           
static long getUpTimeMillis()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UptimeServletContextListener

public UptimeServletContextListener()
Method Detail

contextDestroyed

public void contextDestroyed(ServletContextEvent arg0)

contextInitialized

public void contextInitialized(ServletContextEvent scevent)

getStartTime

public static java.util.Date getStartTime()

getStartTimeMillis

public static long getStartTimeMillis()

getUpTimeMillis

public static long getUpTimeMillis()


Copyright © 2004 by basecmp® - Professional Web Solutions