org.apache.zookeeper.server
Interface ServerCnxn

All Superinterfaces:
Watcher
All Known Implementing Classes:
NIOServerCnxn

public interface ServerCnxn
extends Watcher

Interface to a Server connection - represents a connection from a client to the server.


Nested Class Summary
static interface ServerCnxn.Stats
          Statistics on the ServerCnxn
 
Nested classes/interfaces inherited from interface org.apache.zookeeper.Watcher
Watcher.Event
 
Field Summary
static java.lang.Object me
           
 
Method Summary
 void finishSessionInit(boolean valid)
           
 java.util.ArrayList<Id> getAuthInfo()
           
 java.net.InetSocketAddress getRemoteAddress()
           
 long getSessionId()
           
 int getSessionTimeout()
           
 ServerCnxn.Stats getStats()
           
 void process(WatchedEvent event)
           
 void sendCloseSession()
           
 void sendResponse(ReplyHeader h, org.apache.jute.Record r, java.lang.String tag)
           
 void setSessionId(long sessionId)
           
 

Field Detail

me

static final java.lang.Object me
Method Detail

getSessionTimeout

int getSessionTimeout()

sendResponse

void sendResponse(ReplyHeader h,
                  org.apache.jute.Record r,
                  java.lang.String tag)
                  throws java.io.IOException
Throws:
java.io.IOException

sendCloseSession

void sendCloseSession()

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

java.util.ArrayList<Id> getAuthInfo()

getRemoteAddress

java.net.InetSocketAddress getRemoteAddress()

getStats

ServerCnxn.Stats getStats()


Copyright © 2011 The Apache Software Foundation