|
eXo JCR :: Component :: Extension Service 1.15.1-CP01 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.exoplatform.services.jcr.ext.backup.impl.AbstractBackupJob
public abstract class AbstractBackupJob
Created by The eXo Platform SAS Date: 05.02.2008
| Field Summary | |
|---|---|
protected BackupConfig |
config
|
protected int |
id
|
protected ManageableRepository |
repository
|
protected int |
state
|
protected Calendar |
timeStamp
|
protected URL |
url
|
protected String |
workspaceName
|
| Fields inherited from interface org.exoplatform.services.jcr.ext.backup.BackupJob |
|---|
FINISHED, FULL, INCREMENTAL, STARTING, WAITING, WORKING |
| Constructor Summary | |
|---|---|
AbstractBackupJob()
|
|
| Method Summary | |
|---|---|
void |
addListener(BackupJobListener listener)
Adding listener. |
protected abstract URL |
createStorage()
This method is called by run() and resume() Backup implementation knows how to create new storage |
int |
getId()
Getting the id of job. |
int |
getState()
Getting state of job. |
URL |
getStorageURL()
Getting storage URL. |
protected void |
notifyError(String message,
Throwable error)
Notify all listeners about an error |
protected void |
notifyListeners()
Notify all listeners about the job state changed |
void |
removeListener(BackupJobListener listener)
Remove listener. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.exoplatform.services.jcr.ext.backup.BackupJob |
|---|
getType, init, stop |
| Methods inherited from interface java.lang.Runnable |
|---|
run |
| Field Detail |
|---|
protected volatile int state
protected int id
protected BackupConfig config
protected ManageableRepository repository
protected String workspaceName
protected Calendar timeStamp
protected URL url
| Constructor Detail |
|---|
public AbstractBackupJob()
| Method Detail |
|---|
protected abstract URL createStorage()
throws FileNotFoundException,
IOException
FileNotFoundException
IOExceptionpublic final URL getStorageURL()
BackupJob
getStorageURL in interface BackupJobBackupJob.getStorageURL()public final int getState()
BackupJob
getState in interface BackupJobpublic final int getId()
BackupJob
getId in interface BackupJobpublic void addListener(BackupJobListener listener)
BackupJob
addListener in interface BackupJoblistener - BackupJobListener, the job listenerpublic void removeListener(BackupJobListener listener)
BackupJob
removeListener in interface BackupJoblistener - BackupJobListener, the job listenerprotected void notifyListeners()
protected void notifyError(String message,
Throwable error)
error - - Throwable instance
|
eXo JCR :: Component :: Extension Service 1.15.1-CP01 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||