psdi.iface.load

Class RecoveryService

  • java.lang.Object
    • psdi.iface.load.RecoveryService


  • public class RecoveryService
    extends java.lang.Object
    Recover service file for Xml adn Flat file Cron task To change the template for this generated type comment go to Window>Preferences>Java>Code Generation>Code and Comments
    • Constructor Summary

      Constructors 
      Constructor and Description
      RecoveryService(java.io.File loadFile)
      Contructor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      void endRecovery()
      deletes recovery file, folder and creates Backup file.
      java.lang.String readRecoveryUnit()
      Read recovery file.
      void releaseResources()
      close the file handle
      boolean startRecovery()
      Creates a recovery file in the recovery folder
      void writeRecoveryUnit(java.lang.String unit)
      write recovery content
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • integrationLogger

        protected static final MXLogger integrationLogger
    • Constructor Detail

      • RecoveryService

        public RecoveryService(java.io.File loadFile)
        Contructor. creates recovery folder in the same directory as import file
        Parameters:
        loadFile - file to be imported
    • Method Detail

      • startRecovery

        public boolean startRecovery()
                              throws java.lang.Exception
        Creates a recovery file in the recovery folder
        Returns:
        boolean
        Throws:
        java.lang.Exception
      • endRecovery

        public void endRecovery()
                         throws java.lang.Exception
        deletes recovery file, folder and creates Backup file.
        Throws:
        java.lang.Exception
      • releaseResources

        public void releaseResources()
        close the file handle
      • writeRecoveryUnit

        public void writeRecoveryUnit(java.lang.String unit)
                               throws java.lang.Exception
        write recovery content
        Parameters:
        unit -
        Throws:
        java.lang.Exception
      • readRecoveryUnit

        public java.lang.String readRecoveryUnit()
                                          throws java.lang.Exception
        Read recovery file.
        Returns:
        String line number
        Throws:
        java.lang.Exception