Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## backupAndRecovery
Class Backup

    java.lang.Object
      backupAndRecovery.Backup

    public class Backup

extends java.lang.Object

This class creates backups. It is responsible for every operation related to succesful process of backing file up.

Constructor Summary
`Backup()` Basic constructor initializes backup engine.

Method Summary
`void` | `createBackup(java.lang.String path, int n, int m)` Creates backup of file identified by path.

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### Backup

    public Backup()

  Basic constructor initializes backup engine.

Method Detail

### createBackup

    public void createBackup(java.lang.String path,
                             int n,
                             int m)
                      throws java.io.IOException,
                             java.lang.IllegalArgumentException

  Creates backup of file identified by path. Method uses Reed-Solomon code to calculate checksums and then upload them to networked hosts.

  Parameters:
    `path` - path to file
    `n` - number of fragments into which file will be split
    `m` - number of checksums to be calculated
  Throws:
    `java.io.IOException` - when desired file cannot be read
    `java.lang.IllegalArgumentException` - when some of arguments are invalid

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD