com.siviam.bobup.businessobjects
Class LocalJarBusinessObjectDescriptor

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

public class LocalJarBusinessObjectDescriptor
extends JarBusinessObjectDescriptor

This jar business object descriptor is specifically implemented for local file systems.

Author:
vishnu

Field Summary
 
Fields inherited from interface com.siviam.bobup.businessobjects.IBusinessObjectDescriptor
BUSINESS_OBJECT_DESCRIPTION, BUSINESS_OBJECT_ID, BUSINESS_OBJECT_NAME
 
Constructor Summary
LocalJarBusinessObjectDescriptor(java.io.File file)
           
 
Method Summary
 void create()
          Creates the backup location.
 boolean exists()
           
 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.
 java.io.OutputStream getOutputStream()
          Obtains an outputstream to the backup location.
 
Methods inherited from class com.siviam.bobup.businessobjects.JarBusinessObjectDescriptor
addBackupPartDescription, getBackupPartDescriptions, getBackupWindow, getLocation, listContents, removeBackupPartDescription
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LocalJarBusinessObjectDescriptor

public LocalJarBusinessObjectDescriptor(java.io.File file)
Parameters:
file -
Method Detail

getLocation

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

Overrides:
getLocation in class JarBusinessObjectDescriptor
Returns:
Throws:
java.lang.Exception

exists

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

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
Overrides:
getLastModified in class JarBusinessObjectDescriptor
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
Overrides:
getOutputStream in class JarBusinessObjectDescriptor
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
Overrides:
create in class JarBusinessObjectDescriptor
Throws:
java.lang.Exception


Copyright © 2001-2006. All Rights Reserved.