org.apache.jetspeed.scheduler
Class WorkerThread

java.lang.Object
  extended by org.apache.jetspeed.scheduler.WorkerThread
All Implemented Interfaces:
Runnable

public class WorkerThread
extends Object
implements Runnable

Wrapper for a JobEntry to actually perform the job's action.

Version:
$Id: WorkerThread.java 516448 2007-03-09 16:25:47Z ate $
Author:
Dave Bryson, Daniel Rall

Field Summary
private  JobEntry je
          The JobEntry to run.
 
Constructor Summary
WorkerThread(JobEntry je)
          Creates a new worker to run the specified JobEntry.
 
Method Summary
private  void logStateChange(String state)
          Macro to log JobEntry status information.
 void run()
          Run the job.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

je

private JobEntry je
The JobEntry to run.

Constructor Detail

WorkerThread

public WorkerThread(JobEntry je)
Creates a new worker to run the specified JobEntry.

Parameters:
je - The JobEntry to create a worker for.
Method Detail

run

public void run()
Run the job.

Specified by:
run in interface Runnable

logStateChange

private final void logStateChange(String state)
Macro to log JobEntry status information.

Parameters:
state - The new state of the JobEntry.


Copyright © 1999-2007 Apache Software Foundation. All Rights Reserved.