com.caucho.resources
Class ScheduledTaskConfig

java.lang.Object
  extended by com.caucho.config.cfg.BeanConfig
      extended by com.caucho.resources.ScheduledTaskConfig
Direct Known Subclasses:
CronResource

Deprecated.

@Service
@Unbound
public class ScheduledTaskConfig
extends BeanConfig

The cron resources starts application Work tasks at cron-specified intervals.

See Also:
ScheduledTask

Field Summary
 
Fields inherited from class com.caucho.config.cfg.BeanConfig
_bean
 
Constructor Summary
ScheduledTaskConfig()
          Deprecated. Constructor.
 
Method Summary
 void init()
          Deprecated. Initialization.
protected  boolean isStartup()
          Deprecated.  
 void setCron(java.lang.String cron)
          Deprecated. Sets the cron interval.
 void setDelay(Period delay)
          Deprecated. Sets the delay
 void setMethod(MethodExpression method)
          Deprecated. Sets the method expression as a task
 void setPeriod(Period period)
          Deprecated. Sets the period
 void setTask(java.lang.Runnable task)
          Deprecated. Sets the task.
 void setUrl(java.lang.String url)
          Deprecated. Sets the url expression as a task
 void setWork(java.lang.Runnable work)
          Deprecated. 
 java.lang.String toString()
          Deprecated.  
 
Methods inherited from class com.caucho.config.cfg.BeanConfig
addBinding, addCustomBean, addInitProgram, addOptionalStringProperty, addParam, addProperty, addStringProperty, createObjectNoInit, deploy, getBeanConfigClass, getBeanManager, getBindingList, getCdiNamed, getClassType, getComponent, getDefaultScope, getFilename, getInit, getLine, getMBeanName, getName, getObject, getStereotypeList, getTagName, getUri, introspectPostInit, isDefaultService, setBeanConfigClass, setClass, setConfigLocation, setInit, setJndiName, setMbeanClass, setMbeanInterface, setMbeanName, setName, setScope, setScopeType, setService, setType, setUri
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ScheduledTaskConfig

public ScheduledTaskConfig()
Deprecated. 
Constructor.

Method Detail

isStartup

protected boolean isStartup()
Deprecated. 
Overrides:
isStartup in class BeanConfig

setDelay

@Configurable
public void setDelay(Period delay)
Deprecated. 
Sets the delay


setPeriod

@Configurable
public void setPeriod(Period period)
Deprecated. 
Sets the period


setCron

public void setCron(java.lang.String cron)
Deprecated. 
Sets the cron interval.


setMethod

public void setMethod(MethodExpression method)
Deprecated. 
Sets the method expression as a task


setUrl

public void setUrl(java.lang.String url)
Deprecated. 
Sets the url expression as a task


setWork

@Deprecated
public void setWork(java.lang.Runnable work)
Deprecated. 

Sets the work task.


setTask

@Configurable
public void setTask(java.lang.Runnable task)
Deprecated. 
Sets the task.


init

@PostConstruct
public void init()
          throws ConfigException
Deprecated. 
Initialization.

Overrides:
init in class BeanConfig
Throws:
ConfigException

toString

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