Class DefaultSnIndexerBatchCallable
- java.lang.Object
-
- de.hybris.platform.searchservices.indexer.service.impl.DefaultSnIndexerBatchCallable
-
- All Implemented Interfaces:
SnIndexerBatchCallable,java.util.concurrent.Callable<SnIndexerBatchResponse>
public class DefaultSnIndexerBatchCallable extends java.lang.Object implements SnIndexerBatchCallable
Default implementation ofSnIndexerBatchCallable.
-
-
Constructor Summary
Constructors Constructor Description DefaultSnIndexerBatchCallable()
-
Method Summary
-
-
-
Method Detail
-
initialize
public void initialize(SnIndexerContext indexerContext, java.util.List<SnIndexerItemSourceOperation> indexerItemSourceOperations, java.lang.String indexerBatchId)
Description copied from interface:SnIndexerBatchCallableInitializes the indexer batch runnable.- Specified by:
initializein interfaceSnIndexerBatchCallable- Parameters:
indexerContext- - the indexer contextindexerItemSourceOperations- - the indexer item source operationsindexerBatchId- - the indexer batch id
-
call
public SnIndexerBatchResponse call() throws SnException, java.lang.InterruptedException
- Specified by:
callin interfacejava.util.concurrent.Callable<SnIndexerBatchResponse>- Throws:
SnExceptionjava.lang.InterruptedException
-
initializeSession
protected void initializeSession()
-
destroySession
protected void destroySession()
-
getTaskName
protected java.lang.String getTaskName()
-
getTenantId
public java.lang.String getTenantId()
-
getSessionUser
public java.lang.String getSessionUser()
-
getSessionLanguage
public java.lang.String getSessionLanguage()
-
getSessionCurrency
public java.lang.String getSessionCurrency()
-
getIndexTypeId
public java.lang.String getIndexTypeId()
-
getIndexId
public java.lang.String getIndexId()
-
getIndexerOperationType
public SnIndexerOperationType getIndexerOperationType()
-
getIndexerItemSourceOperations
public java.util.List<SnIndexerItemSourceOperation> getIndexerItemSourceOperations()
-
getIndexerOperationId
public java.lang.String getIndexerOperationId()
-
getIndexerBatchId
public java.lang.String getIndexerBatchId()
Description copied from interface:SnIndexerBatchCallableReturns the indexer batch id;- Specified by:
getIndexerBatchIdin interfaceSnIndexerBatchCallable- Returns:
- the indexer batch id
-
getTenantService
public TenantService getTenantService()
-
setTenantService
public void setTenantService(TenantService tenantService)
-
getSessionService
public SessionService getSessionService()
-
setSessionService
public void setSessionService(SessionService sessionService)
-
getUserService
public UserService getUserService()
-
setUserService
public void setUserService(UserService userService)
-
getCommonI18NService
public CommonI18NService getCommonI18NService()
-
setCommonI18NService
public void setCommonI18NService(CommonI18NService commonI18NService)
-
getSnIndexTypeService
public SnIndexTypeService getSnIndexTypeService()
-
setSnIndexTypeService
public void setSnIndexTypeService(SnIndexTypeService snIndexTypeService)
-
getSnIndexerBatchStrategyFactory
public SnIndexerBatchStrategyFactory getSnIndexerBatchStrategyFactory()
-
setSnIndexerBatchStrategyFactory
public void setSnIndexerBatchStrategyFactory(SnIndexerBatchStrategyFactory snIndexerBatchStrategyFactory)
-
-