[jboss-cvs] JBossAS SVN: r89213 - projects/bootstrap/trunk/impl-base/src/main/java/org/jboss/bootstrap/impl/base/server.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Wed May 20 17:04:41 EDT 2009
Author: ALRubinger
Date: 2009-05-20 17:04:41 -0400 (Wed, 20 May 2009)
New Revision: 89213
Modified:
projects/bootstrap/trunk/impl-base/src/main/java/org/jboss/bootstrap/impl/base/server/AbstractServer.java
Log:
[JBBOOT-49] Log start and shutdown times
Modified: projects/bootstrap/trunk/impl-base/src/main/java/org/jboss/bootstrap/impl/base/server/AbstractServer.java
===================================================================
--- projects/bootstrap/trunk/impl-base/src/main/java/org/jboss/bootstrap/impl/base/server/AbstractServer.java 2009-05-20 20:05:09 UTC (rev 89212)
+++ projects/bootstrap/trunk/impl-base/src/main/java/org/jboss/bootstrap/impl/base/server/AbstractServer.java 2009-05-20 21:04:41 UTC (rev 89213)
@@ -45,6 +45,7 @@
import org.jboss.bootstrap.spi.server.Server;
import org.jboss.bootstrap.spi.server.ServerInitializer;
import org.jboss.logging.Logger;
+import org.jboss.util.StopWatch;
/**
* AbstractServer
@@ -254,6 +255,7 @@
// Initiate shutdown sequence
log.info("Stopping: " + this);
+ final StopWatch watch = new StopWatch(true);
this.setState(LifecycleState.STOPPING);
// Shutdown the Bootstraps
@@ -285,7 +287,7 @@
this.sendStopJmxNotification();
// Done and set states
- log.info("Stopped: " + this);
+ log.info("Stopped: " + this + " in " + watch);
// So we fire "stopped" events and draw the difference
// between IDLE (which may also designate pre-start)
this.setState(LifecycleState.STOPPED);
@@ -316,8 +318,9 @@
final LifecycleState actual = this.getState();
this.checkState(required, actual);
- // Initiate shutdown sequence
+ // Initiate start sequence
log.info("Starting: " + this);
+ final StopWatch watch = new StopWatch(true);
this.setState(LifecycleState.STARTING);
// Start
@@ -338,7 +341,7 @@
this.sendStartJmxNotification();
// Done
- log.info("Started: " + this);
+ log.info("Started: " + this + " in " + watch);
this.setState(LifecycleState.STARTED);
}
More information about the jboss-cvs-commits
mailing list