[jboss-cvs] JBossAS SVN: r58802 - branches/JBoss_4_0_3_SP1_CP/system/src/main/org/jboss/system/server
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Fri Dec 1 07:25:42 EST 2006
Author: vicky.kak at jboss.com
Date: 2006-12-01 07:25:39 -0500 (Fri, 01 Dec 2006)
New Revision: 58802
Modified:
branches/JBoss_4_0_3_SP1_CP/system/src/main/org/jboss/system/server/ServerImpl.java
Log:
Changes Done for ASPATCH-124
Modified: branches/JBoss_4_0_3_SP1_CP/system/src/main/org/jboss/system/server/ServerImpl.java
===================================================================
--- branches/JBoss_4_0_3_SP1_CP/system/src/main/org/jboss/system/server/ServerImpl.java 2006-12-01 12:23:30 UTC (rev 58801)
+++ branches/JBoss_4_0_3_SP1_CP/system/src/main/org/jboss/system/server/ServerImpl.java 2006-12-01 12:25:39 UTC (rev 58802)
@@ -100,6 +100,9 @@
/** The bootstrap UCL class loader ObjectName */
private ObjectName bootstrapUCLName;
+ /** A flag indicating if shutdown has been called */
+ private boolean isInShutdown;
+
/**
* No-arg constructor for {@link ServerLoader}.
*/
@@ -304,6 +307,16 @@
}
/**
+ * Check if the shutdown operation has been called/is in progress.
+ *
+ * @return true if shutdown has been called, false otherwise
+ */
+ public boolean isInShutdown()
+ {
+ return isInShutdown;
+ }
+
+ /**
* Start the Server instance.
*
* @throws IllegalStateException Already started or not initialized.
@@ -621,6 +634,7 @@
Notification msg = new Notification(STOP_NOTIFICATION_TYPE, this, 2);
sendNotification(msg);
+ isInShutdown = true;
boolean exitOnShutdown = config.getExitOnShutdown();
boolean blockingShutdown = config.getBlockingShutdown();
log.debug("Shutdown operation called, exitOnShutdown: " + exitOnShutdown
@@ -958,6 +972,7 @@
public void shutdown()
{
log.info("JBoss SHUTDOWN: Undeploying all packages");
+ isInShutdown = true;
if( log.isTraceEnabled() )
log.trace("Shutdown caller:", new Throwable("Here"));
shutdownDeployments();
More information about the jboss-cvs-commits
mailing list