@AccessLevel(value=EXTERNAL)
public class CuramBatch
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
bcc |
protected java.lang.String |
cc |
java.lang.String |
datFileExt |
protected java.lang.String |
elapsedTime |
java.lang.String |
emailMessage |
protected curam.util.type.DateTime |
endTime |
protected boolean |
endTimeSet |
protected java.lang.StringBuffer |
errMsg |
protected java.lang.String |
from |
protected int |
kBufSize |
protected static int |
kNumberOfMillisInHour |
protected static int |
kNumberOfMinutesInHour |
protected static int |
kNumberOfSecondsInMinute |
java.lang.String |
outputFileID |
java.lang.String |
outputFilename |
protected int |
port |
protected curam.util.type.DateTime |
requestedAt |
protected curam.util.exception.AppException |
runtimeText |
protected java.lang.String |
servername |
protected curam.util.type.DateTime |
startTime |
protected boolean |
startTimeSet |
protected curam.util.exception.AppException |
subject |
protected java.lang.String |
to |
protected java.lang.String |
username |
Constructor and Description |
---|
CuramBatch() |
Modifier and Type | Method and Description |
---|---|
curam.util.type.Date |
formattedString2Date(java.lang.String string)
To set correct date from formatted string as dd/mm/yyyy.
|
protected void |
getElapsedTime()
This method is used to find the duration of the batch job.
|
protected java.lang.String |
getTimeAsString(long elapsed)
This method is used to format the elapsed time.
|
void |
sendEmail()
To send e-mails from batch and report jobs.
|
protected void |
sendToOutputFile()
This method sends the report to the output file.
|
void |
setEmailSubject(curam.util.message.CatEntry c)
This method is used to set the email subject.
|
void |
setEndTime()
This method is used to set the end time of the batch job.
|
protected java.lang.String |
setErrorEmailAddress()
To retrieve error email address.
|
void |
setFileName()
This method is used to set the output filename
|
protected void |
setFrom()
This method is used to set the 'from' email address.
|
protected void |
setPort()
This method is used to set the email port number.
|
protected void |
setRuntimeText()
This method is used to set the text for reporting the duration for the
output log/email
|
protected void |
setServer()
This method is used to the email server address.
|
void |
setStartTime()
This method is used to set the start time of the batch job.
|
void |
setStartTime(curam.util.type.DateTime inStartTime)
This method is used to set the start time of the batch job.
|
protected void |
setTo()
This method is used to set the 'to' email address based on the username
specified.
|
protected void |
setToEmailAddress()
To retrieve specified email address.
|
protected static final int kNumberOfSecondsInMinute
protected static final int kNumberOfMinutesInHour
protected static final int kNumberOfMillisInHour
public java.lang.String emailMessage
public java.lang.String outputFileID
public java.lang.String outputFilename
public java.lang.String datFileExt
protected curam.util.exception.AppException subject
protected curam.util.exception.AppException runtimeText
protected java.lang.String username
protected int port
protected java.lang.String servername
protected java.lang.String from
protected java.lang.String to
protected java.lang.String bcc
protected java.lang.String cc
protected int kBufSize
protected java.lang.StringBuffer errMsg
protected boolean startTimeSet
protected boolean endTimeSet
protected curam.util.type.DateTime requestedAt
protected curam.util.type.DateTime startTime
protected curam.util.type.DateTime endTime
protected java.lang.String elapsedTime
public void setEmailSubject(curam.util.message.CatEntry c) throws curam.util.exception.AppException, curam.util.exception.InformationalException
c
- message catalog entrycuram.util.exception.AppException
curam.util.exception.InformationalException
@AccessLevel(value=EXTERNAL) public void sendEmail() throws curam.util.exception.AppException, curam.util.exception.InformationalException
curam.util.exception.AppException
curam.util.exception.InformationalException
public void setFileName() throws curam.util.exception.AppException, curam.util.exception.InformationalException
curam.util.exception.AppException
curam.util.exception.InformationalException
@AccessLevel(value=EXTERNAL) public void setStartTime() throws curam.util.exception.AppException, curam.util.exception.InformationalException
curam.util.exception.AppException
curam.util.exception.InformationalException
@AccessLevel(value=EXTERNAL) public void setStartTime(curam.util.type.DateTime inStartTime) throws curam.util.exception.AppException, curam.util.exception.InformationalException
inStartTime
- The start time of batch programcuram.util.exception.AppException
curam.util.exception.InformationalException
@AccessLevel(value=EXTERNAL) public void setEndTime() throws curam.util.exception.AppException, curam.util.exception.InformationalException
curam.util.exception.AppException
curam.util.exception.InformationalException
public curam.util.type.Date formattedString2Date(java.lang.String string) throws curam.util.exception.AppException, curam.util.exception.InformationalException
string
- formatted stringcuram.util.exception.AppException
curam.util.exception.InformationalException
protected void setFrom() throws curam.util.exception.AppException, curam.util.exception.InformationalException
curam.util.exception.AppException
curam.util.exception.InformationalException
protected void setTo() throws curam.util.exception.AppException, curam.util.exception.InformationalException
curam.util.exception.AppException
curam.util.exception.InformationalException
protected void setPort() throws curam.util.exception.AppException, curam.util.exception.InformationalException
curam.util.exception.AppException
curam.util.exception.InformationalException
protected void setServer() throws curam.util.exception.AppException, curam.util.exception.InformationalException
curam.util.exception.AppException
curam.util.exception.InformationalException
protected void sendToOutputFile() throws curam.util.exception.AppException, curam.util.exception.InformationalException
curam.util.exception.AppException
curam.util.exception.InformationalException
protected void getElapsedTime() throws curam.util.exception.AppException, curam.util.exception.InformationalException
curam.util.exception.AppException
curam.util.exception.InformationalException
protected java.lang.String getTimeAsString(long elapsed)
protected void setRuntimeText() throws curam.util.exception.AppException, curam.util.exception.InformationalException
curam.util.exception.AppException
curam.util.exception.InformationalException
protected void setToEmailAddress() throws curam.util.exception.AppException, curam.util.exception.InformationalException
curam.util.exception.AppException
curam.util.exception.InformationalException
protected java.lang.String setErrorEmailAddress() throws curam.util.exception.AppException, curam.util.exception.InformationalException
curam.util.exception.AppException
curam.util.exception.InformationalException