ozone core API

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.2 $ $Date: 2002/06/08 00:49:39 $
Author:
SMB
See Also:
Admin

Field Summary
protected static java.lang.String BACKUP_ELEMENT_NAME
           
protected  java.io.DataInputStream backupIn
           
protected  org.ozoneDB.xml.util.SAXChunkProducer backupProducer
           
protected  Env env
           
protected  int idcount
           
protected  org.ozoneDB.xml.util.SAXChunkConsumer restoreConsumer
           
protected static java.lang.String TMP_FILE_NAME
           
 
Constructor Summary
BackupRestore(Env _env)
           
 
Method Summary
 void beginBackup()
           
 void beginRestore()
           
 void handleObject(ObjElement element)
          This method is inherited from XML2ObjectDelegate.
 byte[] nextBackupChunk()
           
private  ObjectID nextBackupID()
           
 void processRestoreChunk(byte[] chunk)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

BackupRestore

public BackupRestore(Env _env)
Method Detail

beginRestore

public void beginRestore()
                  throws java.lang.Exception
java.lang.Exception

processRestoreChunk

public void processRestoreChunk(byte[] chunk)
                         throws java.lang.Exception
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
java.lang.Exception

nextBackupID

private ObjectID nextBackupID()
                       throws java.lang.Exception
java.lang.Exception

nextBackupChunk

public byte[] nextBackupChunk()
                       throws java.lang.Exception
java.lang.Exception

ozone core API

Copyright (C) The Ozone Database Project - www.ozone-db.org. All rights reserved.