You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ace.apache.org by "Toni Menzel (JIRA)" <ji...@apache.org> on 2009/10/07 20:21:31 UTC

[jira] Created: (ACE-52) Repeat-aware LogService

Repeat-aware LogService
-----------------------

                 Key: ACE-52
                 URL: https://issues.apache.org/jira/browse/ACE-52
             Project: Ace
          Issue Type: Test
            Reporter: Toni Menzel


Ace has some tasks running that do log things repeatingly all over again, even if the situation has not changed a bit at all (since last second for exampe).
For users this is more annoying that useful. See ACE-35,ACE-37

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (ACE-52) Semaphore like helper for recurring problem notification

Posted by "Toni Menzel (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/ACE-52?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Toni Menzel updated ACE-52:
---------------------------

    Summary: Semaphore like helper for recurring problem notification  (was: Semapthore like helper for recurring problem notification)

> Semaphore like helper for recurring problem notification
> --------------------------------------------------------
>
>                 Key: ACE-52
>                 URL: https://issues.apache.org/jira/browse/ACE-52
>             Project: Ace
>          Issue Type: Test
>            Reporter: Toni Menzel
>         Attachments: ACE-52-Testcase.patch, ACE-52.patch
>
>
> Ace has some tasks running that do log things repeatingly all over again, even if the situation has not changed a bit at all (since last second for exampe).
> For users this is more annoying that useful. See ACE-35,ACE-37.
> Patch attached.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (ACE-52) Repeat-aware Helper

Posted by "Toni Menzel (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/ACE-52?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12763224#action_12763224 ] 

Toni Menzel commented on ACE-52:
--------------------------------

be aware that build.xml needs this additional private package to org.apache.ace.util, but i think the patches would screw up at this point because they interfere with ACE-32.

So, has to be changed to 
privatepackage="org.apache.ace.gateway.log, org.apache.ace.gateway.log.task,org.apache.ace.util"


> Repeat-aware Helper
> -------------------
>
>                 Key: ACE-52
>                 URL: https://issues.apache.org/jira/browse/ACE-52
>             Project: Ace
>          Issue Type: Test
>            Reporter: Toni Menzel
>         Attachments: ACE-52.patch
>
>
> Ace has some tasks running that do log things repeatingly all over again, even if the situation has not changed a bit at all (since last second for exampe).
> For users this is more annoying that useful. See ACE-35,ACE-37.
> Patch to come.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (ACE-52) Repeat-aware Helper

Posted by "Toni Menzel (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/ACE-52?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Toni Menzel updated ACE-52:
---------------------------

    Description: 
Ace has some tasks running that do log things repeatingly all over again, even if the situation has not changed a bit at all (since last second for exampe).
For users this is more annoying that useful. See ACE-35,ACE-37.

Patch to come.

  was:
Ace has some tasks running that do log things repeatingly all over again, even if the situation has not changed a bit at all (since last second for exampe).
For users this is more annoying that useful. See ACE-35,ACE-37.

A delegating LogService Implementation that is aware of this could help here a lot and is of more use than standalone soltions for each case using flags.

Patch to come.

        Summary: Repeat-aware Helper  (was: Repeat-aware LogService)

> Repeat-aware Helper
> -------------------
>
>                 Key: ACE-52
>                 URL: https://issues.apache.org/jira/browse/ACE-52
>             Project: Ace
>          Issue Type: Test
>            Reporter: Toni Menzel
>
> Ace has some tasks running that do log things repeatingly all over again, even if the situation has not changed a bit at all (since last second for exampe).
> For users this is more annoying that useful. See ACE-35,ACE-37.
> Patch to come.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (ACE-52) Repeat-aware Helper

Posted by "Toni Menzel (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/ACE-52?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Toni Menzel updated ACE-52:
---------------------------

    Attachment: ACE-52-Testcase.patch

Some TestNG Tests for the class submitted.

> Repeat-aware Helper
> -------------------
>
>                 Key: ACE-52
>                 URL: https://issues.apache.org/jira/browse/ACE-52
>             Project: Ace
>          Issue Type: Test
>            Reporter: Toni Menzel
>         Attachments: ACE-52-Testcase.patch, ACE-52.patch
>
>
> Ace has some tasks running that do log things repeatingly all over again, even if the situation has not changed a bit at all (since last second for exampe).
> For users this is more annoying that useful. See ACE-35,ACE-37.
> Patch to come.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (ACE-52) Repeat-aware LogService

