Examples of QueueTasks


Examples of org.exoplatform.services.scheduler.QueueTasks

   private static final Log LOG = ExoLogger.getLogger("org.exoplatform.services.scheduler.impl.QueueTaskJob");
  
   public void execute(JobContext context) throws Exception
   {
      PortalContainer manager = PortalContainer.getInstance();
      QueueTasks qtasks = (QueueTasks)manager.getComponentInstanceOfType(QueueTasks.class);
      Task task = qtasks.poll();
      while (task != null)
      {
         try
         {
            task.execute();
         }
         catch (Exception ex)
         {
            LOG.error(ex.getLocalizedMessage(), ex);
         }
         task = qtasks.poll();
      }
   }
View Full Code Here

Examples of org.exoplatform.services.scheduler.QueueTasks

public class QueueTaskJob extends BaseJob
{
   public void execute(JobContext context) throws Exception
   {
      PortalContainer manager = PortalContainer.getInstance();
      QueueTasks qtasks = (QueueTasks)manager.getComponentInstanceOfType(QueueTasks.class);
      Task task = qtasks.poll();
      while (task != null)
      {
         try
         {
            task.execute();
         }
         catch (Exception ex)
         {
            ex.printStackTrace();
         }
         task = qtasks.poll();
      }
   }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.