Class RestoreBackupProcess
- java.lang.Object
-
- org.jbundle.base.thread.BaseRecordOwner
-
- org.jbundle.base.thread.BaseProcess
-
- org.jbundle.app.program.manual.backup.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.BackupConstantsRestoreBackupProcess - 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 ObjectInputStreamm_reader-
Fields inherited from class org.jbundle.base.thread.BaseRecordOwner
m_messageFilterList, m_recordOwnerCollection, m_taskParent, m_vRecordList
-
-
Constructor Summary
Constructors Constructor Description RestoreBackupProcess()Default constructor.RestoreBackupProcess(org.jbundle.model.RecordOwnerParent taskParent, org.jbundle.base.db.Record recordMain, Map<String,Object> properties)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddisableAllListeners(org.jbundle.base.db.Record record)DisableAllListeners Method.String[]getFileList()Get the list of files to read thru and import.ObjectInputStreamgetReader(String strFilename)Get the backup stream writer.voidinit(org.jbundle.model.RecordOwnerParent taskParent, org.jbundle.base.db.Record recordMain, Map<String,Object> properties)Initialize class fields.org.jbundle.base.db.RecordopenMainRecord()Open the main file.voidopenOtherRecords()Open the other files.voidrun()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
-
-
-
-
Field Detail
-
m_reader
protected ObjectInputStream m_reader
-
-
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:
initin classorg.jbundle.base.thread.BaseProcess
-
openMainRecord
public org.jbundle.base.db.Record openMainRecord()
Open the main file.- Overrides:
openMainRecordin classorg.jbundle.base.thread.BaseRecordOwner
-
openOtherRecords
public void openOtherRecords()
Open the other files.- Overrides:
openOtherRecordsin classorg.jbundle.base.thread.BaseRecordOwner
-
run
public void run()
Add this data to the backup stream.- Overrides:
runin classorg.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:
-
getReader
public ObjectInputStream getReader(String strFilename)
Get the backup stream writer.- Returns:
-
disableAllListeners
public void disableAllListeners(org.jbundle.base.db.Record record)
DisableAllListeners Method.
-
-