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 intFINISHEDThe FINISHED state of job..static intFULLThe full backup type of job.static intINCREMENTALTHe incremental backup type of job.static intSTARTINGThe STARTING state of job.static intWAITINGThe WAITING state of job..static intWORKINGThe WORKING state of job.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddListener(BackupJobListener listener)Adding listener.intgetId()Getting the id of job.intgetState()Getting state of job.URLgetStorageURL()Getting storage URL.intgetType()Getting the type of job.voidinit(org.exoplatform.services.jcr.core.ManageableRepository repository, String workspaceName, BackupConfig config, Calendar timeStamp)Initialize.voidremoveListener(BackupJobListener listener)Remove listener.voidstop()Call stop of job.
-
-
-
Field Detail
-
FULL
static final int FULL
The full backup type of job.- See Also:
- Constant Field Values
-
INCREMENTAL
static final int INCREMENTAL
THe incremental backup type of job.- See Also:
- Constant Field Values
-
STARTING
static final int STARTING
The STARTING state of job.- See Also:
- Constant Field Values
-
WAITING
static final int WAITING
The WAITING state of job..- See Also:
- Constant Field Values
-
WORKING
static final int WORKING
The WORKING state of job.- See Also:
- Constant Field Values
-
FINISHED
static final int FINISHED
The FINISHED state of job..- See Also:
- Constant Field Values
-
-
Method Detail
-
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 repositoryworkspaceName- String, the workspace nameconfig- BackupConfig, the backup configtimeStamp- 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
-
-