Class FindFeedRunHistoryServiceImpl

java.lang.Object
com.skava.feed.service.impl.FindFeedRunHistoryServiceImpl
All Implemented Interfaces:
com.skava.core.EcommService<FeedRunHistoryRequestInternal,FeedRunHistoryDTO>, FindFeedRunHistoryService

@Service public class FindFeedRunHistoryServiceImpl extends Object implements FindFeedRunHistoryService

FindFeedRunHistoryServiceImpl class.

Author:
Infosys Equinox
  • Constructor Details

    • FindFeedRunHistoryServiceImpl

      public FindFeedRunHistoryServiceImpl()
  • Method Details

    • getValidator

      public List<com.skava.core.validation.ValidatorComponent> getValidator()
      Specified by:
      getValidator in interface com.skava.core.EcommService<FeedRunHistoryRequestInternal,FeedRunHistoryDTO>
    • process

      This method is used to load single FeedRunHistory based on given FeedRunHistory identifier.
      Specified by:
      process in interface com.skava.core.EcommService<FeedRunHistoryRequestInternal,FeedRunHistoryDTO>
    • validateRequest

      public void validateRequest(List<JobParamDTO> scheduleParams, FeedRunHistoryDO feedRunHistoryDO)
      This method is used to trigger Lambda if the process is in background.
      Parameters:
      scheduleParams - holds the jobParams
      feedRunHistoryDO - holds the Feed Run History DO object.
    • isFileInProcessingState

      public boolean isFileInProcessingState(URL url)
      This method is used to check if file is in processing state.
      Parameters:
      url - holds the valid URL.
      Returns:
      boolean value.
    • invokeLamdbaFunction

      public void invokeLamdbaFunction(String s3URL, String scheduleId, String delta)
      This method is used to invoke the lambda function.
      Parameters:
      s3URL - holds the s3URL
      scheduleId - holds the valid scheduleId
      delta - holds the valid delta value.
    • updateFeedRunHistory

      public void updateFeedRunHistory(FeedRunHistoryDO feedRunHistoryDO)
      This method is used to update history after lambda triggered.
      Parameters:
      feedRunHistoryDO - feedRunHistoryDO
    • storeSummaryDetails

      public void storeSummaryDetails(FeedRunHistoryDO feedRunHistoryDO, Map<String,String> propertiesMap, String cdn, String channel)
      Parameters:
      feedRunHistoryDO - holds the feedRunHistory Object
      propertiesMap - holds the valid property
      cdn - holds the cdnUrl
      channel - holds the channel