com.siviam.bobup.collate
Class Collater

java.lang.Object
  extended bycom.siviam.bobup.collate.Collater

public class Collater
extends java.lang.Object

Collates or groups together all business objects and their parts into a single backup on a local filesystem.

The backup on the local filesystem (bunch of files) can then be sync'ed with a remote backup using conventionally available tools such as rsync.

Author:
vishnu

Constructor Summary
Collater(IBackupConfiguration config)
           
 
Method Summary
 void addBackupListener(IBackupListener listener)
           
 void addBackupProvider(IBackupProvider provider)
          Adds the backup provider.
 boolean listenerAdded(IBackupListener listener)
          Determines if a backup listener has been added to this collater.
 boolean providerAdded(IBackupProvider provider)
          Determines if a backup provider has been added to this collater.
 void removeAllBackupListeners()
           
 void removeAllBackupProviders()
           
 void removeBackupListener(IBackupListener listener)
          Removes the backup listener.
 void removeBackupProvider(IBackupProvider provider)
          Removes the backup provider.
 void startBackup()
           
 void stopBackup()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Collater

public Collater(IBackupConfiguration config)
Parameters:
config -
Method Detail

providerAdded

public boolean providerAdded(IBackupProvider provider)
Determines if a backup provider has been added to this collater.

Parameters:
provider -
Returns:

listenerAdded

public boolean listenerAdded(IBackupListener listener)
Determines if a backup listener has been added to this collater.

Parameters:
listener -
Returns:

addBackupProvider

public void addBackupProvider(IBackupProvider provider)
Adds the backup provider. This method merely adds the backup provider to the list of providers. However, NOTE since the backing list is synchronized, this method will block until the current list is operated upon by this instance.

Parameters:
provider -

addBackupListener

public void addBackupListener(IBackupListener listener)

removeBackupProvider

public void removeBackupProvider(IBackupProvider provider)
Removes the backup provider. NOTE since the backing list is synchronized, this method will block until the current list is operated upon by this instance.

Parameters:
provider -

removeBackupListener

public void removeBackupListener(IBackupListener listener)
Removes the backup listener. NOTE since the backing list is synchronized, this method will block until the current list is operated upon by this instance.

Parameters:
listener -

removeAllBackupProviders

public void removeAllBackupProviders()

removeAllBackupListeners

public void removeAllBackupListeners()

startBackup

public void startBackup()
                 throws java.lang.Exception
Throws:
java.lang.Exception

stopBackup

public void stopBackup()
                throws java.lang.Exception
Throws:
java.lang.Exception


Copyright © 2001-2006. All Rights Reserved.