/** * Start all of the broker's services. * * @exclude */ private void startServices() { for (Iterator iter=services.values().iterator(); iter.hasNext(); ) { Service svc = (Service) iter.next(); long timeBeforeStartup = 0; if (Log.isDebug()) { timeBeforeStartup = System.currentTimeMillis(); Log.getLogger(LOG_CATEGORY_STARTUP_SERVICE).debug("Service with id '{0}' is starting.", new Object[]{svc.getId()}); } svc.start(); if (Log.isDebug()) { long timeAfterStartup = System.currentTimeMillis(); Long diffMillis = new Long(timeAfterStartup - timeBeforeStartup); Log.getLogger(LOG_CATEGORY_STARTUP_SERVICE).debug("Service with id '{0}' is ready (startup time: '{1}' ms)", new Object[]{svc.getId(), diffMillis}); } } }
/** * Start all of the broker's services. * * */ private void startServices() { for (Service svc : services.values() ) { long timeBeforeStartup = 0; if (Log.isDebug()) { timeBeforeStartup = System.currentTimeMillis(); Log.getLogger(LOG_CATEGORY_STARTUP_SERVICE).debug("Service with id '{0}' is starting.", new Object[]{svc.getId()}); } svc.start(); if (Log.isDebug()) { long timeAfterStartup = System.currentTimeMillis(); Long diffMillis = timeAfterStartup - timeBeforeStartup; Log.getLogger(LOG_CATEGORY_STARTUP_SERVICE).debug("Service with id '{0}' is ready (startup time: '{1}' ms)", new Object[]{svc.getId(), diffMillis}); } } }
/** * Start all of the broker's services. * * */ private void startServices() { for (Service svc : services.values() ) { long timeBeforeStartup = 0; if (Log.isDebug()) { timeBeforeStartup = System.currentTimeMillis(); Log.getLogger(LOG_CATEGORY_STARTUP_SERVICE).debug("Service with id '{0}' is starting.", new Object[]{svc.getId()}); } svc.start(); if (Log.isDebug()) { long timeAfterStartup = System.currentTimeMillis(); Long diffMillis = timeAfterStartup - timeBeforeStartup; Log.getLogger(LOG_CATEGORY_STARTUP_SERVICE).debug("Service with id '{0}' is ready (startup time: '{1}' ms)", new Object[]{svc.getId(), diffMillis}); } } }