Package org.exoplatform.services.scheduler

Examples of org.exoplatform.services.scheduler.Task


  
   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);
         }
View Full Code Here


{
   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();
         }
View Full Code Here

TOP

Related Classes of org.exoplatform.services.scheduler.Task

Copyright © 2018 www.massapicom. 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.