com.siviam.bobup.location
Interface IBackupLocation

All Known Subinterfaces:
IBusinessObjectDescriptor
All Known Implementing Classes:
JarBusinessObjectDescriptor, LocalDirectoryBackupLocation

public interface IBackupLocation

Encapsulates the notion of a backup location.

Author:
vishnu

Method Summary
 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()
           
 

Method Detail

getLocation

public IBackupLocation getLocation(java.lang.Object relative)
                            throws java.lang.Exception
Obtains a backup location relative to this location.

Returns:
Throws:
java.lang.Exception

create

public void create()
            throws java.lang.Exception
Creates the backup location.

Throws:
java.lang.Exception

listContents

public IBackupLocation[] listContents()
                               throws java.lang.Exception
Returns:
Throws:
java.lang.Exception

getLastModified

public long getLastModified()
                     throws java.lang.Exception
Obtains the date that the backup location was last modified.

Returns:
Throws:
java.lang.Exception

getBackupWindow

public long getBackupWindow()
                     throws java.lang.Exception
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.

Returns:
Throws:
java.lang.Exception

exists

public boolean exists()
               throws java.lang.Exception
Returns:
Throws:
java.lang.Exception

getOutputStream

public java.io.OutputStream getOutputStream()
                                     throws java.lang.Exception
Obtains an outputstream to the backup location.

Returns:
Throws:
java.lang.Exception

getInputStream

public java.io.InputStream getInputStream()
                                   throws java.lang.Exception
Obtains an input stream to this backup location.

Returns:
Throws:
java.lang.Exception


Copyright © 2001-2006. All Rights Reserved.