Examples of runNow()


Examples of com.dotcms.enterprise.publishing.sitesearch.SiteSearchConfig.runNow()

    String taskName = ((String[]) map.get("QUARTZ_JOB_NAME"))[0];
    String taskPreviousName = map.get("OLD_QUARTZ_JOB_NAME")!=null ? ((String[]) map.get("OLD_QUARTZ_JOB_NAME"))[0] : "";

    if(UtilMethods.isSet(taskPreviousName) && !taskName.equals(taskPreviousName)){
      try {
        if(!config.runNow()){
          APILocator.getSiteSearchAPI().deleteTask(taskPreviousName);
        }
      } catch (Exception e) {
        Logger.error(SiteSearchAjaxAction.class,e.getMessage(),e);
        writeError(response, e.getMessage());
View Full Code Here

Examples of com.dotcms.enterprise.publishing.sitesearch.SiteSearchConfig.runNow()

      }
    }

    try {
      if(config.runNow()){
        APILocator.getSiteSearchAPI().executeTaskNow(config);
         String date = DateUtil.getCurrentDate();
                 ActivityLogger.logInfo(getClass(), "Job Started", "User:" + getUser().getUserId() + "; Date: " + date + "; Job Identifier: " + SiteSearchAPI.ES_SITE_SEARCH_NAME  );
                 AdminLogger.log(getClass(), "Job Started", "User:" + getUser().getUserId() + "; Date: " + date + "; Job Identifier: " + SiteSearchAPI.ES_SITE_SEARCH_NAME );
      }
View Full Code Here

Examples of com.dotcms.publisher.pusher.PushPublisherConfig.runNow()

            //Queries creation
            pconf.setLuceneQueries(PublisherUtil.prepareQueries(tempBundleContents));
            pconf.setId(tempBundleId);
            pconf.setUser(APILocator.getUserAPI().getSystemUser());
            pconf.setStartDate(new Date());
            pconf.runNow();

            pconf.setPublishers(clazz);
//            pconf.setEndpoints(endpoints);

                        if ( Integer.parseInt( bundle.get( "operation" ).toString() ) == PublisherAPI.ADD_OR_UPDATE_ELEMENT ) {
View Full Code Here

Examples of org.cishell.app.service.scheduler.SchedulerService.runNow()

        SchedulerService scheduler = (SchedulerService) schedulerReg.getService();
       
        WrapperAlgorithm alg = new WrapperAlgorithm(getAlgorithm(algorithmID),
                sessionID, algorithmID);
       
        scheduler.runNow(alg, null);
    }

    /**
     * @see org.cishell.remoting.service.framework.AlgorithmRegistry#getAlgorithm(String)
     */
 
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.