BEAST
eu.baltrad.beast.router.impl.BltRouter Class Reference

The Baltrad router that determines all routes. More...

Inheritance diagram for eu.baltrad.beast.router.impl.BltRouter:
eu.baltrad.beast.router.IRouter eu.baltrad.beast.router.IRouterManager

Public Member Functions

 BltRouter ()
 Constructor.
 
void setSystemReporter (ISystemReporter reporter)
 Sets the reporter for managing system messages.
 
void setJdbcTemplate (JdbcOperations template)
 Sets the jdbc template.
 
void setRuleManagers (Map< String, IRuleManager > ruleManagers)
 Sets the rule managers.
 
void setSystemRules (SystemRulesDefinition def)
 Sets the system definitions.
 
List< IMultiRoutedMessagegetMultiRoutedMessages (IBltMessage msg)
 
List< IRoutedMessagegetRoutedMessages (IBltMessage msg)
 
synchronized List< String > getNames ()
 
synchronized RouteDefinition getDefinition (String name)
 
synchronized List< RouteDefinitiongetDefinitions ()
 
synchronized List< RouteDefinitiongetDefinitions (List< String > types)
 
RouteDefinition create (String name, String author, boolean active, String description, List< String > recipients, IRule rule)
 
synchronized void deleteDefinition (String name)
 
synchronized void storeDefinition (RouteDefinition def)
 
synchronized void updateDefinition (RouteDefinition def)
 
synchronized void afterPropertiesSet () throws Exception
 Spring framework will call this function after the bean has been created.
 
IRule createRule (String type)
 
void setContext (ManagerContext context)
 

Protected Member Functions

List< IMultiRoutedMessagegetMultiRoutedMessages (IBltMessage msg, RouteDefinition def)
 Used to get the routed messages from a specific rule.
 
List< IRoutedMessagegetRoutedMessages (IBltMessage msg, RouteDefinition def)
 Used to get the routed messages from a specific rule.
 
synchronized void removeDefinitionFromList (String name)
 Removes the specified definition from the list.
 
void storeRecipients (int rule_id, List< String > recipients)
 Stores the recipients.
 
synchronized List< String > getRecipients (int rule_id)
 Returns the recipients for the routing definition with specified name.
 
RowMapper< RouteDefinitiongetRouteDefinitionMapper ()
 Returns the definition mapper.
 

Detailed Description

The Baltrad router that determines all routes.

Author
Anders Henja

Constructor & Destructor Documentation

◆ BltRouter()

eu.baltrad.beast.router.impl.BltRouter.BltRouter ( )
inline

Constructor.

Member Function Documentation

◆ afterPropertiesSet()

synchronized void eu.baltrad.beast.router.impl.BltRouter.afterPropertiesSet ( ) throws Exception
inline

Spring framework will call this function after the bean has been created.

◆ create()

RouteDefinition eu.baltrad.beast.router.impl.BltRouter.create ( String name,
String author,
boolean active,
String description,
List< String > recipients,
IRule rule )
inline
See also
eu.baltrad.beast.router.IRouterManager.create(String,String,boolean,String,List,IRule)

Implements eu.baltrad.beast.router.IRouterManager.

◆ createRule()

IRule eu.baltrad.beast.router.impl.BltRouter.createRule ( String type)
inline

◆ deleteDefinition()

synchronized void eu.baltrad.beast.router.impl.BltRouter.deleteDefinition ( String name)
inline

◆ getDefinition()

synchronized RouteDefinition eu.baltrad.beast.router.impl.BltRouter.getDefinition ( String name)
inline

◆ getDefinitions() [1/2]

synchronized List< RouteDefinition > eu.baltrad.beast.router.impl.BltRouter.getDefinitions ( )
inline

◆ getDefinitions() [2/2]

synchronized List< RouteDefinition > eu.baltrad.beast.router.impl.BltRouter.getDefinitions ( List< String > types)
inline

◆ getMultiRoutedMessages() [1/2]

