net.jxta.search.router
Class Router

java.lang.Object
  |
  +--net.jxta.search.router.Router

public class Router
extends java.lang.Object


Inner Class Summary
static interface Router.Callback
           
static interface Router.Connection
           
static interface Router.ConnectionService
           
static interface Router.Manager
           
 class Router.Merger
           
 class Router.RouteStats
           
 
Constructor Summary
Router(Router.Manager manager, net.jxta.search.util.ThreadService threadService, net.jxta.peergroup.PeerGroup peerGroup, net.jxta.search.util.LogService logService)
           
 
Method Summary
 void addConnectionService(java.lang.String protocol, Router.ConnectionService cs)
           
 java.util.Iterator getMergers()
           
 java.util.Iterator getRouteStats()
           
 Router.RouteStats getRouteStats(java.net.URL url)
           
 void route(Request request, ProviderInfo[] providerInfos, javax.servlet.http.Cookie[] cookies, Router.Callback cb)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Router

public Router(Router.Manager manager,
              net.jxta.search.util.ThreadService threadService,
              net.jxta.peergroup.PeerGroup peerGroup,
              net.jxta.search.util.LogService logService)
       throws net.jxta.exception.PeerGroupException
Method Detail

addConnectionService

public void addConnectionService(java.lang.String protocol,
                                 Router.ConnectionService cs)

getMergers

public java.util.Iterator getMergers()

getRouteStats

public java.util.Iterator getRouteStats()

getRouteStats

public Router.RouteStats getRouteStats(java.net.URL url)

route

public void route(Request request,
                  ProviderInfo[] providerInfos,
                  javax.servlet.http.Cookie[] cookies,
                  Router.Callback cb)
           throws java.io.IOException