Interface BackupJob
- All Superinterfaces:
Runnable
- All Known Implementing Classes:
AbstractBackupJob,AbstractFullBackupJob,AbstractIncrementalBackupJob,FullBackupJob,FullBackupJob,IncrementalBackupJob
Created by The eXo Platform SARL .
- Version:
- $Id: $
- Author:
- Gennady Azarenkov
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe FINISHED state of job..static final intThe full backup type of job.static final intTHe incremental backup type of job.static final intThe STARTING state of job.static final intThe WAITING state of job..static final intThe WORKING state of job. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddListener(BackupJobListener listener) Adding listener.intgetId()Getting the id of job.intgetState()Getting state of job.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 Details
-
FULL
static final int FULLThe full backup type of job.- See Also:
-
INCREMENTAL
static final int INCREMENTALTHe incremental backup type of job.- See Also:
-
STARTING
static final int STARTINGThe STARTING state of job.- See Also:
-
WAITING
static final int WAITINGThe WAITING state of job..- See Also:
-
WORKING
static final int WORKINGThe WORKING state of job.- See Also:
-
FINISHED
static final int FINISHEDThe FINISHED state of job..- See Also:
-
-
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
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
Adding listener.- Parameters:
listener- BackupJobListener, the job listener
-
removeListener
Remove listener.- Parameters:
listener- BackupJobListener, the job listener
-