Search in sources :

Example 1 with FeedTaskSplit

use of org.alfresco.repo.activities.feed.FeedTaskSplit in project alfresco-repository by Alfresco.

the class LocalFeedTaskSplitter method split.

public Collection<FeedGridJob> split(int gridSize, Object o) throws Exception {
    FeedTaskSplit feedSplitter = new FeedTaskSplit();
    Collection<JobSettings> jobs = feedSplitter.split(gridSize, (JobSettings) o);
    List<FeedGridJob> gridJobs = new ArrayList<FeedGridJob>(jobs.size());
    for (JobSettings job : jobs) {
        LocalFeedGridJob gridJob = new LocalFeedGridJob();
        gridJob.setFeedTaskProcessor(feedTaskProcessor);
        gridJob.setArgument(job);
        gridJobs.add(gridJob);
    }
    return gridJobs;
// return (Collection<FeedGridJob>)feedSplitter.split(gridSize, (JobSettings)o, new LocalFeedGridJob());
}
Also used : FeedTaskSplit(org.alfresco.repo.activities.feed.FeedTaskSplit) JobSettings(org.alfresco.repo.activities.feed.JobSettings) ArrayList(java.util.ArrayList) FeedGridJob(org.alfresco.repo.activities.feed.FeedGridJob)

Aggregations

ArrayList (java.util.ArrayList)1 FeedGridJob (org.alfresco.repo.activities.feed.FeedGridJob)1 FeedTaskSplit (org.alfresco.repo.activities.feed.FeedTaskSplit)1 JobSettings (org.alfresco.repo.activities.feed.JobSettings)1