org.apache.turbine.services.schedule
Class WorkerThread

java.lang.Object
  |
  +--org.apache.turbine.services.schedule.WorkerThread
All Implemented Interfaces:
java.lang.Runnable

public class WorkerThread
extends java.lang.Object
implements java.lang.Runnable

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

Version:
$Id: WorkerThread.java,v 1.1.1.1 2001/08/16 05:09:15 jvanzyl Exp $
Author:
Dave Bryson, Daniel Rall

Field Summary
private  JobEntry je
          The JobEntry to run.
private  Logger logger
          The Logger facility to use.
 
Constructor Summary
WorkerThread(JobEntry je)
          Creates a new worker to run the specified JobEntry.
 
Method Summary
private  void logStateChange(java.lang.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, registerNatives, toString, wait, wait, wait
 

Field Detail

je

private JobEntry je
The JobEntry to run.

logger

private Logger logger
The Logger facility to use.
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 java.lang.Runnable

logStateChange

private final void logStateChange(java.lang.String state)
Macro to log JobEntry status information.
Parameters:
state - The new state of the JobEntry.


Copyright © 2000-2002 Apache Software Foundation. All Rights Reserved.