|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectAbstractDynamicMBean
com.admc.jamama.director.JamamaDirector
Implementation of a Routing Director. Just a stub at this point.
| Field Summary |
| Fields inherited from interface com.admc.jamama.Router |
STATUS_CONTINUE, STATUS_DEFER, STATUS_DROP, STATUS_EXPLICITROUTE, STATUS_FREEZE, STATUS_SUCCESS |
| Constructor Summary | |
JamamaDirector()
|
|
| Method Summary | |
void |
configure(java.lang.Object inCfg)
Initialize the object's state with information in the given Jaxb object. |
protected MBeanAttributeInfo[] |
createMBeanAttributeInfo()
|
Mit |
createMit()
Creates a mit but does not store it anyhwhere. |
java.lang.Object |
getConfig()
Returns the Jaxb object used to configure this. |
protected java.lang.String |
getMBeanDescription()
|
java.lang.String |
getName()
Name which Jamama config file uses to identify this object instance. |
RepositoryDependency[] |
getNeededRepositories()
|
RepositoryDependency[] |
getNeedRepositories()
Returns names of the repositories needed. |
java.lang.String[] |
getNeedRouters()
Returns names of all Routers that this Router may forward to. |
boolean |
getRun()
Say whether main thread of this Server is running. |
boolean |
isRun()
|
void |
restoreRunState()
Start up server iff server is configured to start automatically. |
int |
route(Mit mit,
boolean ping,
Repository[] repositoryList)
Processes a Mit, with a goal of approaching or achieving Mit consumption or rejection. |
boolean |
route(Mit mit,
boolean ping,
Router startingRouter)
Routes a Mit through a portion of the (or the entire) pipeline. |
void |
routingRun(java.lang.String criteria,
int mitState,
boolean debug)
Extracts Mits with the given state and other criteria from repository and attempts to route them. |
void |
run()
Main thread |
void |
setPipeline(java.util.List inList)
Sets the router Pipeline to those pipes named in the input list. |
void |
setRepositories(ClassReposMapMap inClassReposes,
ClassRepositoryMap inDefaultClassReposes)
Set repositories to use and to make available to Routers. |
void |
setRouters(StringRouterMap inRouterMap)
|
void |
setRun(boolean inRun)
Start or stop the main thread in this object. |
void |
validateRouters()
Verifies that Routers and Repositories "needed" by Routers in our "router" set all exist. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public JamamaDirector()
| Method Detail |
public void setRouters(StringRouterMap inRouterMap)
throws java.lang.Exception
setRouters in interface Directorjava.lang.Exception
public void setRepositories(ClassReposMapMap inClassReposes,
ClassRepositoryMap inDefaultClassReposes)
Director
setRepositories in interface DirectorDirector
public void routingRun(java.lang.String criteria,
int mitState,
boolean debug)
throws java.io.IOException
criteria - Selection criteria for Mits to routemitState - Only attempt to route Mits with this statedebug - Only do ping routings. Don't persist anything.
java.io.IOException
public void validateRouters()
throws java.lang.Exception
java.lang.Exceptionpublic Mit createMit()
createMit in interface Director
public void setPipeline(java.util.List inList)
throws UndefinedNameException
setPipeline in interface DirectorinList - A list of String pipe names.
UndefinedNameException
public boolean route(Mit mit,
boolean ping,
Router startingRouter)
mit - Mit to routeping - True to actually route the Mit, False to just get a
return status from this method.startingRouter - Name of the Router to start at. This Router
must be in the current Director pipeline.
A null startRouter means to start at the head
of the pipeline.
public boolean isRun()
Serverpublic boolean getRun()
Server
getRun in interface ServerServerprotected MBeanAttributeInfo[] createMBeanAttributeInfo()
protected java.lang.String getMBeanDescription()
public void setRun(boolean inRun)
Server
setRun in interface ServerinRun - true to start up thread; false to stop itServerpublic void restoreRunState()
Server
restoreRunState in interface ServerServerpublic void run()
run in interface java.lang.Runnablepublic java.lang.String[] getNeedRouters()
Router
getNeedRouters in interface Routercom.admc.Routerpublic RepositoryDependency[] getNeededRepositories()
com.admc.Router
public int route(Mit mit,
boolean ping,
Repository[] repositoryList)
Router
route in interface Routercom.admc.Routerpublic void configure(java.lang.Object inCfg)
Configurable
configure in interface ConfigurableinCfg - A Jaxb object corresponding to a XML document branch.Configurablepublic java.lang.String getName()
Configurable
getName in interface ConfigurableConfigurablepublic java.lang.Object getConfig()
Configurable
getConfig in interface ConfigurableConfigurablepublic RepositoryDependency[] getNeedRepositories()
Router
getNeedRepositories in interface RouterRouter
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||