Posted by "Marcel Offermans (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/ACE-52?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12763195#action_12763195 ] 

Marcel Offermans commented on ACE-52:
-------------------------------------

I think that's a nice solution to the problem, and also reusable in other situations. Looking forward to an implementation for this!

> Repeat-aware LogService
> -----------------------
>
>                 Key: ACE-52
>                 URL: https://issues.apache.org/jira/browse/ACE-52
>             Project: Ace
>          Issue Type: Test
>            Reporter: Toni Menzel
>
> Ace has some tasks running that do log things repeatingly all over again, even if the situation has not changed a bit at all (since last second for exampe).
> For users this is more annoying that useful. See ACE-35,ACE-37.
> A delegating LogService Implementation that is aware of this could help here a lot and is of more use than standalone soltions for each case using flags.
> Patch to come.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (ACE-52) Repeat-aware Helper

Posted by "Toni Menzel (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/ACE-52?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12763233#action_12763233 ] 

Toni Menzel commented on ACE-52:
--------------------------------

oh, the class is missing the ASL header, won't add a new patch for that. Just that you know.

> Repeat-aware Helper
> -------------------
>
>                 Key: ACE-52
>                 URL: https://issues.apache.org/jira/browse/ACE-52
>             Project: Ace
>          Issue Type: Test
>            Reporter: Toni Menzel
>         Attachments: ACE-52.patch
>
>
> Ace has some tasks running that do log things repeatingly all over again, even if the situation has not changed a bit at all (since last second for exampe).
> For users this is more annoying that useful. See ACE-35,ACE-37.
> Patch to come.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (ACE-52) Repeat-aware LogService

Posted by "Toni Menzel (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/ACE-52?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Toni Menzel updated ACE-52:
---------------------------

    Description: 
Ace has some tasks running that do log things repeatingly all over again, even if the situation has not changed a bit at all (since last second for exampe).
For users this is more annoying that useful. See ACE-35,ACE-37.

A delegating LogService Implementation that is aware of this could help here a lot and is of more use than standalone soltions for each case using flags.

Patch to come.

  was:
Ace has some tasks running that do log things repeatingly all over again, even if the situation has not changed a bit at all (since last second for exampe).
For users this is more annoying that useful. See ACE-35,ACE-37


> Repeat-aware LogService
> -----------------------
>
>                 Key: ACE-52
>                 URL: https://issues.apache.org/jira/browse/ACE-52
>             Project: Ace
>          Issue Type: Test
>            Reporter: Toni Menzel
>
> Ace has some tasks running that do log things repeatingly all over again, even if the situation has not changed a bit at all (since last second for exampe).
> For users this is more annoying that useful. See ACE-35,ACE-37.
> A delegating LogService Implementation that is aware of this could help here a lot and is of more use than standalone soltions for each case using flags.
> Patch to come.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (ACE-52) Semaphore like helper for recurring problem notification

Posted by "Toni Menzel (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/ACE-52?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Toni Menzel updated ACE-52:
---------------------------

    Attachment: ACE-52-new.patch

> Semaphore like helper for recurring problem notification
> --------------------------------------------------------
>
>                 Key: ACE-52
>                 URL: https://issues.apache.org/jira/browse/ACE-52
>             Project: Ace
>          Issue Type: Test
>            Reporter: Toni Menzel
>         Attachments: ACE-52-new.patch, ACE-52-Testcase.patch
>
>
> Ace has some tasks running that do log things repeatingly all over again, even if the situation has not changed a bit at all (since last second for exampe).
> For users this is more annoying that useful. See ACE-35,ACE-37.
> Patch attached.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (ACE-52) Semaphore like helper for recurring problem notification

Posted by "Toni Menzel (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/ACE-52?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Toni Menzel updated ACE-52:
---------------------------

    Attachment:     (was: ACE-52.patch)

> Semaphore like helper for recurring problem notification
> --------------------------------------------------------
>
>                 Key: ACE-52
>                 URL: https://issues.apache.org/jira/browse/ACE-52
>             Project: Ace
>          Issue Type: Test
>            Reporter: Toni Menzel
>         Attachments: ACE-52-Testcase.patch
>
>
> Ace has some tasks running that do log things repeatingly all over again, even if the situation has not changed a bit at all (since last second for exampe).
> For users this is more annoying that useful. See ACE-35,ACE-37.
> Patch attached.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (ACE-52) Repeat-aware Helper

