org.apache.zookeeper.server
Interface ServerCnxn

All Superinterfaces:
Watcher
All Known Implementing Classes:
NIOServerCnxn

public interface ServerCnxn
extends Watcher


Nested Class Summary
static interface ServerCnxn.Stats
           
 
Nested classes/interfaces inherited from interface org.apache.zookeeper.Watcher
Watcher.Event
 
Field Summary
static int dumpCmd
           
static int enviCmd
           
static int getTraceMaskCmd
           
static ByteBuffer imok
           
static Object me
           
static int reqsCmd
           
static int ruokCmd
          See Zk Admin.
static int setTraceMaskCmd
           
static int srstCmd
           
static int statCmd
           
 
Method Summary
 void close()
           
 void finishSessionInit(boolean valid)
           
 ArrayList<org.apache.zookeeper.data.Id> getAuthInfo()
           
 InetSocketAddress getRemoteAddress()
           
 long getSessionId()
           
 int getSessionTimeout()
           
 ServerCnxn.Stats getStats()
           
 void process(WatchedEvent event)
           
 void sendResponse(org.apache.zookeeper.proto.ReplyHeader h, Record r, String tag)
           
 void setSessionId(long sessionId)
           
 

Field Detail

ruokCmd

static final int ruokCmd
See Zk Admin. this link is for all the commands.


dumpCmd

static final int dumpCmd

statCmd

static final int statCmd

reqsCmd

static final int reqsCmd

setTraceMaskCmd

static final int setTraceMaskCmd

getTraceMaskCmd

static final int getTraceMaskCmd

enviCmd

static final int enviCmd

srstCmd

static final int srstCmd

imok

static final ByteBuffer imok

me

static final Object me
Method Detail

getSessionTimeout

int getSessionTimeout()

close

void close()

sendResponse

void sendResponse(org.apache.zookeeper.proto.ReplyHeader h,
                  Record r,
                  String tag)
                  throws IOException
Throws:
IOException

finishSessionInit

void finishSessionInit(boolean valid)

process

void process(WatchedEvent event)
Specified by:
process in interface Watcher

getSessionId

long getSessionId()

setSessionId

void setSessionId(long sessionId)

getAuthInfo

ArrayList<org.apache.zookeeper.data.Id> getAuthInfo()

getRemoteAddress

InetSocketAddress getRemoteAddress()

getStats

ServerCnxn.Stats getStats()