Package com.powsybl.afs.storage.check
Class FileSystemCheckOptions
- java.lang.Object
-
- com.powsybl.afs.storage.check.FileSystemCheckOptions
-
public class FileSystemCheckOptions extends Object
Options for a file system check. It defines what types of issues should be looked for, and if they should be repaired or not.- Author:
- Yichen TANG
-
-
Field Summary
Fields Modifier and Type Field Description static String
EXPIRED_INCONSISTENT_NODES
If defined ingetTypes()
, the implementation must look for inconsistent nodes older than a specified date.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Optional<Instant>
getInconsistentNodesExpirationTime()
Inconsistent nodes older than this are considered "expired", which means that their creation will probably never be achieved.Set<String>
getTypes()
Defines the type of issues which should be looked for.boolean
isRepair()
Iffalse
, just list issues but don't repair them
-
-
-
Field Detail
-
EXPIRED_INCONSISTENT_NODES
public static final String EXPIRED_INCONSISTENT_NODES
If defined ingetTypes()
, the implementation must look for inconsistent nodes older than a specified date.- See Also:
- Constant Field Values
-
-
Method Detail
-
getInconsistentNodesExpirationTime
public Optional<Instant> getInconsistentNodesExpirationTime()
Inconsistent nodes older than this are considered "expired", which means that their creation will probably never be achieved. IfisRepair()
istrue
, those nodes will be removed. If absent, nothing is done.
-
getTypes
public Set<String> getTypes()
Defines the type of issues which should be looked for. Types can be implementation-dependent.
-
isRepair
public boolean isRepair()
Iffalse
, just list issues but don't repair them
-
-