Posted by "Toni Menzel (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/ACE-52?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Toni Menzel updated ACE-52:
---------------------------

    Attachment: ACE-52.patch

Ok, this solution works a bit like a semaphore.
Basically make sure to do things just "once" with calling "once()" until someone calls "fixed()" to basically unlock it. Until this time, all calls to "once()" will be denied.

The RecurringProblem class can be used like so:

{code}
..
if (host == null) {
           if (m_delay.once()) {
                m_log.log(LogService.LOG_WARNING, "Unable to synchronize log with remote (endpoint=" + m_endpoint + ") - none available");
            }
            return;
        }
        m_delay.fixed();
{code}

So, now, it happens that logic is more complex and there is more than one problem to be "observed".
Thats why the once()+fixed() combo has once(int)+fixed(int) versions. 
This (int) is just a signature to match "once" calls with "fixed()" calls.

Just have a look at the patched LogSyncTask for an example.




> Repeat-aware Helper
> -------------------
>
>                 Key: ACE-52
>                 URL: https://issues.apache.org/jira/browse/ACE-52
>             Project: Ace
>          Issue Type: Test
>            Reporter: Toni Menzel
>         Attachments: ACE-52.patch
>
>
> Ace has some tasks running that do log things repeatingly all over again, even if the situation has not changed a bit at all (since last second for exampe).
> For users this is more annoying that useful. See ACE-35,ACE-37.
> Patch to come.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (ACE-52) Semapthore like helper for recurring problem notification

Posted by "Toni Menzel (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/ACE-52?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Toni Menzel updated ACE-52:
---------------------------

    Description: 
Ace has some tasks running that do log things repeatingly all over again, even if the situation has not changed a bit at all (since last second for exampe).
For users this is more annoying that useful. See ACE-35,ACE-37.

Patch attached.

  was:
Ace has some tasks running that do log things repeatingly all over again, even if the situation has not changed a bit at all (since last second for exampe).
For users this is more annoying that useful. See ACE-35,ACE-37.

Patch to come.

        Summary: Semapthore like helper for recurring problem notification  (was: Repeat-aware Helper)

> Semapthore like helper for recurring problem notification
> ---------------------------------------------------------
>
>                 Key: ACE-52
>                 URL: https://issues.apache.org/jira/browse/ACE-52
>             Project: Ace
>          Issue Type: Test
>            Reporter: Toni Menzel
>         Attachments: ACE-52-Testcase.patch, ACE-52.patch
>
>
> Ace has some tasks running that do log things repeatingly all over again, even if the situation has not changed a bit at all (since last second for exampe).
> For users this is more annoying that useful. See ACE-35,ACE-37.
> Patch attached.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (ACE-52) Semaphore like helper for recurring problem notification

Posted by "Toni Menzel (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/ACE-52?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Toni Menzel updated ACE-52:
---------------------------

    Issue Type: Task  (was: Test)

> Semaphore like helper for recurring problem notification
> --------------------------------------------------------
>
>                 Key: ACE-52
>                 URL: https://issues.apache.org/jira/browse/ACE-52
>             Project: Ace
>          Issue Type: Task
>            Reporter: Toni Menzel
>         Attachments: ACE-52-new.patch, ACE-52-Testcase.patch
>
>
> Ace has some tasks running that do log things repeatingly all over again, even if the situation has not changed a bit at all (since last second for exampe).
> For users this is more annoying that useful. See ACE-35,ACE-37.
> Patch attached.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (ACE-52) Repeat-aware Helper

Posted by "Toni Menzel (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/ACE-52?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12763231#action_12763231 ] 

Toni Menzel commented on ACE-52:
--------------------------------

Of cause, once we've got RecurringProblem.java in, it should be applied problems in ACE-37 and ACE-38.

> Repeat-aware Helper
> -------------------
>
>                 Key: ACE-52
>                 URL: https://issues.apache.org/jira/browse/ACE-52
>             Project: Ace
>          Issue Type: Test
>            Reporter: Toni Menzel
>         Attachments: ACE-52.patch
>
>
> Ace has some tasks running that do log things repeatingly all over again, even if the situation has not changed a bit at all (since last second for exampe).
> For users this is more annoying that useful. See ACE-35,ACE-37.
> Patch to come.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.