Interface BackupJob

All Superinterfaces:
Runnable
All Known Implementing Classes:
AbstractBackupJob, AbstractFullBackupJob, AbstractIncrementalBackupJob, FullBackupJob, FullBackupJob, IncrementalBackupJob

public interface BackupJob extends Runnable
Created by The eXo Platform SARL .
Version:
$Id: $
Author:
Gennady Azarenkov
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
    The FINISHED state of job..
    static final int
    The full backup type of job.
    static final int
    THe incremental backup type of job.
    static final int
    The STARTING state of job.
    static final int
    The WAITING state of job..
    static final int
    The WORKING state of job.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Adding listener.
    int
    Getting the id of job.
    int
    Getting state of job.
    Getting storage URL.
    int
    Getting the type of job.
    void
    init(org.exoplatform.services.jcr.core.ManageableRepository repository, String workspaceName, BackupConfig config, Calendar timeStamp)
    Initialize.
    void
    Remove listener.
    void
    Call stop of job.

    Methods inherited from interface java.lang.Runnable

    run
  • Field Details

  • Method Details

    • getType

      int getType()
      Getting the type of job.
      Returns:
      int return the type of job
    • getState

      int getState()
      Getting state of job.
      Returns:
      int return the state of job
    • getId

      int getId()
      Getting the id of job.
      Returns:
      int return id
    • getStorageURL

      URL getStorageURL() throws BackupOperationException
      Getting storage URL.
      Returns:
      URL return the storage URL
      Throws:
      BackupOperationException - will be generate the exception BackupOperationException
    • stop

      void stop()
      Call stop of job.
    • init

      void init(org.exoplatform.services.jcr.core.ManageableRepository repository, String workspaceName, BackupConfig config, Calendar timeStamp)
      Initialize.
      Parameters:
      repository - ManageableRepository, the manageable repository
      workspaceName - String, the workspace name
      config - BackupConfig, the backup config
      timeStamp - Calendar, the time stamp
    • addListener

      void addListener(BackupJobListener listener)
      Adding listener.
      Parameters:
      listener - BackupJobListener, the job listener
    • removeListener

      void removeListener(BackupJobListener listener)
      Remove listener.
      Parameters:
      listener - BackupJobListener, the job listener