public class SchedulerStatusDataBean extends SmartDataBeanImpl implements SchedulerDataBean
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
_ACTUAL_END
This is the job actual end time key for specifying the sorting of the status records.
|
static java.lang.String |
_ACTUAL_START
This is the job actual start time key for specifying the sorting of the status records.
|
static java.lang.String |
_APPTYPE
This is the job application type key for specifying the sorting of the status records.
|
static java.lang.String |
_JOBREFNUM
This is the job reference key for specifying the sorting of the status records.
|
static java.lang.String |
_PATHINFO
This is the job command key for specifying the sorting of the status records.
|
static java.lang.String |
_PREFER_START
This is the job preferred start time key for specifying the sorting of the status records.
|
static java.lang.String |
_QUERY
This is the job parameter key for specifying the sorting of the status records.
|
static java.lang.String |
_STATE
This is the job state key for specifying the sorting of the status records.
|
static java.lang.String |
_STATUS
This is the job status key for specifying the sorting of the status records.
|
static java.lang.String |
COPYRIGHT
The IBM Copyright Statement.
|
emptyString
Constructor and Description |
---|
SchedulerStatusDataBean()
This is the default constructor for this class.
|
Modifier and Type | Method and Description |
---|---|
static java.sql.Timestamp |
convertTime(java.lang.String time)
This method converts the input time value to a
Timestamp object. |
java.sql.Timestamp |
defaultStartDateCriteria()
This method gets the default start time.
|
java.lang.String |
getActualStart(int index)
This method gets the actual start time for the scheduled job status for the specified index.
|
java.lang.String |
getApplicationType(int index)
This method gets the application of the job for the specified status entry.
|
java.sql.Timestamp |
getCriteriaEnd()
This method gets the end time used for filtering the scheduled job status.
|
java.sql.Timestamp |
getCriteriaStart()
This method gets the start time used for filtering the scheduled job status.
|
java.lang.String |
getEnd(int index)
This method gets the time when the job was completed.
|
java.lang.String |
getJobReferenceNumber(int index)
This method gets the job reference number for the job status.
|
java.lang.Long |
getMaxItems()
Gets the maximum number scheduled status records to be retrieved by this class.
|
java.lang.String |
getOrderBy()
This method gets the
ORDERBY attribute. |
java.lang.String |
getPathInfo(int index)
This method gets the command that will be or was executed for the job status.
|
java.lang.String |
getPreferedStart(int index)
This method gets the preferred start time of the particular run of the job.
|
java.lang.String |
getQueryString(int index)
This method gets the parameters when executing the job.
|
java.lang.String |
getStart(int index)
This method gets the start time of the status entry.
|
java.lang.String |
getState(int index)
This method gets the state of the status entry.
|
java.lang.String |
getStatus(int index)
This method gets the status of the jobs status entry.
|
boolean |
hasMoreItems()
Indicates that the maximum number of records has been reached.
|
void |
populate()
This method retrieves the status entries for the scheduled jobs that match the specified store
id and fall between the start and end time.
|
boolean |
setCriteriaEnd(java.lang.String dateCriteria)
This method sets the end time criteria used for fetching the scheduled job history of jobs.
|
boolean |
setCriteriaStart(java.lang.String dateCriteria)
This method sets the start time criteria used for fetching the scheduled job history of jobs.
|
void |
setMaxItems(java.lang.Long maxNumOfItems)
Sets the maximum number scheduled status records to be retrieved.
|
void |
setOrderBy(java.lang.String sortField)
This method sets the
ORDERBY attribute when returning the status of the scheduled jobs. |
void |
setStoreId(java.lang.Integer newStoreId)
This method sets the store id of the scheduled job status.
|
int |
size()
This method gets the number of status entries returned for the scheduled jobs.
|
fulfills, getCommandContext, getHttpRequest, getHttpResponse, getResources, getViewCommandContext, setCommandContext, setHttpRequest, setHttpResponse, setViewCommandContext
getRequestProperties, setRequestProperties
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getCommandContext, setCommandContext
getRequestProperties, setRequestProperties
public static final java.lang.String COPYRIGHT
public static final java.lang.String _JOBREFNUM
public static final java.lang.String _PATHINFO
public static final java.lang.String _QUERY
public static final java.lang.String _APPTYPE
public static final java.lang.String _STATUS
public static final java.lang.String _STATE
public static final java.lang.String _PREFER_START
public static final java.lang.String _ACTUAL_START
public static final java.lang.String _ACTUAL_END
public SchedulerStatusDataBean()
public static final java.sql.Timestamp convertTime(java.lang.String time) throws ECException
Timestamp
object.time
- This is a String
object that represents the time to be converted to a
Timestamp
object.Timestamp
object that represents the given String
.ECException
- This is thrown if there are any problems converting the given time.public java.sql.Timestamp defaultStartDateCriteria()
Timestamp
object that represents the default start time.public java.lang.String getActualStart(int index)
index
- This is the position of the status to return.String
object that represents the actual start time
of the status entry.public java.lang.String getApplicationType(int index)
index
- This is the position of the status to return.String
object that represents the application type
of the job for the status entry.public java.sql.Timestamp getCriteriaEnd()
Timestamp
object that represents the end time criteria.public java.sql.Timestamp getCriteriaStart()
Timestamp
object that represents the start time criteria.public java.lang.String getEnd(int index)
index
- This is the position of the status to return.String
object that represents the end time of the job status.public java.lang.String getJobReferenceNumber(int index)
index
- This is the position of the status to return.String
object that represents the job reference number of the job status.public java.lang.String getOrderBy()
ORDERBY
attribute. The status results are sorted by this attribute.String
object that represents the ORDERBY
status attribute.public java.lang.String getPathInfo(int index)
index
- This is the position of the status to return.String
object that represents the command to execute.public java.lang.String getPreferedStart(int index)
index
- This is the position of the status to return.String
object that represents the preferred start time of the job's status.public java.lang.String getQueryString(int index)
index
- This is the position of the status to return.String
object that represents the parameters of the job.public java.lang.String getStart(int index)
index
- The position of the status to return.String
object that represents the start time of the status entry.public java.lang.String getState(int index)
index
- This is the position of the status to return.String
object that represents the state of the status entry.public java.lang.String getStatus(int index)
index
- This is the position of the status to return.String
object that represents the status of the job status entry.public void populate() throws java.lang.Exception
populate
in interface SmartDataBean
populate
in class SmartDataBeanImpl
java.lang.Exception
- This is thrown if there are any problems retrieving the data.public void setOrderBy(java.lang.String sortField)
ORDERBY
attribute when returning the status of the scheduled jobs.
The default is ORDERBY
attribute is _ACTUAL_START
.sortField
- This is the attribute by which the status records will be sorted.public void setStoreId(java.lang.Integer newStoreId)
newStoreId
- This is the store id of the store.public int size()
int
value that represents the number of status records
found for the given time criteria.public boolean setCriteriaEnd(java.lang.String dateCriteria)
dateCriteria
- This is the time used for the ending point of the job's status records.boolean
value that indicates whether the specified
String
can be converted into a valid Timestamp
object.public boolean setCriteriaStart(java.lang.String dateCriteria)
dateCriteria
- This is the time used for the starting point of the job's status records.boolean
value that indicates whether the specified
String
can be converted into a valid Timestamp
object.public void setMaxItems(java.lang.Long maxNumOfItems)
maxNumOfItems
- The maximum number scheduled status records to be retrieved.public java.lang.Long getMaxItems()
public boolean hasMoreItems()