Package org.apache.zookeeper.proto
Class ConnectResponse
java.lang.Object
org.apache.zookeeper.proto.ConnectResponse
- All Implemented Interfaces:
Record
-
Constructor Summary
ConstructorsConstructorDescriptionConnectResponse(int protocolVersion, int timeOut, long sessionId, byte[] passwd, boolean readOnly) -
Method Summary
Modifier and TypeMethodDescriptionintvoiddeserialize(InputArchive a_, String tag) booleanbyte[]intbooleanlongintinthashCode()voidreadFields(DataInput in) voidserialize(OutputArchive a_, String tag) voidsetPasswd(byte[] m_) voidsetProtocolVersion(int m_) voidsetReadOnly(boolean m_) voidsetSessionId(long m_) voidsetTimeOut(int m_) static StringtoString()voidwrite(DataOutput out)
-
Constructor Details
-
ConnectResponse
public ConnectResponse() -
ConnectResponse
public ConnectResponse(int protocolVersion, int timeOut, long sessionId, byte[] passwd, boolean readOnly)
-
-
Method Details
-
getProtocolVersion
public int getProtocolVersion() -
setProtocolVersion
public void setProtocolVersion(int m_) -
getTimeOut
public int getTimeOut() -
setTimeOut
public void setTimeOut(int m_) -
getSessionId
public long getSessionId() -
setSessionId
public void setSessionId(long m_) -
getPasswd
public byte[] getPasswd() -
setPasswd
public void setPasswd(byte[] m_) -
getReadOnly
public boolean getReadOnly() -
setReadOnly
public void setReadOnly(boolean m_) -
serialize
- Specified by:
serializein interfaceRecord- Throws:
IOException
-
deserialize
- Specified by:
deserializein interfaceRecord- Throws:
IOException
-
toString
-
write
- Throws:
IOException
-
readFields
- Throws:
IOException
-
compareTo
- Throws:
ClassCastException
-
equals
-
hashCode
public int hashCode() -
signature
-