List< IMultiRoutedMessage > eu.baltrad.beast.router.impl.BltRouter.getMultiRoutedMessages ( IBltMessage msg)
inline
See also
IRouter.getMultiRoutedMessages(IBltMessage)
Parameters
msg- the message that should result in the multi routed messages.
Returns
a list of zero or more multi routed messages.

Implements eu.baltrad.beast.router.IRouter.

◆ getMultiRoutedMessages() [2/2]

List< IMultiRoutedMessage > eu.baltrad.beast.router.impl.BltRouter.getMultiRoutedMessages ( IBltMessage msg,
RouteDefinition def )
inlineprotected

Used to get the routed messages from a specific rule.

Parameters
msgthe message
defthe rule

◆ getNames()

synchronized List< String > eu.baltrad.beast.router.impl.BltRouter.getNames ( )
inline

◆ getRecipients()

synchronized List< String > eu.baltrad.beast.router.impl.BltRouter.getRecipients ( int rule_id)
inlineprotected

Returns the recipients for the routing definition with specified name.

Parameters
rule_idthe rule id.
Returns
a list of recipients.

◆ getRouteDefinitionMapper()

RowMapper< RouteDefinition > eu.baltrad.beast.router.impl.BltRouter.getRouteDefinitionMapper ( )
inlineprotected

Returns the definition mapper.

Returns
the definition mapper

◆ getRoutedMessages() [1/2]

List< IRoutedMessage > eu.baltrad.beast.router.impl.BltRouter.getRoutedMessages ( IBltMessage msg)
inline
See also
IRouter.getRoutedMessages(IBltMessage)
Parameters
msg- the message that should result in the routed messages.
Returns
a list of zero or more routed messages.

Implements eu.baltrad.beast.router.IRouter.

◆ getRoutedMessages() [2/2]

List< IRoutedMessage > eu.baltrad.beast.router.impl.BltRouter.getRoutedMessages ( IBltMessage msg,
RouteDefinition def )
inlineprotected

Used to get the routed messages from a specific rule.

Parameters
msgthe message
defthe rule

◆ removeDefinitionFromList()

synchronized void eu.baltrad.beast.router.impl.BltRouter.removeDefinitionFromList ( String name)
inlineprotected

Removes the specified definition from the list.

Parameters
namethe name of the definition that should be removed

◆ setContext()

void eu.baltrad.beast.router.impl.BltRouter.setContext ( ManagerContext context)
inline
Parameters
contextthe context to set

◆ setJdbcTemplate()

void eu.baltrad.beast.router.impl.BltRouter.setJdbcTemplate ( JdbcOperations template)
inline

Sets the jdbc template.

Parameters
templatethe template

◆ setRuleManagers()

void eu.baltrad.beast.router.impl.BltRouter.setRuleManagers ( Map< String, IRuleManager > ruleManagers)
inline

Sets the rule managers.

Parameters
ruleManagersthe rule managers to set

◆ setSystemReporter()

void eu.baltrad.beast.router.impl.BltRouter.setSystemReporter ( ISystemReporter reporter)
inline

Sets the reporter for managing system messages.

Parameters
reporterthe reporter to use

◆ setSystemRules()

void eu.baltrad.beast.router.impl.BltRouter.setSystemRules ( SystemRulesDefinition def)
inline

Sets the system definitions.

Parameters
defthe system definition

◆ storeDefinition()

synchronized void eu.baltrad.beast.router.impl.BltRouter.storeDefinition ( RouteDefinition def)
inline

◆ storeRecipients()

void eu.baltrad.beast.router.impl.BltRouter.storeRecipients ( int rule_id,
List< String > recipients )
inlineprotected

Stores the recipients.

Parameters
rule_id- the rule id
recipientsa list of recipients

◆ updateDefinition()

synchronized void eu.baltrad.beast.router.impl.BltRouter.updateDefinition ( RouteDefinition def)
inline

The documentation for this class was generated from the following file: