Class FileRecordListener

    • Field Detail

      • log

        protected org.apache.logging.log4j.Logger log
        Deprecated.
    • Constructor Detail

      • FileRecordListener

        public FileRecordListener()
        Deprecated.
    • Method Detail

      • archiveFile

        protected String archiveFile​(File file)
                              throws ListenerException
        Deprecated.
        Moves a file to another directory and places a UUID in the name.
        Returns:
        String with the name of the (renamed and moved) file
        Throws:
        ListenerException
      • getFileToProcess

        protected File getFileToProcess()
        Deprecated.
        Gets a file to process.
      • openThread

        @Nonnull
        public Map<String,​Object> openThread()
                                            throws ListenerException
        Deprecated.
        Description copied from interface: IPullingListener
        Prepares a thread for receiving messages. Called once for each thread that will listen for messages.
        Specified by:
        openThread in interface IPullingListener<String>
        Returns:
        the threadContext for this thread. The threadContext is a Map in which thread-specific data can be stored. May not be null, must be a mutable map type.
        Throws:
        ListenerException
      • parseToRecords

        protected Iterator<String> parseToRecords​(String input)
        Deprecated.
        Parse a String to an Iterator with objects (records). This method currently uses the end-of-line character ("\n") as a seperator. This method is easy to extend to satisfy your project needs.
      • setSender

        public void setSender​(ISender sender)
        Deprecated.
      • getSender

        public ISender getSender()
        Deprecated.
      • setName

        public void setName​(String name)
        Deprecated.
        name of the listener as known to the adapter.
        Specified by:
        setName in interface INamedObject
      • setInputDirectory

        public void setInputDirectory​(String inputDirectory)
        Deprecated.
        the directory name to look in for files.
      • getInputDirectory

        public String getInputDirectory()
        Deprecated.
      • setWildcard

        public void setWildcard​(String wildcard)
        Deprecated.
        the wildcard to look for files in the specified directory, e.g. \"*.inp\"
      • getWildcard

        public String getWildcard()
        Deprecated.
      • setDirectoryProcessedFiles

        public void setDirectoryProcessedFiles​(String directoryProcessedFiles)
        Deprecated.
        the directory to store processed files in
      • getDirectoryProcessedFiles

        public String getDirectoryProcessedFiles()
        Deprecated.
      • setResponseTime

        public void setResponseTime​(long responseTime)
        Deprecated.
        The time in milliseconds to delay when no records are to be processed, and this class has to look for the arrival of a new file
        Default value
        1000
      • getResponseTime

        public long getResponseTime()
        Deprecated.
      • setStoreFileNameInSessionKey

        public void setStoreFileNameInSessionKey​(String storeFileNameInSessionKey)
        Deprecated.
        when set, the name of the read file is stored under this session key
      • getStoreFileNameInSessionKey

        public String getStoreFileNameInSessionKey()
        Deprecated.
      • setApplicationContext

        public void setApplicationContext​(org.springframework.context.ApplicationContext applicationContext)
        Deprecated.
        Specified by:
        setApplicationContext in interface org.springframework.context.ApplicationContextAware