BEAST
|
Manages all routes and synchronizes them with the database. More...
Public Member Functions | |
List< String > | getNames () |
Returns a list of registered definition names. | |
List< RouteDefinition > | getDefinitions () |
Gets the current routing definitions. | |
List< RouteDefinition > | getDefinitions (List< String > types) |
Gets the definitions with specified types. | |
RouteDefinition | getDefinition (String name) |
Returns the definition with specified name. | |
void | storeDefinition (RouteDefinition def) |
Stores a definition in the database. | |
void | updateDefinition (RouteDefinition def) |
Updates the definition in the database. | |
void | deleteDefinition (String name) |
Deletes the definition with the specified name. | |
RouteDefinition | create (String name, String author, boolean active, String description, List< String > recipients, IRule rule) |
Works as a factory for creating route definitions. | |
IRule | createRule (String type) |
Creates a rule of the specified type. | |
Manages all routes and synchronizes them with the database.
RouteDefinition eu.baltrad.beast.router.IRouterManager.create | ( | String | name, |
String | author, | ||
boolean | active, | ||
String | description, | ||
List< String > | recipients, | ||
IRule | rule ) |
Works as a factory for creating route definitions.
name | the name of the route definition |
author | the author |
active | if enabled or not |
description | the description |
recipients | a list of recipients |
rule | the rule |
Implemented in eu.baltrad.beast.router.impl.BltRouter.
IRule eu.baltrad.beast.router.IRouterManager.createRule | ( | String | type | ) |
Creates a rule of the specified type.
type | the type associated with the manager |
Implemented in eu.baltrad.beast.router.impl.BltRouter.
void eu.baltrad.beast.router.IRouterManager.deleteDefinition | ( | String | name | ) |
Deletes the definition with the specified name.
name | the name of the definition to be removed. |
Implemented in eu.baltrad.beast.router.impl.BltRouter.
RouteDefinition eu.baltrad.beast.router.IRouterManager.getDefinition | ( | String | name | ) |
Returns the definition with specified name.
name | - the name |
Implemented in eu.baltrad.beast.router.impl.BltRouter.
List< RouteDefinition > eu.baltrad.beast.router.IRouterManager.getDefinitions | ( | ) |
Gets the current routing definitions.
Implemented in eu.baltrad.beast.router.impl.BltRouter.
List< RouteDefinition > eu.baltrad.beast.router.IRouterManager.getDefinitions | ( | List< String > | types | ) |
Gets the definitions with specified types.
[in] | list | of types |
Implemented in eu.baltrad.beast.router.impl.BltRouter.
List< String > eu.baltrad.beast.router.IRouterManager.getNames | ( | ) |
Returns a list of registered definition names.
Implemented in eu.baltrad.beast.router.impl.BltRouter.
void eu.baltrad.beast.router.IRouterManager.storeDefinition | ( | RouteDefinition | def | ) |
Stores a definition in the database.
def | the definition to store |
RuleException | if something is erroneous with the definition |
Implemented in eu.baltrad.beast.router.impl.BltRouter.
void eu.baltrad.beast.router.IRouterManager.updateDefinition | ( | RouteDefinition | def | ) |
Updates the definition in the database.
def | the definition to update |
RuleException | if something is erroneous with the definition |
Implemented in eu.baltrad.beast.router.impl.BltRouter.