com.konakart.bl
Class CustomerStatsMgr

java.lang.Object
  extended by com.konakart.bl.BaseMgr
      extended by com.konakart.bl.CustomerStatsMgr
All Implemented Interfaces:
CustomerStatsMgrIf

public class CustomerStatsMgr
extends BaseMgr
implements CustomerStatsMgrIf

Manager for gathering customer statistics


Field Summary
protected static org.apache.commons.logging.Log log
          the log
protected static java.lang.String mutex
           
 
Fields inherited from class com.konakart.bl.BaseMgr
templateBaseDir
 
Constructor Summary
CustomerStatsMgr(KKEngIf eng)
          Constructor
 
Method Summary
static java.util.concurrent.BlockingQueue<CustomerEventIf> getEventQueue()
           
protected  int getMaxQueueSize()
          The maximum queue size which may be overridden by a super class.
 void insertCustomerEvent(CustomerEventIf event)
          The CustomerEvent object is assigned to a queue and control is immediately given back to the caller this API call.
 void insertCustomerEventFromQueue(CustomerEventIf event)
          Method used by thread that reads the event information from the queue and writes it to the database.
 
Methods inherited from class com.konakart.bl.BaseMgr
addInsertAttr, addInsertAttr, checkRequired, getAdminEngMgr, getBasketMgr, getBillingMgr, getBookableProductMgr, getCatMgr, getConfigMgr, getCookieMgr, getCurrMgr, getCustMgr, getCustomerIdFromSession, getCustomerStatsMgr, getCustomerTagMgr, getEmailMgr, getEng, getLangMgr, getManuMgr, getMiscItemMgr, getMode, getModeString, getMqMgr, getMultiStoreMgr, getNewCriteria, getNewCriteria, getOrderMgr, getOrderTotalMgr, getPaymentMgr, getProdMgr, getPromMgr, getRewardPointMgr, getSecMgr, getShippingMgr, getSolrMgr, getStoreId, getTaxMgr, getTemplate, getTemplateRoot, getVelocityContextMgr, getWishListMgr, init, isEnterprise, isMultiStoreShareCustomers, isMultiStoreShareProducts
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected static org.apache.commons.logging.Log log
the log


mutex

protected static java.lang.String mutex
Constructor Detail

CustomerStatsMgr

public CustomerStatsMgr(KKEngIf eng)
                 throws java.lang.Exception
Constructor

Parameters:
eng -
Throws:
java.lang.Exception
Method Detail

getMaxQueueSize

protected int getMaxQueueSize()
The maximum queue size which may be overridden by a super class.

Returns:
Returns the maximum queue size

insertCustomerEvent

public void insertCustomerEvent(CustomerEventIf event)
                         throws java.lang.Exception
The CustomerEvent object is assigned to a queue and control is immediately given back to the caller this API call.

Specified by:
insertCustomerEvent in interface CustomerStatsMgrIf
Parameters:
event -
Throws:
java.lang.Exception

insertCustomerEventFromQueue

public void insertCustomerEventFromQueue(CustomerEventIf event)
                                  throws java.lang.Exception
Method used by thread that reads the event information from the queue and writes it to the database.

Parameters:
event -
Throws:
java.lang.Exception

getEventQueue

public static java.util.concurrent.BlockingQueue<CustomerEventIf> getEventQueue()
Returns:
the eventQueue


Copyright © 2011 DS Data Systems UK Ltd.