org.apache.sling.event.impl.jobs
Class MaintenanceTask

java.lang.Object
  extended by org.apache.sling.event.impl.jobs.MaintenanceTask

public class MaintenanceTask
extends Object

Maintenance task... In the default configuration, this task runs every minute


Constructor Summary
MaintenanceTask(JobManagerConfiguration config, org.apache.sling.api.resource.ResourceResolverFactory factory)
          Constructor
 
Method Summary
 void reassignJob(JobImpl job, String targetId)
          Reassign a job to a different target
 void run(TopologyCapabilities topologyCapabilities, QueueConfigurationManager queueManager, long cleanUpCounter)
          One maintenance run
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MaintenanceTask

public MaintenanceTask(JobManagerConfiguration config,
                       org.apache.sling.api.resource.ResourceResolverFactory factory)
Constructor

Method Detail

run

public void run(TopologyCapabilities topologyCapabilities,
                QueueConfigurationManager queueManager,
                long cleanUpCounter)
One maintenance run


reassignJob

public void reassignJob(JobImpl job,
                        String targetId)
Reassign a job to a different target

Parameters:
job - The job
targetId - New target or null if unknown


Copyright © 2007-2013 The Apache Software Foundation. All Rights Reserved.