Class LocalFileRoleManager
- java.lang.Object
-
- org.apache.iotdb.commons.auth.role.BasicRoleManager
-
- org.apache.iotdb.commons.auth.role.LocalFileRoleManager
-
- All Implemented Interfaces:
IRoleManager,SnapshotProcessor
public class LocalFileRoleManager extends BasicRoleManager
-
-
Field Summary
-
Fields inherited from class org.apache.iotdb.commons.auth.role.BasicRoleManager
accessor, lock, roleMap
-
-
Constructor Summary
Constructors Constructor Description LocalFileRoleManager(java.lang.String roleDirPath)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidprocessLoadSnapshot(java.io.File snapshotDir)Load snapshotbooleanprocessTakeSnapshot(java.io.File snapshotDir)Take snapshot-
Methods inherited from class org.apache.iotdb.commons.auth.role.BasicRoleManager
createRole, deleteRole, getRole, grantPrivilegeToRole, listAllRoles, replaceAllRoles, reset, revokePrivilegeFromRole
-
-
-
-
Method Detail
-
processTakeSnapshot
public boolean processTakeSnapshot(java.io.File snapshotDir) throws org.apache.thrift.TException, java.io.IOExceptionDescription copied from interface:SnapshotProcessorTake 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
public void processLoadSnapshot(java.io.File snapshotDir) throws org.apache.thrift.TException, java.io.IOExceptionDescription copied from interface:SnapshotProcessorLoad 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
-
-