Class QuorumAuthPacket
- java.lang.Object
-
- org.apache.zookeeper.server.quorum.QuorumAuthPacket
-
-
Constructor Summary
Constructors Constructor Description QuorumAuthPacket()
QuorumAuthPacket(long magic, int status, byte[] token)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(Object peer_)
void
deserialize(InputArchive a_, String tag)
boolean
equals(Object peer_)
long
getMagic()
int
getStatus()
byte[]
getToken()
int
hashCode()
void
readFields(DataInput in)
void
serialize(OutputArchive a_, String tag)
void
setMagic(long m_)
void
setStatus(int m_)
void
setToken(byte[] m_)
static String
signature()
String
toString()
void
write(DataOutput out)
-
-
-
Method Detail
-
getMagic
public long getMagic()
-
setMagic
public void setMagic(long m_)
-
getStatus
public int getStatus()
-
setStatus
public void setStatus(int m_)
-
getToken
public byte[] getToken()
-
setToken
public void setToken(byte[] m_)
-
serialize
public void serialize(OutputArchive a_, String tag) throws IOException
- Specified by:
serialize
in interfaceRecord
- Throws:
IOException
-
deserialize
public void deserialize(InputArchive a_, String tag) throws IOException
- Specified by:
deserialize
in interfaceRecord
- Throws:
IOException
-
write
public void write(DataOutput out) throws IOException
- Throws:
IOException
-
readFields
public void readFields(DataInput in) throws IOException
- Throws:
IOException
-
compareTo
public int compareTo(Object peer_) throws ClassCastException
- Throws:
ClassCastException
-
signature
public static String signature()
-
-