com.siviam.bobup.location
Class LocalDirectoryBackupLocation

java.lang.Object
  extended bycom.siviam.bobup.location.LocalDirectoryBackupLocation
All Implemented Interfaces:
IBackupLocation

public abstract class LocalDirectoryBackupLocation
extends java.lang.Object
implements IBackupLocation

Represents a directory of files and jars in a local backup.

Author:
vishnu

Constructor Summary
LocalDirectoryBackupLocation(java.io.File location)
           
 
Method Summary
protected  void addBackupLocation(java.io.File dir, java.util.List objList)
           
protected  void addBusinessObjectBackup(java.io.File file, java.util.List objList)
           
 void create()
          Creates the backup location.
 boolean exists()
           
 long getBackupWindow()
          Obtains the time window within which objects were backed up.
 java.io.InputStream getInputStream()
          Obtains an input stream to this backup location.
 long getLastModified()
          Obtains the date that the backup location was last modified.
 IBackupLocation getLocation(java.lang.Object relative)
          Obtains a backup location relative to this location.
 java.io.OutputStream getOutputStream()
          Obtains an outputstream to the backup location.
 IBackupLocation[] listContents()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LocalDirectoryBackupLocation

public LocalDirectoryBackupLocation(java.io.File location)
Method Detail

getBackupWindow

public long getBackupWindow()
Description copied from interface: IBackupLocation
Obtains the time window within which objects were backed up. For base locations, this might mean the entire time period that the application is running.

Specified by:
getBackupWindow in interface IBackupLocation
Returns:

getLastModified

public long getLastModified()
Description copied from interface: IBackupLocation
Obtains the date that the backup location was last modified.

Specified by:
getLastModified in interface IBackupLocation
Returns:

exists

public boolean exists()
               throws java.lang.Exception
Specified by:
exists in interface IBackupLocation
Returns:
Throws:
java.lang.Exception

listContents

public IBackupLocation[] listContents()
                               throws java.lang.Exception
Specified by:
listContents in interface IBackupLocation
Returns:
Throws:
java.lang.Exception

addBackupLocation

protected void addBackupLocation(java.io.File dir,
                                 java.util.List objList)
Parameters:
dir -

addBusinessObjectBackup

protected void addBusinessObjectBackup(java.io.File file,
                                       java.util.List objList)
                                throws java.lang.Exception
Parameters:
file -
Throws:
java.lang.Exception

getOutputStream

public java.io.OutputStream getOutputStream()
                                     throws java.lang.Exception
Description copied from interface: IBackupLocation
Obtains an outputstream to the backup location.

Specified by:
getOutputStream in interface IBackupLocation
Returns:
Throws:
java.lang.Exception

getInputStream

public java.io.InputStream getInputStream()
                                   throws java.lang.Exception
Description copied from interface: IBackupLocation
Obtains an input stream to this backup location.

Specified by:
getInputStream in interface IBackupLocation
Returns:
Throws:
java.lang.Exception

getLocation

public IBackupLocation getLocation(java.lang.Object relative)
                            throws java.lang.Exception
Description copied from interface: IBackupLocation
Obtains a backup location relative to this location.

Specified by:
getLocation in interface IBackupLocation
Returns:
Throws:
java.lang.Exception

create

public void create()
            throws java.lang.Exception
Description copied from interface: IBackupLocation
Creates the backup location.

Specified by:
create in interface IBackupLocation
Throws:
java.lang.Exception


Copyright © 2001-2006. All Rights Reserved.