public class BatchTaskConfigEntry extends TransferableObject
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
batchTaskDocType |
static java.lang.String |
batchTaskObject |
static java.lang.String |
batchTaskParams |
static java.lang.String |
commentField |
static java.lang.String |
isEnabledField |
static java.lang.String |
isLogHistoryField |
static java.lang.String |
isSendEmailOnErrorField |
static java.lang.String |
repeatDelayField |
static java.lang.String |
startTimeField |
static java.lang.String |
taskClassField |
static java.lang.String |
taskNameField |
Constructor and Description |
---|
BatchTaskConfigEntry(java.lang.String taskName,
java.lang.String className,
java.sql.Timestamp startTime,
Duration repeatDelay,
boolean isEnabled,
boolean isSendEmailOnError,
boolean isLogHistory,
java.lang.String comment) |
Modifier and Type | Method and Description |
---|---|
void |
addCustomParameter(java.lang.String key,
java.lang.String value)
Sets the new value and returns the previous value of the parameter.
|
long |
calculateInitialDelay()
Calculates the initial delay in seconds by adding repeatDelay until the startTime is in future.
|
BatchTaskConfigEntry |
clone() |
boolean |
equals(java.lang.Object obj)
Detects equality by processName.
|
java.lang.Class |
getBatchTaskClass() |
java.lang.String |
getBatchTaskName() |
java.lang.String |
getComment() |
PropertyMap |
getCustomParameters()
Returns the names of optional custom parameters
|
java.sql.Timestamp |
getLastExecutionTimestamp()
Returns the cached timestamp of the last execution
|
Duration |
getRepeatDelay()
The period of repetition in milliseconds
|
java.sql.Timestamp |
getStartTime() |
int |
hashCode() |
boolean |
isEnabled() |
boolean |
isLogHistory() |
boolean |
isSendEmailOnError() |
void |
setEnabled(boolean isEnabled) |
void |
setLastExecutionTimestamp(DBTimestamp lastRunTs) |
void |
setLogHistory(boolean isLogHistory) |
void |
setRepeatDelay(Duration repeatDelay) |
void |
setSendEmailOnError(boolean isSendEmailOnError) |
void |
setStartTime(DBTimestamp startTime) |
DumpString |
toDumpString(DumpString s)
This method allows subclasses to add values to the existing DumpString of the superclass.
|
ToString |
toString(ToString s)
This method allows subclasses to add values to the existing ToString of the superclass.
|
deepClone
configureDumpHeadlineLength, configureDumpMaxElementsPrinted, copyDumpStringValues, copyToStringValues, createDumpHeader, toDumpString, toString
public static final java.lang.String batchTaskDocType
public static final java.lang.String batchTaskObject
public static final java.lang.String batchTaskParams
public static final java.lang.String taskNameField
public static final java.lang.String taskClassField
public static final java.lang.String startTimeField
public static final java.lang.String repeatDelayField
public static final java.lang.String isEnabledField
public static final java.lang.String isSendEmailOnErrorField
public static final java.lang.String isLogHistoryField
public static final java.lang.String commentField
public BatchTaskConfigEntry(java.lang.String taskName, java.lang.String className, java.sql.Timestamp startTime, Duration repeatDelay, boolean isEnabled, boolean isSendEmailOnError, boolean isLogHistory, java.lang.String comment)
public void setLastExecutionTimestamp(DBTimestamp lastRunTs)
public java.sql.Timestamp getLastExecutionTimestamp()
public BatchTaskConfigEntry clone()
clone
in class TransferableObject
public PropertyMap getCustomParameters()
public void addCustomParameter(java.lang.String key, java.lang.String value)
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String getBatchTaskName()
public java.lang.String getComment()
public java.lang.Class getBatchTaskClass()
public Duration getRepeatDelay()
public java.sql.Timestamp getStartTime()
public boolean isEnabled()
public boolean isSendEmailOnError()
public boolean isLogHistory()
public void setLogHistory(boolean isLogHistory)
public void setSendEmailOnError(boolean isSendEmailOnError)
public void setEnabled(boolean isEnabled)
public void setRepeatDelay(Duration repeatDelay)
public void setStartTime(DBTimestamp startTime)
public long calculateInitialDelay()
public ToString toString(ToString s)
Dumpable
toString
in interface Dumpable
toString
in class DumpableObject
public DumpString toDumpString(DumpString s)
Dumpable
toDumpString
in interface Dumpable
toDumpString
in class DumpableObject
Copyright © 2014 EsprIT-Systems. All Rights Reserved.