Interface SnapshotProcessor
-
- All Known Subinterfaces:
IAuthorizer,IRoleAccessor,IRoleManager,IUserAccessor,IUserManager
- All Known Implementing Classes:
BasicAuthorizer,BasicRoleManager,BasicUserManager,LocalFileAuthorizer,LocalFileRoleAccessor,LocalFileRoleManager,LocalFileUserAccessor,LocalFileUserManager,OpenIdAuthorizer,SyncMetadata
public interface SnapshotProcessorDifferent from interface of state machines interacting with consensus groups. This interface is where each module actually performs the snapshot inside the state machine. Every module that can actually process(modify) snapshot content should implement it.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidprocessLoadSnapshot(java.io.File snapshotDir)Load snapshotbooleanprocessTakeSnapshot(java.io.File snapshotDir)Take snapshot
-
-
-
Method Detail
-
processTakeSnapshot
boolean processTakeSnapshot(java.io.File snapshotDir) throws org.apache.thrift.TException, java.io.IOExceptionTake snapshot- Parameters:
snapshotDir- Where snapshot files are stored.- Returns:
- Whether the snapshot is successfully executed
- Throws:
org.apache.thrift.TException- Exception occurred during the thrift serialize structjava.io.IOException- Exception related to file read and write
-
processLoadSnapshot
void processLoadSnapshot(java.io.File snapshotDir) throws org.apache.thrift.TException, java.io.IOExceptionLoad snapshot- Parameters:
snapshotDir- Load snapshot from here- Throws:
org.apache.thrift.TException- Exception occurred during the thrift deserialize structjava.io.IOException- Exception related to file read and write
-
-