public abstract class Task extends Object implements Serializable
Modifier and Type | Class and Description |
---|---|
static class |
Task.Factory
Constructs new instances of
Task . |
Constructor and Description |
---|
Task() |
Modifier and Type | Method and Description |
---|---|
String |
attributesToString()
Builds a string showing the current attribute values
|
boolean |
equals(Object object)
Returns
true if the argument is an Task instance and all identifiers for this
entity equal the identifiers of the argument entity. |
Boolean |
getActive() |
String |
getHandlerClassName()
Name of the handler class, which will excute this task.
|
Long |
getId() |
Date |
getLastExecution() |
Date |
getNextExecution() |
Set<TaskProperty> |
getProperties() |
Long |
getTaskInterval()
The interval the task should be scheduled in milliseconds.
|
TaskStatus |
getTaskStatus()
Status of the task.
|
String |
getUniqueName() |
int |
hashCode()
Returns a hash code based on this entity's identifiers.
|
void |
setActive(Boolean active) |
void |
setHandlerClassName(String handlerClassName) |
void |
setId(Long id) |
void |
setLastExecution(Date lastExecution) |
void |
setNextExecution(Date nextExecution) |
void |
setProperties(Set<TaskProperty> properties) |
void |
setTaskInterval(Long taskInterval) |
void |
setTaskStatus(TaskStatus taskStatus) |
void |
setUniqueName(String uniqueName) |
public String attributesToString()
public boolean equals(Object object)
true
if the argument is an Task instance and all identifiers for this
entity equal the identifiers of the argument entity. Returns false
otherwise.public Boolean getActive()
public String getHandlerClassName()
Name of the handler class, which will excute this task.
public Long getId()
public Date getLastExecution()
public Date getNextExecution()
public Set<TaskProperty> getProperties()
public Long getTaskInterval()
The interval the task should be scheduled in milliseconds. If null or less than 1 the task will only be executed once.
public TaskStatus getTaskStatus()
Status of the task.
public String getUniqueName()
public int hashCode()
public void setActive(Boolean active)
public void setHandlerClassName(String handlerClassName)
public void setId(Long id)
public void setLastExecution(Date lastExecution)
public void setNextExecution(Date nextExecution)
public void setProperties(Set<TaskProperty> properties)
public void setTaskInterval(Long taskInterval)
public void setTaskStatus(TaskStatus taskStatus)
public void setUniqueName(String uniqueName)
Copyright © 2019 Communote team. All rights reserved.