org.apache.zookeeper.proto
Class ConnectResponse

java.lang.Object
  extended by org.apache.zookeeper.proto.ConnectResponse
All Implemented Interfaces:
org.apache.jute.Record

public class ConnectResponse
extends Object
implements org.apache.jute.Record


Constructor Summary
ConnectResponse()
           
ConnectResponse(int protocolVersion, int timeOut, long sessionId, byte[] passwd)
           
 
Method Summary
 int compareTo(Object peer_)
           
 void deserialize(org.apache.jute.InputArchive a_, String tag)
           
 boolean equals(Object peer_)
           
 byte[] getPasswd()
           
 int getProtocolVersion()
           
 long getSessionId()
           
 int getTimeOut()
           
 int hashCode()
           
 void readFields(DataInput in)
           
 void serialize(org.apache.jute.OutputArchive a_, String tag)
           
 void setPasswd(byte[] m_)
           
 void setProtocolVersion(int m_)
           
 void setSessionId(long m_)
           
 void setTimeOut(int m_)
           
static String signature()
           
 String toString()
           
 void write(DataOutput out)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ConnectResponse

public ConnectResponse()

ConnectResponse

public ConnectResponse(int protocolVersion,
                       int timeOut,
                       long sessionId,
                       byte[] passwd)
Method Detail

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_)

serialize

public void serialize(org.apache.jute.OutputArchive a_,
                      String tag)
               throws IOException
Specified by:
serialize in interface org.apache.jute.Record
Throws:
IOException

deserialize

public void deserialize(org.apache.jute.InputArchive a_,
                        String tag)
                 throws IOException
Specified by:
deserialize in interface org.apache.jute.Record
Throws:
IOException

toString

public String toString()
Overrides:
toString in class Object

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

equals

public boolean equals(Object peer_)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

signature

public static String signature()


Copyright © 2011 The Apache Software Foundation