public abstract class TaskSupport extends java.lang.Object implements StoppableTask
| Constructor and Description |
|---|
TaskSupport() |
| Modifier and Type | Method and Description |
|---|---|
void |
addCustomParams(java.lang.String key,
java.io.Serializable value)
Add a new custom param to the existing custom parameters map.
|
void |
addJobResults(java.util.List jobResults)
Add the results of the job in bulk.
|
void |
addResult(JobResult result)
Appends a particular JobResult to the jobResults list.
|
BulkNotificationEvent |
createNotificationEvent(java.lang.Double failedJobID,
java.lang.String execeptionMessage,
java.lang.String jobName,
java.lang.String jobStartDate)
This Method is used to create a Notification event using following arguments
|
void |
executeJob(java.util.HashMap attributes) |
java.lang.String |
getId() |
java.lang.String |
getImplementation() |
java.lang.Double |
getJobID() |
java.lang.String |
getName() |
java.lang.String |
getTaskName() |
boolean |
isJobSuccess() |
boolean |
isStop()
Provides a flag indicating whether a schedule job is stopped or not.
|
void |
sendNotification(java.lang.Double failedJobID,
java.lang.String execeptionMessage,
java.lang.String jobName,
java.lang.String jobStartDate)
method to generate notification event
|
void |
setCustomParams(java.util.HashMap customParams)
Set the custom parameters for the job.
|
void |
setCustomStatus(java.lang.String customStatus)
Set the custom status for the job.
|
void |
setEmailConfig(EmailConfig emailConfig)
Sets the email config
|
void |
setImplementation(java.lang.String implementation) |
void |
setName(java.lang.String name) |
void |
setTaskName(java.lang.String taskName) |
boolean |
stop()
This method is used to stop a schedule task.
|
public java.lang.Double getJobID()
public void setCustomParams(java.util.HashMap customParams)
customParams - HashMap of the custom parameters for the jobpublic void addCustomParams(java.lang.String key,
java.io.Serializable value)
key - Name of the custom paramvalue - Value of the custom parampublic void setCustomStatus(java.lang.String customStatus)
customStatus - The custom status to be setpublic void setEmailConfig(EmailConfig emailConfig)
setEmailConfig in interface oracle.iam.scheduler.vo.TaskemailConfig - public void addJobResults(java.util.List jobResults)
jobResults - List of JobResultpublic void addResult(JobResult result)
result - The JobResult to be added to the jobResults listpublic boolean isJobSuccess()
isJobSuccess in interface oracle.iam.scheduler.vo.Taskpublic java.lang.String getTaskName()
getTaskName in interface oracle.iam.scheduler.vo.Taskpublic void setTaskName(java.lang.String taskName)
setTaskName in interface oracle.iam.scheduler.vo.Taskpublic java.lang.String getName()
getName in interface oracle.iam.scheduler.vo.Taskpublic java.lang.String getImplementation()
getImplementation in interface oracle.iam.scheduler.vo.Taskpublic void setName(java.lang.String name)
setName in interface oracle.iam.scheduler.vo.Taskpublic void setImplementation(java.lang.String implementation)
setImplementation in interface oracle.iam.scheduler.vo.Taskpublic boolean stop()
StoppableTaskstop in interface StoppableTaskpublic boolean isStop()
public java.lang.String getId()
getId in interface oracle.iam.scheduler.vo.Taskpublic final void executeJob(java.util.HashMap attributes)
throws java.lang.Exception
executeJob in interface oracle.iam.scheduler.vo.Taskjava.lang.Exceptionpublic void sendNotification(java.lang.Double failedJobID,
java.lang.String execeptionMessage,
java.lang.String jobName,
java.lang.String jobStartDate)
failedJobID - id of failed job
exceptionMessage To provide exception cause
jobName name of failed schedule job
jobStartDate date of failed job creationpublic BulkNotificationEvent createNotificationEvent(java.lang.Double failedJobID, java.lang.String execeptionMessage, java.lang.String jobName, java.lang.String jobStartDate)
failedJobID - id of failed jobexeceptionMessage - To provide exception causejobName - name of failed schedule jobjobStartDate - start time of job