|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
com.ibm.commerce.command.AbstractECTargetableCommand | +--com.ibm.commerce.command.ControllerCommandImpl | +--com.ibm.commerce.scheduler.commands.AddJobCmdImpl
Add a job to scheduler table.
Field Summary | |
static java.lang.String |
COPYRIGHT
|
Fields inherited from class com.ibm.commerce.command.ControllerCommandImpl |
requestProperties, responseProperties, retriable, viewReqProperties |
Fields inherited from class com.ibm.commerce.command.AbstractECTargetableCommand |
commandContext |
Fields inherited from interface com.ibm.commerce.scheduler.commands.AddJobCmd |
defaultCommandClassName, NAME |
Constructor Summary | |
AddJobCmdImpl()
AddJobCmdImpl constructor. |
Method Summary | |
protected static java.sql.Timestamp |
convertTime(java.lang.String time)
Convert the input time value to a Timestamp. |
java.lang.String |
getApplicationType()
Gets the application type for the job to be added. |
java.lang.Integer |
getAttempts()
Gets the number of re-attempts when error occurs. |
java.lang.Integer |
getCheckCommandId()
Gets the host name. |
java.lang.Integer |
getDelay()
Gets the delay time between re-attempts when error occurs. |
protected java.lang.String |
getEndTime()
Gets the timestamp for the end time for the request. |
protected java.lang.String |
getErrorUrl()
Gets the url to be redirected to at the end of the command. |
java.lang.String |
getHost()
Gets the host name. |
java.lang.String |
getInterfaceName()
Gets the host name. |
protected java.lang.Integer |
getInterval()
Gets the interval between each run of the job. |
java.lang.Long |
getJobId()
Gets the job id. |
java.lang.Long |
getJobInstanceId()
Gets the job instance id. |
protected java.lang.String |
getName()
Sets the user name. |
protected java.lang.String |
getPathInfo()
Gets the command name. |
protected java.lang.Integer |
getPriority()
Gets the priority. |
protected java.lang.String |
getQueryString()
Gets the query string. |
AccessVector |
getResources()
Returns the resource for the command. |
protected java.lang.Integer |
getSequence()
Gets the sequence. |
protected java.sql.Timestamp |
getStartTime()
Gets the timestamp for the preferred start time for the request. |
java.lang.Integer |
getStoreId()
Gets the host name. |
protected java.lang.String |
getStringEndTime()
Gets the string value for the end time. |
protected java.lang.String |
getStringStartTime()
Gets the string value for the start time. |
protected java.lang.String |
getUrl()
Gets the url to be redirected to at the end of the command. |
java.lang.Long |
getUserRefNum()
Gets the user reference number. |
void |
performExecute()
This is the real function part of the AddJob command - add a entry in scheduler config table and scheduler status table. |
void |
setApplicationType(java.lang.String ApplicationType)
Sets the application type. |
void |
setAttempts(java.lang.Integer attempts)
Sets the number of retry attempts. |
void |
setCheckCommandId(java.lang.Integer chkCmdId)
Sets the sequence. |
void |
setDelay(java.lang.Integer delay)
Sets the delay time between re-attempts. |
void |
setEndTime(java.sql.Timestamp endTime)
Sets the timestamp value for the end time. |
void |
setErrorUrl(java.lang.String url)
Sets the url to be redirected to at the end of the command. |
void |
setHost(java.lang.String host)
Sets the name of the host where command should be run. |
void |
setInterfaceName(java.lang.String interfaceName)
Sets the frquency to rerun of this job. |
void |
setInterval(java.lang.Integer interval)
Sets the frquency to rerun of this job. |
void |
setJobId(java.lang.Long newJobId)
Sets the job id. |
void |
setJobInfo(TypedProperty property)
Sets the job information. |
void |
setName(java.lang.String name)
Sets the name of user. |
void |
setPathInfo(java.lang.String command)
Sets the name of the command to be added to the scheduler. |
void |
setPriority(java.lang.Integer priority)
Sets the priority of the job. |
void |
setQueryString(java.lang.String parameters)
Sets the query string associated with the job. |
void |
setRequestProperties(TypedProperty reqParms)
This method extracts the required parameters from the request properties and sets it locally in the command. |
void |
setSequence(java.lang.Integer policy)
Sets the sequence. |
void |
setStartTime(java.sql.Timestamp startTime)
Sets the start time. |
void |
setStoreId(java.lang.Integer storeId)
Sets the sequence. |
void |
setStringEndTime(java.lang.String endTime)
Sets the string value for the end time. |
void |
setStringStartTime(java.lang.String startTime)
Sets the start time in string. |
void |
setUrl(java.lang.String url)
Sets the url to be redirected to at the end of the command. |
void |
setUserRefNum(java.lang.Long refnum)
Sets the user Id. |
void |
validateParameters()
Checks the validity of the parameters. |
Methods inherited from class com.ibm.commerce.command.ControllerCommandImpl |
fulfills, getForUserId, getGeneric, getOwner, getRequestProperties, getResolvedRequestProperties, getResponseProperties, getRetriable, getViewInputProperties, isGeneric, isRetriable, mergeProperties, setForUserId, setGeneric, setOwner, setResponseProperties, setRetriable, setViewInputProperties |
Methods inherited from class com.ibm.commerce.command.AbstractECTargetableCommand |
accessControlCheck, checkIsAllowed, checkResourcePermission, execute, finalize, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getUser, getUserId, isReadyToCallExecute, reset, setAccCheck, setCommandContext, setCommandIfName, setDefaultProperties |
Methods inherited from interface com.ibm.commerce.command.ControllerCommand |
execute, getGeneric, getRequestProperties, getResolvedRequestProperties, getResponseProperties, getRetriable, getViewInputProperties, isGeneric, isRetriable, mergeProperties, setGeneric, setRetriable, setViewInputProperties |
Methods inherited from interface com.ibm.commerce.command.AccCommand |
accessControlCheck, getAccCheck, getForUserId, setAccCheck, setForUserId, setOwner |
Methods inherited from interface com.ibm.commerce.command.ECCommand |
checkIsAllowed, checkResourcePermission, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getUser, getUserId, setCommandContext, setCommandIfName, setDefaultProperties |
Methods inherited from interface com.ibm.commerce.security.Protectable |
fulfills, getOwner |
Field Detail |
public static final java.lang.String COPYRIGHT
Constructor Detail |
public AddJobCmdImpl()
Method Detail |
protected static java.sql.Timestamp convertTime(java.lang.String time) throws ECException
time
- String - input time valuepublic java.lang.String getApplicationType()
public java.lang.Integer getAttempts()
public java.lang.Integer getCheckCommandId()
public java.lang.Integer getDelay()
protected java.lang.String getEndTime()
protected java.lang.String getErrorUrl()
public java.lang.String getHost()
public java.lang.String getInterfaceName()
protected java.lang.Integer getInterval()
public java.lang.Long getJobId()
getJobId
in interface AddJobCmd
public java.lang.Long getJobInstanceId()
getJobInstanceId
in interface AddJobCmd
protected java.lang.String getName()
protected java.lang.String getPathInfo()
protected java.lang.Integer getPriority()
protected java.lang.String getQueryString()
public AccessVector getResources() throws ECException
getResources
in interface ECCommand
getResources
in class AbstractECTargetableCommand
ECException
- The exception description.protected java.lang.Integer getSequence()
protected java.sql.Timestamp getStartTime()
public java.lang.Integer getStoreId()
getStoreId
in interface ECCommand
getStoreId
in class AbstractECTargetableCommand
protected java.lang.String getStringEndTime()
protected java.lang.String getStringStartTime()
protected java.lang.String getUrl()
public java.lang.Long getUserRefNum()
public void performExecute() throws ECException
performExecute
in interface ECCommand
performExecute
in class AbstractECTargetableCommand
com.ibm.commerce.command.ECCommand
com.ibm.commerce.command.CommandException
- The superclass for all ECExceptions.public void setApplicationType(java.lang.String ApplicationType)
setApplicationType
in interface AddJobCmd
public void setAttempts(java.lang.Integer attempts)
setAttempts
in interface AddJobCmd
public void setCheckCommandId(java.lang.Integer chkCmdId)
policy
- Integerpublic void setDelay(java.lang.Integer delay)
setDelay
in interface AddJobCmd
public void setEndTime(java.sql.Timestamp endTime)
endtime
- Timestamp - end time valuepublic void setErrorUrl(java.lang.String url)
url
- String - urlpublic void setHost(java.lang.String host)
setHost
in interface AddJobCmd
public void setInterfaceName(java.lang.String interfaceName)
interval
- Integer - interval in units of seconds.public void setInterval(java.lang.Integer interval)
setInterval
in interface AddJobCmd
interval
- Integer - interval in units of seconds.public void setJobId(java.lang.Long newJobId)
public void setJobInfo(TypedProperty property) throws ECException
property
- TypedPropertypublic void setName(java.lang.String name)
setName
in interface AddJobCmd
public void setPathInfo(java.lang.String command)
setPathInfo
in interface AddJobCmd
public void setPriority(java.lang.Integer priority)
public void setQueryString(java.lang.String parameters)
setQueryString
in interface AddJobCmd
public void setRequestProperties(TypedProperty reqParms) throws ECException
setRequestProperties
in interface ControllerCommand
setRequestProperties
in class ControllerCommandImpl
reqParms
- com.ibm.commerce.datatype.TypedPropertyECApplicationException
- public void setSequence(java.lang.Integer policy)
setSequence
in interface AddJobCmd
policy
- Integerpublic void setStartTime(java.sql.Timestamp startTime)
setStartTime
in interface AddJobCmd
startTiem
- Timestamppublic void setStoreId(java.lang.Integer storeId)
policy
- Integerpublic void setStringEndTime(java.lang.String endTime)
endtimeString
- - end time valuepublic void setStringStartTime(java.lang.String startTime)
startTiem
- Stringpublic void setUrl(java.lang.String url)
setUrl
in interface AddJobCmd
url
- String - urlpublic void setUserRefNum(java.lang.Long refnum)
setUserRefNum
in interface AddJobCmd
Long
- public void validateParameters() throws ECException
validateParameters
in interface ECCommand
validateParameters
in class AbstractECTargetableCommand
ECException
-
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |