Package com.hack23.cia.service.impl.task
Class JobContextHolderImpl
- java.lang.Object
-
- com.hack23.cia.service.impl.task.JobContextHolderImpl
-
- All Implemented Interfaces:
JobContextHolder
@Service("JobContextHolder") @Transactional(propagation=REQUIRED, timeout=1200) public final class JobContextHolderImpl extends java.lang.Object implements JobContextHolder
The Class JobContextHolder.
-
-
Constructor Summary
Constructors Constructor Description JobContextHolderImpl(com.hack23.cia.service.component.agent.api.DataAgentApi dataAgentApi, com.hack23.cia.service.data.api.SearchIndexer searchIndexer, com.hack23.cia.service.data.api.ViewDataManager viewDataManager)
Instantiates a new job context holder impl.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.hack23.cia.service.component.agent.api.DataAgentApi
getDataAgentApi()
Gets the data agent api.void
refreshViews()
Refresh views.void
updateSearchIndex()
Update search index.
-
-
-
Constructor Detail
-
JobContextHolderImpl
@Autowired public JobContextHolderImpl(com.hack23.cia.service.component.agent.api.DataAgentApi dataAgentApi, com.hack23.cia.service.data.api.SearchIndexer searchIndexer, com.hack23.cia.service.data.api.ViewDataManager viewDataManager)
Instantiates a new job context holder impl.- Parameters:
dataAgentApi
- the data agent apisearchIndexer
- the search indexerviewDataManager
- the view data manager
-
-
Method Detail
-
getDataAgentApi
public com.hack23.cia.service.component.agent.api.DataAgentApi getDataAgentApi()
Description copied from interface:JobContextHolder
Gets the data agent api.- Specified by:
getDataAgentApi
in interfaceJobContextHolder
- Returns:
- the data agent api
-
updateSearchIndex
public void updateSearchIndex() throws java.lang.InterruptedException
Description copied from interface:JobContextHolder
Update search index.- Specified by:
updateSearchIndex
in interfaceJobContextHolder
- Throws:
java.lang.InterruptedException
- the interrupted exception
-
refreshViews
public void refreshViews()
Description copied from interface:JobContextHolder
Refresh views.- Specified by:
refreshViews
in interfaceJobContextHolder
-
-