Examples of Scheduler


Examples of com.google.gwt.core.client.Scheduler

    public RulePackageSelector(boolean loadGlobalArea) {
        this.loadGlobalArea = loadGlobalArea;

        packageList = new ListBox();

        Scheduler scheduler = Scheduler.get();

        scheduler.scheduleDeferred( new ScheduledCommand() {
            public void execute() {
                loadPackageList();
            }
        } );
View Full Code Here

Examples of com.google.gwt.core.client.Scheduler

                    final Image busy = new Image( images.searching() );
                    final Label loading = new SmallLabel( constants.loadingList1() );
                    horizontalPanel.add( busy );
                    horizontalPanel.add( loading );

                    Scheduler scheduler = Scheduler.get();
                    scheduler.scheduleDeferred( new Command() {
                        public void execute() {
                            RepositoryServiceFactory.getPackageService().listRulesInPackage( packageName,
                                                                                      createGenericCallback( horizontalPanel,
                                                                                                             ruleNameTextBox,
                                                                                                             busy,
View Full Code Here

Examples of com.google.gwt.core.client.Scheduler

     *
     * @return true if deferred commands are (potentially) being executed, false
     *         otherwise
     */
    private boolean isExecutingDeferredCommands() {
        Scheduler s = Scheduler.get();
        if (s instanceof VSchedulerImpl) {
            return ((VSchedulerImpl) s).hasWorkQueued();
        } else {
            return false;
        }
View Full Code Here

Examples of com.impetus.labs.korus.core.scheduler.Scheduler

   *
   * @return the scheduler from the coreSchedulerList.
   */
  public static Scheduler getNextCoreScheduler()
  {
    Scheduler scheduler = coreSchedulerList[index % numberOfCoreSchedulers];
    index++;
    return scheduler;
  }
View Full Code Here

Examples of com.liferay.portal.job.Scheduler

        if (Validator.isNotNull(portlet.getIndexerClass())) {
          indexerInstance = (Indexer)contextClassLoader.loadClass(
            portlet.getIndexerClass()).newInstance();
        }

        Scheduler schedulerInstance = null;
        if (Validator.isNotNull(portlet.getSchedulerClass())) {
          schedulerInstance = (Scheduler)contextClassLoader.loadClass(
            portlet.getSchedulerClass()).newInstance();
        }
View Full Code Here

Examples of com.microworkflow.execution.Scheduler

  }
  public static void main(String[] args) {
    junit.swingui.TestRunner.run(TestScheduler.class);
  }
  protected void setUp() throws Exception {
    scheduler = new Scheduler();
    results = new Vector();
  }
View Full Code Here

Examples of com.pugh.sockso.music.scheduling.Scheduler

public class SimpleSchedulerTest extends SocksoTestCase {

    public void testShouldRunAt() throws Exception {
        final Properties p = new StringProperties();
        final Scheduler s = new SimpleScheduler( p );
        final DateFormat df = new SimpleDateFormat( "y-M-d H:m:s" );
        p.set( "scheduler.simple.interval", 10 );
        assertTrue( s.shouldRunAt(df.parse("2009-10-10 11:00:00")) );
        assertTrue( s.shouldRunAt(df.parse("2009-10-10 11:10:00")) );
        assertTrue( s.shouldRunAt(df.parse("2009-10-10 12:00:00")) );
        assertFalse( s.shouldRunAt(df.parse("2009-10-10 12:03:00")) );
        assertFalse( s.shouldRunAt(df.parse("2009-10-10 09:31:00")) );
    }
View Full Code Here

Examples of com.quartz.monitor.object.Scheduler

    List<Scheduler> list = quartzInstance.getSchedulerList();
    if (list != null && list.size() > 0)
        {
           for (int i = 0; i < list.size(); i++)
           {
              Scheduler s = (Scheduler) list.get(i);
              if (s.getInstanceId().equals(scheduleID))
              {
                 return s;
              }
           }
        }
View Full Code Here

Examples of com.quartz.monitor.object.Scheduler

  }

  @Override
  public Scheduler getSchedulerByJmx(QuartzInstance quartzInstance, ObjectName objectName)
      throws Exception {
      Scheduler scheduler = new Scheduler();
        MBeanServerConnection connection = quartzInstance.getMBeanServerConnection();
        scheduler.setObjectName(objectName);
        scheduler.setName((String) connection.getAttribute(objectName, "SchedulerName"));
        scheduler.setInstanceId((String) connection.getAttribute(objectName, "SchedulerInstanceId"));
        scheduler.setJobStoreClassName((String) connection.getAttribute(objectName, "JobStoreClassName"));
        scheduler.setThreadPoolClassName((String) connection.getAttribute(objectName, "ThreadPoolClassName"));
        scheduler.setThreadPoolSize((Integer) connection.getAttribute(objectName, "ThreadPoolSize"));
        scheduler.setShutdown((Boolean) connection.getAttribute(objectName, "Shutdown"));
        scheduler.setStarted((Boolean) connection.getAttribute(objectName, "Started"));
        scheduler.setStandByMode((Boolean) connection.getAttribute(objectName, "StandbyMode"));
        scheduler.setQuartzInstanceUUID(quartzInstance.getUuid());
        scheduler.setVersion(this.getVersion(quartzInstance, objectName));
        return scheduler;
  }
View Full Code Here

Examples of com.quartz.monitor.object.Scheduler

      for (ObjectName objectName : names)   // for each scheduler.
      {
         QuartzJMXAdapter jmxAdapter = QuartzJMXAdapterFactory.initQuartzJMXAdapter(objectName, connection);
         quartzInstance.setJmxAdapter(jmxAdapter);

         Scheduler scheduler = jmxAdapter.getSchedulerByJmx(quartzInstance, objectName);
         schList.add(scheduler);

         // attach listener
//         connection.addNotificationListener(objectName, listener, null, null);
         log.info("added listener " + objectName.getCanonicalName());
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.