org.opengts.extra.util
Class Cron.CronJob
java.lang.Object
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)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
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
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)