com.siviam.bobup.businessobjects
Class JarBusinessObjectDescriptor

java.lang.Object
  extended bycom.siviam.bobup.businessobjects.JarBusinessObjectDescriptor
All Implemented Interfaces:
IBackupLocation, IBusinessObjectDescriptor
Direct Known Subclasses:
LocalJarBusinessObjectDescriptor

public abstract class JarBusinessObjectDescriptor
extends java.lang.Object
implements IBusinessObjectDescriptor


Field Summary
 
Fields inherited from interface com.siviam.bobup.businessobjects.IBusinessObjectDescriptor
BUSINESS_OBJECT_DESCRIPTION, BUSINESS_OBJECT_ID, BUSINESS_OBJECT_NAME
 
Constructor Summary
JarBusinessObjectDescriptor()
           
 
Method Summary
 void addBackupPartDescription(java.util.Properties properties)
          Adds the description of the backup part in the form of name/value properties.
 void create()
          Creates the backup location.
 boolean exists()
           
 java.util.Properties[] getBackupPartDescriptions()
          Obtains an array of backup part descriptions.
 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.
 java.lang.Object getLocation()
          The location pointing to the specific file that needs to be backed up or recovered.
 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()
           
 void removeBackupPartDescription(java.util.Properties properties)
          Removes the description of the backup part given a properties instance.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JarBusinessObjectDescriptor

public JarBusinessObjectDescriptor()
Method Detail

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

getLocation

public java.lang.Object getLocation()
                             throws java.lang.Exception
The location pointing to the specific file that needs to be backed up or recovered. Descendents should override for meaningful behavior.

Returns:
Throws:
java.lang.Exception

addBackupPartDescription

public void addBackupPartDescription(java.util.Properties properties)
                              throws java.lang.Exception
Description copied from interface: IBusinessObjectDescriptor
Adds the description of the backup part in the form of name/value properties.

Specified by:
addBackupPartDescription in interface IBusinessObjectDescriptor
Parameters:
properties -
Throws:
java.lang.Exception

getBackupPartDescriptions

public java.util.Properties[] getBackupPartDescriptions()
                                                 throws java.lang.Exception
Description copied from interface: IBusinessObjectDescriptor
Obtains an array of backup part descriptions. Use and addXXX() method to add properties first. All these properties will be recorded to the backup. There is one-one correlation between an element in this array and a backup part.

Specified by:
getBackupPartDescriptions in interface IBusinessObjectDescriptor
Returns:
Throws:
java.lang.Exception

removeBackupPartDescription

public void removeBackupPartDescription(java.util.Properties properties)
                                 throws java.lang.Exception
Description copied from interface: IBusinessObjectDescriptor
Removes the description of the backup part given a properties instance.

Specified by:
removeBackupPartDescription in interface IBusinessObjectDescriptor
Parameters:
properties -
Throws:
java.lang.Exception

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()
                     throws java.lang.Exception
Description copied from interface: IBackupLocation
Obtains the date that the backup location was last modified.

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

listContents

public IBackupLocation[] listContents()
Specified by:
listContents in interface IBackupLocation
Returns:

exists

public boolean exists()
               throws java.lang.Exception
Specified by:
exists in interface IBackupLocation
Returns:
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

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.