roller-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Glen Mazza (JIRA)" <j...@apache.org>
Subject [jira] [Closed] (ROL-1153) PingQueueManager: add convenience method addQueueEntries
Date Sun, 06 Jul 2014 00:11:33 GMT

     [ https://issues.apache.org/jira/browse/ROL-1153?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Glen Mazza closed ROL-1153.
---------------------------

    Resolution: Not a Problem

Item from 2006.  Pinging is not heavily used today, and the present implementation does not
look that bad.  We don't have AutoPingData anymore but just List<AutoPing>, and splitting
out the iteration to AutoPingManager.queueApplicableAutoPings() at least allows any exceptions
from PingQueueManager for a single queuing to be able to percolate to AutoPingManager.

> PingQueueManager: add convenience method addQueueEntries
> --------------------------------------------------------
>
>                 Key: ROL-1153
>                 URL: https://issues.apache.org/jira/browse/ROL-1153
>             Project: Apache Roller
>          Issue Type: Improvement
>          Components: Data Model & JPA Backend
>            Reporter: Craig L Russell
>            Assignee: Roller Unassigned
>            Priority: Minor
>
> Currently, method AutoPingManager.queueApplicableAutoPings delegates to PingQueueManager
but there is no method that takes a collection of AutoPingData.
> Would it make sense to add a method:
> public void addQueueEntries(Collection) throws RollerException;
> so as to put the iteration logic into PingQueueManager instead of AutoPingManager?
> The implementation is trivial:
> void addQueueEntries(Collection c) throws RollerException {
>         for (Iterator i = c.iterator(); i.hasNext(); ) {
>             AutoPingData autoPing = (AutoPingData) i.next();
>             addQueueEntry(autoPing);
>         }



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message