com.ibm.di.trigger
Class TimerTrigger
java.lang.Object
java.lang.Thread
com.ibm.di.server.Monitor
com.ibm.di.trigger.Trigger
com.ibm.di.trigger.TimerTrigger
- All Implemented Interfaces:
- VersionInfoInterface, TriggerInterface, Runnable
public class TimerTrigger
- extends Trigger
- implements TriggerInterface
Methods inherited from class com.ibm.di.trigger.Trigger |
addEventListener, callFunction, close, declareBean, dump, dumpEntry, execScript, fireEvent, getConfig, getEventHandlerListener, getExitRequested, getLog, getLogCategory, getParam, getParent, getStats, includeAllScripts, loadParser, logmonitor, logmsg, logmsg, removeEventHandlerListener, removeEventListener, setConfig, setEventHandlerListener, setExitRequested, setLogCategory, setParam, setParameters, setParent, undeclareBean |
Methods inherited from class com.ibm.di.server.Monitor |
addActionListener, addThread, allThreadsStopped, fireListener, removeActionListener, removeThread, runningALs, runningEHs, setMonitorMessage, threadStarted, threadStopped |
Methods inherited from class java.lang.Thread |
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield |
Methods inherited from interface com.ibm.di.trigger.TriggerInterface |
getConfig, getEventHandlerListener, getLog, getName, getParent, getStats, removeEventHandlerListener, setConfig, setEventHandlerListener, setExitRequested, setName, setParent, start |
TimerTrigger
public TimerTrigger()
getParameters
public String[][] getParameters()
- Description copied from class:
Trigger
- Returns the trigger's parameters.
- Overrides:
getParameters
in class Trigger
run
public void run()
- Specified by:
run
in interface Runnable
- Overrides:
run
in class Thread
runTimer
public void runTimer()
throws Exception
- Throws:
Exception
checkDay
public void checkDay(String month,
int dateNum,
String[] checkTime)
throws Exception
- Throws:
Exception
checkDate
public void checkDate(String[] checkTime,
int dateNum,
int whichDate)
throws Exception
- Throws:
Exception
validSchedule
public void validSchedule(String[] checkTime)
throws Exception
- Throws:
Exception
calcNextRun
public void calcNextRun()
throws Exception
- Throws:
Exception
doWait
public void doWait(long p1,
long p2)
throws InterruptedException
- Throws:
InterruptedException
sleepSeconds
public boolean sleepSeconds(long p1)
getVersion
public String getVersion()
- Return version information
- Specified by:
getVersion
in interface VersionInfoInterface
- Overrides:
getVersion
in class Trigger