[jboss-jira] [JBoss JIRA] Resolved: (JBAS-8071) HDScanner's setScanEnabled() method Fails to enable scanning on first invocation
Mike Clark (JIRA)
jira-events at lists.jboss.org
Sat Jun 5 00:14:25 EDT 2010
[ https://jira.jboss.org/browse/JBAS-8071?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Mike Clark resolved JBAS-8071.
------------------------------
Fix Version/s: 6.0.0.M4
Resolution: Done
> HDScanner's setScanEnabled() method Fails to enable scanning on first invocation
> ---------------------------------------------------------------------------------
>
> Key: JBAS-8071
> URL: https://jira.jboss.org/browse/JBAS-8071
> Project: JBoss Application Server
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: Other
> Affects Versions: 6.0.0.M3
> Reporter: Mike Clark
> Assignee: Mike Clark
> Fix For: 6.0.0.M4
>
>
> he org.jboss.system.server.profileservice.hotdeploy.HDScanner bean's setScanEnabled() method fails when setting to "true" if it was previously set to "false" When enabling, the setter calls the start():
> public synchronized void setScanEnabled(boolean scanEnabled)
> {
> if (scanEnabled == true && activeScan == null && scanExecutor != null)
> {
> start();
> }
> else if (scanEnabled == false && activeScan != null)
> {
> stop();
> }
> this.scanEnabled = scanEnabled;
> }
> However, if the scanEnabled member variable (this.scanEnabled) is false this call does nothing:
> public void start()
> {
> if (scanEnabled)
> {
> activeScan = scanExecutor.scheduleWithFixedDelay(this, 0, scanPeriod, TimeUnit.MILLISECONDS);
> }
> }
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list