Package commonj.work

Examples of commonj.work.Work


        WorkListener listener = createStrictMock(WorkListener.class);
        listener.workAccepted(isA(WorkEvent.class));
        listener.workStarted(isA(WorkEvent.class));
        listener.workCompleted(isA(WorkEvent.class));
        replay(listener);
        Work work = createMock(Work.class);
        work.run();
        expectLastCall().andStubAnswer(new IAnswer<Object>() {
            public Object answer() throws Throwable {
                latch.countDown();
                throw new RuntimeException();
            }
View Full Code Here


      ProcessesStatusContainer processesStatusContainer = ProcessesStatusContainer.getInstance();
      Object o=processesStatusContainer.getPidContainerMap().get(pId);
      CommonjWorkContainer container=(CommonjWorkContainer)o;

      WorkManager wm=container.getWm();
      Work workToDo=container.getWork();
      CommonjWorkListener listener=container.getListener();
      FooRemoteWorkItem fooRemoteWorkItem=wm.buildFooRemoteWorkItem(workToDo, listener);

      int statusWI;
View Full Code Here

    private String workManagerName;
    private WorkManager workManager;

    public void execute(Thread thread) {
        Work work = new org.quartz.commonj.DelegatingWork(thread);
        try {
            this.workManager.schedule(work);
        } catch (Exception e) {
            log.error("Error attempting to schedule QuartzSchedulerThread: " + e.getMessage(), e);
        }
View Full Code Here

  //-------------------------------------------------------------------------

  @Override
  public void execute(Runnable task) {
    Assert.state(this.workManager != null, "No WorkManager specified");
    Work work = new DelegatingWork(task);
    try {
      if (this.workListener != null) {
        this.workManager.schedule(work, this.workListener);
      }
      else {
View Full Code Here

  // Implementation of the Spring SchedulingTaskExecutor interface
  //-------------------------------------------------------------------------

  public void execute(Runnable task) {
    Assert.state(this.workManager != null, "No WorkManager specified");
    Work work = new DelegatingWork(task);
    try {
      if (this.workListener != null) {
        this.workManager.schedule(work, this.workListener);
      }
      else {
View Full Code Here

TOP

Related Classes of commonj.work.Work

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.