public class DPService extends java.lang.Object implements IDataProtect
Constructor and Description |
---|
DPService(BmContext context,
java.util.List<RestoreOperation> ops,
java.util.List<IRestoreActionProvider> providers) |
Modifier and Type | Method and Description |
---|---|
TaskRef |
forget(int generationId)
Removes protected data
|
java.util.List<DataProtectGeneration> |
getAvailableGenerations()
Returns all protected generations, ordered from oldest to most recent
|
TaskRef |
getContent(java.lang.String generationId)
Loads an index of protected datas with possible restore actions.
|
java.util.List<RestoreOperation> |
getRestoreCapabilities()
Returns infos about the restore operations that the core provides
|
java.util.List<RestoreOperation> |
getRestoreCapabilitiesByTags(java.util.List<java.lang.String> tags)
* Returns infos about the restore operations that the core provides
(filtered by tags)
|
RetentionPolicy |
getRetentionPolicy()
Returns the
RetentionPolicy used for backup automatic removals. |
protected DataProtectGenerationStore |
getStore() |
TaskRef |
installFromGeneration(int generationId)
Populates a blue mind database using protected data from a given
generation.
|
TaskRef |
run(RestoreDefinition restoreDefinition)
Executes a restore operation on the given
Restorable item using
data from a DataProtectGeneration |
TaskRef |
saveAll()
Run the incremental dataprotect backup process
|
void |
syncWithFilesystem()
Re-creates the in-database metadata using the generations.xml index from
the data protect spool on the filesystem.
|
void |
updatePolicy(RetentionPolicy rp)
creates or updates the
RetentionPolicy . |
public DPService(BmContext context, java.util.List<RestoreOperation> ops, java.util.List<IRestoreActionProvider> providers)
protected DataProtectGenerationStore getStore()
public java.util.List<DataProtectGeneration> getAvailableGenerations() throws ServerFault
IDataProtect
getAvailableGenerations
in interface IDataProtect
ServerFault
public TaskRef getContent(java.lang.String generationId) throws ServerFault
IDataProtect
getContent
in interface IDataProtect
GenerationContent
XML from TaskStatus
resultServerFault
public java.util.List<RestoreOperation> getRestoreCapabilities() throws ServerFault
IDataProtect
getRestoreCapabilities
in interface IDataProtect
ServerFault
public java.util.List<RestoreOperation> getRestoreCapabilitiesByTags(java.util.List<java.lang.String> tags) throws ServerFault
IDataProtect
getRestoreCapabilitiesByTags
in interface IDataProtect
ServerFault
public TaskRef run(RestoreDefinition restoreDefinition) throws ServerFault
IDataProtect
Restorable
item using
data from a DataProtectGeneration
run
in interface IDataProtect
ServerFault
public TaskRef forget(int generationId) throws ServerFault
IDataProtect
forget
in interface IDataProtect
ServerFault
public RetentionPolicy getRetentionPolicy() throws ServerFault
IDataProtect
RetentionPolicy
used for backup automatic removals.
Never returns null
.getRetentionPolicy
in interface IDataProtect
ServerFault
public void updatePolicy(RetentionPolicy rp) throws ServerFault
IDataProtect
RetentionPolicy
.updatePolicy
in interface IDataProtect
ServerFault
public void syncWithFilesystem() throws ServerFault
IDataProtect
syncWithFilesystem
in interface IDataProtect
ServerFault
public TaskRef installFromGeneration(int generationId) throws ServerFault
IDataProtect
installFromGeneration
in interface IDataProtect
ServerFault
public TaskRef saveAll() throws ServerFault
IDataProtect
saveAll
in interface IDataProtect
ServerFault
Copyright © 2021. All Rights Reserved.