Class AuthorPlan
java.lang.Object
org.apache.iotdb.confignode.consensus.request.ConfigPhysicalPlan
org.apache.iotdb.confignode.consensus.request.write.auth.AuthorPlan
- All Implemented Interfaces:
IConsensusRequest
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.iotdb.confignode.consensus.request.ConfigPhysicalPlan
ConfigPhysicalPlan.Factory -
Constructor Summary
ConstructorsConstructorDescriptionAuthorPlan(ConfigPhysicalPlanType authorType, String userName, String roleName, String password, String newPassword, Set<Integer> permissions, boolean grantOpt, List<PartialPath> nodeNameList) AuthorPlanConstructor. -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddeserializeImpl(ByteBuffer buffer) booleanbooleaninthashCode()protected voidserializeImpl(DataOutputStream stream) voidsetAuthorType(ConfigPhysicalPlanType authorType) voidsetGrantOpt(boolean grantOpt) voidsetNodeNameList(List<PartialPath> nodeNameList) voidsetPassword(String password) voidsetPermissions(Set<Integer> permissions) voidsetRoleName(String roleName) voidsetUserName(String userName) toString()Methods inherited from class org.apache.iotdb.confignode.consensus.request.ConfigPhysicalPlan
getSerializedSize, getType, serializeToByteBufferMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.iotdb.consensus.common.request.IConsensusRequest
getMemorySize, markAsGeneratedByRemoteConsensusLeader
-
Constructor Details
-
AuthorPlan
-
AuthorPlan
public AuthorPlan(ConfigPhysicalPlanType authorType, String userName, String roleName, String password, String newPassword, Set<Integer> permissions, boolean grantOpt, List<PartialPath> nodeNameList) AuthorPlanConstructor.- Parameters:
authorType- author typeuserName- user nameroleName- role namepassword- passwordnewPassword- new passwordpermissions- permissionsgrantOpt- with grant option, only grant statement can set grantOpt = truenodeNameList- node name in Path structure
-
-
Method Details
-
getAuthorType
-
setAuthorType
-
getRoleName
-
setRoleName
-
getPassword
-
setPassword
-
getNewPassword
-
getPermissions
-
setPermissions
-
getGrantOpt
public boolean getGrantOpt() -
setGrantOpt
public void setGrantOpt(boolean grantOpt) -
getNodeNameList
-
setNodeNameList
-
getUserName
-
setUserName
-
serializeImpl
- Specified by:
serializeImplin classConfigPhysicalPlan- Throws:
IOException
-
deserializeImpl
- Specified by:
deserializeImplin classConfigPhysicalPlan
-
equals
- Overrides:
equalsin classConfigPhysicalPlan
-
hashCode
public int hashCode()- Overrides:
hashCodein classConfigPhysicalPlan
-
toString
-