org.opengts.extra.util
Class Cron.CronJob

java.lang.Object
  extended by org.opengts.extra.util.Cron.CronJob
All Implemented Interfaces:
java.lang.Runnable
Enclosing class:
Cron

public class Cron.CronJob
extends java.lang.Object
implements java.lang.Runnable

CronJob class


Constructor Summary
Cron.CronJob(java.lang.String name, java.lang.String title, java.lang.String[] classPath, java.lang.String className, java.lang.String methName, java.lang.String[] args, Cron.When when, int processMode, java.lang.String processName)
           
 
Method Summary
 java.lang.String[] getArgs()
           
 java.lang.String getClassName()
           
 java.lang.String[] getClassPath()
           
 long getLastStartSec()
           
 long getLastStopSec()
           
 java.lang.String getMethodName()
           
 java.lang.String getName()
           
 int getProcessMode()
           
 java.lang.String getProcessName()
           
 void run()
           
 boolean runInProcess()
           
 boolean runInThread()
           
 boolean testAndRun(java.util.TimeZone tz, ThreadPool threadPool)
           
 java.lang.String toString()
           
 java.lang.String toString(boolean longVers)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Cron.CronJob

public Cron.CronJob(java.lang.String name,
                    java.lang.String title,
                    java.lang.String[] classPath,
                    java.lang.String className,
                    java.lang.String methName,
                    java.lang.String[] args,
                    Cron.When when,
                    int processMode,
                    java.lang.String processName)
             throws java.lang.NoSuchMethodException,
                    java.lang.ClassNotFoundException
Throws:
java.lang.NoSuchMethodException
java.lang.ClassNotFoundException
Method Detail

getName

public java.lang.String getName()

getClassPath

public java.lang.String[] getClassPath()

getClassName

public java.lang.String getClassName()

getMethodName

public java.lang.String getMethodName()

getArgs

public java.lang.String[] getArgs()

getProcessMode

public int getProcessMode()

getProcessName

public java.lang.String getProcessName()

runInThread

public boolean runInThread()

runInProcess

public boolean runInProcess()

testAndRun

public boolean testAndRun(java.util.TimeZone tz,
                          ThreadPool threadPool)

run

public void run()
Specified by:
run in interface java.lang.Runnable

getLastStartSec

public long getLastStartSec()

getLastStopSec

public long getLastStopSec()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

toString

public java.lang.String toString(boolean longVers)