com.admc.jamama
Interface Director

All Superinterfaces:
Configurable, Router, java.lang.Runnable, Server
All Known Implementing Classes:
JamamaDirector

public interface Director
extends Server, Router

Routing Director.

Version:
$Revision: 1.4 $
Author:
Blaine Simpson

Field Summary
 
Fields inherited from interface com.admc.jamama.Router
STATUS_CONTINUE, STATUS_DEFER, STATUS_DROP, STATUS_EXPLICITROUTE, STATUS_FREEZE, STATUS_SUCCESS
 
Method Summary
 Mit createMit()
          Jamama objects depend on their RoutingDirector to create Mits (Because it associates the correct repository with the new Mit).
 void setPipeline(java.util.List inList)
          Sets the router Pipeline to those pipes named in the input list.
 void setRepositories(ClassReposMapMap classRepositories, ClassRepositoryMap defaultRepositories)
          Set repositories to use and to make available to Routers.
 void setRouters(StringRouterMap inRouterMap)
           
 
Methods inherited from interface com.admc.jamama.Server
getRun, restoreRunState, setRun
 
Methods inherited from interface com.admc.jamama.Configurable
configure, getConfig, getName
 
Methods inherited from interface java.lang.Runnable
run
 
Methods inherited from interface com.admc.jamama.Router
getNeedRepositories, getNeedRouters, route
 

Method Detail

setRouters

public void setRouters(StringRouterMap inRouterMap)
                throws java.lang.Exception
Throws:
java.lang.Exception

setPipeline

public void setPipeline(java.util.List inList)
                 throws UndefinedNameException
Sets the router Pipeline to those pipes named in the input list. Pipeline always starts with Router.pipehead and ends with the Routing Director itself (which implements Router). (That fact is actually an implementation detail which doesn't belong in the API, but I'm putting that info here for now).

Parameters:
inList - A list of String pipe names.
Throws:
UndefinedNameException

setRepositories

public void setRepositories(ClassReposMapMap classRepositories,
                            ClassRepositoryMap defaultRepositories)
Set repositories to use and to make available to Routers.


createMit

public Mit createMit()
Jamama objects depend on their RoutingDirector to create Mits (Because it associates the correct repository with the new Mit).