Class 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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 api
        searchIndexer - the search indexer
        viewDataManager - 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 interface JobContextHolder
        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 interface JobContextHolder
        Throws:
        java.lang.InterruptedException - the interrupted exception