Class RestoreBackupProcess

  • All Implemented Interfaces:
    org.jbundle.base.db.util.log.BackupConstants, org.jbundle.base.model.RecordOwner, org.jbundle.model.db.DatabaseOwner, org.jbundle.model.Freeable, org.jbundle.model.PropertyOwner, org.jbundle.model.RecordOwnerModel, org.jbundle.model.RecordOwnerParent, org.jbundle.thin.base.message.JMessageListener

    public class RestoreBackupProcess
    extends org.jbundle.base.thread.BaseProcess
    implements org.jbundle.base.db.util.log.BackupConstants
    RestoreBackupProcess - Restore records from the following files or directories. java -Xms256m -Xmx512m org.jbundle.base.db.util.log.RestoreBackupApp filename=ftp://download:donwpp@www.donandann.com/backup/trxlog7_11_09_11_38_27_PM_PDT.txt java -Xms256m -Xmx512m org.jbundle.base.db.util.log.RestoreBackupApp folder=ftp://download:donwpp@www.donandann.com/backup
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected ObjectInputStream m_reader  
      • Fields inherited from class org.jbundle.base.thread.BaseProcess

        m_properties
      • Fields inherited from class org.jbundle.base.thread.BaseRecordOwner

        m_messageFilterList, m_recordOwnerCollection, m_taskParent, m_vRecordList
      • Fields inherited from interface org.jbundle.base.db.util.log.BackupConstants

        BACKUP_QUEUE_NAME, BACKUP_QUEUE_TYPE, DEFAULT_PATTERN, DEFAULT_REGEX, MESSAGE_PARAM, NOTRX, SEND
      • Fields inherited from interface org.jbundle.base.model.RecordOwner

        MASTER, SLAVE
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void disableAllListeners​(org.jbundle.base.db.Record record)
      DisableAllListeners Method.
      String[] getFileList()
      Get the list of files to read thru and import.
      ObjectInputStream getReader​(String strFilename)
      Get the backup stream writer.
      void init​(org.jbundle.model.RecordOwnerParent taskParent, org.jbundle.base.db.Record recordMain, Map<String,​Object> properties)
      Initialize class fields.
      org.jbundle.base.db.Record openMainRecord()
      Open the main file.
      void openOtherRecords()
      Open the other files.
      void run()
      Add this data to the backup stream.
      • Methods inherited from class org.jbundle.base.thread.BaseProcess

        free, getProperties, getProperty, handleMessage, retrieveUserProperties, setProperties, setProperty
      • Methods inherited from class org.jbundle.base.thread.BaseRecordOwner

        addDatabase, addListenerMessageFilter, addListeners, addRecord, addRecord, addRecordOwner, addScreenRecord, getDatabase, getDatabaseOwner, getEnvironment, getListenerMessageFilter, getMainRecord, getMasterSlave, getParentRecordOwner, getRecord, getScreenRecord, getTask, init, isBatch, isThinListener, removeDatabase, removeListenerMessageFilter, removeRecord, removeRecordOwner, setScreenRecord
    • Constructor Detail

      • RestoreBackupProcess

        public RestoreBackupProcess()
        Default constructor.
      • RestoreBackupProcess

        public RestoreBackupProcess​(org.jbundle.model.RecordOwnerParent taskParent,
                                    org.jbundle.base.db.Record recordMain,
                                    Map<String,​Object> properties)
        Constructor.
    • Method Detail

      • init

        public void init​(org.jbundle.model.RecordOwnerParent taskParent,
                         org.jbundle.base.db.Record recordMain,
                         Map<String,​Object> properties)
        Initialize class fields.
        Overrides:
        init in class org.jbundle.base.thread.BaseProcess
      • openMainRecord

        public org.jbundle.base.db.Record openMainRecord()
        Open the main file.
        Overrides:
        openMainRecord in class org.jbundle.base.thread.BaseRecordOwner
      • openOtherRecords

        public void openOtherRecords()
        Open the other files.
        Overrides:
        openOtherRecords in class org.jbundle.base.thread.BaseRecordOwner
      • run

        public void run()
        Add this data to the backup stream.
        Overrides:
        run in class org.jbundle.base.thread.BaseProcess
        Parameters:
        strMessage - the data to log.
      • getFileList

        public String[] getFileList()
        Get the list of files to read thru and import.
        Returns:
      • disableAllListeners

        public void disableAllListeners​(org.jbundle.base.db.Record record)
        DisableAllListeners Method.