org.psepr.jClient
Interface RouterManager

All Known Implementing Classes:
SimpleRouterManager

public interface RouterManager

A class implmenets this interface to manage the routers that the connection can connect to. When a new PsEPRConnection is created, it calls the class in PsEPRService that implements this interface to get another router to connect to.

A simple implementation will just loop through the routers specifications in the parameter file. A more complex implementation would check on the outstanding connections and on previous history to choose a better connection.

Author:
radams1

Method Summary
 PsEPRRouter getNextRouterToTry()
          Called to get a PsEPRRouter to attempt a connection on.
 void routerFailed(PsEPRRouter pr)
          Called to say that a previously return PsEPRRouter couldn't be connected to.
 

Method Detail

getNextRouterToTry

PsEPRRouter getNextRouterToTry()
Called to get a PsEPRRouter to attempt a connection on.

Returns:
information on a router to try, or null if none

routerFailed

void routerFailed(PsEPRRouter pr)
Called to say that a previously return PsEPRRouter couldn't be connected to.

Parameters:
pr - previously returned (from getNextRouterToTry) router