eXo JCR :: Component :: Extension Service 1.16.0-CR2

org.exoplatform.services.jcr.ext.backup
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
static int FINISHED
          The FINISHED state of job..
static int FULL
          The full backup type of job.
static int INCREMENTAL
          THe incremental backup type of job.
static int STARTING
          The STARTING state of job.
static int WAITING
          The WAITING state of job..
static int WORKING
          The WORKING state of job.
 
Method Summary
 void addListener(BackupJobListener listener)
          Adding listener.
 int getId()
          Getting the id of job.
 int getState()
          Getting state of job.
 URL getStorageURL()
          Getting storage URL.
 int getType()
          Getting the type of job.
 void init(ManageableRepository repository, String workspaceName, BackupConfig config, Calendar timeStamp)
          Initialize.
 void removeListener(BackupJobListener listener)
          Remove listener.
 void stop()
          Call stop of job.
 
Methods inherited from interface java.lang.Runnable
run
 

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(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

eXo JCR :: Component :: Extension Service 1.16.0-CR2

Copyright © 2014 eXo Platform SAS. All Rights Reserved.