Class LocalFileUserManager
- java.lang.Object
-
- org.apache.iotdb.commons.auth.user.BasicUserManager
-
- org.apache.iotdb.commons.auth.user.LocalFileUserManager
-
- All Implemented Interfaces:
IUserManager,SnapshotProcessor
public class LocalFileUserManager extends BasicUserManager
-
-
Field Summary
-
Fields inherited from class org.apache.iotdb.commons.auth.user.BasicUserManager
accessor, lock, userMap
-
-
Constructor Summary
Constructors Constructor Description LocalFileUserManager(java.lang.String userDirPath)
-
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.user.BasicUserManager
createUser, deleteUser, getUser, grantPrivilegeToUser, grantRoleToUser, isUserUseWaterMark, listAllUsers, replaceAllUsers, reset, revokePrivilegeFromUser, revokeRoleFromUser, setUserUseWaterMark, updateUserPassword
-
-
-
-
Constructor Detail
-
LocalFileUserManager
public LocalFileUserManager(java.lang.String userDirPath) throws AuthException- Throws:
AuthException
-
-
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
-
-