public class EventTask extends AbstractTask
Title: Service Event Fabric Core
Description: Defines an Event Task managed by a Task List.
SchedulerEvent
.
SchedulerEvent
before raising.
AcknowledgementEvent
to indicate that the task has been successfully executed.
Copyright: Copyright (c) 2013
Company: StreamScape Technologies
AbstractTask.ListenerHelper
START_TASK_NAME, START_TASK_OID
DEFAULT_SERIAL_VERSION_ID
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object other) |
java.lang.String |
getAuthor()
Returns a name of the user that created this object.
|
java.util.Date |
getCreationTime()
Returns a timestamp indicating when the object was created.
|
java.lang.String |
getDescription()
Returns a description of the object.
|
java.util.Date |
getLastUpdateTime()
Returns a timestamp indicating when the object was updated last time.
|
java.lang.String |
getName()
Returns a name of the object.
|
java.util.UUID |
getOID()
Returns an unique identifier of the object.
|
java.lang.Long |
getTaskWindow()
Returns a time interval available for waiting for an acknowledgement on the
Scheduler Event sent. |
TaskType |
getType()
Returns a type of the task.
|
java.util.List |
listEventIds()
Returns a list of all event ids that can be raised by the task.
|
void |
setDescription(java.lang.String description)
Sets the specified description of the object.
|
void |
setName(java.lang.String name)
Sets the specified object name.
|
void |
undo()
Resets the state of the current execution, forcing the task to retry its execution.
|
void |
undo(long delay)
Resets the state of the current execution, forcing the task to retry its execution after the specified delay (in seconds).
|
doDisableResumptionOn, getAfterTaskName, getAfterTaskOID, getConsequent, getExceptionTask, getExecution, getOrder, getOwner, getPrecedent, getRuleSet, getState, getTaskList, getTaskWindowUnit, getWeight, isResumptionEnabledOn, isResumptionEnabledTotally, listResumptionStates, setAfterTask, setWeight, toString
addTag, clearProperties, clearTags, disableResumptionOn, disableResumptionTotally, enableResumptionOn, enableResumptionTotally, existsProperty, existsTag, getEndTimeMsec, getExpirationDate, getMetadata, getProperties, getProperty, getPropertyList, getPropertyResolved, isAutoComplete, listProperties, listTags, putProperty, removeProperty, removeTag, setMetadata, setTaskWindow, setTaskWindowUnit
clone, getSerialVersionUID
getClass, hashCode, notify, notifyAll, wait, wait, wait
disableResumptionOn, disableResumptionTotally, enableResumptionOn, enableResumptionTotally, getFullName, isAutoComplete, setTaskWindow, setTaskWindowUnit
addTag, clearProperties, clearTags, existsProperty, existsTag, getEndTimeMsec, getExpirationDate, getMetadata, getProperties, getProperty, getPropertyList, getPropertyResolved, listTags, putProperty, removeProperty, removeTag, setMetadata
getAuthor, getCreationTime, getLastUpdateTime, getOID
getDescription, setDescription, setName
getName
public TaskType getType()
Task
public java.lang.Long getTaskWindow()
Scheduler Event
sent.
EXPIRED
state.
COMPLETED
state
immediately after sending an event).getTaskWindow
in interface Task
getTaskWindow
in class AbstractTask
public java.util.List listEventIds()
Task
public void undo() throws SchedulerException
Task
This method is only applicable to Action Task.
This method is only applicable if the task is currently running.
SchedulerException
- if the operation is not supported.public void undo(long delay) throws SchedulerException
Task
This method is only applicable to Action Task.
This method is only applicable if the task is currently running.
delay
- the delay (in seconds) before retrying the task.SchedulerException
- if the specified delay is a negative number or
if the task is not currently running or
if the operation is not supported.public java.util.UUID getOID()
SchedulerObject
getOID
in interface SchedulerObject
public java.lang.String getName()
NamedObject
getName
in interface NamedObject
public void setName(java.lang.String name) throws SchedulerException
DescribedNamedObject
setName
in interface DescribedNamedObject
name
- the name to be set.SchedulerException
- if the name has wrong format.public java.lang.String getDescription()
DescribedNamedObject
getDescription
in interface DescribedNamedObject
public void setDescription(java.lang.String description)
DescribedNamedObject
setDescription
in interface DescribedNamedObject
description
- the value to be set.public java.lang.String getAuthor()
SchedulerObject
getAuthor
in interface SchedulerObject
public java.util.Date getCreationTime()
SchedulerObject
getCreationTime
in interface SchedulerObject
public java.util.Date getLastUpdateTime()
SchedulerObject
getLastUpdateTime
in interface SchedulerObject
public boolean equals(java.lang.Object other)
equals
in class java.lang.Object
Copyright © 2015-2024 StreamScape Technologies. All rights reserved.