Examples of schedule()


Examples of com.sun.hotspot.igv.data.services.Scheduler.schedule()

        WidgetAction selectAction = new ExtendedSelectAction(selectProvider);
        Diagram d = getModel().getDiagramToView();

        if (getModel().getShowBlocks()) {
            Scheduler s = Lookup.getDefault().lookup(Scheduler.class);
            Collection<InputBlock> newBlocks = new ArrayList<InputBlock>(s.schedule(d.getGraph()));
            d.schedule(newBlocks);
        }

        for (Figure f : d.getFigures()) {
            FigureWidget w = new FigureWidget(f, this, mainLayer);
View Full Code Here

Examples of com.sun.hotspot.igv.graph.Diagram.schedule()

        Diagram d = getModel().getDiagramToView();

        if (getModel().getShowBlocks()) {
            Scheduler s = Lookup.getDefault().lookup(Scheduler.class);
            Collection<InputBlock> newBlocks = new ArrayList<InputBlock>(s.schedule(d.getGraph()));
            d.schedule(newBlocks);
        }

        for (Figure f : d.getFigures()) {
            FigureWidget w = new FigureWidget(f, this, mainLayer);
            w.getActions().addAction(selectAction);
View Full Code Here

Examples of com.sun.jini.thread.WakeupManager.schedule()

     */
    public void run() throws Exception {
        WakeupManager manager = new WakeupManager();
        long badTaskTime = System.currentTimeMillis() + (10*1000);
        long goodTaskTime = badTaskTime + (10*1000);
        manager.schedule(badTaskTime, new Runnable() {
            public void run() {
                throw new RuntimeException("Expected Exception");
            }
        });
        final boolean result[] = new boolean[]{false};
View Full Code Here

Examples of com.sun.messaging.jmq.util.timer.MQTimer.schedule()

                    boolean done = reaper.processTxns();

                    MQTimer timer = Globals.getTimer();
                    try {
                        if (!done)
                            timer.schedule(reaper, reaperTimeout, reaperTimeout);

                    } catch (IllegalStateException ex) {
                        logger.logStack(Logger.WARNING,
                            BrokerResources.E_INTERNAL_BROKER_ERROR,
                            "Unable to start takeover-transaction reaper", ex);
View Full Code Here

Examples of com.webobjects.appserver.WOTimer.schedule()

        NSLog.out.appendln("Instance will live " + timeToLive + " seconds.");
        // add a fudge factor of around 10 minutes
        timeToLive += Math.random() * 600;
        NSTimestamp exitDate = (new NSTimestamp()).timestampByAddingGregorianUnits(0, 0, 0, 0, 0, timeToLive);
        WOTimer t = new WOTimer(exitDate, 0, this, "killInstance", null, null, false);
        t.schedule();
      }
      int timeToDie = ERXProperties.intForKey("ERTimeToDie");
      if (timeToDie > 0) {
        log.info("Instance will not live past " + timeToDie + ":00.");
        NSLog.out.appendln("Instance will not live past " + timeToDie + ":00.");
View Full Code Here

Examples of commonj.timers.TimerManager.schedule()

        //scale and translate the random to get a number between 1 and 3 mins
        double doubleLength = m_random.nextDouble() * 120000.0 + 60000.0;
        //long doubleLength = 20000; //for debug only...
        long lengthOfTime = (long) doubleLength;
        TimerManager tm = new TimerManagerImpl();
        m_timer = tm.schedule(this, lengthOfTime);
    }

    public void timerExpired(Timer timer)
    {

View Full Code Here

Examples of commonj.work.WorkManager.schedule()

public class Jsr237WorkSchedulerTestCase extends TestCase {

    public void testSchedule() throws Exception {
        WorkItem item = createMock(WorkItem.class);
        WorkManager mgr = createMock(WorkManager.class);
        mgr.schedule(isA(Work.class));
        expectLastCall().andReturn(item);
        replay(mgr);
        Jsr237WorkScheduler scheduler = new Jsr237WorkScheduler(mgr);
        Work work = createMock(Work.class);
        scheduler.scheduleWork(work);
View Full Code Here

Examples of de.iritgo.aktera.scheduler.Scheduleable.schedule()

    String beanName = (String) jobDetail.getJobDataMap().get("bean");
    Map parameters = (Map) jobDetail.getJobDataMap().get("parameters");

    Scheduleable scheduleable = (Scheduleable) KeelContainer.defaultContainer().getSpringBean(beanName);

    scheduleable.schedule(parameters);
  }
}
View Full Code Here

Examples of de.novanic.eventservice.client.event.command.schedule.GWTCommandScheduler.schedule()

        final GWTCommandScheduler.GWTCommandTimer theTimerDummy = new GWTCommandTimerDummy(theClientCommand);
        PowerMockito.whenNew(GWTCommandScheduler.GWTCommandTimer.class).withArguments(theClientCommand).thenReturn(theTimerDummy);

        assertFalse(theClientCommand.isExecuted);

        theGWTCommandScheduler.schedule(theClientCommand);

        assertTrue(theClientCommand.isExecuted);
    }

    private class ClientCommandDummy implements ClientCommand<Void>
View Full Code Here

Examples of de.uni_mannheim.swt.codeconjurer.domain.search.Search.schedule()

      concurrencyRule = new ParallelSearchPrevention();
      searchJobs.put(editor, concurrencyRule);
    }
    search.setRule(concurrencyRule);
    search.setPriority(Job.LONG);
    search.schedule(1000);
  }

  /**
   * Returns the search corresponding to the active editor
   *
 
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.