public class ToolSession extends java.lang.Object implements IDPContext.IToolSession
Constructor and Description |
---|
ToolSession(IDPContext ctx,
IDPContext.IToolConfig cfg) |
Modifier and Type | Method and Description |
---|---|
PartGeneration |
backup(PartGeneration previous,
PartGeneration next) |
void |
clean(java.util.List<java.lang.Integer> validPartIds) |
void |
interrupt() |
void |
restore(int generation,
java.util.Set<java.lang.String> what) |
void |
restore(int generation,
java.util.Set<java.lang.String> what,
java.lang.String to) |
void |
restoreOneFolder(int generation,
java.lang.String what,
java.lang.String to) |
java.lang.String |
tmpDirectory() |
public ToolSession(IDPContext ctx, IDPContext.IToolConfig cfg)
ctx
- cfg
- public PartGeneration backup(PartGeneration previous, PartGeneration next) throws ServerFault
backup
in interface IDPContext.IToolSession
ServerFault
public void interrupt()
interrupt
in interface IDPContext.IToolSession
public void restore(int generation, java.util.Set<java.lang.String> what) throws ServerFault
restore
in interface IDPContext.IToolSession
ServerFault
public void restore(int generation, java.util.Set<java.lang.String> what, java.lang.String to) throws ServerFault
restore
in interface IDPContext.IToolSession
ServerFault
public void restoreOneFolder(int generation, java.lang.String what, java.lang.String to)
restoreOneFolder
in interface IDPContext.IToolSession
public java.lang.String tmpDirectory() throws ServerFault
tmpDirectory
in interface IDPContext.IToolSession
ServerFault
public void clean(java.util.List<java.lang.Integer> validPartIds)
clean
in interface IDPContext.IToolSession
Copyright © 2021. All Rights Reserved.