ucr.core
Class ServerSession

java.lang.Object
  extended byucr.core.ServerSession

public class ServerSession
extends java.lang.Object

Session that can be used to respond to Query messages and receive Push messages


Field Summary
private  MessageReceiver receiver
           
private  Router router
           
 
Constructor Summary
(package private) ServerSession(Router router, MessageReceiver receiver)
          Constructs the FileServerSession, not visible to application
 
Method Summary
 void close()
          Closes the session
 void queryHit(GUID requestGUID, SearchReplyMessage response)
          An application should call queryHit to indicate that the applicatio's node is in ther route of the Query
 void traceHit(GUID requestGUID, TraceReplyMessage response)
          An application should call traceHit to indicate that the applicatio's node is in ther route of the Query
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

router

private Router router

receiver

private MessageReceiver receiver
Constructor Detail

ServerSession

ServerSession(Router router,
              MessageReceiver receiver)
Constructs the FileServerSession, not visible to application

Method Detail

close

public void close()
Closes the session


traceHit

public void traceHit(GUID requestGUID,
                     TraceReplyMessage response)
An application should call traceHit to indicate that the applicatio's node is in ther route of the Query

Parameters:
requestGUID - the trace message initiated at this node
response -

queryHit

public void queryHit(GUID requestGUID,
                     SearchReplyMessage response)
An application should call queryHit to indicate that the applicatio's node is in ther route of the Query

Parameters:
requestGUID - search message which has a hit
response - hit information