org.ozoneDB.core.admin
Class BackupRestore
java.lang.Object
org.ozoneDB.core.admin.BackupRestore
- All Implemented Interfaces:
- XML2ObjectDelegate
- public class BackupRestore
- extends java.lang.Object
- implements XML2ObjectDelegate
This class handles all backup/restore related operations of the ozone admin
system.
Note: The backup/restore does not use the object specific object to XML
mapping. The backup always uses the standard mapping defined by Object2XML
.
- Version:
- $Revision: 1.8 $ $Date: 2004/01/03 10:39:41 $
- Author:
- SMB
- See Also:
Admin
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TMP_FILE_NAME
protected static final java.lang.String TMP_FILE_NAME
- See Also:
- Constant Field Values
BACKUP_ELEMENT_NAME
protected static final java.lang.String BACKUP_ELEMENT_NAME
- See Also:
- Constant Field Values
env
protected transient Env env
backupProducer
protected transient org.ozoneDB.xml.util.SAXChunkProducer backupProducer
backupIn
protected transient java.io.DataInputStream backupIn
restoreConsumer
protected transient org.ozoneDB.xml.util.SAXChunkConsumer restoreConsumer
idcount
protected transient int idcount
BackupRestore
public BackupRestore(Env _env)
beginRestore
public void beginRestore()
throws java.lang.Exception
- Throws:
java.lang.Exception
processRestoreChunk
public void processRestoreChunk(byte[] chunk)
throws java.lang.Exception
- Throws:
java.lang.Exception
handleObject
public void handleObject(ObjElement element)
- This method is inherited from XML2ObjectDelegate. It is called when an
entire object is re-constructed from the XML stream.
- Specified by:
handleObject
in interface XML2ObjectDelegate
beginBackup
public void beginBackup()
throws java.lang.Exception
- Throws:
java.lang.Exception
nextBackupID
private ObjectID nextBackupID()
throws java.lang.Exception
- Throws:
java.lang.Exception
nextBackupChunk
public byte[] nextBackupChunk()
throws java.lang.Exception
- Throws:
java.lang.Exception
Copyright (C) The Ozone Database Project - www.ozone-db.org. All rights reserved.