[jbosstools-issues] [JBoss JIRA] (JBIDE-9359) Refactor PollThread so that it does not call server behavior but informs a listener

Martin Malina (JIRA) jira-events at lists.jboss.org
Thu Apr 5 05:51:47 EDT 2012


     [ https://issues.jboss.org/browse/JBIDE-9359?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Martin Malina closed JBIDE-9359.
--------------------------------


    
> Refactor PollThread so that it does not call server behavior but informs a listener
> -----------------------------------------------------------------------------------
>
>                 Key: JBIDE-9359
>                 URL: https://issues.jboss.org/browse/JBIDE-9359
>             Project: Tools (JBoss Tools)
>          Issue Type: Enhancement
>          Components: JBossAS/Servers
>    Affects Versions: 3.3.0.M3
>            Reporter: Andre Dietisheim
>            Assignee: Andre Dietisheim
>             Fix For: 3.3.0.M3
>
>
> The current impl of PollThread is instantiated by the server behavior and then calls the server behavior again (calls stop(force) on it). This is pretty much not what a dumb user programmer would expect. He would expect the poll thread to poll and return it's result to its caller. Furthermore this is not ideal in terms of separations of concerns, since the poll thread implements a strategy to apply if the polling did not reach the expected state (server is up / server is down). A proper design would be to have a poller that polls for the state only and then passes back to the server behavior that then decides what to do in these cases.
> We can achieve this by replacing the call to the behavior by a listener.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jbosstools-issues mailing list