Package org.cishell.app.service.scheduler

Examples of org.cishell.app.service.scheduler.SchedulerService


  }

  public static SchedulerService getSchedulerService() {
    ServiceReference serviceReference = context
        .getServiceReference(SchedulerService.class.getName());
    SchedulerService manager = null;

    if (serviceReference != null) {
      manager = (SchedulerService) context.getService(serviceReference);
    }
View Full Code Here


        this.conversionRegistration = bundleContext.registerService(
          DataConversionService.class.getName(),
          conversionService,
          new Hashtable<String, Object>());
       
        SchedulerService scheduler = new SchedulerServiceImpl();
        this.schedulerRegistration = bundleContext.registerService(
          SchedulerService.class.getName(), scheduler, new Hashtable<String, Object>());

        DataManagerService dataManager = new DataManagerServiceImpl();
        this.dataManagerRegistration = bundleContext.registerService(
View Full Code Here

       
        dmReg.open();
        eventReg.open();
        schedulerReg.open();
       
        SchedulerService scheduler = (SchedulerService) schedulerReg.getService();
        scheduler.addSchedulerListener(this);
    }
View Full Code Here

    /**
     * @see org.cishell.remoting.service.framework.AlgorithmRegistry#execute(String, String)
     */
    public void execute(String sessionID, String algorithmID) {
        SchedulerService scheduler = (SchedulerService) schedulerReg.getService();
       
        WrapperAlgorithm alg = new WrapperAlgorithm(getAlgorithm(algorithmID),
                sessionID, algorithmID);
       
        scheduler.runNow(alg, null);
    }
View Full Code Here

    return context;
  }
 
  protected static SchedulerService getSchedulerService() {
    ServiceReference serviceReference = context.getServiceReference(SchedulerService.class.getName());
    SchedulerService manager = null;
   
    if (serviceReference != null) {
      manager = (SchedulerService) context.getService(serviceReference);
    }
   
View Full Code Here

              this.bundleContext,
              this.ciShellContext,
              this.originalData,
              this.data,
              this.converters);
            SchedulerService scheduler = (SchedulerService) getService(SchedulerService.class);
           
            scheduler.schedule(algorithm, uniqueServiceReference);
        } catch (Throwable exception) {
          // Just in case an uncaught exception occurs. Eclipse will swallow errors thrown here.
            exception.printStackTrace();
        }
    }
View Full Code Here

TOP

Related Classes of org.cishell.app.service.scheduler.SchedulerService

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.