|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.caucho.jca.AbstractResourceAdapter
com.caucho.resources.CronResource
public class CronResource
The cron resources starts application Work tasks at cron-specified intervals.
| Constructor Summary | |
|---|---|
CronResource()
Constructor. |
|
| Method Summary | |
|---|---|
void |
handleAlarm(Alarm alarm)
The runnable. |
void |
init()
Initialization. |
void |
setCron(CronType cron)
Sets the cron interval. |
void |
setWork(java.lang.Runnable work)
Sets the work task. |
void |
start(BootstrapContext ctx)
Starting. |
void |
stop()
Stopping. |
| Methods inherited from class com.caucho.jca.AbstractResourceAdapter |
|---|
endpointActivation, endpointDeactivation, getXAResources |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CronResource()
| Method Detail |
|---|
public void setCron(CronType cron)
public void setWork(java.lang.Runnable work)
public void init()
throws ConfigException
ConfigExceptionpublic void start(BootstrapContext ctx)
start in interface ResourceAdapterstart in class AbstractResourceAdapterpublic void handleAlarm(Alarm alarm)
handleAlarm in interface AlarmListenerpublic void stop()
stop in interface ResourceAdapterstop in class AbstractResourceAdapter
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||