[jbosstools-issues] [JBoss JIRA] (JBIDE-9358) PollThread: separate alerting behaviour from alerting event log
Martin Malina (JIRA)
jira-events at lists.jboss.org
Thu Apr 5 10:14:47 EDT 2012
[ https://issues.jboss.org/browse/JBIDE-9358?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Martin Malina closed JBIDE-9358.
--------------------------------
> PollThread: separate alerting behaviour from alerting event log
> ---------------------------------------------------------------
>
> Key: JBIDE-9358
> URL: https://issues.jboss.org/browse/JBIDE-9358
> 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 does inform the event log in a method that does alert the server behavior of the outcome of the polling ( if(finalAlert) ... ) in #alertBehavior:
> {code}
> protected void alertBehavior(boolean currentState, boolean finalAlert) {
> if (currentState != expectedState) {
> // it didnt work... cancel all processes! force stop
> behavior.stop(true);
> if (finalAlert)
> alertEventLogFailure();
> } else {
> if (currentState == IServerStatePoller.SERVER_UP)
> behavior.setServerStarted();
> else
> behavior.stop(true);
> if (finalAlert)
> alertEventLogSuccess(currentState);
> }
> }
> {code}
> This shall be separated into into its own method.
--
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