Class AbstractBackupJob

    • Field Detail

      • state

        protected volatile int state
      • id

        protected int id
      • repository

        protected org.exoplatform.services.jcr.core.ManageableRepository repository
      • workspaceName

        protected String workspaceName
      • timeStamp

        protected Calendar timeStamp
      • url

        protected URL url
    • Constructor Detail

      • AbstractBackupJob

        public AbstractBackupJob()
    • Method Detail

      • getState

        public final int getState()
        Description copied from interface: BackupJob
        Getting state of job.
        Specified by:
        getState in interface BackupJob
        Returns:
        int return the state of job
      • getId

        public final int getId()
        Description copied from interface: BackupJob
        Getting the id of job.
        Specified by:
        getId in interface BackupJob
        Returns:
        int return id
      • addListener

        public void addListener​(BackupJobListener listener)
        Description copied from interface: BackupJob
        Adding listener.
        Specified by:
        addListener in interface BackupJob
        Parameters:
        listener - BackupJobListener, the job listener
      • removeListener

        public void removeListener​(BackupJobListener listener)
        Description copied from interface: BackupJob
        Remove listener.
        Specified by:
        removeListener in interface BackupJob
        Parameters:
        listener - BackupJobListener, the job listener
      • notifyListeners

        protected void notifyListeners()
        Notify all listeners about the job state changed
      • notifyError

        protected void notifyError​(String message,
                                   Throwable error)
        Notify all listeners about an error
        Parameters:
        error - - Throwable instance