Package com.dotcms.enterprise.publishing.sitesearch

Examples of com.dotcms.enterprise.publishing.sitesearch.SiteSearchPublishStatus


        SiteSearchAPI ssapi = APILocator.getSiteSearchAPI();
        json.append("[");
        for(ScheduledTask task : ssapi.getTasks()){
            int progress=-1, max=-1;
            if(ssapi.isTaskRunning(task.getJobName())){
                SiteSearchPublishStatus ps = ssapi.getTaskProgress(task.getJobName());
                progress=ps.getCurrentProgress() + ps.getBundleErrors();
                max=ps.getTotalBundleWork();
            }
            json.append("{jobname:'").append(task.getJobName()).append("'")
                .append(",progress:").append(progress).append(",max:").append(max)
                .append("},");
        }
View Full Code Here


public class SiteSearchJobProxy extends DotStatefulJob {
 

  public void run(JobExecutionContext jobContext) throws JobExecutionException {   
    SiteSearchJobImpl jobImpl = new SiteSearchJobImpl();
    SiteSearchPublishStatus status = null;
    TaskRuntimeValues trv = QuartzUtils.getTaskRuntimeValues(jobContext.getJobDetail().getName(), jobContext.getJobDetail().getGroup());
    if(trv ==null || !(trv instanceof SiteSearchPublishStatus)){
      status = new SiteSearchPublishStatus();
      QuartzUtils.setTaskRuntimeValues(jobContext.getJobDetail().getName(), jobContext.getJobDetail().getGroup(), status);
    }
    status = (SiteSearchPublishStatus) QuartzUtils.getTaskRuntimeValues(jobContext.getJobDetail().getName(), jobContext.getJobDetail().getGroup());
   
View Full Code Here

TOP

Related Classes of com.dotcms.enterprise.publishing.sitesearch.SiteSearchPublishStatus

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.