Package org.cyclos.entities.system
Class CustomScheduledTask
- java.lang.Object
-
- org.cyclos.entities.SimpleEntity
-
- org.cyclos.entities.NetworkedEntity
-
- org.cyclos.entities.BaseEntity
-
- org.cyclos.entities.NamedEntity
-
- org.cyclos.entities.system.CustomScheduledTask
-
- All Implemented Interfaces:
Cloneable,Comparable<NamedEntity>,ProcessableForDataTranslation,DefinesNetwork,IEntity,INamedEntity
@Entity public class CustomScheduledTask extends NamedEntity implements DefinesNetwork
Contains a custom scheduled task - that is, one which is scheduled to run periodically
-
-
Constructor Summary
Constructors Constructor Description CustomScheduledTask()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IntegergetDayMonth()WeekDaygetDayWeek()StringgetDescription()IntegergetHour()NetworkgetNetwork()Returns the network this entity belongs toDategetNextExecution()TimeIntervalgetRecurrence()CustomScriptgetScript()StringgetScriptParameters()booleanisEnabled()voidsetDayMonth(Integer dayMonth)voidsetDayWeek(WeekDay dayWeek)voidsetDescription(String description)voidsetEnabled(boolean enabled)voidsetHour(Integer hour)voidsetNetwork(Network network)voidsetNextExecution(Date nextExecution)voidsetRecurrence(TimeInterval recurrence)voidsetScript(CustomScript script)voidsetScriptParameters(String scriptParameters)-
Methods inherited from class org.cyclos.entities.NamedEntity
compareTo, getName, getNames, setName, toShortString, toString
-
Methods inherited from class org.cyclos.entities.BaseEntity
getDataTranslationType, getVersion
-
Methods inherited from class org.cyclos.entities.NetworkedEntity
isGlobal
-
Methods inherited from class org.cyclos.entities.SimpleEntity
clone, equals, getId, getId, getIds, getUniqueIds, getUniqueIds, hashCode, isPersistent, isTransient
-
-
-
-
Method Detail
-
getDayMonth
public Integer getDayMonth()
-
getDayWeek
public WeekDay getDayWeek()
-
getDescription
public String getDescription()
-
getHour
public Integer getHour()
-
getNetwork
public Network getNetwork()
Description copied from class:NetworkedEntityReturns the network this entity belongs to- Specified by:
getNetworkin classNetworkedEntity
-
getNextExecution
public Date getNextExecution()
-
getRecurrence
public TimeInterval getRecurrence()
-
getScript
public CustomScript getScript()
-
getScriptParameters
public String getScriptParameters()
-
isEnabled
public boolean isEnabled()
-
setDayMonth
public void setDayMonth(Integer dayMonth)
-
setDayWeek
public void setDayWeek(WeekDay dayWeek)
-
setDescription
public void setDescription(String description)
-
setEnabled
public void setEnabled(boolean enabled)
-
setHour
public void setHour(Integer hour)
-
setNetwork
public void setNetwork(Network network)
- Specified by:
setNetworkin interfaceDefinesNetwork
-
setNextExecution
public void setNextExecution(Date nextExecution)
-
setRecurrence
public void setRecurrence(TimeInterval recurrence)
-
setScript
public void setScript(CustomScript script)
-
setScriptParameters
public void setScriptParameters(String scriptParameters)
-
-