org.apache.jetspeed.scheduler
Class WorkerThread

java.lang.Object
  extended byorg.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 185962 2004-03-08 01:03:33Z jford $
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-2005 Apache Software Foundation. All Rights Reserved.