solar.service.fork
Class TaskBatch

java.lang.Object
  |
  +--solar.service.fork.TaskBatch

public class TaskBatch
extends java.lang.Object

A class contains batch jobs defined in a cfg file.

Version:
$Id: TaskBatch.java,v 1.2 2003/10/08 22:53:22 glchen Exp $
Author:
Guanling Chen

Nested Class Summary
(package private) static interface TaskBatch.BatchListener
           
(package private)  class TaskBatch.RepeatParam
           
 
Field Summary
(package private)  TaskBatch.BatchListener _listener
           
(package private) static org.apache.log4j.Logger _log
           
(package private)  TaskBatch.RepeatParam _param
           
(package private)  int _repeat
           
(package private)  java.util.List _tasks
           
 
Constructor Summary
TaskBatch(java.lang.String taskfile, TaskBatch.BatchListener listener)
           
 
Method Summary
private  void parse(java.lang.String taskfile)
           
 void run()
           
protected  void runOneRound(java.lang.String param, java.lang.String value)
           
 void taskFinished(Task task)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_log

static org.apache.log4j.Logger _log

_repeat

int _repeat

_param

TaskBatch.RepeatParam _param

_tasks

java.util.List _tasks

_listener

TaskBatch.BatchListener _listener
Constructor Detail

TaskBatch

public TaskBatch(java.lang.String taskfile,
                 TaskBatch.BatchListener listener)
          throws java.lang.Exception
Method Detail

run

public void run()
         throws java.lang.Exception
java.lang.Exception

runOneRound

protected void runOneRound(java.lang.String param,
                           java.lang.String value)
                    throws java.lang.Exception
java.lang.Exception

taskFinished

public void taskFinished(Task task)

parse

private void parse(java.lang.String taskfile)
            throws java.lang.Exception
java.lang.Exception