|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.caucho.webbeans.cfg.WbComponentConfig
com.caucho.config.types.BeanConfig
com.caucho.resources.ScheduledTask
public class ScheduledTask
The cron resources starts application Work tasks at cron-specified intervals.
| Nested Class Summary | |
|---|---|
static class |
ScheduledTask.MethodTask
|
class |
ScheduledTask.ServletTask
|
| Field Summary |
|---|
| Fields inherited from class com.caucho.webbeans.cfg.WbComponentConfig |
|---|
_comp |
| Constructor Summary | |
|---|---|
ScheduledTask()
Constructor. |
|
| Method Summary | |
|---|---|
void |
environmentBind(EnvironmentClassLoader loader)
Handles the case where the environment is binding injection targets |
void |
environmentConfigure(EnvironmentClassLoader loader)
Handles the case where the environment is configuring and registering beans |
void |
environmentStart(EnvironmentClassLoader loader)
Handles the case where the environment is starting (after init). |
void |
environmentStop(EnvironmentClassLoader loader)
Handles the case where the environment is stopping (after init). |
void |
handleAlarm(Alarm alarm)
The runnable. |
void |
init()
Initialization. |
void |
setCron(java.lang.String cron)
Sets the cron interval. |
void |
setDelay(Period delay)
Sets the delay |
void |
setMethod(MethodExpression method)
Sets the method expression as a task |
void |
setPeriod(Period period)
Sets the period |
void |
setTask(java.lang.Runnable task)
Sets the task. |
void |
setUrl(java.lang.String url)
Sets the url expression as a task |
void |
setWork(java.lang.Runnable work)
Deprecated. |
java.lang.String |
toString()
|
| Methods inherited from class com.caucho.config.types.BeanConfig |
|---|
getBeanConfigClass, getDefaultScope, getFilename, getLine, getMBeanName, getUri, introspectPostInit, setBeanConfigClass, setClass, setConfigLocation, setJndiName, setMbeanClass, setMbeanInterface, setMbeanName, setType, setUri |
| Methods inherited from class com.caucho.webbeans.cfg.WbComponentConfig |
|---|
addBinding, addOptionalStringProperty, addParam, addStringProperty, createObjectNoInit, deploy, getBindingList, getClassType, getComponent, getComponentFactory, getComponentType, getInit, getName, getObject, getTagName, getType, setComponentType, setInit, setName, setScope |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ScheduledTask()
| Method Detail |
|---|
public void setDelay(Period delay)
public void setPeriod(Period period)
public void setCron(java.lang.String cron)
public void setMethod(MethodExpression method)
public void setUrl(java.lang.String url)
@Deprecated public void setWork(java.lang.Runnable work)
public void setTask(java.lang.Runnable task)
public void init()
throws ConfigException
init in class BeanConfigConfigExceptionpublic void handleAlarm(Alarm alarm)
handleAlarm in interface AlarmListener
public void environmentConfigure(EnvironmentClassLoader loader)
throws ConfigException
EnvironmentListener
environmentConfigure in interface EnvironmentListenerConfigException
public void environmentBind(EnvironmentClassLoader loader)
throws ConfigException
EnvironmentListener
environmentBind in interface EnvironmentListenerConfigExceptionpublic void environmentStart(EnvironmentClassLoader loader)
EnvironmentListener
environmentStart in interface EnvironmentListenerpublic void environmentStop(EnvironmentClassLoader loader)
EnvironmentListener
environmentStop in interface EnvironmentListenerpublic java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||