Examples of WorkEvent


Examples of com.googlecode.richrest.client.event.WorkEvent

        foreWorks.remove(work);
      }
      synchronized (backWorks) {
        backWorks.add(work);
      }
      workPublisher.publishEvent(new WorkEvent(this, work));
    }
View Full Code Here

Examples of com.googlecode.richrest.client.event.WorkEvent

      synchronized (foreWorks) {
        foreWorks.add(work);
      }
    }
    work.working(new Backer(work));
    workPublisher.publishEvent(new WorkEvent(this, work));
  }
View Full Code Here

Examples of com.googlecode.richrest.client.event.WorkEvent

    }
    synchronized (backWorks) {
      backWorks.remove(work);
    }
    work.worked();
    workPublisher.publishEvent(new WorkEvent(this, work));
  }
View Full Code Here

Examples of commonj.work.WorkEvent

     */
    private void workAccepted(final WorkItemImpl workItem, final Work work) {
        WorkListener listener = workItems.get(workItem);
        if (listener != null) {
            workItem.setStatus(WorkEvent.WORK_ACCEPTED);
            WorkEvent event = new WorkEventImpl(workItem);
            listener.workAccepted(event);
        }
    }
View Full Code Here

Examples of commonj.work.WorkEvent

     */
    private void workStarted(final WorkItemImpl workItem, final Work work) {
        WorkListener listener = workItems.get(workItem);
        if (listener != null) {
            workItem.setStatus(WorkEvent.WORK_STARTED);
            WorkEvent event = new WorkEventImpl(workItem);
            listener.workStarted(event);
        }
    }
View Full Code Here

Examples of commonj.work.WorkEvent

        WorkListener listener = workItems.get(workItem);
        if (listener != null) {
            workItem.setStatus(WorkEvent.WORK_COMPLETED);
            workItem.setResult(work);
            workItem.setException(exception);
            WorkEvent event = new WorkEventImpl(workItem);
            listener.workCompleted(event);
            workItems.remove(workItem);
        }
    }
View Full Code Here

Examples of commonj.work.WorkEvent

   public synchronized WorkItem schedule( Work         work,
                                          WorkListener listener )
   throws WorkException,
          IllegalArgumentException
   {
      WorkEvent event;

      if ( work == null )
      {
         throw new IllegalArgumentException( MSG.getMessage( Keys.NULL_WORK) );
      }
View Full Code Here

Examples of commonj.work.WorkEvent

       */
      public void run(  )
      { //todo fix this
         WorkItem  workItem = new WorkItemImpl(  );

         WorkEvent event = new WorkEventImpl( WorkEvent.WORK_STARTED, workItem );
         processEvent( event );
         if ( this.listener != null )
         {
            this.listener.workStarted( event );
         }
View Full Code Here

Examples of commonj.work.WorkEvent

   public synchronized WorkItem schedule( Work         work,
                                          WorkListener listener )
   throws WorkException,
          IllegalArgumentException
   {
      WorkEvent event;

      if ( work == null )
      {
         throw new IllegalArgumentException( MSG.getMessage( Keys.NULL_WORK) );
      }
View Full Code Here

Examples of commonj.work.WorkEvent

       */
      public void run(  )
      { //todo fix this
         WorkItem  workItem = new WorkItemImpl(  );

         WorkEvent event = new WorkEventImpl( WorkEvent.WORK_STARTED, workItem );
         processEvent( event );
         if ( this.listener != null )
         {
            this.listener.workStarted( event );
         }
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.