public abstract class DefaultWorker extends java.lang.Object implements IBackupWorker
Modifier and Type | Field and Description |
---|---|
protected org.slf4j.Logger |
logger |
Constructor and Description |
---|
DefaultWorker() |
Modifier and Type | Method and Description |
---|---|
void |
cleanup(IDPContext ctx,
PartGeneration part,
java.util.Map<java.lang.String,java.lang.Object> params) |
void |
dataDirsSaved(IDPContext ctx,
java.lang.String tag,
ItemValue<Server> backedUp)
This gets called once the data is saved with rsync.
|
java.util.Set<java.lang.String> |
getDataDirs()
This is called after
prepareDataDirs . |
void |
prepareDataDirs(IDPContext ctx,
java.lang.String tag,
ItemValue<Server> toBackup)
This is called before the backup starts.
|
void |
restore(IDPContext ctx,
PartGeneration part,
java.util.Map<java.lang.String,java.lang.Object> params) |
boolean |
supportsTag(java.lang.String tag) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getDataType
public boolean supportsTag(java.lang.String tag)
supportsTag
in interface IBackupWorker
public void prepareDataDirs(IDPContext ctx, java.lang.String tag, ItemValue<Server> toBackup) throws ServerFault
IBackupWorker
prepareDataDirs
in interface IBackupWorker
ServerFault
public java.util.Set<java.lang.String> getDataDirs()
IBackupWorker
prepareDataDirs
. Rsync will be used to
save those dirs. Symlinks are handled by the dataprotect code, so you
don't need special code here to check if the dir war symlinked elsewhere.getDataDirs
in interface IBackupWorker
public void dataDirsSaved(IDPContext ctx, java.lang.String tag, ItemValue<Server> backedUp) throws ServerFault
IBackupWorker
dataDirsSaved
in interface IBackupWorker
ServerFault
public void restore(IDPContext ctx, PartGeneration part, java.util.Map<java.lang.String,java.lang.Object> params) throws ServerFault
restore
in interface IBackupWorker
ServerFault
public void cleanup(IDPContext ctx, PartGeneration part, java.util.Map<java.lang.String,java.lang.Object> params) throws ServerFault
cleanup
in interface IBackupWorker
ServerFault
Copyright © 2021. All Rights Reserved.