com.ibm.commerce.negotiation.commands
Class MonitorAuctionCmdImpl

java.lang.Object
  CacheableCommandImpl
      com.ibm.commerce.command.AbstractECTargetableCommand
          com.ibm.commerce.command.ControllerCommandImpl
              com.ibm.commerce.negotiation.commands.MonitorAuctionCmdImpl
All Implemented Interfaces:
AccCommand, ControllerCommand, ECCommand, ECTargetableCommand, MonitorAuctionCmd, Protectable

public class MonitorAuctionCmdImpl
extends ControllerCommandImpl
implements MonitorAuctionCmd

MonotorAuctionCmd interface implementation which be called once auction is in current status or future status

See Also:
Serialized Form

Field Summary
protected java.util.Hashtable auctionsWithAutobid
A hashtable that contains all the auctions having autobids.
static java.lang.String COPYRIGHT
Copyright statement.
protected java.util.Hashtable lastestBidTimestamps
The lastest bid time for open-cry/sealed bid auctions.
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.negotiation.commands.MonitorAuctionCmd
defaultCommandClassName, NAME
Constructor Summary
MonitorAuctionCmdImpl()
MonitorAuctionCmdImpl constructor comment.
Method Summary
java.util.Hashtable getAuctionsWithAutobid()
Get a hashtable that contains all the auctions having autobids.
protected java.util.Hashtable getLastestBidTimestamps()
Returns a hashtable that has lastest bid time for open-cry/sealed bid auctions.
void performExecute()
Monitors future and current auction.
protected void setAuctionsWithAutobid(java.util.Hashtable newAuctionsWithAutobid)
protected void setLastestBidTimestamps(java.util.Hashtable newLastestBidTimestamps)
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, setRequestProperties, 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, setRequestProperties, 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
Methods inherited from interface com.ibm.commerce.security.Protectable
fulfills, getOwner
Field Detail

lastestBidTimestamps

protected java.util.Hashtable lastestBidTimestamps
The lastest bid time for open-cry/sealed bid auctions.

auctionsWithAutobid

protected java.util.Hashtable auctionsWithAutobid
A hashtable that contains all the auctions having autobids.

COPYRIGHT

public static final java.lang.String COPYRIGHT
Copyright statement.
See Also:
Constant Field Values
Constructor Detail

MonitorAuctionCmdImpl

public MonitorAuctionCmdImpl()
MonitorAuctionCmdImpl constructor comment.
Method Detail

getAuctionsWithAutobid

public java.util.Hashtable getAuctionsWithAutobid()
Get a hashtable that contains all the auctions having autobids.
Returns:
java.util.Hashtable

getLastestBidTimestamps

protected java.util.Hashtable getLastestBidTimestamps()
Returns a hashtable that has lastest bid time for open-cry/sealed bid auctions.
Returns:
java.util.Hashtable

performExecute

public void performExecute()
                    throws ECException
Monitors future and current auction. Starts auctions when it is time to start. Closes Auctions when it is time to close. Invokes StartAuctionCmd.
Specified by:
performExecute in interface ECCommand
Overrides:
performExecute in class AbstractECTargetableCommand
Throws:
ECException

setAuctionsWithAutobid

protected void setAuctionsWithAutobid(java.util.Hashtable newAuctionsWithAutobid)
Parameters:
newAuctionsWithAutobid - java.util.Hashtable

setLastestBidTimestamps

protected void setLastestBidTimestamps(java.util.Hashtable newLastestBidTimestamps)
Parameters:
newLastestBidTimestamps - java.util.Hashtable

Feedback