org.alfresco.bm.event
Class EventWork

java.lang.Object
  extended by org.alfresco.bm.event.EventWork
All Implemented Interfaces:
Runnable

public class EventWork
extends Object
implements Runnable

A unit of work that can be executed by the event processing threads. It delegates to the event processor, which does not need to know anything about the events or event recording.

Since:
1.0
Author:
Derek Hulley

Constructor Summary
EventWork(String serverId, String testRunFqn, Event event, EventProcessor processor, EventService eventService, ResultService resultService)
          Construct work to be executed by a thread
 
Method Summary
 void run()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EventWork

public EventWork(String serverId,
                 String testRunFqn,
                 Event event,
                 EventProcessor processor,
                 EventService eventService,
                 ResultService resultService)
Construct work to be executed by a thread

Parameters:
serverId - the identifier of the server process handling the event
testRunFqn - the fully qualified name of the test run initiating the work
event - the event to be processed
processor - the component that will do the actual processing
eventService - the queue events that will be updated with new events
resultService - the service to store results of the execution
Method Detail

run

public void run()
Specified by:
run in interface Runnable


Copyright © 2012. All Rights Reserved.