/** * @see org.opencms.workplace.list.I_CmsListFormatter#format(java.lang.Object, java.util.Locale) */ public String format(Object data, Locale locale) { if (data == null) { return ""; } if (!(data instanceof Long)) { return data.toString(); } return CmsStringUtil.formatRuntime(((Long)data).longValue()); }
/** * @see org.opencms.workplace.list.I_CmsListFormatter#format(java.lang.Object, java.util.Locale) */ public String format(Object data, Locale locale) { if (data == null) { return ""; } if (!(data instanceof Long)) { return data.toString(); } return CmsStringUtil.formatRuntime(((Long)data).longValue()); }
/** * @see org.opencms.report.I_CmsReport#formatRuntime() */ public String formatRuntime() { return CmsStringUtil.formatRuntime(getRuntime()); }
/** * @see org.opencms.report.I_CmsReport#formatRuntime() */ public String formatRuntime() { return CmsStringUtil.formatRuntime(getRuntime()); }
CmsStringUtil.formatRuntime(runTime));
CmsStringUtil.formatRuntime(runTime));
/** * Initializes the system with the OpenCms servlet.<p> * * This is the final step that is called on the servlets "init()" method. * It registers the servlets request handler and also outputs the final * startup message. The servlet should auto-load since the <load-on-startup> * parameter is set in the 'web.xml' by default.<p> * * @param servlet the OpenCms servlet */ protected void initServlet(OpenCmsServlet servlet) { synchronized (LOCK) { // add the servlets request handler addRequestHandler(servlet); // output the final 'startup is finished' message if (CmsLog.INIT.isInfoEnabled()) { CmsLog.INIT.info( Messages.get().getBundle().key( Messages.INIT_SYSTEM_RUNNING_1, CmsStringUtil.formatRuntime(getSystemInfo().getRuntime()))); CmsLog.INIT.info(Messages.get().getBundle().key(Messages.INIT_LINE_0)); CmsLog.INIT.info(Messages.get().getBundle().key(Messages.INIT_DOT_0)); } } }
/** * Initializes the system with the OpenCms servlet.<p> * * This is the final step that is called on the servlets "init()" method. * It registers the servlets request handler and also outputs the final * startup message. The servlet should auto-load since the <load-on-startup> * parameter is set in the 'web.xml' by default.<p> * * @param servlet the OpenCms servlet */ protected void initServlet(OpenCmsServlet servlet) { synchronized (LOCK) { // add the servlets request handler addRequestHandler(servlet); // output the final 'startup is finished' message if (CmsLog.INIT.isInfoEnabled()) { CmsLog.INIT.info(Messages.get().getBundle().key( Messages.INIT_SYSTEM_RUNNING_1, CmsStringUtil.formatRuntime(getSystemInfo().getRuntime()))); CmsLog.INIT.info(Messages.get().getBundle().key(Messages.INIT_LINE_0)); CmsLog.INIT.info(Messages.get().getBundle().key(Messages.INIT_DOT_0)); } } }
Messages.LOG_MM_STARTUP_TIME_2, CmsDateUtil.getDateTimeShort(OpenCms.getSystemInfo().getStartupTime()), CmsStringUtil.formatRuntime(OpenCms.getSystemInfo().getRuntime())));
Messages.LOG_MM_STARTUP_TIME_2, CmsDateUtil.getDateTimeShort(OpenCms.getSystemInfo().getStartupTime()), CmsStringUtil.formatRuntime(OpenCms.getSystemInfo().getRuntime())));
e.getMessage()), e); String runtime = CmsStringUtil.formatRuntime(getSystemInfo().getRuntime()); if (CmsLog.INIT.isInfoEnabled()) { CmsLog.INIT.info(Messages.get().getBundle().key(Messages.INIT_OPENCMS_STOPPED_1, runtime));
e); String runtime = CmsStringUtil.formatRuntime(getSystemInfo().getRuntime()); if (CmsLog.INIT.isInfoEnabled()) { CmsLog.INIT.info(Messages.get().getBundle().key(Messages.INIT_OPENCMS_STOPPED_1, runtime));