Class ImportResourceImpl

  • All Implemented Interfaces:
    com.artisol.teneo.inquire.api.resources.ImportResource

    public class ImportResourceImpl
    extends AbstractResource
    implements com.artisol.teneo.inquire.api.resources.ImportResource
    • Field Summary

      • Fields inherited from interface com.artisol.teneo.inquire.api.resources.ImportResource

        DELETE_LOG_ARCHIVE_ERRORS_PATH, DELETE_LOG_ARCHIVE_ERRORS_SUMMARY, DELETE_LOG_DATA_SOURCE_ERRORS_PATH, DELETE_LOG_DATA_SOURCE_ERRORS_SUMMARY, GET_LOG_ARCHIVE_ERRORS_PATH, GET_LOG_ARCHIVE_ERRORS_SUMMARY, GET_LOG_ARCHIVE_FAILED_SESSION_PATH, GET_LOG_ARCHIVE_FAILED_SESSION_SUMMARY, GET_LOG_ARCHIVE_OVERVIEW_PATH, GET_LOG_ARCHIVE_OVERVIEW_SUMMARY, GET_LOG_ARCHIVE_STATUS_PATH, GET_LOG_ARCHIVE_STATUS_SUMMARY, GET_LOG_DATA_SOURCE_ERRORS_PATH, GET_LOG_DATA_SOURCE_ERRORS_SUMMARY, GET_LOG_DATA_SOURCE_SESSION_COUNT_PATH, GET_LOG_DATA_SOURCE_SESSION_COUNT_SUMMARY, GET_LOG_DATA_SOURCE_STATUS_PATH, GET_LOG_DATA_SOURCE_STATUS_SUMMARY, GET_LOG_DATA_SOURCE_WEEKS_PATH, GET_LOG_DATA_SOURCE_WEEKS_SUMMARY, PATH, POST_IMPORT_SESSION_PATH, POST_IMPORT_SESSION_SUMMARY, POST_LOG_ARCHIVE_START_IMPORT_PATH, POST_LOG_ARCHIVE_START_IMPORT_SUMMARY, POST_LOG_ARCHIVE_STOP_IMPORT_PATH, POST_LOG_ARCHIVE_STOP_IMPORT_SUMMARY, POST_LOG_DATA_SOURCE_CANCEL_SYNC_PATH, POST_LOG_DATA_SOURCE_CANCEL_SYNC_SUMMARY, POST_LOG_DATA_SOURCE_CLEAR_DESCRIPTION, POST_LOG_DATA_SOURCE_CLEAR_PATH, POST_LOG_DATA_SOURCE_CLEAR_SUMMARY, POST_LOG_DATA_SOURCE_START_SYNC_PATH, POST_LOG_DATA_SOURCE_START_SYNC_SUMMARY
    • Constructor Summary

      Constructors 
      Constructor Description
      ImportResourceImpl​(javax.ws.rs.client.WebTarget webTarget)  
    • Constructor Detail

      • ImportResourceImpl

        public ImportResourceImpl​(javax.ws.rs.client.WebTarget webTarget)
    • Method Detail

      • startSync

        public void startSync​(String ldsName)
                       throws com.artisol.teneo.inquire.api.exceptions.InquireException
        Starts session synchronization into Elasticsearch.
        Parameters:
        ldsName - Log Data Source name
        Throws:
        com.artisol.teneo.inquire.api.exceptions.InquireException - If an unexpected error occurs during the method execution
      • cancelSync

        public void cancelSync​(String ldsName)
                        throws com.artisol.teneo.inquire.api.exceptions.InquireException
        Cancels a running session synchronization into Elasticsearch.
        Parameters:
        ldsName - Log Data Source name
        Throws:
        com.artisol.teneo.inquire.api.exceptions.InquireException - If an unexpected error occurs during the method execution
      • getLogDataSourceStatus

        public com.artisol.teneo.inquire.api.models.LogDataSourceStatus getLogDataSourceStatus​(String ldsName)
                                                                                        throws com.artisol.teneo.inquire.api.exceptions.InquireException
        Gets the current LogDataSourceStatus.
        Parameters:
        ldsName - name of the Log Data Source to check
        Returns:
        a LogDataSourceStatus object
        Throws:
        com.artisol.teneo.inquire.api.exceptions.InquireException - If an unexpected error occurs during the method execution
      • getErrorList

        public com.artisol.teneo.inquire.api.models.LogDataSourceErrors getErrorList​(String ldsName)
        Gets the error list of the last session synchronization.
        Parameters:
        ldsName - name of the Log Data Source to check
        Returns:
        a list of errors of the last session synchronization
      • clearLdsErrors

        public void clearLdsErrors​(String ldsName)
                            throws com.artisol.teneo.inquire.api.exceptions.InquireException
        Deletes session synchronization errors for specific Log Data Source.
        Parameters:
        ldsName - Name of the Log Data Source for which the errors will be deleted
        Throws:
        com.artisol.teneo.inquire.api.exceptions.InquireException - If an unexpected error occurs during the method execution
      • clearLogDataSource

        public void clearLogDataSource​(String ldsName)
        If Teneo Manager is enabled, it deletes only data indexes. Otherwise, when log data source is stored in Elasticsearch, it deletes the configuration and the data indexes.
        Parameters:
        ldsName - Name of the Log Data Source to clear
      • getLogArchiveOverview

        public com.artisol.teneo.inquire.api.models.LogArchiveOverview getLogArchiveOverview​(UUID logArchiveId)
                                                                                      throws com.artisol.teneo.inquire.api.exceptions.InquireException
        Gets the logArchive overview, that is, the number of sessions over year week.
        Parameters:
        logArchiveId - the id of the log archive
        Returns:
        LogArchiveOverview model
        Throws:
        com.artisol.teneo.inquire.api.exceptions.InquireException - if an unexpected error occurs during the method execution
      • getLogDataSourceWeeks

        public com.artisol.teneo.inquire.api.models.LogDataSourceWeeks getLogDataSourceWeeks​(String ldsName)
                                                                                      throws com.artisol.teneo.inquire.api.exceptions.InquireException
        Gets the weeks of a log data source.
        Parameters:
        ldsName - Name of the log data source
        Returns:
        the weeks of the log data source
        Throws:
        com.artisol.teneo.inquire.api.exceptions.InquireException - if an unexpected error occurs during the method execution