User: starksm
Date: 01/11/09 02:36:41
Modified: src/main/org/jboss/ejb Tag: Branch_2_4 AutoDeployer.java
AutoDeployerMBean.java
Log:
Externalize the deployment timeout check
Revision Changes Path
No revision
No revision
1.17.4.2 +25 -2 jboss/src/main/org/jboss/ejb/Attic/AutoDeployer.java
Index: AutoDeployer.java
===================================================================
RCS file: /cvsroot/jboss/jboss/src/main/org/jboss/ejb/Attic/AutoDeployer.java,v
retrieving revision 1.17.4.1
retrieving revision 1.17.4.2
diff -u -r1.17.4.1 -r1.17.4.2
--- AutoDeployer.java 2001/10/20 22:13:22 1.17.4.1
+++ AutoDeployer.java 2001/11/09 10:36:41 1.17.4.2
@@ -46,7 +46,7 @@
* @see org.jboss.deployment.J2eeDeployer
* @author Rickard �berg ([EMAIL PROTECTED])
* @author Toby Allsopp ([EMAIL PROTECTED])
- * @version $Revision: 1.17.4.1 $
+ * @version $Revision: 1.17.4.2 $
*/
public class AutoDeployer
extends ServiceMBeanSupport
@@ -64,6 +64,8 @@
/** JMX names of the configured deployers */
ObjectName[] deployerNames;
+ /** Deployment check interval */
+ int timeout = 3000;
// The watch thread
boolean running = false;
@@ -113,6 +115,27 @@
return urlList;
}
+ /**
+ * Gets the Timeout attribute of the AutoDeployer object
+ *
+ * @return The Timeout value
+ */
+ public int getTimeout()
+ {
+ return timeout;
+ }
+
+ /**
+ * Sets the Timeout attribute of the AutoDeployer object
+ *
+ * @param to The new Timeout value
+ */
+ public void setTimeout(int to)
+ {
+ this.timeout = to;
+ }
+
+
public void setDeployers(String deployers)
{
this.deployerList = deployers;
@@ -131,7 +154,7 @@
// Sleep
if (running)
{
- try { Thread.sleep(30000); } catch (InterruptedException e) {}
+ try { Thread.sleep(timeout); } catch (InterruptedException e) {}
}
try
1.4.4.1 +3 -1 jboss/src/main/org/jboss/ejb/Attic/AutoDeployerMBean.java
Index: AutoDeployerMBean.java
===================================================================
RCS file: /cvsroot/jboss/jboss/src/main/org/jboss/ejb/Attic/AutoDeployerMBean.java,v
retrieving revision 1.4
retrieving revision 1.4.4.1
diff -u -r1.4 -r1.4.4.1
--- AutoDeployerMBean.java 2001/04/16 06:03:51 1.4
+++ AutoDeployerMBean.java 2001/11/09 10:36:41 1.4.4.1
@@ -15,7 +15,7 @@
* @see AutoDeployer
* @author Rickard �berg ([EMAIL PROTECTED])
* @author Toby Allsopp ([EMAIL PROTECTED])
- * @version $Revision: 1.4 $
+ * @version $Revision: 1.4.4.1 $
*/
public interface AutoDeployerMBean
extends ServiceMBean
@@ -26,6 +26,8 @@
// Public --------------------------------------------------------
public void setURLs(String urlList);
public String getURLs();
+ public int getTimeout();
+ public void setTimeout(int timeoutMS);
public void setDeployers(String deployers);
public String getDeployers();
}
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development