java.lang.Object | +--CacheableCommandImpl | +--com.ibm.commerce.command.AbstractECTargetableCommand | +--com.ibm.commerce.command.ControllerCommandImpl | +--com.ibm.commerce.scheduler.commands.RefreshRegistryCmdImpl
Refresh the registry information for all clones of the Commerce Server instance.
The command has the following parameters:
Adds a new broadcast job to the Commerce Scheduler that will execute the RefreshLocalRegistry command.
Field Summary | |
---|---|
static java.lang.String |
COPYRIGHT IBM Copyright notice field. |
protected
java.lang.Long |
itJobId |
protected
java.lang.Long |
itJobInstanceId |
protected
java.lang.String |
itUrl |
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. RefreshRegistryCmd |
defaultCommandClassName,
NAME |
Constructor Summary | |
---|---|
RefreshRegistryCmdImpl() Creates the RefreshRegistry command object. |
Method Summary | |
---|---|
java.lang.Long |
getJobId() Gets the job reference number of the broadcast job to refresh the registry. |
java.lang.Long |
getJobInstanceId() Gets the job instance number of when the registry is to be refreshed. |
protected
java.lang.String |
getRegistryName() Gets the name of the registry to be refreshed. |
protected
java.lang.String |
getUrl() Gets the URL to be redirected to at the end of the command. |
void |
performExecute() Calls the AddBroadcast command to create a broadcast command that will run RefreshLocalRegisty. |
void |
setRegistryName(java.lang.String name) Sets the name of the registry to be refreshed. |
void |
setRequestProperties(
TypedProperty reqParms) This method extracts the required parameters from the request properties and sets it locally in the command. |
void |
setUrl(java.lang.String url) Sets the URL to be redirected to at the end of the command. |
Methods inherited from class com.ibm.commerce.command. ControllerCommandImpl |
checkPermission,
fulfills,
getForUserId,
getGeneric,
getOwner,
getRequestProperties,
getResolvedRequestProperties,
getResourceOwners,
getResponseProperties,
getRetriable,
getViewInputProperties,
isGeneric,
isRetriable,
mergeProperties,
setForUserId,
setGeneric,
setOwner,
setResponseProperties,
setRetriable,
setViewInputProperties |
Methods inherited from class com.ibm.commerce.command. AbstractECTargetableCommand |
accessControlCheck,
checkIsAllowed,
checkParameters,
checkResourcePermission,
createCommandExecutionEvent,
execute,
finalize,
getAccCheck,
getCommandContext,
getCommandIfName,
getCommandName,
getCommandStoreId,
getDefaultProperties,
getResources,
getStoreId,
getUser,
getUserId,
isReadyToCallExecute,
reset,
setAccCheck,
setCommandContext,
setCommandIfName,
setCommandStoreId,
setDefaultProperties,
validateParameters |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait,
wait, wait |
Methods inherited from interface com.ibm.commerce.command. ControllerCommand |
checkPermission,
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,
getResourceOwners,
setAccCheck,
setForUserId,
setOwner |
Methods inherited from interface com.ibm.commerce.command. ECCommand |
checkIsAllowed,
checkResourcePermission,
createCommandExecutionEvent,
getCommandContext,
getCommandIfName,
getCommandName,
getCommandStoreId,
getDefaultProperties,
getResources,
getStoreId,
getUser,
getUserId,
setCommandContext,
setCommandIfName,
setCommandStoreId,
setDefaultProperties,
validateParameters |
Field Detail |
---|
public static final java.lang.String COPYRIGHT
protected java.lang.String itUrl
protected java.lang.Long itJobId
protected java.lang.Long itJobInstanceId
Constructor Detail |
---|
public RefreshRegistryCmdImpl()
Method Detail |
---|
public java.lang.Long getJobId()
getJobId
in interface
RefreshRegistryCmd
public java.lang.Long getJobInstanceId()
getJobInstanceId
in interface
RefreshRegistryCmd
protected java.lang.String getRegistryName()
protected java.lang.String getUrl()
public void performExecute() throws ECException
performExecute
in interface
ECCommand
performExecute
in class
AbstractECTargetableCommand
ECException
- if an exception occurs creating the broadcast job.public void setRegistryName(java.lang.String name)
setRegistryName
in interface
RefreshRegistryCmd
name
- the registry namepublic void setRequestProperties(TypedProperty reqParms) throws ECApplicationException
setRequestProperties
in interface
ControllerCommand
setRequestProperties
in class
ControllerCommandImpl
reqParms
- the parameters specified to the command.
ECApplicationException
- if the registry name specified is
invalid.public void setUrl(java.lang.String url)
url
- the URL to redirect to.