com.beetle.framework.appsrv
Class AppTask

java.lang.Object
  extended bycom.beetle.framework.appsrv.AppTask

public abstract class AppTask
extends java.lang.Object

Title: BeetleSoft Framework

Description: 应用任务(job)抽象类

Copyright: Copyright (c) 2003

Company: 甲壳虫软件

Version:
1.0
Author:
余浩东

Constructor Summary
AppTask()
           
 
Method Summary
abstract  void doTask()
          doTask--执行任务的抽象方法,在此方法内实现任务代码
 void execute(JobExecutionContext jobExecutionContext)
           
 java.util.Date getFireTime()
          The actual time the trigger fired.
 java.util.Date getNextFireTime()
          获取将被执行的时间
 java.util.Date getPreviousFireTime()
          获取上一次被执行的时间
 java.lang.String getTaskName()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AppTask

public AppTask()
Method Detail

getPreviousFireTime

public java.util.Date getPreviousFireTime()
获取上一次被执行的时间

Returns:
Date

getNextFireTime

public java.util.Date getNextFireTime()
获取将被执行的时间

Returns:
Date

getFireTime

public java.util.Date getFireTime()
The actual time the trigger fired. For instance the scheduled time may have been 10:00:00 but the actual fire time may have been 10:00:03 if the scheduler was too busy.

Returns:
Date

doTask

public abstract void doTask()
doTask--执行任务的抽象方法,在此方法内实现任务代码


execute

public final void execute(JobExecutionContext jobExecutionContext)
                   throws JobExecutionException
Throws:
JobExecutionException

getTaskName

public java.lang.String getTaskName()